Nenhuma Descrição

zhiShiKuManger.html 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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. cursor: pointer;
  102. }
  103. .content:hover{
  104. color: #1ab394;
  105. }
  106. </style>
  107. </head>
  108. <body>
  109. <div class="container-fluid">
  110. <div class="daoHang clearfix">
  111. <div class="dhLeft">
  112. <sapn><i class="syIcon"></i>位置:
  113. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  114. <a href="javaScript:;">知识库管理</a>&gt;
  115. <a href="" class="nowPosition">知识库管理</a>
  116. </sapn>
  117. </div>
  118. <div class="dhRight">
  119. <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
  120. </div>
  121. </div>
  122. <div class="toolBar clearfix">
  123. <div class="toolLeft">
  124. <button class="btns add">添加</button>
  125. <button class="btns change">修改</button>
  126. <button class="btns del">删除</button>
  127. </div>
  128. <div class="toolRight">
  129. <span>搜索内容:<input type="text" class="searCon" /></span>
  130. <button class="btns searchGo">搜索</button>
  131. </div>
  132. </div>
  133. <div class="treeTable clearfix">
  134. <div class="tree col-md-3">
  135. <div class="trTitle">知识库分类</div>
  136. <div class="treeCon">
  137. <ul id="treeDemo" class="ztree">
  138. <!--类名为ztree是必须的-->
  139. </ul>
  140. </div>
  141. </div>
  142. <div class="tableCon col-md-9">
  143. <div class="trTitle"> 知识库列表</div>
  144. <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  145. <thead>
  146. <tr>
  147. <th data-field="state" data-checkbox="true" data-align="center"></th>
  148. <th data-align="center" data-formatter="setCode">编号</th>
  149. <!--<th data-align="center" data-field="id" data-formatter="setCode"></th>-->
  150. <th data-field="F_Title" data-formatter="formatterTitle" data-align="left">标题</th>
  151. <th data-field="F_Description" data-align="left" data-formatter="oper">内容</th>
  152. <th data-field="F_KeyWords" data-formatter="formatterKey" data-align="center">关键字</th>
  153. <th data-field="F_CreateOn" data-align="center">创建时间</th>
  154. </tr>
  155. </thead>
  156. <tbody id="tbody">
  157. </tbody>
  158. </table>
  159. </div>
  160. </div>
  161. </div>
  162. <!--添加弹出内容-->
  163. <div class="model addModel">
  164. <div class="box">
  165. <div class="btop clearfix">
  166. <p class="btl">添加知识库</p>
  167. <p class="btr addBtr" title="关闭">X</p>
  168. </div>
  169. <div class="boxCon">
  170. <table>
  171. <tbody>
  172. <tr>
  173. <th>所属分类:</th>
  174. <td colspan="3">
  175. <div class="inpBox">
  176. <input type="text" class="inps inps1" />
  177. <i class="xl xl_one"></i>
  178. <div class="addTree xlAdd">
  179. <ul id="addTreeDemo" class="ztree">
  180. </ul>
  181. </div>
  182. </div>
  183. </td>
  184. </tr>
  185. <tr>
  186. <th>标题:</th>
  187. <td colspan="3"><input type="text" class="addTitle" /></td>
  188. </tr>
  189. <tr>
  190. <th>关键字:</th>
  191. <td colspan="3"><input type="text" class="addKey" /></td>
  192. </tr>
  193. <tr>
  194. <th>内容:</th>
  195. <td colspan="3">
  196. <textarea id="addEditor" name="content" style="width: 100%;height: 100px;"></textarea>
  197. </td>
  198. </tr>
  199. </tbody>
  200. </table>
  201. <div style="text-align: center;"><button class="btns addCun">保存</button></div>
  202. </div>
  203. </div>
  204. </div>
  205. <!--删除弹出内容-->
  206. <div class="model delModel">
  207. <div class="box">
  208. <div class="btop clearfix">
  209. <p class="btl"><span>删除提示</span></p>
  210. <p class="btr delBtr" title="关闭">X</p>
  211. </div>
  212. <div class="boxCon" style="height: 150px;">
  213. <p style="text-align: center;font-size: 16px;margin-top: 30px;">您确定要删除吗?</p>
  214. <p style="margin-top: 30px;text-align: center;"><button class="btns sure">确定</button>
  215. <button class="btns return">取消</button></p>
  216. <!--<p style="color: red;">注:若该分类下包含知识库内容会一并删除</p>-->
  217. </div>
  218. </div>
  219. </div>
  220. <!--修改弹出内容-->
  221. <div class="model changeModel">
  222. <div class="box">
  223. <div class="btop clearfix">
  224. <p class="btl">修改知识库</p>
  225. <p class="btr changeBtr" title="关闭">X</p>
  226. </div>
  227. <div class="boxCon">
  228. <table>
  229. <tbody>
  230. <tr>
  231. <th>所属分类:</th>
  232. <td colspan="3">
  233. <div class="inpBox">
  234. <input type="text" class="inps inps4" />
  235. <i class="xl xl_two"></i>
  236. <div class="addTree xlChange">
  237. <ul id="changeTreeDemo" class="ztree">
  238. </ul>
  239. </div>
  240. </div>
  241. </td>
  242. </tr>
  243. <tr>
  244. <th>标题:</th>
  245. <td colspan="3"><input type="text" class="changeTitle" /></td>
  246. </tr>
  247. <tr>
  248. <th>关键字:</th>
  249. <td colspan="3"><input type="text" class="changeKey" /></td>
  250. </tr>
  251. <tr>
  252. <th>内容:</th>
  253. <td colspan="3"><textarea id="changeEditor" name="content" style="width: 100%;height: 100px;"></textarea></td>
  254. </tr>
  255. </tbody>
  256. </table>
  257. <div style="text-align: center;"><button class="btns changeCun">保存</button></div>
  258. </div>
  259. </div>
  260. </div>
  261. <script src="../js/zTree/jquery.ztree.core.js"></script>
  262. <script src="../js/kindeditor/kindeditor.js"></script>
  263. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  264. <script src="./js/zhiShiKuManger.js"></script>
  265. </body>
  266. </html>