0 html javascript php jquery content-management-system
我是webdeveloper.和我的客户要求我编辑一些指令是发票
一样
<ul>
<b>NOTE </b>
<li>Check all the stock on sopt after that company will not claim anything </li>
<li>stock will be return within three days afther that company will deduct 10%</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
我们处理请求并将该文件上传到服务器.我们需要一个机制,以便用户有权编辑PHP脚本但只有指令.他自己更改指令,当点击提交表单客户端输入存储在服务器上的php脚本中的内容更改.
为了exapmen
<?php
// here the all the code of php
?>
<html>
// here div for instructions
<div id="instructions" >Here goes instruction </div>
</html>
Run Code Online (Sandbox Code Playgroud)
像往常一样,公司指令逐月改变政策变更的结果.
找到三个解决方案
1-store那个insturction div内容到数据库(被我的老板拒绝,不知道为什么)
2- http://sourceforge.net/projects/ontext/(but它在编辑器中加载php的所有代码和用户如何查找代码行中的指令)//老板说只有教程的文本会出现意味着被拒绝
3 - 看到一些jquery从另一个PHP脚本编辑div的内容但是用户可能想要加粗一些文本所以当用户想要点击要从另一个脚本中更改div内容,我们会在[你所看到的内容]编辑器中显示文本.
需求量的:
<ul><li>
dont store instruction in mysql</li>
<li>
when users want to change instruction it just click on edit (button/labe etc) user gets instructions in editor and changing as they want when submit that page these <b>instruction </b> will be hardcoded in php script
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
在这方面,任何人都帮助我.
讨论你的老板是不是白痴以及如何应对这个问题超出了本网站的范围.尝试在https://softwareengineering.stackexchange.com/上询问.
要回答问题的技术部分:
希望这可以帮助.