presentation_appoint_list.blade.php 18 KB

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