qjwj_appoint_list.blade.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <section class="content">
  2. <div class="row">
  3. <div class="col-md-12">
  4. <div class="box">
  5. {{ csrf_field() }}
  6. <div class="box-body table-responsive">
  7. <div class="col-md-3 clearfix">
  8. <div class="box-body table-responsive" style="padding:5px;">
  9. <div class="form-group clearfix" style="margin-bottom:0;">
  10. <label for="prefix" class="control-label">性别:</label>
  11. <div style="float: left;width: 150px;">
  12. <select class="form-control" name="sex" id="sex">
  13. <option value=''>不限</option>
  14. <option value='0' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '0') selected @endif>女</option>
  15. <option value='1' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '1') selected @endif>男</option>
  16. </select>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-3 clearfix">
  22. <div class="box-body table-responsive" style="padding:5px;">
  23. <div class="form-group clearfix" style="margin-bottom:0;">
  24. <label for="prefix" class="control-label">学历:</label>
  25. <div style="float: left;width: 150px;">
  26. <select class="form-control" name="education" id="education">
  27. <option value=''>不限</option>
  28. <option value='小学' @if(array_key_exists('education',$search_data) && $search_data['education'] == '小学') selected @endif>小学</option>
  29. <option value='初中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '初中') selected @endif>初中</option>
  30. <option value='技校' @if(array_key_exists('education',$search_data) && $search_data['education'] == '技校') selected @endif>技校</option>
  31. <option value='职高' @if(array_key_exists('education',$search_data) && $search_data['education'] == '职高') selected @endif>职高</option>
  32. <option value='高中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '高中') selected @endif>高中</option>
  33. <option value='中专' @if(array_key_exists('education',$search_data) && $search_data['education'] == '中专') selected @endif>中专</option>
  34. <option value='专科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '专科') selected @endif>专科</option>
  35. <option value='本科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '本科') selected @endif>本科</option>
  36. <option value='硕士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '硕士') selected @endif>硕士</option>
  37. <option value='博士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '博士') selected @endif>博士</option>
  38. </select>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-md-3 clearfix">
  44. <div class="box-body table-responsive" style="padding:5px;">
  45. <div class="form-group clearfix" style="margin-bottom:0;">
  46. <label for="prefix" class="control-label">精确查询:</label>
  47. <div style="float: left;width: 150px;">
  48. <input type="text" class="form-control" name="realname" id="realname" placeholder="请输入姓名" @if(array_key_exists('realname',$search_data)) value="{{$search_data['realname']}}" @endif>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="box-footer">
  55. <div class="btn-group" style="margin-left: 440px;">
  56. <button type="button" class="btn btn-info btn-primary js-search" data-type="1"><i class="fa fa-search">搜索</i></button>
  57. </div>
  58. </div>
  59. <div class="box-body table-responsive">
  60. <div class="col-md-12">
  61. <div class="box-header with-border">
  62. <h3 class="box-title">查询结果</h3>
  63. </div>
  64. <div class="box-body table-responsive no-padding">
  65. <table class="table table-hover">
  66. <thead>
  67. <tr>
  68. <th height="26" class="admin_list_tit">
  69. <input type="checkbox" name=" " title="全选/反选" id="chk" />
  70. </th>
  71. <th>基础资料</th>
  72. <th>电话</th>
  73. <th>学历</th>
  74. <th>学校</th>
  75. <th>专业类别</th>
  76. <th>具体专业</th>
  77. <th>简历是否下载</th>
  78. <th>操作</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. @if(isset($list) && $list->total())
  83. @foreach($list as $k=>$v)
  84. <tr>
  85. <td>
  86. <input ls="{{$v->id}}" name="id[]" id="appointinfo_{{$v->id}}" type="checkbox" value="{{$v->id}}" />
  87. </td>
  88. <td>
  89. <span style="color: #0A246A; margin-right: 3px;">{!! $v->realname !!}</span>
  90. <span style="color: #0A246A; margin-right: 3px;">{{$v->sex}}</span>
  91. <span style="color:#be7707; margin-right: 3px;">{{$v->birthday}}</span>
  92. <span style="color:#0A7CF7; margin-right: 3px;">{{$v->education}}</span>
  93. <span style="color:#0F73AC; margin-right: 3px;">{{$v->native_place_cn}}</span>
  94. </td>
  95. <td>
  96. {{ $v->mobile }}
  97. </td>
  98. <td>{!! $v->education !!}</td>
  99. <td>{!! $v->school !!}</td>
  100. <td>
  101. {{ $v->pro_type }}
  102. </td>
  103. <td>
  104. {{ $v->pro_text }}
  105. </td>
  106. <td>
  107. {{ $v->status }}
  108. </td>
  109. <td>
  110. <button class='btn btn-primary btn-xs fetch_word' data-aid="{{$v->id}}" style="margin-bottom: 10px">下载简历</button>
  111. </td>
  112. </tr>
  113. @endforeach
  114. @else
  115. <tr>
  116. <td colspan="11">
  117. <div class="list_empty_group">
  118. <div class="list_empty">
  119. <div class="list_empty_left"></div>
  120. <div class="list_empty_right">
  121. <div class="sorry_box">对不起,暂无相关信息!</div>
  122. </div>
  123. <div class="clear"></div>
  124. </div>
  125. </div>
  126. </td>
  127. </tr>
  128. @endif
  129. </tbody>
  130. </table>
  131. </div>
  132. @if(isset($list))
  133. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  134. @endif
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </section>
  141. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  142. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  143. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  144. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  145. <script>
  146. //图片预览
  147. this.vtip = function() {
  148. this.xOffset = -10; // x distance from mouse
  149. this.yOffset = 15; // y distance from mouse
  150. $(".vtip").unbind().hover(
  151. function(e) {
  152. this.t = $(this).attr("title");
  153. this.title = '';
  154. this.top = (e.pageY + yOffset);
  155. this.left = (e.pageX + xOffset);
  156. $('body').css("cursor","help");
  157. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  158. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  159. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  160. },
  161. function() {
  162. this.title = this.t;
  163. $('body').css("cursor","");
  164. $("p#vtip").fadeOut("slow").remove();
  165. }
  166. ).mousemove(
  167. function(e) {
  168. this.top = (e.pageY + yOffset);
  169. this.left = (e.pageX + xOffset);
  170. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  171. }
  172. );
  173. };
  174. //提交数组整理
  175. this.show = function(type = 0){
  176. var id_array = new Array();
  177. if(type == 0){
  178. $('input[name="id\[\]"]:checked').each(function() {
  179. id_array.push($(this).val()); //向数组中添加元素
  180. });
  181. }else{
  182. id_array.push($("#appointinfo_"+type).val());
  183. }
  184. if (id_array.length == 0) {
  185. disapperTooltip('remind', '请选择用户');
  186. return false;
  187. } else {
  188. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  189. if (idstr == '' || idstr == null) {
  190. idstr = 0;
  191. }
  192. return idstr;
  193. }
  194. }
  195. $(document).ready(function() {
  196. vtip();
  197. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  198. appointAudit($(this).data('param'));
  199. });
  200. $(document).off("click",'.supplement').on('click','.supplement',function () {
  201. supplement($(this).data('param'));
  202. });
  203. $(document).off("click",'.health').on('click','.health',function () {
  204. health($(this).data('param'),$(this).data("type"));
  205. });
  206. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  207. var appoint_id = $(this).attr('data-aid');
  208. var qsDialog = $(this).dialog({
  209. title: 'word简历下载',
  210. loading: true,
  211. showFooter: false,
  212. yes: function() {
  213. $('.J_btnyes').val('发送中...');
  214. $.post("{{ route('Health.qjwjStatus') }}", {_token:'{{ csrf_token() }}',id:appoint_id}, function(result) {
  215. if (result.status == 1) {
  216. disapperTooltip('success', result.msg);
  217. window.location.href = result.url;
  218. setTimeout(function() {
  219. $.pjax.reload('#pjax-container');
  220. qsDialog.hide(true);
  221. }, 2000);
  222. } else {
  223. $('.J_btnyes').val('确定');
  224. disapperTooltip('remind', result.msg);
  225. }
  226. }, 'json');
  227. }
  228. });
  229. qsDialog.setCloseDialog(false);
  230. qsDialog.setContent("即将下载简历,请确认?");
  231. qsDialog.showFooter(true);
  232. });
  233. $("#ButtonAudit").click(function() {
  234. appointAudit(0)
  235. })
  236. /*查看人员信息*/
  237. $('.ButCompared').click(function() {
  238. var qsDialog = $(this).dialog({
  239. title: '查看报名信息',
  240. loading: true,
  241. footer: false
  242. });
  243. var param = $(this).data('param');
  244. var url = $(this).data('url') + "?id=" + param;
  245. $.getJSON(url, function(result) {
  246. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  247. });
  248. });
  249. });
  250. /*查看日志信息*/
  251. $('.ButExamineLog').click(function() {
  252. var qsDialog = $(this).dialog({
  253. title: '查看审核信息',
  254. loading: true,
  255. footer: false
  256. });
  257. var param = $(this).data('param');
  258. var url = $(this).data('url') + "?id=" + param;
  259. $.getJSON(url, function(result) {
  260. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  261. });
  262. });
  263. $('.js-search').click(function() {
  264. var political_affiliation = $.trim($('#political_affiliation').val());
  265. var audit = $.trim($('#audit').val());
  266. var realname = $.trim($('#realname').val());
  267. var print_ms = $.trim($('#print_ms').val());
  268. var print_bs = $.trim($('#print_bs').val());
  269. var pen_audit = $.trim($('#pen_audit').val());
  270. var computer_audit = $.trim($('#computer_audit').val());
  271. var face_audit = $.trim($('#face_audit').val());
  272. var reexamine_audit = $.trim($('#reexamine_audit').val());
  273. var inspect_audit = $.trim($('#inspect_audit').val());
  274. var print_js = $.trim($('#print_js').val());
  275. var review_audit = $.trim($('#review_audit').val());
  276. var political_audit = $.trim($('#political_audit').val());
  277. var health_audit = $.trim($('#health_audit').val());
  278. var sex = $.trim($("#sex").val());
  279. var education = $.trim($("#education").val());
  280. var post_id = $.trim($("#post_id").val());
  281. var parm = '';
  282. if (health_audit) {
  283. parm += "&health_audit=" + health_audit;
  284. }
  285. if (political_audit) {
  286. parm += "&political_audit=" + political_audit;
  287. }
  288. if (review_audit) {
  289. parm += "&review_audit=" + review_audit;
  290. }
  291. if (political_affiliation) {
  292. parm += "&political_affiliation=" + political_affiliation;
  293. }
  294. if (audit) {
  295. parm += "&audit=" + audit;
  296. }
  297. if (realname) {
  298. parm += "&realname=" + realname;
  299. }
  300. if (print_ms) {
  301. parm += "&print_ms=" + print_ms;
  302. }
  303. if (print_bs) {
  304. parm += "&print_bs=" + print_bs;
  305. }
  306. if (pen_audit) {
  307. parm += "&pen_audit=" + pen_audit;
  308. }
  309. if (face_audit) {
  310. parm += "&face_audit=" + face_audit;
  311. }
  312. if (computer_audit) {
  313. parm += "&computer_audit=" + computer_audit;
  314. }
  315. if (reexamine_audit) {
  316. parm += "&reexamine_audit=" + reexamine_audit;
  317. }
  318. if (inspect_audit) {
  319. parm += "&inspect_audit=" + inspect_audit;
  320. }
  321. if (print_js) {
  322. parm += "&print_js=" + print_js;
  323. }
  324. if(sex){
  325. parm += "&sex=" + sex;
  326. }
  327. if(education){
  328. parm += "&education=" + education;
  329. }
  330. if(post_id){
  331. parm += "&post_id=" + post_id;
  332. }
  333. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}" + parm;
  334. });
  335. //提交准考证
  336. $("#build").click(function() {
  337. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  338. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  339. $("form[name=form1]").submit();
  340. });
  341. //撤销准考证
  342. $("#del_ticket").click(function() {
  343. var ticket_id = $("input[name='ticket_id']:checked").val();
  344. var r_id = $("input[name='r_id']").val();
  345. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  346. $("form[name=form1]").submit();
  347. });
  348. /*全选*/
  349. $("#chk").click(function() {
  350. if (this.checked == false) {
  351. // console.log("反选")
  352. $("td :checkbox").prop("checked", false);
  353. }
  354. if (this.checked == true) {
  355. // console.log("全选")
  356. $("td :checkbox").prop("checked", true);
  357. }
  358. })
  359. //子复选框有一个未选中时,去掉全选按钮的选中状态
  360. $("td :checkbox").click(function() {
  361. var allCheckNum = $("td input[type='checkbox']").length;
  362. var checkedNum = $("td input[type='checkbox']:checked").length;
  363. if (checkedNum == allCheckNum) {
  364. // console.log("全选");
  365. document.getElementById("chk").checked = true;
  366. } else {
  367. // console.log("反选");
  368. document.getElementById("chk").checked = false;
  369. }
  370. })
  371. </script>
  372. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  373. <style type="text/css">
  374. p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
  375. p#vtip img{width: 200px}
  376. /*body{min-width: 1680px;overflow: auto;}*/
  377. .clearfix:after {
  378. display: block;
  379. clear: both;
  380. content: "";
  381. visibility: hidden;
  382. height: 0;
  383. }
  384. .clearfix {
  385. zoom: 1;
  386. /*为了兼容IE*/
  387. }
  388. .box .box-body {
  389. position: relative;
  390. }
  391. .box .form-group label {
  392. float: left;
  393. width: 120px;
  394. line-height: 34px;
  395. text-align: right;
  396. }
  397. .box .input-group {
  398. width: 360px;
  399. }
  400. .list_empty_group {
  401. text-align: center;
  402. line-height: 80px;
  403. color: #404446;
  404. font-size: 22px;
  405. }
  406. .jobslist_table .li-table-btn {
  407. width: 120px;
  408. height: 50px;
  409. line-height: 50px;
  410. }
  411. .modal {
  412. display: block;
  413. position: static;
  414. }
  415. .qs-category-unlimited .selected-group .selected-box .s-cell {
  416. width: 112px;
  417. }
  418. .qs-category-unlimited .cate-type .dd {
  419. margin: 0px;
  420. font-size: 14px;
  421. }
  422. .qs-category-unlimited .cate-type .one-select label {
  423. display: block;
  424. margin: 0px;
  425. width: 110px;
  426. }
  427. .qs-category-unlimited .cate-type .one-select .check-box {
  428. margin: 0px;
  429. }
  430. .modal_body_box .list_nav1 li label {
  431. margin-bottom: 0px;
  432. }
  433. .disappear_tooltip .content {
  434. min-height: auto;
  435. padding: 0px;
  436. padding-left: 10px;
  437. padding-right: 10px;
  438. }
  439. </style>