Nessuna descrizione
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.

channel_index.htm 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page min-hg-c-10">
  6. {notempty name="$channel_id"}
  7. <div class="fixed-bar">
  8. <div class="item-title">
  9. <a class="back_xin" href="{:url('Channeltype/index')}" title="返回"><i class="iconfont e-fanhui"></i></a>
  10. <div class="subject">
  11. <h3>{$channeltype_row[$channel_id]['ntitle']|default='无'}字段</h3>
  12. <h5></h5>
  13. </div>
  14. <ul class="tab-base nc-row">
  15. <li><a href="{:url('Channeltype/edit', ['id'=>$channel_id])}" {eq name='$Request.action' value='edit'}class="current"{/eq}><span>模型编辑</span></a></li>
  16. <li><a href="{:url('Field/channel_index', ['channel_id'=>$channel_id])}" {eq name='$Request.action' value='channel_index'}class="current"{/eq}><span>字段管理</span></a></li>
  17. </ul>
  18. </div>
  19. </div>
  20. {else/}
  21. <!-- 全部模型字段管理 -->
  22. {include file="channeltype/bar" /}
  23. {/notempty}
  24. <div class="flexigrid">
  25. <div class="mDiv pt0">
  26. <div class="ftitle">
  27. {eq name="$Think.const.CONTROLLER_NAME.'@channel_add'|is_check_access" value="1"}
  28. <div class="fbutton">
  29. <a href="javascript:void(0);" {notempty name="$channel_id"} data-href="{:url('Field/channel_add', array('channel_id'=>$channel_id))}" {else/} data-href="{:url('Field/channel_add', array('type'=>'all'))}" {/notempty} onclick="openFullframe(this, '新增字段', '100%', '100%');">
  30. <div class="add">
  31. <span><i class="layui-icon layui-icon-addition"></i>新增字段</span>
  32. </div>
  33. </a>
  34. </div>
  35. {/eq}
  36. </div>
  37. <form id="searchForm" class="navbar-form form-inline" action="{:url('Field/channel_index')}" method="get" onsubmit="layer_loading('正在处理');">
  38. {$searchform.hidden|default=''}
  39. <div class="sDiv">
  40. <div class="sDiv2">
  41. <select id="select_channel" class="select" style="margin:0px 5px;">
  42. <option value="">--全部模型--</option>
  43. {volist name="$channeltype_row" id="vo"}
  44. <option value="{$vo.id}" {eq name="$channel_id" value="$vo.id"}selected{/eq}>{$vo.title}</option>
  45. {/volist}
  46. </select>
  47. </div>
  48. <div class="sDiv2">
  49. <input type="hidden" name="searchopt" value="1">
  50. <input type="hidden" name="channel_id" id="channel_id" value="{$channel_id|default='1'}">
  51. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="标题/名称搜索...">
  52. <input type="submit" class="btn" value="搜索">
  53. <i class="iconfont e-sousuo"></i>
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <div class="hDiv">
  59. <div class="hDivBox">
  60. <table cellspacing="0" cellpadding="0" style="width: 100%">
  61. <thead>
  62. <tr>
  63. <th abbr="article_title" axis="col3" class="w50">
  64. <div class="tc">ID</div>
  65. </th>
  66. <th abbr="article_title" axis="col3" class="">
  67. <div class="text-l10">字段标题</div>
  68. </th>
  69. <th abbr="article_time" axis="col6" class="w160">
  70. <div class="tc">所属模型</div>
  71. </th>
  72. <th abbr="article_time" axis="col6" class="w160">
  73. <div class="tc">字段名称</div>
  74. </th>
  75. <th abbr="article_time" axis="col6" class="w120">
  76. <div class="tc">字段类型</div>
  77. </th>
  78. <!-- <th abbr="article_time" axis="col6" class="w70">
  79. <div class="tc">字段分类</div>
  80. </th> -->
  81. <th abbr="article_time" axis="col6" class="w100">
  82. <div class="tc">创建时间</div>
  83. </th>
  84. <th axis="col1" class="w220">
  85. <div class="tc">操作</div>
  86. </th>
  87. <th abbr="article_time" axis="col6" class="w60">
  88. <div class="tc">排序</div>
  89. </th>
  90. </tr>
  91. </thead>
  92. </table>
  93. </div>
  94. </div>
  95. <div class="bDiv" style="height: auto;">
  96. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  97. <table style="width: 100%;">
  98. <tbody>
  99. {empty name="list"}
  100. <tr>
  101. <td class="no-data" align="center" axis="col0" colspan="50">
  102. <div class="no_row">
  103. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  104. </div>
  105. </td>
  106. </tr>
  107. {else/}
  108. {foreach name="list" item="vo" key="k" }
  109. <tr>
  110. <td class="sort">
  111. <div class="tc w50">
  112. {if condition="$pager->nowPage > 1"}
  113. {$pager->listRows * ($pager->nowPage-1) + $k+1}
  114. {else /}
  115. {$k+1}
  116. {/if}
  117. </div>
  118. </td>
  119. <td style="width: 100%">
  120. <div class="text-l10">
  121. {if condition="($vo['ifsystem'] eq 1) OR (1 eq $vo['ifmain'])"}
  122. {$vo.title}
  123. {else /}
  124. {eq name="$Think.const.CONTROLLER_NAME.'@channel_edit'|is_check_access" value="1"}
  125. <a href="javascript:void(0);" {notempty name="$channel_id"} data-href="{:url('Field/channel_edit',array('channel_id'=>$vo['channel_id'],'id'=>$vo['id']))}" {else/} data-href="{:url('Field/channel_edit',array('channel_id'=>$vo['channel_id'],'id'=>$vo['id'],'type'=>'all'))}" {/notempty} onclick="openFullframe(this, '编辑字段', '100%', '100%');">{$vo.title}</a>
  126. {else /}
  127. {$vo.title}
  128. {/eq}
  129. {/if}
  130. </div>
  131. </td>
  132. <td class="">
  133. <div class="w160 tc">
  134. {$channeltype_list[$vo.channel_id]['title']}
  135. </div>
  136. </td>
  137. <td class="">
  138. <div class="w160 tc">
  139. {$vo.name}
  140. </div>
  141. </td>
  142. <td class="">
  143. <div class="w120 tc">
  144. {$fieldtypeList[$vo['dtype']]['title']|default='数据错误'}
  145. </div>
  146. </td>
  147. <!-- <td>
  148. <div class="tc w70">
  149. {if condition="($vo['ifsystem'] eq 1) OR (1 eq $vo['ifmain'])"}
  150. 系统
  151. {else /}
  152. 自定义
  153. {/if}
  154. </div>
  155. </td> -->
  156. <td>
  157. <div class="w100 tc">
  158. {$vo.add_time|date='Y-m-d',###}
  159. </div>
  160. </td>
  161. <td class="operation">
  162. <div class="w220 tc">
  163. {eq name="'Field@ajax_channel_show'|is_check_access" value="1"}
  164. {if condition="$vo['ifcontrol'] eq 1"}
  165. <a class="btn grey" href="javascript:void(0);" data-id="{$vo.id}" data-ifeditable="{eq name='$vo.ifeditable' value='1'}0{else /}1{/eq}">{if condition="$vo['ifeditable'] eq 1"}隐藏{else /}显示{/if}</a>
  166. {else /}
  167. <a class="btn blue" href="javascript:void(0);" data-url="{:url('Field/ajax_channel_show')}" data-id="{$vo.id}" data-ifeditable="{eq name='$vo.ifeditable' value='1'}0{else /}1{/eq}" onClick="handleShow(this);">{if condition="$vo['ifeditable'] eq 1"}隐藏{else /}显示{/if}</a>
  168. {/if}
  169. {/eq}
  170. <i></i>
  171. {if condition="($vo['ifsystem'] eq 1) OR (1 eq $vo['ifmain'])"}
  172. {eq name="$Think.const.CONTROLLER_NAME.'@channel_edit'|is_check_access" value="1"}
  173. <a href="javascript:void(0);" class="btn grey">编辑</a>
  174. {/eq}
  175. <i></i>
  176. {eq name="$Think.const.CONTROLLER_NAME.'@channel_del'|is_check_access" value="1"}
  177. <a class="btn grey" href="javascript:void(0);" data-id="{$vo.id}">删除</a>
  178. {/eq}
  179. {else /}
  180. {eq name="$Think.const.CONTROLLER_NAME.'@channel_edit'|is_check_access" value="1"}
  181. <a href="javascript:void(0);" {notempty name="$channel_id"} data-href="{:url('Field/channel_edit',array('channel_id'=>$vo['channel_id'],'id'=>$vo['id']))}" {else/} data-href="{:url('Field/channel_edit',array('channel_id'=>$vo['channel_id'],'id'=>$vo['id'],'type'=>'all'))}" {/notempty} class="btn blue" onclick="openFullframe(this, '编辑字段', '100%', '100%');">编辑</a>
  182. {/eq}
  183. <i></i>
  184. {eq name="$Think.const.CONTROLLER_NAME.'@channel_del'|is_check_access" value="1"}
  185. <a class="btn red" href="javascript:void(0);" data-url="{:url('Field/channel_del', array('channel_id'=>$vo['channel_id']))}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  186. {/eq}
  187. {/if}
  188. <i></i>
  189. <a class="btn blue" href="javascript:void(0);" data-name="{$vo.name}" data-channel_id="{$vo['channel_id']|default='0'}" data-dtype="{$vo.dtype}" data-ifmain="{$vo.ifmain}" data-is_screening="{$vo.is_screening}" onclick="copyToClipBoard(this)">标签调用</a>
  190. </div>
  191. </td>
  192. <td class="sort">
  193. <div class="w60 tc">
  194. {if condition="empty($vo['ifmain'])"}
  195. {eq name="$Think.const.CONTROLLER_NAME.'@channel_edit'|is_check_access" value="1"}
  196. <input class="tc" onchange="changeTableVal('channelfield','id','{$vo.id}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  197. {else /}
  198. {$vo.sort_order}
  199. {/eq}
  200. {else /}
  201. ———
  202. {/if}
  203. </div>
  204. </td>
  205. </tr>
  206. {/foreach}
  207. {/empty}
  208. </tbody>
  209. </table>
  210. </div>
  211. <div class="iDiv" style="display: none;"></div>
  212. </div>
  213. <div class="tDiv">
  214. <div class="tDiv2">
  215. {include file="public/page" /}
  216. <div style="clear:both"></div>
  217. </div>
  218. </div>
  219. </div>
  220. <script type="text/javascript">
  221. $(document).ready(function(){
  222. // 表格行点击选中切换
  223. $('#flexigrid > table>tbody >tr').click(function(){
  224. $(this).toggleClass('trSelected');
  225. });
  226. // 点击刷新数据
  227. $('.fa-refresh').click(function(){
  228. location.href = location.href;
  229. });
  230. /*模型下拉框跳转*/
  231. $('#select_channel').change(function(){
  232. var channel_id = $(this).val();
  233. var url = "{:url('Field/channel_index')}";
  234. if (url.indexOf('?') > -1) {
  235. url += '&';
  236. } else {
  237. url += '?';
  238. }
  239. url += 'channel_id='+channel_id;
  240. layer_loading('正在处理');
  241. window.location.href = url;
  242. });
  243. /*--end*/
  244. });
  245. function delfun(obj){
  246. var title = $(obj).attr('data-typename');
  247. layer.confirm('确认删除?', {
  248. shade: layer_shade,
  249. area: ['480px', '190px'],
  250. move: false,
  251. title: '提示',
  252. btnAlign:'r',
  253. closeBtn: 3,
  254. btn: ['确定', '取消'] ,//按钮
  255. success: function () {
  256. $(".layui-layer-content").css('text-align', 'left');
  257. }
  258. }, function(){
  259. layer_loading('正在处理');
  260. // 确定
  261. $.ajax({
  262. type : 'post',
  263. url : $(obj).attr('data-url'),
  264. data : {del_id:$(obj).attr('data-id'), _ajax:1},
  265. dataType : 'json',
  266. success : function(data){
  267. layer.closeAll();
  268. if(data.code == 1){
  269. layer.msg(data.msg, {icon: 1});
  270. window.location.reload();
  271. // $('tr[data-id="'+$(obj).attr('data-id')+'"]').remove();
  272. }else{
  273. layer.alert(data.msg, {icon: 2, title:false});
  274. }
  275. }
  276. })
  277. }, function(index){
  278. layer.close(index);
  279. }
  280. );
  281. return false;
  282. }
  283. /**
  284. * 标签调用js
  285. * @param string fieldname 字段名称
  286. * @param intval channel_id 模型ID
  287. */
  288. function copyToClipBoard(obj) {
  289. var fieldname = $(obj).attr('data-name');
  290. var channel_id = $(obj).attr('data-channel_id');
  291. var dtype = $(obj).attr('data-dtype');
  292. var ifmain = $(obj).attr('data-ifmain');
  293. var is_screening = $(obj).attr('data-is_screening');
  294. var height = '280px';
  295. var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px;">';
  296. if (6 == channel_id) {
  297. switch(dtype)
  298. {
  299. case 'imgs':
  300. {
  301. height = '400px';
  302. var viewstr = "{eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyou.field."+fieldname+"'}\r\n <img src='{$"+fieldname+".image_url}' />\r\n 注释:{$"+fieldname+".intro}\r\n{/eyou:diyfield";
  303. contentdiv += '<dd>列表/内容页:</dd>';
  304. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:80px;">' + viewstr + '}</textarea></dd>';
  305. var liststr = "{eyou:type typeid='栏目ID' id='eyoav' addfields='"+fieldname+"'}\r\n {eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyoav."+fieldname+"'}\r\n <img src='{$"+fieldname+".image_url}' />\r\n 注释:{$"+fieldname+".intro}\r\n {/eyou:diyfield"+"}\r\n{/eyou:type";
  306. contentdiv += '<dd>标签 arclist / list 内调用 <font color="red">(更多简洁调法请参考标签 arclist /list)</font>:</dd>';
  307. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:120px;">' + liststr + '}</textarea></dd>';
  308. }
  309. break;
  310. case 'checkbox':
  311. {
  312. height = '400px';
  313. var viewstr = "{eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyou.field."+fieldname+"'}\r\n {$"+fieldname+".value}\r\n{/eyou:diyfield";
  314. contentdiv += '<dd>列表/内容页:</dd>';
  315. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:60px;">' + viewstr + '}</textarea></dd>';
  316. var liststr = "{eyou:type typeid='栏目ID' id='eyoav' addfields='"+fieldname+"'}\r\n {eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyoav."+fieldname+"'}\r\n {$"+fieldname+".value}\r\n {/eyou:diyfield"+"}\r\n{/eyou:type";
  317. contentdiv += '<dd>标签 arclist / list 内调用 <font color="red">(更多简洁调法请参考标签 arclist /list)</font>:</dd>';
  318. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:120px;">' + liststr + '}</textarea></dd>';
  319. }
  320. break;
  321. case 'datetime':
  322. {
  323. contentdiv += '<dd>列表/内容页:</dd>';
  324. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'eyou.field.'+fieldname+'|MyDate=\'Y-m-d H:i:s\',###}"></dd>';
  325. var liststr = "{eyou:type typeid='栏目ID' addfields='"+fieldname+"'}\r\n {$"+"field."+fieldname+"|MyDate=\'Y-m-d H:i:s\',###}\r\n{/eyou:type";
  326. contentdiv += '<dd>标签 type 属性 addfields 调用:</dd>';
  327. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:60px;">' + liststr + '}</textarea></dd>';
  328. }
  329. break;
  330. default:
  331. {
  332. contentdiv += '<dd>列表/内容页:</dd>';
  333. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'eyou.field.'+fieldname+'}"></dd>';
  334. var liststr = "{eyou:type typeid='栏目ID' addfields='"+fieldname+"'}\r\n {$"+"field."+fieldname+"}\r\n{/eyou:type";
  335. contentdiv += '<dd>标签 type 属性 addfields 调用:</dd>';
  336. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:60px;">' + liststr + '}</textarea></dd>';
  337. }
  338. break;
  339. }
  340. } else {
  341. switch(dtype)
  342. {
  343. case 'imgs':
  344. {
  345. height = '400px';
  346. var viewstr = "{eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyou.field."+fieldname+"'}\r\n <img src='{$"+fieldname+".image_url}' />\r\n 注释:{$"+fieldname+".intro}\r\n{/eyou:diyfield";
  347. contentdiv += '<dd>内容页:</dd>';
  348. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:80px;">' + viewstr + '}</textarea></dd>';
  349. var liststr = "{eyou:arcview aid='$"+"field.aid' id='eyoav' addfields='"+fieldname+"'}\r\n {eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyoav."+fieldname+"'}\r\n <img src='{$"+fieldname+".image_url}' />\r\n 注释:{$"+fieldname+".intro}\r\n {/eyou:diyfield"+"}\r\n{/eyou:arcview";
  350. contentdiv += '<dd>标签 arclist / list 内调用 <font color="red">(更多简洁调法请参考标签 arclist /list)</font>:</dd>';
  351. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:120px;">' + liststr + '}</textarea></dd>';
  352. }
  353. break;
  354. case 'checkbox':
  355. {
  356. height = '430px';
  357. var viewstr = "{eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyou.field."+fieldname+"'}\r\n {$"+fieldname+".value}\r\n{/eyou:diyfield";
  358. contentdiv += '<dd>内容页:</dd>';
  359. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:60px;">' + viewstr + '}</textarea></dd>';
  360. var liststr = "{eyou:arcview aid='$"+"field.aid' id='eyoav' addfields='"+fieldname+"'}\r\n {eyou:diyfield type='"+dtype+"' id='"+fieldname+"' name='$"+"eyoav."+fieldname+"'}\r\n {$"+fieldname+".value}\r\n {/eyou:diyfield"+"}\r\n{/eyou:arcview";
  361. contentdiv += '<dd>标签 arclist / list 内调用 <font color="red">(更多简洁调法请参考标签 arclist /list)</font>:</dd>';
  362. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:120px;">' + liststr + '}</textarea></dd>';
  363. if (1 == is_screening) {
  364. contentdiv += '<dd style="color: red;">自定义字段应用于条件筛选,请参考标签用法:<a id="call_tags_help" href="JavaScript:void(0);" onclick="click_to_eyou_1575506523('+"'https://www.eyoucms.com/plus/view.php?aid=7881&origin_eycms=1','筛选标签调用'"+')">查看标签调用</a></dd>';
  365. }
  366. }
  367. break;
  368. case 'datetime':
  369. {
  370. contentdiv += '<dd>内容页:</dd>';
  371. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'eyou.field.'+fieldname+'|MyDate=\'Y-m-d H:i:s\',###}"></dd>';
  372. var liststr = "{eyou:arcview aid='$"+"field.aid' id='eyoav' addfields='"+fieldname+"'}\r\n {$"+"eyoav."+fieldname+"|MyDate=\'Y-m-d H:i:s\',###}\r\n{/eyou:arcview";
  373. contentdiv += '<dd>标签 arclist / list 内调用 <font color="red">(更多简洁调法请参考标签 arclist /list)</font>:</dd>';
  374. contentdiv += '<dd><textarea rows="4" cols="60" style="width:470px;height:60px;">' + liststr + '}</textarea></dd>';
  375. }
  376. break;
  377. case 'htmltext':
  378. {
  379. contentdiv += '<dd>内容页:</dd>';
  380. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'eyou.field.'+fieldname+'}"></dd>';
  381. if (1 == ifmain) {
  382. contentdiv += '<dd>标签 arclist / list 内调用:</dd>';
  383. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'field.'+fieldname+'}"></dd>';
  384. } else {
  385. var liststr = "eyou:field aid='$"+"field.aid' addfields='"+fieldname+"|html_msubstr=###,0,150,true' /";
  386. contentdiv += '<dd>标签 arclist / list 内调用:</dd>';
  387. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{'+liststr+'}"></dd>';
  388. }
  389. if (1 == is_screening) {
  390. contentdiv += '<dd style="color: red;">自定义字段应用于条件筛选,请参考标签用法:<a id="call_tags_help" href="https://www.eyoucms.com/plus/view.php?aid=7881&origin_eycms=1" target="_blank">查看标签调用</a></dd>';
  391. }
  392. }
  393. break;
  394. default:
  395. {
  396. contentdiv += '<dd>内容页:</dd>';
  397. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'eyou.field.'+fieldname+'}"></dd>';
  398. if (1 == ifmain) {
  399. contentdiv += '<dd>标签 arclist / list 内调用:</dd>';
  400. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{$'+'field.'+fieldname+'}"></dd>';
  401. } else {
  402. var liststr = "eyou:field aid='$"+"field.aid' addfields='"+fieldname+"' /";
  403. contentdiv += '<dd>标签 arclist / list 内调用:</dd>';
  404. contentdiv += '<dd><input type="text" style=" width:470px;margin-bottom:10px;" value="{'+liststr+'}"></dd>';
  405. }
  406. if (1 == is_screening) {
  407. contentdiv += '<dd style="color: red;">自定义字段应用于条件筛选,请参考标签用法:<a id="call_tags_help" href="https://www.eyoucms.com/plus/view.php?aid=7881&origin_eycms=1" target="_blank">查看标签调用</a></dd>';
  408. }
  409. }
  410. break;
  411. }
  412. }
  413. contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将相应标签复制并粘贴到对应模板文件中!</dd></dl></div>'
  414. layer.open({
  415. shade: layer_shade,
  416. title: '标签调用',
  417. type: 1,
  418. skin: 'layui-layer-demo',
  419. area: ['550px', height], //宽高
  420. content: contentdiv
  421. });
  422. }
  423. function handleShow(obj){
  424. $.ajax({
  425. type : 'post',
  426. url : $(obj).attr('data-url'),
  427. data : {id:$(obj).attr('data-id'),ifeditable:$(obj).attr('data-ifeditable'), _ajax:1},
  428. dataType : 'json',
  429. success : function(data){
  430. layer.closeAll();
  431. if(data.code == 1){
  432. layer.msg(data.msg, {icon: 1});
  433. window.location.reload();
  434. }else{
  435. layer.alert(data.msg, {icon: 2, title:false});
  436. }
  437. }
  438. });
  439. }
  440. </script>
  441. {include file="public/footer" /}