説明なし

zhiShiKuManger.html 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <title>知识库管理</title>
  11. <style>
  12. .toolBar {
  13. padding: 15px 0;
  14. border-bottom: 1px solid #ccc;
  15. }
  16. .boxCon table th {
  17. width: 20%;
  18. }
  19. .boxCon table td textarea {
  20. width: 100%;
  21. }
  22. .inpBox {
  23. border: 1px solid #a9a9a9;
  24. height: 27px;
  25. width: 55%;
  26. ;
  27. display: inline-block;
  28. position: relative;
  29. vertical-align: middle;
  30. }
  31. .inps1,
  32. .inps4 {
  33. width: 100%;
  34. height: 24px;
  35. outline: none;
  36. border: 0;
  37. border-image-width: 0;
  38. padding: 0;
  39. padding-left: 3px;
  40. }
  41. .changeTitle,
  42. .changeKey,
  43. .addTitle,
  44. .addKey {
  45. width: 55%;
  46. }
  47. .xl {
  48. display: inline-block;
  49. background: url(../img/dropDown.png) no-repeat;
  50. height: 100%;
  51. background-position: center center;
  52. width: 20px;
  53. position: absolute;
  54. right: 0;
  55. top: 0px;
  56. background-color: #f7bc8b;
  57. cursor: pointer;
  58. }
  59. .xl:hover {
  60. background-color: #e6d523;
  61. }
  62. .addTree {
  63. background: #fff;
  64. position: absolute;
  65. width: 100%;
  66. border: 1px solid darkgrey;
  67. right: 0;
  68. top: 26px;
  69. display: none;
  70. height: 220px;
  71. overflow-y: auto;
  72. }
  73. .treeTable {
  74. height: 400px;
  75. /*overflow-y: auto;*/
  76. }
  77. .tree {
  78. height: 100%;
  79. }
  80. .trTitle {
  81. width: 100%;
  82. height: 34px;
  83. line-height: 34px;
  84. border-bottom: 1px solid #ebebeb;
  85. color: red;
  86. font-weight: 700;
  87. margin-bottom: 15px;
  88. }
  89. .treeCon {
  90. height: 90%;
  91. border: 1px solid #ebebeb;
  92. overflow-y: auto
  93. }
  94. .ztree li {
  95. width: 100%;
  96. overflow: hidden;
  97. white-space: nowrap;
  98. text-overflow: ellipsis;
  99. }
  100. .content {
  101. width: 270px;
  102. height: 25px;
  103. overflow: hidden;
  104. white-space: nowrap;
  105. text-overflow: ellipsis;
  106. text-align: left;
  107. }
  108. </style>
  109. </head>
  110. <body>
  111. <div class="container-fluid">
  112. <div class="daoHang clearfix">
  113. <div class="dhLeft">
  114. <sapn><i class="syIcon"></i>位置:
  115. <a id='ReIndex'>首页</a>&gt;
  116. <a href="javaScript:;">知识库管理</a>&gt;
  117. <a href="" style="color: #000;">知识库管理</a>
  118. </sapn>
  119. </div>
  120. </div>
  121. <div class="toolBar clearfix">
  122. <div class="toolLeft">
  123. <button class="btns add">添加</button>
  124. <button class="btns change">修改</button>
  125. <button class="btns del">删除</button>
  126. </div>
  127. <div class="toolRight">
  128. <span>搜索内容:<input type="text" class="searCon" /></span>
  129. <button class="btns searchGo">搜索</button>
  130. </div>
  131. </div>
  132. <div class="treeTable clearfix">
  133. <div class="tree col-md-3">
  134. <div class="trTitle">知识库分类</div>
  135. <div class="treeCon">
  136. <ul id="treeDemo" class="ztree">
  137. <!--类名为ztree是必须的-->
  138. </ul>
  139. </div>
  140. </div>
  141. <div class="tableCon col-md-9">
  142. <div class="trTitle"> 知识库列表</div>
  143. <table id="table1" data-row-style="rowStyle" data-click-to-select="true" data-query-params="queryParams">
  144. <thead>
  145. <tr>
  146. <th data-field="state" data-checkbox="true" data-align="center"></th>
  147. <th data-align="center" data-formatter="setCode">编号</th>
  148. <!--<th data-align="center" data-field="id" data-formatter="setCode"></th>-->
  149. <th data-field="F_Title" data-align="left" data-formatter="formatterTitle">标题</th>
  150. <th data-field="F_Description" data-align="left" data-formatter="oper">内容</th>
  151. <th data-field="F_KeyWords" data-align="center" data-formatter="formatterKey">关键字</th>
  152. <th data-field="F_CreateOn" data-align="center">创建时间</th>
  153. </tr>
  154. </thead>
  155. <tbody id="tbody">
  156. </tbody>
  157. </table>
  158. </div>
  159. </div>
  160. </div>
  161. <!--添加弹出内容-->
  162. <div class="model addModel">
  163. <div class="box">
  164. <div class="btop clearfix">
  165. <p class="btl">添加知识库</p>
  166. <p class="btr addBtr" title="关闭">X</p>
  167. </div>
  168. <div class="boxCon">
  169. <table>
  170. <tbody>
  171. <tr>
  172. <th>所属分类:</th>
  173. <td colspan="3">
  174. <div class="inpBox">
  175. <input type="text" class="inps inps1" />
  176. <i class="xl xl_one"></i>
  177. <div class="addTree xlAdd">
  178. <ul id="addTreeDemo" class="ztree">
  179. </ul>
  180. </div>
  181. </div>
  182. </td>
  183. </tr>
  184. <tr>
  185. <th>标题:</th>
  186. <td colspan="3"><input type="text" class="addTitle" /></td>
  187. </tr>
  188. <tr>
  189. <th>关键字:</th>
  190. <td colspan="3"><input type="text" class="addKey" /></td>
  191. </tr>
  192. <tr>
  193. <th>内容:</th>
  194. <td colspan="3"><textarea id="addEditor" name="content" style="width: 100%;height: 100px;"></textarea></td>
  195. </tr>
  196. </tbody>
  197. </table>
  198. <div style="text-align: center;"><button class="btns addCun">保存</button></div>
  199. </div>
  200. </div>
  201. </div>
  202. <!--删除弹出内容-->
  203. <div class="model delModel">
  204. <div class="box">
  205. <div class="btop clearfix">
  206. <p class="btl"><span>删除提示</span></p>
  207. <p class="btr delBtr" title="关闭">X</p>
  208. </div>
  209. <div class="boxCon" style="height: 150px;">
  210. <p style="text-align: center;font-size: 16px;margin-top: 30px;">您确定要删除吗?</p>
  211. <p style="margin-top: 30px;text-align: center;"><button class="btns sure">确定</button>
  212. <button class="btns return">取消</button></p>
  213. <!--<p style="color: red;">注:若该分类下包含知识库内容会一并删除</p>-->
  214. </div>
  215. </div>
  216. </div>
  217. <!--修改弹出内容-->
  218. <div class="model changeModel">
  219. <div class="box">
  220. <div class="btop clearfix">
  221. <p class="btl">修改知识库</p>
  222. <p class="btr changeBtr" title="关闭">X</p>
  223. </div>
  224. <div class="boxCon">
  225. <table>
  226. <tbody>
  227. <tr>
  228. <th>所属分类:</th>
  229. <td colspan="3">
  230. <div class="inpBox">
  231. <input type="text" class="inps inps4" />
  232. <i class="xl xl_two"></i>
  233. <div class="addTree xlChange">
  234. <ul id="changeTreeDemo" class="ztree">
  235. </ul>
  236. </div>
  237. </div>
  238. </td>
  239. </tr>
  240. <tr>
  241. <th>标题:</th>
  242. <td colspan="3"><input type="text" class="changeTitle" /></td>
  243. </tr>
  244. <tr>
  245. <th>关键字:</th>
  246. <td colspan="3"><input type="text" class="changeKey" /></td>
  247. </tr>
  248. <tr>
  249. <th>内容:</th>
  250. <td colspan="3"><textarea id="changeEditor" name="content" style="width: 100%;height: 100px;"></textarea></td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <div style="text-align: center;"><button class="btns changeCun">保存</button></div>
  255. </div>
  256. </div>
  257. </div>
  258. <script src="../js/zTree/jquery.ztree.core.js"></script>
  259. <script src="../js/kindeditor/kindeditor.js"></script>
  260. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  261. <script src="./js/zhiShiKuManger.js"></script>
  262. </body>
  263. </html>