暫無描述
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.

index.htm 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. {include file="zc_position/admin_bar" /}
  7. <div class="flexigrid">
  8. <div class="mDiv">
  9. <div class="ftitle">
  10. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  11. {eq name="$Think.const.CONTROLLER_NAME.'@add'|is_check_access" value="1"}
  12. <div class="fbutton" style="display:none;">
  13. <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/add')}" onclick="openFullframe(this, '新增职称', '80%', '70%');">
  14. <div class="add">
  15. <span><i class="layui-icon layui-icon-addition"></i>新增职称</span>
  16. </div>
  17. </a>
  18. </div>
  19. {/eq}
  20. {/if}
  21. </div>
  22. <form id="searchForm" class="navbar-form form-inline" action="{:url('ZcwdPosition/index')}" method="get" onsubmit="layer_loading('正在处理');">
  23. {$searchform.hidden|default=''}
  24. <div class="sDiv">
  25. <div class="sDiv2" style="display: none;">
  26. <select name="type" class="select" style="margin:0px 5px;">
  27. <option value="">--选择地区--</option>
  28. {eyou:foreach name='$pro_list' item='field1'}
  29. <option value="{$field1.id}" {eq name="$Request.param.type" value="$field1.id"}selected{/eq}>{$field1.name}</option>
  30. {/eyou:foreach}
  31. </select>
  32. </div>
  33. <div class="sDiv2">
  34. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="名称搜索...">
  35. <input type="submit" class="btn" value="搜索">
  36. <i class="iconfont e-sousuo"></i>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. <div class="hDiv">
  42. <div class="hDivBox">
  43. <table cellspacing="0" cellpadding="0" style="width: 100%">
  44. <thead>
  45. <tr>
  46. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  47. <th class="sign w40" axis="col0">
  48. <div class="tc"><input type="checkbox" class="checkAll"></div>
  49. </th>
  50. {/if}
  51. <th abbr="article_title" axis="col3" class="w60">
  52. <div class="tc">ID</div>
  53. </th>
  54. <th abbr="article_title" axis="col3">
  55. <div class="tl text-l10" style="width: 100%">职称名称</div>
  56. </th>
  57. <th abbr="article_title" axis="col3" class="w100">
  58. <div class="tc">触发规则</div>
  59. </th>
  60. <!-- <th abbr="article_title" axis="col3" class="w100">
  61. <div class="tc">职称地区</div>
  62. </th>-->
  63. <th abbr="article_title" axis="col3" class="w120">
  64. <div class="tc">主题图片</div>
  65. </th>
  66. <th abbr="article_time" axis="col6" class="w60">
  67. <div class="tc">启用</div>
  68. </th>
  69. <th axis="col1" class="w280">
  70. <div class="tc">操作</div>
  71. </th>
  72. </tr>
  73. </thead>
  74. </table>
  75. </div>
  76. </div>
  77. <div class="bDiv" style="height: auto;">
  78. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  79. <table style="width: 100%">
  80. <tbody>
  81. {empty name="list"}
  82. <tr>
  83. <td class="no-data" align="center" axis="col0" colspan="50">
  84. <div class="no_row">
  85. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  86. </div>
  87. </td>
  88. </tr>
  89. {else/}
  90. {foreach name="list" item="vo" key="k" }
  91. <tr>
  92. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  93. <td class="sign">
  94. <div class="w40 tc"> <input type="checkbox" name="ids[]" value="{$vo.id}"> </div>
  95. </td>
  96. {/if}
  97. <td>
  98. <div class="tc w60">
  99. {eq name='$main_lang' value='$admin_lang'}
  100. {$vo.id}
  101. {else /}
  102. {$main_adv_list[$vo['id']]['id']|default=$vo['id']}
  103. {/eq}
  104. </div>
  105. </td>
  106. <td align="left" style="width:100%;">
  107. <div class="tl text-l10" style="color:{$vo.color}">
  108. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  109. <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');" style="color:{$vo.color}">{$vo.title}</a>
  110. {else /}
  111. {$vo.title}
  112. {/eq}
  113. </div>
  114. </td>
  115. <td>
  116. <div class="tc w100">
  117. </div>
  118. </td>
  119. <!--<td>
  120. <div class="tc w100"> {$vo.type_name} </div>
  121. </td>-->
  122. <td>
  123. <div class="tc w120">
  124. <ul class="adpic">
  125. {volist name="$vo.ad" id="vs" length="1" }
  126. <li>
  127. <img src="{$vs.litpic}"> {eq name="$vo.type" value="1"}<span>{$vo.ad_count}</span>{/eq}
  128. </li>
  129. {/volist}
  130. </ul>
  131. </div>
  132. </td>
  133. <td>
  134. <div class="tc w60">
  135. {if condition="$vo['status'] eq 1"}
  136. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('zcwd_position','id','{$vo.id}','status',this);"{/eq} ><i class="fa fa-check-circle"></i>是</span>
  137. {else /}
  138. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('zcwd_position','id','{$vo.id}','status',this);"{/eq} ><i class="fa fa-ban"></i>否</span>
  139. {/if}
  140. </div>
  141. </td>
  142. <td class="operation">
  143. <div class="w280 tc">
  144. <a href="javascript:void(0);" data-href="{:url('ZcwfPosition/add',array('id'=>$vo['id'],'type'=>$vo['type']))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '新增前置条件规则', '80%', '70%');">新增前置条件规则</a> <i></i>
  145. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  146. <a href="javascript:void(0);" data-href="{:url('ZcwePosition/edit',array('id'=>$vo['id']))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '编辑学历要求规则', '80%', '70%');">编辑</a> <i></i>
  147. {/eq}
  148. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  149. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  150. <a class="btn red" href="javascript:void(0);" data-url="{:url('ZcwePosition/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  151. {/eq} <!--<i></i>-->
  152. {/if}
  153. <!-- <a class="btn blue" href="javascript:void(0);" onclick="copyToClipBoard({$main_adv_list[$vo['id']]['id']|default=$vo['id']}, 1, {$vo['type']})">标签调用</a>-->
  154. </div>
  155. </td>
  156. </tr>
  157. {/foreach}
  158. {/empty}
  159. </tbody>
  160. </table>
  161. </div>
  162. <div class="iDiv" style="display: none;"></div>
  163. </div>
  164. {notempty name="list"}
  165. <div class="tDiv">
  166. <div class="tDiv2">
  167. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  168. <div class="fbutton checkboxall"> <input type="checkbox" class="checkAll"> </div>
  169. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  170. <div class="fbutton">
  171. <a onclick="batch_del(this, 'ids');" data-url="{:url('ZcwdPosition/del')}" class="layui-btn layui-btn-primary">批量删除</a>
  172. </div>
  173. {/eq}
  174. {/if}
  175. <!-- 分页 -->
  176. {include file="public/page" /}
  177. </div>
  178. <div style="clear:both"></div>
  179. </div>
  180. {/notempty}
  181. </div>
  182. </div>
  183. <script type="text/javascript">
  184. $(function() {
  185. $('input[name*=ids]').click(function() {
  186. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  187. $('.checkAll').prop('checked', 'checked');
  188. } else {
  189. $('.checkAll').prop('checked', false);
  190. }
  191. });
  192. $('input[type=checkbox].checkAll').click(function() {
  193. $('input[type=checkbox]').prop('checked', this.checked);
  194. });
  195. });
  196. $(document).ready(function() {
  197. // 表格行点击选中切换
  198. $('#flexigrid > table>tbody >tr').click(function() {
  199. $(this).toggleClass('trSelected');
  200. });
  201. // 点击刷新数据
  202. $('.fa-refresh').click(function() {
  203. location.href = location.href;
  204. });
  205. $('#searchForm select[name=type]').change(function(){
  206. $('#searchForm').submit();
  207. });
  208. });
  209. /**
  210. * 代码调用js
  211. * @param id id
  212. * @param limit 条数
  213. */
  214. function copyToClipBoard(id, limit, type) {
  215. var advstr = '';
  216. if (1 == type) {
  217. advstr = "{eyou:adv pid='" + id + "'}\r\n <img src='{$"+"field.litpic}' alt='{$"+"field.title}' />\r\n{/eyou:adv";
  218. } else if (2 == type) {
  219. advstr = "{eyou:adv pid='" + id + "'}\r\n <video src='{$"+"field.litpic}' controls preload='auto' oncontextmenu='return fase'></video>\r\n{/eyou:adv";
  220. } else if (3 == type) {
  221. advstr = "{eyou:adv pid='" + id + "'}\r\n {$"+"field.intro}\r\n{/eyou:adv";
  222. }
  223. var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 adv 调用:</dd>';
  224. contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:60px;">' + advstr + '}</textarea>';
  225. contentdiv += '<dd>JavaScript:</dd>';
  226. contentdiv += '<dd><input type="text" style=" width:400px;" value="<script type=&quot;text/javascript&quot; src=&quot;http://' + '{$Think.server.http_host}' + '__ROOT_DIR__/index.php?m=api&amp;c=Other&amp;a=other_show&amp;pid=' + id + '&amp;row='+limit+'&quot;><\/script>"></dd>';
  227. contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将标签adv或JavaScript代码复制并粘贴到对应模板文件中!</dd></dl></div>';
  228. layer.open({
  229. title: '代码调用',
  230. type: 1,
  231. shade: layer_shade,
  232. skin: 'layui-layer-demo',
  233. area: ['480px', '280px'], //宽高
  234. content: contentdiv
  235. });
  236. }
  237. </script>
  238. {include file="public/footer" /}