post_appoint_list.blade.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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}}</span>
  94. </td>
  95. <td>
  96. {{ $v->mobile }}
  97. </td>
  98. <td>{!! $v->education !!}</td>
  99. <td>{!! $v->school !!}</td>
  100. <td>{!! $v->dep !!}</td>
  101. <td>
  102. {{ $v->pro_type }}
  103. </td>
  104. <td>
  105. {{ $v->pro_text }}
  106. </td>
  107. <td>
  108. <button class='btn btn-primary btn-xs fetch_word' data-aid="{{$v->id}}" style="margin-bottom: 10px">下载简历</button>
  109. </td>
  110. </tr>
  111. @endforeach
  112. @else
  113. <tr>
  114. <td colspan="11">
  115. <div class="list_empty_group">
  116. <div class="list_empty">
  117. <div class="list_empty_left"></div>
  118. <div class="list_empty_right">
  119. <div class="sorry_box">对不起,暂无相关信息!</div>
  120. </div>
  121. <div class="clear"></div>
  122. </div>
  123. </div>
  124. </td>
  125. </tr>
  126. @endif
  127. </tbody>
  128. </table>
  129. </div>
  130. @if(isset($list))
  131. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  132. @endif
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </section>
  139. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  140. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  141. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  142. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  143. <script>
  144. //图片预览
  145. this.vtip = function() {
  146. this.xOffset = -10; // x distance from mouse
  147. this.yOffset = 15; // y distance from mouse
  148. $(".vtip").unbind().hover(
  149. function(e) {
  150. this.t = $(this).attr("title");
  151. this.title = '';
  152. this.top = (e.pageY + yOffset);
  153. this.left = (e.pageX + xOffset);
  154. $('body').css("cursor","help");
  155. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  156. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  157. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  158. },
  159. function() {
  160. this.title = this.t;
  161. $('body').css("cursor","");
  162. $("p#vtip").fadeOut("slow").remove();
  163. }
  164. ).mousemove(
  165. function(e) {
  166. this.top = (e.pageY + yOffset);
  167. this.left = (e.pageX + xOffset);
  168. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  169. }
  170. );
  171. };
  172. //提交数组整理
  173. this.show = function(type = 0){
  174. var id_array = new Array();
  175. if(type == 0){
  176. $('input[name="id\[\]"]:checked').each(function() {
  177. id_array.push($(this).val()); //向数组中添加元素
  178. });
  179. }else{
  180. id_array.push($("#appointinfo_"+type).val());
  181. }
  182. if (id_array.length == 0) {
  183. disapperTooltip('remind', '请选择用户');
  184. return false;
  185. } else {
  186. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  187. if (idstr == '' || idstr == null) {
  188. idstr = 0;
  189. }
  190. return idstr;
  191. }
  192. }
  193. $(document).ready(function() {
  194. vtip();
  195. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  196. appointAudit($(this).data('param'));
  197. });
  198. $(document).off("click",'.supplement').on('click','.supplement',function () {
  199. supplement($(this).data('param'));
  200. });
  201. $(document).off("click",'.health').on('click','.health',function () {
  202. health($(this).data('param'),$(this).data("type"));
  203. });
  204. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  205. var recruit_id = $(this).attr('data-rid'),appoint_id = $(this).attr('data-aid');
  206. var qsDialog = $(this).dialog({
  207. title: 'word简历生成',
  208. loading: true,
  209. showFooter: false,
  210. yes: function() {
  211. $('.J_btnyes').val('发送中...');
  212. $.post("{{ route('recruit.fetchword') }}", {_token:'{{ csrf_token() }}',recruit_id:recruit_id,appoint_id:appoint_id}, function(result) {
  213. if (result.status == 1) {
  214. disapperTooltip('success', result.msg);
  215. window.location.href = result.url;
  216. setTimeout(function() {
  217. $.pjax.reload('#pjax-container');
  218. qsDialog.hide(true);
  219. }, 2000);
  220. } else {
  221. $('.J_btnyes').val('确定');
  222. disapperTooltip('remind', result.msg);
  223. }
  224. }, 'json');
  225. }
  226. });
  227. qsDialog.setCloseDialog(false);
  228. qsDialog.setContent("重新生成会覆盖原有简历,请确认?");
  229. qsDialog.showFooter(true);
  230. });
  231. $("#ButtonAudit").click(function() {
  232. appointAudit(0)
  233. })
  234. /*查看人员信息*/
  235. $('.ButCompared').click(function() {
  236. var qsDialog = $(this).dialog({
  237. title: '查看报名信息',
  238. loading: true,
  239. footer: false
  240. });
  241. var param = $(this).data('param');
  242. var url = $(this).data('url') + "?id=" + param;
  243. $.getJSON(url, function(result) {
  244. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  245. });
  246. });
  247. });
  248. /*查看日志信息*/
  249. $('.ButExamineLog').click(function() {
  250. var qsDialog = $(this).dialog({
  251. title: '查看审核信息',
  252. loading: true,
  253. footer: false
  254. });
  255. var param = $(this).data('param');
  256. var url = $(this).data('url') + "?id=" + param;
  257. $.getJSON(url, function(result) {
  258. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  259. });
  260. });
  261. $('.js-search').click(function() {
  262. var political_affiliation = $.trim($('#political_affiliation').val());
  263. var audit = $.trim($('#audit').val());
  264. var realname = $.trim($('#realname').val());
  265. var print_ms = $.trim($('#print_ms').val());
  266. var print_bs = $.trim($('#print_bs').val());
  267. var pen_audit = $.trim($('#pen_audit').val());
  268. var computer_audit = $.trim($('#computer_audit').val());
  269. var face_audit = $.trim($('#face_audit').val());
  270. var reexamine_audit = $.trim($('#reexamine_audit').val());
  271. var inspect_audit = $.trim($('#inspect_audit').val());
  272. var print_js = $.trim($('#print_js').val());
  273. var review_audit = $.trim($('#review_audit').val());
  274. var political_audit = $.trim($('#political_audit').val());
  275. var health_audit = $.trim($('#health_audit').val());
  276. var sex = $.trim($("#sex").val());
  277. var education = $.trim($("#education").val());
  278. var post_id = $.trim($("#post_id").val());
  279. var parm = '';
  280. if (health_audit) {
  281. parm += "&health_audit=" + health_audit;
  282. }
  283. if (political_audit) {
  284. parm += "&political_audit=" + political_audit;
  285. }
  286. if (review_audit) {
  287. parm += "&review_audit=" + review_audit;
  288. }
  289. if (political_affiliation) {
  290. parm += "&political_affiliation=" + political_affiliation;
  291. }
  292. if (audit) {
  293. parm += "&audit=" + audit;
  294. }
  295. if (realname) {
  296. parm += "&realname=" + realname;
  297. }
  298. if (print_ms) {
  299. parm += "&print_ms=" + print_ms;
  300. }
  301. if (print_bs) {
  302. parm += "&print_bs=" + print_bs;
  303. }
  304. if (pen_audit) {
  305. parm += "&pen_audit=" + pen_audit;
  306. }
  307. if (face_audit) {
  308. parm += "&face_audit=" + face_audit;
  309. }
  310. if (computer_audit) {
  311. parm += "&computer_audit=" + computer_audit;
  312. }
  313. if (reexamine_audit) {
  314. parm += "&reexamine_audit=" + reexamine_audit;
  315. }
  316. if (inspect_audit) {
  317. parm += "&inspect_audit=" + inspect_audit;
  318. }
  319. if (print_js) {
  320. parm += "&print_js=" + print_js;
  321. }
  322. if(sex){
  323. parm += "&sex=" + sex;
  324. }
  325. if(education){
  326. parm += "&education=" + education;
  327. }
  328. if(post_id){
  329. parm += "&post_id=" + post_id;
  330. }
  331. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}" + parm;
  332. });
  333. //提交准考证
  334. $("#build").click(function() {
  335. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  336. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  337. $("form[name=form1]").submit();
  338. });
  339. //撤销准考证
  340. $("#del_ticket").click(function() {
  341. var ticket_id = $("input[name='ticket_id']:checked").val();
  342. var r_id = $("input[name='r_id']").val();
  343. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  344. $("form[name=form1]").submit();
  345. });
  346. /*全选*/
  347. $("#chk").click(function() {
  348. if (this.checked == false) {
  349. // console.log("反选")
  350. $("td :checkbox").prop("checked", false);
  351. }
  352. if (this.checked == true) {
  353. // console.log("全选")
  354. $("td :checkbox").prop("checked", true);
  355. }
  356. })
  357. //子复选框有一个未选中时,去掉全选按钮的选中状态
  358. $("td :checkbox").click(function() {
  359. var allCheckNum = $("td input[type='checkbox']").length;
  360. var checkedNum = $("td input[type='checkbox']:checked").length;
  361. if (checkedNum == allCheckNum) {
  362. // console.log("全选");
  363. document.getElementById("chk").checked = true;
  364. } else {
  365. // console.log("反选");
  366. document.getElementById("chk").checked = false;
  367. }
  368. })
  369. </script>
  370. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  371. <style type="text/css">
  372. 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 }
  373. p#vtip img{width: 200px}
  374. /*body{min-width: 1680px;overflow: auto;}*/
  375. .clearfix:after {
  376. display: block;
  377. clear: both;
  378. content: "";
  379. visibility: hidden;
  380. height: 0;
  381. }
  382. .clearfix {
  383. zoom: 1;
  384. /*为了兼容IE*/
  385. }
  386. .box .box-body {
  387. position: relative;
  388. }
  389. .box .form-group label {
  390. float: left;
  391. width: 120px;
  392. line-height: 34px;
  393. text-align: right;
  394. }
  395. .box .input-group {
  396. width: 360px;
  397. }
  398. .list_empty_group {
  399. text-align: center;
  400. line-height: 80px;
  401. color: #404446;
  402. font-size: 22px;
  403. }
  404. .jobslist_table .li-table-btn {
  405. width: 120px;
  406. height: 50px;
  407. line-height: 50px;
  408. }
  409. .modal {
  410. display: block;
  411. position: static;
  412. }
  413. .qs-category-unlimited .selected-group .selected-box .s-cell {
  414. width: 112px;
  415. }
  416. .qs-category-unlimited .cate-type .dd {
  417. margin: 0px;
  418. font-size: 14px;
  419. }
  420. .qs-category-unlimited .cate-type .one-select label {
  421. display: block;
  422. margin: 0px;
  423. width: 110px;
  424. }
  425. .qs-category-unlimited .cate-type .one-select .check-box {
  426. margin: 0px;
  427. }
  428. .modal_body_box .list_nav1 li label {
  429. margin-bottom: 0px;
  430. }
  431. .disappear_tooltip .content {
  432. min-height: auto;
  433. padding: 0px;
  434. padding-left: 10px;
  435. padding-right: 10px;
  436. }
  437. </style>