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.

index.htm 14KB

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