心理咨询网
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 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  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. <select name="gid">
  174. <option value="">不限制</option>
  175. {foreach $groups(key,value)}
  176. <option value="[value->id]">[value->gname]</option>
  177. {/foreach}
  178. </select>
  179. </div>
  180. </div>
  181. <div class="layui-form-item">
  182. <label class="layui-form-label">权限类型</label>
  183. <div class="layui-input-block">
  184. <select name="gtype" id="gtype" >
  185. <option value="1">小于</option>
  186. <option value="2">小于等于</option>
  187. <option value="3">等于</option>
  188. <option value="4" selected>大于等于</option>
  189. <option value="5">大于</option>
  190. </select>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="layui-tab-item">
  195. <div class="layui-form-item">
  196. <label class="layui-form-label">栏目副名称</label>
  197. <div class="layui-input-block">
  198. <input type="text" name="subname" placeholder="请输入栏目副名称" class="layui-input">
  199. </div>
  200. </div>
  201. <div class="layui-form-item">
  202. <label class="layui-form-label">栏目描述1</label>
  203. <div class="layui-input-block">
  204. <input type="text" name="def1" placeholder="请输入栏目描述1内容" class="layui-input">
  205. </div>
  206. </div>
  207. <div class="layui-form-item">
  208. <label class="layui-form-label">栏目描述2</label>
  209. <div class="layui-input-block">
  210. <input type="text" name="def2" placeholder="请输入栏目描述2内容" class="layui-input">
  211. </div>
  212. </div>
  213. <div class="layui-form-item">
  214. <label class="layui-form-label">栏目描述3</label>
  215. <div class="layui-input-block">
  216. <input type="text" name="def3" placeholder="请输入栏目描述3内容" class="layui-input">
  217. </div>
  218. </div>
  219. <div class="layui-form-item">
  220. <label class="layui-form-label">跳转链接</label>
  221. <div class="layui-input-block">
  222. <input type="text" name="outlink" placeholder="请输入跳转链接" class="layui-input">
  223. </div>
  224. </div>
  225. <div class="layui-form-item">
  226. <label class="layui-form-label">权限不足提示</label>
  227. <div class="layui-input-block">
  228. <input type="text" name="gnote" placeholder="请输入权限不足时提示文本" class="layui-input">
  229. </div>
  230. </div>
  231. <div class="layui-form-item">
  232. <label class="layui-form-label">栏目缩略图</label>
  233. <div class="layui-input-inline">
  234. <input type="text" name="ico" id="ico" placeholder="请上传栏目缩略图" class="layui-input">
  235. </div>
  236. <button type="button" class="layui-btn upload" data-des="ico">
  237. <i class="layui-icon">&#xe67c;</i>上传图片
  238. </button>
  239. <div id="ico_box" class="pic"></div>
  240. </div>
  241. <div class="layui-form-item">
  242. <label class="layui-form-label">栏目大图</label>
  243. <div class="layui-input-inline">
  244. <input type="text" name="pic" id="pic" placeholder="请上传栏目大图" class="layui-input">
  245. </div>
  246. <button type="button" class="layui-btn upload" data-des="pic">
  247. <i class="layui-icon">&#xe67c;</i>上传图片
  248. </button>
  249. <div id="pic_box" class="pic"></div>
  250. </div>
  251. <div class="layui-form-item">
  252. <label class="layui-form-label">SEO标题</label>
  253. <div class="layui-input-block">
  254. <input type="text" name="title" placeholder="请输入栏目SEO标题,需前端调用" class="layui-input">
  255. </div>
  256. </div>
  257. <div class="layui-form-item">
  258. <label class="layui-form-label">SEO关键字</label>
  259. <div class="layui-input-block">
  260. <input type="text" name="keywords" placeholder="请输入栏目SEO关键字,需前端调用" class="layui-input">
  261. </div>
  262. </div>
  263. <div class="layui-form-item">
  264. <label class="layui-form-label">SEO描述</label>
  265. <div class="layui-input-block">
  266. <textarea name="description" placeholder="请输入栏目SEO描述,需前端调用" class="layui-textarea"></textarea>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="layui-form-item">
  273. <div class="layui-input-block">
  274. <button class="layui-btn" lay-submit>立即提交</button>
  275. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  276. </div>
  277. </div>
  278. </form>
  279. </div>
  280. <!-- 批量新增 -->
  281. <div class="layui-tab-item">
  282. <form action="{url./admin/ContentSort/add}" method="post" class="layui-form" lay-filter="sort">
  283. <input type="hidden" name="formcheck" value="{$formcheck}" >
  284. <div class="layui-form-item">
  285. <label class="layui-form-label">父栏目</label>
  286. <div class="layui-input-block">
  287. <select name="pcode">
  288. <option value="0" >顶级栏目</option>
  289. {$sort_select}
  290. </select>
  291. </div>
  292. </div>
  293. <div class="layui-form-item">
  294. <label class="layui-form-label">栏目名称</label>
  295. <div class="layui-input-block">
  296. <input type="text" name="multiplename" required lay-verify="required" placeholder="请输入栏目名称,多个栏目用逗号隔开" class="layui-input">
  297. </div>
  298. </div>
  299. <div class="layui-form-item">
  300. <label class="layui-form-label">内容模型</label>
  301. <div class="layui-input-block">
  302. <select name="mcode" lay-filter="model" lay-verify="required" >
  303. <option value="">请选择内容模型</option>
  304. {foreach $models(key,value)}
  305. <option value="[value->mcode]" data-type="[value->type]" data-listtpl="[value->listtpl]" data-contenttpl="[value->contenttpl]" >[value->name]</option>
  306. {/foreach}
  307. </select>
  308. </div>
  309. </div>
  310. <input type="hidden" value="1" name="type" id="type">
  311. <div class="layui-form-item">
  312. <label class="layui-form-label">列表页模板</label>
  313. <div class="layui-input-block">
  314. <select name="listtpl" id="listtpl">
  315. <option value="">无</option>
  316. {foreach $tpls(key,value)}
  317. <option value="[value]">[value]</option>
  318. {/foreach}
  319. </select>
  320. </div>
  321. </div>
  322. <div class="layui-form-item">
  323. <label class="layui-form-label">详情页模板</label>
  324. <div class="layui-input-block">
  325. <select name="contenttpl" id="contenttpl" >
  326. <option value="">无</option>
  327. {foreach $tpls(key,value)}
  328. <option value="[value]">[value]</option>
  329. {/foreach}
  330. </select>
  331. </div>
  332. </div>
  333. <div class="layui-form-item">
  334. <label class="layui-form-label">状态</label>
  335. <div class="layui-input-block">
  336. <input type="radio" name="status" value="1" title="显示" checked>
  337. <input type="radio" name="status" value="0" title="隐藏">
  338. </div>
  339. </div>
  340. <div class="layui-form-item">
  341. <div class="layui-input-block">
  342. <button class="layui-btn" lay-submit>立即提交</button>
  343. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  344. </div>
  345. </div>
  346. </form>
  347. </div>
  348. </div>
  349. </div>
  350. {/if}
  351. {if([$mod])}
  352. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  353. <ul class="layui-tab-title">
  354. <li class="layui-this">栏目修改</li>
  355. </ul>
  356. <div class="layui-tab-content">
  357. <div class="layui-tab-item layui-show">
  358. <form action="{url./admin/ContentSort/mod/scode/'.[$get.scode].'}{$backurl}" method="post" class="layui-form" lay-filter="sort">
  359. <input type="hidden" name="formcheck" value="{$formcheck}" >
  360. <div class="layui-tab">
  361. <ul class="layui-tab-title">
  362. <li class="layui-this">基本选项</li>
  363. <li>高级选项</li>
  364. </ul>
  365. <div class="layui-tab-content">
  366. <div class="layui-tab-item layui-show">
  367. <div class="layui-form-item">
  368. <label class="layui-form-label">父栏目</label>
  369. <div class="layui-input-block">
  370. <select name="pcode" id="pcode">
  371. <option value="0" >顶级栏目</option>
  372. {$sort_select}
  373. </select>
  374. </div>
  375. </div>
  376. <div class="layui-form-item">
  377. <label class="layui-form-label">栏目名称 <span class="layui-text-red">*</span></label>
  378. <div class="layui-input-block">
  379. <input type="text" name="name" required lay-verify="required" value="{$sort->name}" placeholder="请输入栏目名称" class="layui-input">
  380. </div>
  381. </div>
  382. <div class="layui-form-item">
  383. <label class="layui-form-label">URL名称 </label>
  384. <div class="layui-input-block">
  385. <input type="text" name="filename" value="{$sort->filename}" placeholder="请输入URL名称,如:test,test/a/b/c" class="layui-input">
  386. </div>
  387. </div>
  388. <div class="layui-form-item">
  389. <label class="layui-form-label">内容模型 <span class="layui-text-red">*</span></label>
  390. <div class="layui-input-block">
  391. <select name="mcode" lay-filter="model" lay-verify="required" >
  392. <option value="">请选择内容模型</option>
  393. {foreach $models(key,value)}
  394. <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>
  395. {/foreach}
  396. </select>
  397. </div>
  398. </div>
  399. <input type="hidden" name="type" id="type" value="{$sort->type}">
  400. <div class="layui-form-item">
  401. <label class="layui-form-label">列表页模板</label>
  402. <div class="layui-input-block">
  403. <select name="listtpl" id="listtpl">
  404. <option value="{$sort->listtpl}">{$sort->listtpl}</option>
  405. <option value="">无</option>
  406. {foreach $tpls(key,value)}
  407. {if($value!=[$sort->listtpl])}
  408. <option value="[value]">[value]</option>
  409. {/if}
  410. {/foreach}
  411. </select>
  412. </div>
  413. </div>
  414. <div class="layui-form-item">
  415. <label class="layui-form-label">详情页模板</label>
  416. <div class="layui-input-block">
  417. <select name="contenttpl" id="contenttpl" >
  418. <option value="{$sort->contenttpl}">{$sort->contenttpl}</option>
  419. <option value="">无</option>
  420. {foreach $tpls(key,value)}
  421. {if($value!=[$sort->contenttpl])}
  422. <option value="[value]">[value]</option>
  423. {/if}
  424. {/foreach}
  425. </select>
  426. </div>
  427. </div>
  428. <div class="layui-form-item">
  429. <label class="layui-form-label">同步子栏目模板</label>
  430. <div class="layui-input-block">
  431. <input type="radio" name="modsub" value="1" title="是">
  432. <input type="radio" name="modsub" value="0" title="否" checked>
  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="status" value="1" title="显示" {if([$sort->status]==1)}checked="checked"{/if}>
  439. <input type="radio" name="status" value="0" title="隐藏" {if([$sort->status]==0)}checked="checked"{/if}>
  440. </div>
  441. </div>
  442. <div class="layui-form-item">
  443. <label class="layui-form-label">浏览权限</label>
  444. <div class="layui-input-block">
  445. <select name="gid">
  446. <option value="">不限制</option>
  447. {foreach $groups(key,value)}
  448. <option value="[value->id]" {if([$sort->gid]==$value->id)}selected="selected"{/if}>[value->gname]</option>
  449. {/foreach}
  450. </select>
  451. </div>
  452. </div>
  453. <div class="layui-form-item">
  454. <label class="layui-form-label">权限类型</label>
  455. <div class="layui-input-block">
  456. <select name="gtype" id="gtype" >
  457. <option value="1" {if([$sort->gtype]==1)}selected="selected"{/if}>小于</option>
  458. <option value="2" {if([$sort->gtype]==2)}selected="selected"{/if}>小于等于</option>
  459. <option value="3" {if([$sort->gtype]==3)}selected="selected"{/if}>等于</option>
  460. <option value="4" {if([$sort->gtype]==4||(![$sort->gtype]))}selected="selected"{/if}>大于等于</option>
  461. <option value="5" {if([$sort->gtype]==5)}selected="selected"{/if}>大于</option>
  462. </select>
  463. </div>
  464. </div>
  465. </div>
  466. <div class="layui-tab-item">
  467. <div class="layui-form-item">
  468. <label class="layui-form-label">栏目副名称</label>
  469. <div class="layui-input-block">
  470. <input type="text" name="subname" value="{$sort->subname}" placeholder="请输入栏目副名称" class="layui-input">
  471. </div>
  472. </div>
  473. <div class="layui-form-item">
  474. <label class="layui-form-label">栏目描述1</label>
  475. <div class="layui-input-block">
  476. <input type="text" name="def1" value="{$sort->def1}" placeholder="请输入栏目描述1内容" class="layui-input">
  477. </div>
  478. </div>
  479. <div class="layui-form-item">
  480. <label class="layui-form-label">栏目描述2</label>
  481. <div class="layui-input-block">
  482. <input type="text" name="def2" value="{$sort->def2}" placeholder="请输入栏目描述2内容" class="layui-input">
  483. </div>
  484. </div>
  485. <div class="layui-form-item">
  486. <label class="layui-form-label">栏目描述3</label>
  487. <div class="layui-input-block">
  488. <input type="text" name="def3" value="{$sort->def3}" placeholder="请输入栏目描述3内容" class="layui-input">
  489. </div>
  490. </div>
  491. <div class="layui-form-item">
  492. <label class="layui-form-label">跳转链接</label>
  493. <div class="layui-input-block">
  494. <input type="text" name="outlink" value="{$sort->outlink}" placeholder="请输入跳转链接" class="layui-input">
  495. </div>
  496. </div>
  497. <div class="layui-form-item">
  498. <label class="layui-form-label">权限不足提示</label>
  499. <div class="layui-input-block">
  500. <input type="text" name="gnote" value="{$sort->gnote}" placeholder="请输入权限不足时提示文本" class="layui-input">
  501. </div>
  502. </div>
  503. <div class="layui-form-item">
  504. <label class="layui-form-label">栏目缩略图</label>
  505. <div class="layui-input-inline">
  506. <input type="text" name="ico" id="ico" value="{$sort->ico}" placeholder="请上传栏目缩略图" class="layui-input">
  507. </div>
  508. <button type="button" class="layui-btn upload" data-des="ico">
  509. <i class="layui-icon">&#xe67c;</i>上传图片
  510. </button>
  511. <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>
  512. </div>
  513. <div class="layui-form-item">
  514. <label class="layui-form-label">栏目大图</label>
  515. <div class="layui-input-inline">
  516. <input type="text" name="pic" id="pic" value="{$sort->pic}" placeholder="请上传栏目大图" class="layui-input">
  517. </div>
  518. <button type="button" class="layui-btn upload" data-des="pic">
  519. <i class="layui-icon">&#xe67c;</i>上传图片
  520. </button>
  521. <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>
  522. </div>
  523. <div class="layui-form-item">
  524. <label class="layui-form-label">SEO标题</label>
  525. <div class="layui-input-block">
  526. <input type="text" name="title" value="{$sort->title}" placeholder="请输入栏目SEO标题,需前端调用" class="layui-input">
  527. </div>
  528. </div>
  529. <div class="layui-form-item">
  530. <label class="layui-form-label">SEO关键字</label>
  531. <div class="layui-input-block">
  532. <input type="text" name="keywords" value="{$sort->keywords}" placeholder="请输入栏目SEO关键字,需前端调用" class="layui-input">
  533. </div>
  534. </div>
  535. <div class="layui-form-item">
  536. <label class="layui-form-label">SEO描述</label>
  537. <div class="layui-input-block">
  538. <textarea name="description" placeholder="请输入栏目SEO描述,需前端调用" class="layui-textarea">{$sort->description}</textarea>
  539. </div>
  540. </div>
  541. </div>
  542. </div>
  543. </div>
  544. <div class="layui-form-item">
  545. <div class="layui-input-block">
  546. <button class="layui-btn" lay-submit>立即提交</button>
  547. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  548. {fun=get_btn_back()}
  549. </div>
  550. </div>
  551. </form>
  552. </div>
  553. </div>
  554. </div>
  555. {/if}
  556. </div>
  557. {include file='common/foot.html'}