暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.htm 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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" style="width:20px;">
  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" class="w150">
  55. <div class="tl text-l10" style="width: 100%">个人信息</div>
  56. </th>
  57. <th abbr="article_title" axis="col3" class="w150">
  58. <div class="tl text-l10" style="width: 100%">申报信息</div>
  59. </th>
  60. <th abbr="article_title" axis="col3" class="w200">
  61. <div class="tc">学历信息</div>
  62. </th>
  63. <th abbr="article_title" axis="col3" class="w100">
  64. <div class="tc">拥有证书</div>
  65. </th>
  66. <th abbr="article_title" axis="col3" class="w120">
  67. <div class="tc">毕业专业</div>
  68. </th>
  69. <th axis="col1" class="w180">
  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">
  107. <div class="tc w150">
  108. 称呼: {$vo.ch} <br/>
  109. 手机号码: {$vo.sjhm} <br/>
  110. 所在地区: {$vo.extend.szsf}/{$vo.extend.szsc}<br/>
  111. </div>
  112. </td>
  113. <td>
  114. <div class="tc w150">
  115. 申报专业: {$vo.extend.sbzy}<br/>
  116. 申报等级: {$vo.extend.sbdj}<br/>
  117. </div>
  118. </td>
  119. <td>
  120. <div class="tc w200">
  121. 年龄: {$vo.nl}岁<br/>
  122. 毕业时间: {$vo.bysj}<br/>
  123. 学历: {$vo.extend.xl}<br/>
  124. 学校类型: {$vo.extend.xxlx}<br/>
  125. </div>
  126. </td>
  127. <td>
  128. <div class="tc w100">
  129. {$vo.extend.zs?$vo.extend.zs:'无'}
  130. </div>
  131. </td>
  132. <td>
  133. <div class="tc w120">
  134. {$vo.extend.zy?$vo.extend.zy:"无"}
  135. </div>
  136. </td>
  137. <td class="operation">
  138. <div class="w180 tc">
  139. <a href="javascript:void(0);" data-href="{:url('ZcbdPosition/show',array('h'=>$vo['code']))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '查看匹配详情', '80%', '100%');">查看</a> <i></i>
  140. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  141. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  142. <a class="btn red" href="javascript:void(0);" data-url="{:url('ZcbdPosition/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  143. {/eq} <!--<i></i>-->
  144. {/if}
  145. <!-- <a class="btn blue" href="javascript:void(0);" onclick="copyToClipBoard({$main_adv_list[$vo['id']]['id']|default=$vo['id']}, 1, {$vo['type']})">标签调用</a>-->
  146. </div>
  147. </td>
  148. </tr>
  149. {/foreach}
  150. {/empty}
  151. </tbody>
  152. </table>
  153. </div>
  154. <div class="iDiv" style="display: none;"></div>
  155. </div>
  156. {notempty name="list"}
  157. <div class="tDiv">
  158. <div class="tDiv2">
  159. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  160. <div class="fbutton checkboxall"> <input type="checkbox" class="checkAll"> </div>
  161. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  162. <div class="fbutton">
  163. <a onclick="batch_del(this, 'ids');" data-url="{:url('ZcwdPosition/del')}" class="layui-btn layui-btn-primary">批量删除</a>
  164. </div>
  165. {/eq}
  166. {/if}
  167. <!-- 分页 -->
  168. {include file="public/page" /}
  169. </div>
  170. <div style="clear:both"></div>
  171. </div>
  172. {/notempty}
  173. </div>
  174. </div>
  175. <script type="text/javascript">
  176. $(function() {
  177. $('input[name*=ids]').click(function() {
  178. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  179. $('.checkAll').prop('checked', 'checked');
  180. } else {
  181. $('.checkAll').prop('checked', false);
  182. }
  183. });
  184. $('input[type=checkbox].checkAll').click(function() {
  185. $('input[type=checkbox]').prop('checked', this.checked);
  186. });
  187. });
  188. $(document).ready(function() {
  189. // 表格行点击选中切换
  190. $('#flexigrid > table>tbody >tr').click(function() {
  191. $(this).toggleClass('trSelected');
  192. });
  193. // 点击刷新数据
  194. $('.fa-refresh').click(function() {
  195. location.href = location.href;
  196. });
  197. $('#searchForm select[name=type]').change(function(){
  198. $('#searchForm').submit();
  199. });
  200. });
  201. /**
  202. * 代码调用js
  203. * @param id id
  204. * @param limit 条数
  205. */
  206. function copyToClipBoard(id, limit, type) {
  207. var advstr = '';
  208. if (1 == type) {
  209. advstr = "{eyou:adv pid='" + id + "'}\r\n <img src='{$"+"field.litpic}' alt='{$"+"field.title}' />\r\n{/eyou:adv";
  210. } else if (2 == type) {
  211. advstr = "{eyou:adv pid='" + id + "'}\r\n <video src='{$"+"field.litpic}' controls preload='auto' oncontextmenu='return fase'></video>\r\n{/eyou:adv";
  212. } else if (3 == type) {
  213. advstr = "{eyou:adv pid='" + id + "'}\r\n {$"+"field.intro}\r\n{/eyou:adv";
  214. }
  215. var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 adv 调用:</dd>';
  216. contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:60px;">' + advstr + '}</textarea>';
  217. contentdiv += '<dd>JavaScript:</dd>';
  218. 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>';
  219. contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将标签adv或JavaScript代码复制并粘贴到对应模板文件中!</dd></dl></div>';
  220. layer.open({
  221. title: '代码调用',
  222. type: 1,
  223. shade: layer_shade,
  224. skin: 'layui-layer-demo',
  225. area: ['480px', '280px'], //宽高
  226. content: contentdiv
  227. });
  228. }
  229. </script>
  230. {include file="public/footer" /}