心理咨询网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

contentsort.html 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. {include file='common/head.html'}
  2. <div class="layui-body">
  3. {if([$list])}
  4. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  5. <ul class="layui-tab-title">
  6. <li class="layui-this" lay-id="t1">栏目列表</li>
  7. <li lay-id="t2">栏目新增</li>
  8. <li lay-id="t3">批量新增</li>
  9. </ul>
  10. <div class="layui-tab-content">
  11. <div class="layui-tab-item layui-show">
  12. <form action="{url./admin/ContentSort/mod}" method="post" id="sortForm" name="sortForm">
  13. <input type="hidden" name="formcheck" value="{$formcheck}" >
  14. <table class="layui-table" id="sortTable">
  15. <thead>
  16. <tr>
  17. <th><input type="checkbox" lay-ignore id="checkall" title="全选"></th>
  18. <th>栏目名称</th>
  19. <th>编码</th>
  20. <th>URL名称</th>
  21. <th>模型</th>
  22. <th>列表页模板</th>
  23. <th>详情页模板</th>
  24. <th>排序</th>
  25. <th>状态</th>
  26. <th>操作</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {foreach $sorts(key,value)}
  31. <tr data-tt-id='[value->scode]' data-tt-parent-id="[value->pcode]">
  32. <td>
  33. <input type="checkbox" class="checkitem" lay-ignore name="list[]" value="[value->scode]">
  34. <input type="hidden" name="listall[]" value="[value->id]">
  35. </td>
  36. <td>
  37. {if($value->son)}
  38. <i class="fa fa-folder-o" aria-hidden="true"></i>
  39. {else}
  40. <i class="fa fa-folder-open-o" aria-hidden="true"></i>
  41. {/if}
  42. [value->name]
  43. {if($value->outlink)}
  44. <a href="[value->outlink]" target="_blank"><i class="fa fa-external-link" aria-hidden="true"></i></a>
  45. {else}
  46. {if($value->type==1)}
  47. <a href="{url./admin/Single/index/mcode}/[value->mcode]&scode=[value->scode]"><i class="fa fa-file-text-o" aria-hidden="true"></i> </a>
  48. {else}
  49. <a href="{url./admin/Content/index/mcode}/[value->mcode]&scode=[value->scode]"><i class="fa fa-file-text-o" aria-hidden="true"></i> </a>
  50. {/if}
  51. {/if}
  52. </td>
  53. <td>[value->scode]</td>
  54. <td>[value->filename]</td>
  55. <td>
  56. {foreach $allmodels(key2,value2)}
  57. {if($value2->mcode==$value->mcode)}
  58. [value2->name]
  59. {/if}
  60. {/foreach}
  61. </td>
  62. <td>[value->listtpl]</td>
  63. <td>[value->contenttpl]</td>
  64. <td class="table-input"><input type="text" name="sorting[]" value="[value->sorting]" class="layui-input"></td>
  65. <td>
  66. {if($value->status)}
  67. <a href="{url./admin/'.C.'/mod/scode/'.$value->scode.'/field/status/value/0}" class="switch"><i class='fa fa-toggle-on' title="点击禁用"></i></a>
  68. {else}
  69. <a href="{url./admin/'.C.'/mod/scode/'.$value->scode.'/field/status/value/1}" class="switch"><i class='fa fa-toggle-off' title="点击启用"></i></a>
  70. {/if}
  71. </td>
  72. <td>
  73. {if(!$value->outlink)}
  74. {php}
  75. $Parser=new app\home\controller\ParserController();
  76. $link=$Parser->parserLink($value->type,$value->urlname,'list',$value->scode,$value->filename,'','');
  77. {/php}
  78. <a href="{php}echo $link{/php}" class="layui-btn layui-btn-xs layui-btn-primary" target="_blank">查看</a>
  79. {/if}
  80. {fun=get_btn_del($value->scode,'scode')}
  81. {fun=get_btn_mod($value->scode,'scode')}
  82. </td>
  83. </tr>
  84. {/foreach}
  85. </tbody>
  86. </table>
  87. <button type="submit" name="submit" value="sorting" class="layui-btn">保存排序</button>
  88. <button type="submit" name="submit" onclick="return setDelAction();" class="layui-btn">批量删除</button>
  89. <script>
  90. function setDelAction(){
  91. document.sortForm.action = "{url./admin/ContentSort/del}";
  92. return confirm("您确定要删除选中的栏目么?");
  93. }
  94. $("#sortTable").treetable({ expandable: true,column: 1,indent:20,stringCollapse:'收缩',stringExpand:'展开' });
  95. </script>
  96. </form>
  97. </div>
  98. <div class="layui-tab-item">
  99. <form action="{url./admin/ContentSort/add}" method="post" class="layui-form" lay-filter="sort">
  100. <input type="hidden" name="formcheck" value="{$formcheck}" >
  101. <div class="layui-tab">
  102. <ul class="layui-tab-title">
  103. <li class="layui-this">基本选项</li>
  104. <li>高级选项</li>
  105. </ul>
  106. <div class="layui-tab-content">
  107. <div class="layui-tab-item layui-show">
  108. <div class="layui-form-item">
  109. <label class="layui-form-label">父栏目</label>
  110. <div class="layui-input-block">
  111. <select name="pcode">
  112. <option value="0" >顶级栏目</option>
  113. {$sort_select}
  114. </select>
  115. </div>
  116. </div>
  117. <div class="layui-form-item">
  118. <label class="layui-form-label">栏目名称 <span class="layui-text-red">*</span></label>
  119. <div class="layui-input-block">
  120. <input type="text" name="name" required lay-verify="required" placeholder="请输入栏目名称" class="layui-input">
  121. </div>
  122. </div>
  123. <div class="layui-form-item">
  124. <label class="layui-form-label">URL名称 </label>
  125. <div class="layui-input-block">
  126. <input type="text" name="filename" placeholder="请输入URL名称,如:test,test/a/b/c" class="layui-input">
  127. </div>
  128. </div>
  129. <div class="layui-form-item">
  130. <label class="layui-form-label">内容模型 <span class="layui-text-red">*</span></label>
  131. <div class="layui-input-block">
  132. <select name="mcode" lay-filter="model" lay-verify="required" >
  133. <option value="">请选择内容模型</option>
  134. {foreach $models(key,value)}
  135. <option value="[value->mcode]" data-type="[value->type]" data-listtpl="[value->listtpl]" data-contenttpl="[value->contenttpl]" >[value->name]</option>
  136. {/foreach}
  137. </select>
  138. </div>
  139. </div>
  140. <input type="hidden" value="1" name="type" id="type">
  141. <div class="layui-form-item">
  142. <label class="layui-form-label">列表页模板</label>
  143. <div class="layui-input-block">
  144. <select name="listtpl" id="listtpl">
  145. <option value="">无</option>
  146. {foreach $tpls(key,value)}
  147. <option value="[value]">[value]</option>
  148. {/foreach}
  149. </select>
  150. </div>
  151. </div>
  152. <div class="layui-form-item">
  153. <label class="layui-form-label">详情页模板</label>
  154. <div class="layui-input-block">
  155. <select name="contenttpl" id="contenttpl" >
  156. <option value="">无</option>
  157. {foreach $tpls(key,value)}
  158. <option value="[value]">[value]</option>
  159. {/foreach}
  160. </select>
  161. </div>
  162. </div>
  163. <div class="layui-form-item">
  164. <label class="layui-form-label">状态</label>
  165. <div class="layui-input-block">
  166. <input type="radio" name="status" value="1" title="显示" checked>
  167. <input type="radio" name="status" value="0" title="隐藏">
  168. </div>
  169. </div>
  170. <div class="layui-form-item">
  171. <label class="layui-form-label">是否在首页显示</label>
  172. <div class="layui-input-block">
  173. <input type="radio" name="is_show" value="1" title="显示" checked>
  174. <input type="radio" name="is_show" value="0" title="隐藏">
  175. </div>
  176. </div>
  177. <div class="layui-form-item">
  178. <label class="layui-form-label">浏览权限</label>
  179. <div class="layui-input-block">
  180. <select name="gid">
  181. <option value="">不限制</option>
  182. {foreach $groups(key,value)}
  183. <option value="[value->id]">[value->gname]</option>
  184. {/foreach}
  185. </select>
  186. </div>
  187. </div>
  188. <div class="layui-form-item">
  189. <label class="layui-form-label">权限类型</label>
  190. <div class="layui-input-block">
  191. <select name="gtype" id="gtype" >
  192. <option value="1">小于</option>
  193. <option value="2">小于等于</option>
  194. <option value="3">等于</option>
  195. <option value="4" selected>大于等于</option>
  196. <option value="5">大于</option>
  197. </select>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="layui-tab-item">
  202. <div class="layui-form-item">
  203. <label class="layui-form-label">栏目副名称</label>
  204. <div class="layui-input-block">
  205. <input type="text" name="subname" placeholder="请输入栏目副名称" class="layui-input">
  206. </div>
  207. </div>
  208. <div class="layui-form-item">
  209. <label class="layui-form-label">栏目描述1</label>
  210. <div class="layui-input-block">
  211. <input type="text" name="def1" placeholder="请输入栏目描述1内容" class="layui-input">
  212. </div>
  213. </div>
  214. <div class="layui-form-item">
  215. <label class="layui-form-label">栏目描述2</label>
  216. <div class="layui-input-block">
  217. <input type="text" name="def2" placeholder="请输入栏目描述2内容" class="layui-input">
  218. </div>
  219. </div>
  220. <div class="layui-form-item">
  221. <label class="layui-form-label">栏目描述3</label>
  222. <div class="layui-input-block">
  223. <input type="text" name="def3" placeholder="请输入栏目描述3内容" class="layui-input">
  224. </div>
  225. </div>
  226. <div class="layui-form-item">
  227. <label class="layui-form-label">跳转链接</label>
  228. <div class="layui-input-block">
  229. <input type="text" name="outlink" placeholder="请输入跳转链接" class="layui-input">
  230. </div>
  231. </div>
  232. <div class="layui-form-item">
  233. <label class="layui-form-label">权限不足提示</label>
  234. <div class="layui-input-block">
  235. <input type="text" name="gnote" placeholder="请输入权限不足时提示文本" class="layui-input">
  236. </div>
  237. </div>
  238. <div class="layui-form-item">
  239. <label class="layui-form-label">栏目缩略图</label>
  240. <div class="layui-input-inline">
  241. <input type="text" name="ico" id="ico" placeholder="请上传栏目缩略图" class="layui-input">
  242. </div>
  243. <button type="button" class="layui-btn upload" data-des="ico">
  244. <i class="layui-icon">&#xe67c;</i>上传图片
  245. </button>
  246. <div id="ico_box" class="pic"></div>
  247. </div>
  248. <div class="layui-form-item">
  249. <label class="layui-form-label">栏目大图</label>
  250. <div class="layui-input-inline">
  251. <input type="text" name="pic" id="pic" placeholder="请上传栏目大图" class="layui-input">
  252. </div>
  253. <button type="button" class="layui-btn upload" data-des="pic">
  254. <i class="layui-icon">&#xe67c;</i>上传图片
  255. </button>
  256. <div id="pic_box" class="pic"></div>
  257. </div>
  258. <div class="layui-form-item">
  259. <label class="layui-form-label">SEO标题</label>
  260. <div class="layui-input-block">
  261. <input type="text" name="title" placeholder="请输入栏目SEO标题,需前端调用" class="layui-input">
  262. </div>
  263. </div>
  264. <div class="layui-form-item">
  265. <label class="layui-form-label">SEO关键字</label>
  266. <div class="layui-input-block">
  267. <input type="text" name="keywords" placeholder="请输入栏目SEO关键字,需前端调用" class="layui-input">
  268. </div>
  269. </div>
  270. <div class="layui-form-item">
  271. <label class="layui-form-label">SEO描述</label>
  272. <div class="layui-input-block">
  273. <textarea name="description" placeholder="请输入栏目SEO描述,需前端调用" class="layui-textarea"></textarea>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="layui-form-item">
  280. <div class="layui-input-block">
  281. <button class="layui-btn" lay-submit>立即提交</button>
  282. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  283. </div>
  284. </div>
  285. </form>
  286. </div>
  287. <!-- 批量新增 -->
  288. <div class="layui-tab-item">
  289. <form action="{url./admin/ContentSort/add}" method="post" class="layui-form" lay-filter="sort">
  290. <input type="hidden" name="formcheck" value="{$formcheck}" >
  291. <div class="layui-form-item">
  292. <label class="layui-form-label">父栏目</label>
  293. <div class="layui-input-block">
  294. <select name="pcode">
  295. <option value="0" >顶级栏目</option>
  296. {$sort_select}
  297. </select>
  298. </div>
  299. </div>
  300. <div class="layui-form-item">
  301. <label class="layui-form-label">栏目名称</label>
  302. <div class="layui-input-block">
  303. <input type="text" name="multiplename" required lay-verify="required" placeholder="请输入栏目名称,多个栏目用逗号隔开" class="layui-input">
  304. </div>
  305. </div>
  306. <div class="layui-form-item">
  307. <label class="layui-form-label">内容模型</label>
  308. <div class="layui-input-block">
  309. <select name="mcode" lay-filter="model" lay-verify="required" >
  310. <option value="">请选择内容模型</option>
  311. {foreach $models(key,value)}
  312. <option value="[value->mcode]" data-type="[value->type]" data-listtpl="[value->listtpl]" data-contenttpl="[value->contenttpl]" >[value->name]</option>
  313. {/foreach}
  314. </select>
  315. </div>
  316. </div>
  317. <input type="hidden" value="1" name="type" id="type">
  318. <div class="layui-form-item">
  319. <label class="layui-form-label">列表页模板</label>
  320. <div class="layui-input-block">
  321. <select name="listtpl" id="listtpl">
  322. <option value="">无</option>
  323. {foreach $tpls(key,value)}
  324. <option value="[value]">[value]</option>
  325. {/foreach}
  326. </select>
  327. </div>
  328. </div>
  329. <div class="layui-form-item">
  330. <label class="layui-form-label">详情页模板</label>
  331. <div class="layui-input-block">
  332. <select name="contenttpl" id="contenttpl" >
  333. <option value="">无</option>
  334. {foreach $tpls(key,value)}
  335. <option value="[value]">[value]</option>
  336. {/foreach}
  337. </select>
  338. </div>
  339. </div>
  340. <div class="layui-form-item">
  341. <label class="layui-form-label">状态</label>
  342. <div class="layui-input-block">
  343. <input type="radio" name="status" value="1" title="显示" checked>
  344. <input type="radio" name="status" value="0" title="隐藏">
  345. </div>
  346. </div>
  347. <div class="layui-form-item">
  348. <div class="layui-input-block">
  349. <button class="layui-btn" lay-submit>立即提交</button>
  350. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  351. </div>
  352. </div>
  353. </form>
  354. </div>
  355. </div>
  356. </div>
  357. {/if}
  358. {if([$mod])}
  359. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  360. <ul class="layui-tab-title">
  361. <li class="layui-this">栏目修改</li>
  362. </ul>
  363. <div class="layui-tab-content">
  364. <div class="layui-tab-item layui-show">
  365. <form action="{url./admin/ContentSort/mod/scode/'.[$get.scode].'}{$backurl}" method="post" class="layui-form" lay-filter="sort">
  366. <input type="hidden" name="formcheck" value="{$formcheck}" >
  367. <div class="layui-tab">
  368. <ul class="layui-tab-title">
  369. <li class="layui-this">基本选项</li>
  370. <li>高级选项</li>
  371. </ul>
  372. <div class="layui-tab-content">
  373. <div class="layui-tab-item layui-show">
  374. <div class="layui-form-item">
  375. <label class="layui-form-label">父栏目</label>
  376. <div class="layui-input-block">
  377. <select name="pcode" id="pcode">
  378. <option value="0" >顶级栏目</option>
  379. {$sort_select}
  380. </select>
  381. </div>
  382. </div>
  383. <div class="layui-form-item">
  384. <label class="layui-form-label">栏目名称 <span class="layui-text-red">*</span></label>
  385. <div class="layui-input-block">
  386. <input type="text" name="name" required lay-verify="required" value="{$sort->name}" placeholder="请输入栏目名称" class="layui-input">
  387. </div>
  388. </div>
  389. <div class="layui-form-item">
  390. <label class="layui-form-label">URL名称 </label>
  391. <div class="layui-input-block">
  392. <input type="text" name="filename" value="{$sort->filename}" placeholder="请输入URL名称,如:test,test/a/b/c" class="layui-input">
  393. </div>
  394. </div>
  395. <div class="layui-form-item">
  396. <label class="layui-form-label">内容模型 <span class="layui-text-red">*</span></label>
  397. <div class="layui-input-block">
  398. <select name="mcode" lay-filter="model" lay-verify="required" >
  399. <option value="">请选择内容模型</option>
  400. {foreach $models(key,value)}
  401. <option value="[value->mcode]" {if($value->mcode==[$sort->mcode])}selected{/if} data-type="[value->type]" data-listtpl="[value->listtpl]" data-contenttpl="[value->contenttpl]" >[value->name]</option>
  402. {/foreach}
  403. </select>
  404. </div>
  405. </div>
  406. <input type="hidden" name="type" id="type" value="{$sort->type}">
  407. <div class="layui-form-item">
  408. <label class="layui-form-label">列表页模板</label>
  409. <div class="layui-input-block">
  410. <select name="listtpl" id="listtpl">
  411. <option value="{$sort->listtpl}">{$sort->listtpl}</option>
  412. <option value="">无</option>
  413. {foreach $tpls(key,value)}
  414. {if($value!=[$sort->listtpl])}
  415. <option value="[value]">[value]</option>
  416. {/if}
  417. {/foreach}
  418. </select>
  419. </div>
  420. </div>
  421. <div class="layui-form-item">
  422. <label class="layui-form-label">详情页模板</label>
  423. <div class="layui-input-block">
  424. <select name="contenttpl" id="contenttpl" >
  425. <option value="{$sort->contenttpl}">{$sort->contenttpl}</option>
  426. <option value="">无</option>
  427. {foreach $tpls(key,value)}
  428. {if($value!=[$sort->contenttpl])}
  429. <option value="[value]">[value]</option>
  430. {/if}
  431. {/foreach}
  432. </select>
  433. </div>
  434. </div>
  435. <div class="layui-form-item">
  436. <label class="layui-form-label">同步子栏目模板</label>
  437. <div class="layui-input-block">
  438. <input type="radio" name="modsub" value="1" title="是">
  439. <input type="radio" name="modsub" value="0" title="否" checked>
  440. </div>
  441. </div>
  442. <div class="layui-form-item">
  443. <label class="layui-form-label">状态</label>
  444. <div class="layui-input-block">
  445. <input type="radio" name="status" value="1" title="显示" {if([$sort->status]==1)}checked="checked"{/if}>
  446. <input type="radio" name="status" value="0" title="隐藏" {if([$sort->status]==0)}checked="checked"{/if}>
  447. </div>
  448. </div>
  449. <div class="layui-form-item">
  450. <label class="layui-form-label">是否在首页显示</label>
  451. <div class="layui-input-block">
  452. <input type="radio" name="is_show" value="1" title="显示" {if([$sort->is_show]==1)}checked="checked"{/if}>
  453. <input type="radio" name="is_show" value="0" title="隐藏" {if([$sort->is_show]==0)}checked="checked"{/if}>
  454. </div>
  455. </div>
  456. <div class="layui-form-item">
  457. <label class="layui-form-label">浏览权限</label>
  458. <div class="layui-input-block">
  459. <select name="gid">
  460. <option value="">不限制</option>
  461. {foreach $groups(key,value)}
  462. <option value="[value->id]" {if([$sort->gid]==$value->id)}selected="selected"{/if}>[value->gname]</option>
  463. {/foreach}
  464. </select>
  465. </div>
  466. </div>
  467. <div class="layui-form-item">
  468. <label class="layui-form-label">权限类型</label>
  469. <div class="layui-input-block">
  470. <select name="gtype" id="gtype" >
  471. <option value="1" {if([$sort->gtype]==1)}selected="selected"{/if}>小于</option>
  472. <option value="2" {if([$sort->gtype]==2)}selected="selected"{/if}>小于等于</option>
  473. <option value="3" {if([$sort->gtype]==3)}selected="selected"{/if}>等于</option>
  474. <option value="4" {if([$sort->gtype]==4||(![$sort->gtype]))}selected="selected"{/if}>大于等于</option>
  475. <option value="5" {if([$sort->gtype]==5)}selected="selected"{/if}>大于</option>
  476. </select>
  477. </div>
  478. </div>
  479. </div>
  480. <div class="layui-tab-item">
  481. <div class="layui-form-item">
  482. <label class="layui-form-label">栏目副名称</label>
  483. <div class="layui-input-block">
  484. <input type="text" name="subname" value="{$sort->subname}" placeholder="请输入栏目副名称" class="layui-input">
  485. </div>
  486. </div>
  487. <div class="layui-form-item">
  488. <label class="layui-form-label">栏目描述1</label>
  489. <div class="layui-input-block">
  490. <input type="text" name="def1" value="{$sort->def1}" placeholder="请输入栏目描述1内容" class="layui-input">
  491. </div>
  492. </div>
  493. <div class="layui-form-item">
  494. <label class="layui-form-label">栏目描述2</label>
  495. <div class="layui-input-block">
  496. <input type="text" name="def2" value="{$sort->def2}" placeholder="请输入栏目描述2内容" class="layui-input">
  497. </div>
  498. </div>
  499. <div class="layui-form-item">
  500. <label class="layui-form-label">栏目描述3</label>
  501. <div class="layui-input-block">
  502. <input type="text" name="def3" value="{$sort->def3}" placeholder="请输入栏目描述3内容" class="layui-input">
  503. </div>
  504. </div>
  505. <div class="layui-form-item">
  506. <label class="layui-form-label">跳转链接</label>
  507. <div class="layui-input-block">
  508. <input type="text" name="outlink" value="{$sort->outlink}" placeholder="请输入跳转链接" class="layui-input">
  509. </div>
  510. </div>
  511. <div class="layui-form-item">
  512. <label class="layui-form-label">权限不足提示</label>
  513. <div class="layui-input-block">
  514. <input type="text" name="gnote" value="{$sort->gnote}" placeholder="请输入权限不足时提示文本" class="layui-input">
  515. </div>
  516. </div>
  517. <div class="layui-form-item">
  518. <label class="layui-form-label">栏目缩略图</label>
  519. <div class="layui-input-inline">
  520. <input type="text" name="ico" id="ico" value="{$sort->ico}" placeholder="请上传栏目缩略图" class="layui-input">
  521. </div>
  522. <button type="button" class="layui-btn upload" data-des="ico">
  523. <i class="layui-icon">&#xe67c;</i>上传图片
  524. </button>
  525. <div id="ico_box" class="pic"><dl><dt>{if([$sort->ico])}<img src='{SITE_DIR}{$sort->ico}' data-url="{$sort->ico}"></dt><dd>删除</dd></dl>{/if}</div>
  526. </div>
  527. <div class="layui-form-item">
  528. <label class="layui-form-label">栏目大图</label>
  529. <div class="layui-input-inline">
  530. <input type="text" name="pic" id="pic" value="{$sort->pic}" placeholder="请上传栏目大图" class="layui-input">
  531. </div>
  532. <button type="button" class="layui-btn upload" data-des="pic">
  533. <i class="layui-icon">&#xe67c;</i>上传图片
  534. </button>
  535. <div id="pic_box" class="pic"><dl><dt>{if([$sort->pic])}<img src='{SITE_DIR}{$sort->pic}' data-url="{$sort->pic}"></dt><dd>删除</dd></dl>{/if}</div>
  536. </div>
  537. <div class="layui-form-item">
  538. <label class="layui-form-label">SEO标题</label>
  539. <div class="layui-input-block">
  540. <input type="text" name="title" value="{$sort->title}" placeholder="请输入栏目SEO标题,需前端调用" class="layui-input">
  541. </div>
  542. </div>
  543. <div class="layui-form-item">
  544. <label class="layui-form-label">SEO关键字</label>
  545. <div class="layui-input-block">
  546. <input type="text" name="keywords" value="{$sort->keywords}" placeholder="请输入栏目SEO关键字,需前端调用" class="layui-input">
  547. </div>
  548. </div>
  549. <div class="layui-form-item">
  550. <label class="layui-form-label">SEO描述</label>
  551. <div class="layui-input-block">
  552. <textarea name="description" placeholder="请输入栏目SEO描述,需前端调用" class="layui-textarea">{$sort->description}</textarea>
  553. </div>
  554. </div>
  555. </div>
  556. </div>
  557. </div>
  558. <div class="layui-form-item">
  559. <div class="layui-input-block">
  560. <button class="layui-btn" lay-submit>立即提交</button>
  561. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  562. {fun=get_btn_back()}
  563. </div>
  564. </div>
  565. </form>
  566. </div>
  567. </div>
  568. </div>
  569. {/if}
  570. </div>
  571. {include file='common/foot.html'}