jobfairs_appoint_list.blade.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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",'.fetch_word').on('click','.fetch_word',function () {
  196. var appoint_id = $(this).attr('data-aid');
  197. var qsDialog = $(this).dialog({
  198. title: 'word简历下载',
  199. loading: true,
  200. showFooter: false,
  201. yes: function() {
  202. $('.J_btnyes').val('发送中...');
  203. $.post("{{ route('ic.jobfairsAppointStatus') }}", {_token:'{{ csrf_token() }}',id:appoint_id}, function(result) {
  204. if (result.status == 1) {
  205. disapperTooltip('success', result.msg);
  206. window.location.href = result.url;
  207. setTimeout(function() {
  208. $.pjax.reload('#pjax-container');
  209. qsDialog.hide(true);
  210. }, 2000);
  211. } else {
  212. $('.J_btnyes').val('确定');
  213. disapperTooltip('remind', result.msg);
  214. }
  215. }, 'json');
  216. }
  217. });
  218. qsDialog.setCloseDialog(false);
  219. qsDialog.setContent("即将下载简历,请确认?");
  220. qsDialog.showFooter(true);
  221. });
  222. $("#ButtonAudit").click(function() {
  223. appointAudit(0)
  224. })
  225. /*查看人员信息*/
  226. $('.ButCompared').click(function() {
  227. var qsDialog = $(this).dialog({
  228. title: '查看报名信息',
  229. loading: true,
  230. footer: false
  231. });
  232. var param = $(this).data('param');
  233. var url = $(this).data('url') + "?id=" + param;
  234. $.getJSON(url, function(result) {
  235. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  236. });
  237. });
  238. });
  239. /*查看日志信息*/
  240. $('.ButExamineLog').click(function() {
  241. var qsDialog = $(this).dialog({
  242. title: '查看审核信息',
  243. loading: true,
  244. footer: false
  245. });
  246. var param = $(this).data('param');
  247. var url = $(this).data('url') + "?id=" + param;
  248. $.getJSON(url, function(result) {
  249. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  250. });
  251. });
  252. $('.js-search').click(function() {
  253. var realname = $.trim($('#realname').val());
  254. var sex = $.trim($("#sex").val());
  255. var education = $.trim($("#education").val());
  256. var parm = [`id=${ {{ $search_data['id'] }} }`];
  257. if (realname) {
  258. parm.push(`realname=${realname}`);
  259. }
  260. if(sex){
  261. parm.push(`sex=${sex}`);
  262. }
  263. if(education){
  264. parm.push(`education=${education}`);
  265. }
  266. if (parm.length == 0) {
  267. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/ic/jobfairs_appoint_list')}}";
  268. } else {
  269. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/ic/jobfairs_appoint_list')}}?" + parm.join('&');
  270. }
  271. });
  272. //提交准考证
  273. $("#build").click(function() {
  274. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  275. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  276. $("form[name=form1]").submit();
  277. });
  278. //撤销准考证
  279. $("#del_ticket").click(function() {
  280. var ticket_id = $("input[name='ticket_id']:checked").val();
  281. var r_id = $("input[name='r_id']").val();
  282. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  283. $("form[name=form1]").submit();
  284. });
  285. /*全选*/
  286. $("#chk").click(function() {
  287. if (this.checked == false) {
  288. // console.log("反选")
  289. $("td :checkbox").prop("checked", false);
  290. }
  291. if (this.checked == true) {
  292. // console.log("全选")
  293. $("td :checkbox").prop("checked", true);
  294. }
  295. })
  296. //子复选框有一个未选中时,去掉全选按钮的选中状态
  297. $("td :checkbox").click(function() {
  298. var allCheckNum = $("td input[type='checkbox']").length;
  299. var checkedNum = $("td input[type='checkbox']:checked").length;
  300. if (checkedNum == allCheckNum) {
  301. // console.log("全选");
  302. document.getElementById("chk").checked = true;
  303. } else {
  304. // console.log("反选");
  305. document.getElementById("chk").checked = false;
  306. }
  307. })
  308. </script>
  309. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  310. <style type="text/css">
  311. 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 }
  312. p#vtip img{width: 200px}
  313. /*body{min-width: 1680px;overflow: auto;}*/
  314. .clearfix:after {
  315. display: block;
  316. clear: both;
  317. content: "";
  318. visibility: hidden;
  319. height: 0;
  320. }
  321. .clearfix {
  322. zoom: 1;
  323. /*为了兼容IE*/
  324. }
  325. .box .box-body {
  326. position: relative;
  327. }
  328. .box .form-group label {
  329. float: left;
  330. width: 120px;
  331. line-height: 34px;
  332. text-align: right;
  333. }
  334. .box .input-group {
  335. width: 360px;
  336. }
  337. .list_empty_group {
  338. text-align: center;
  339. line-height: 80px;
  340. color: #404446;
  341. font-size: 22px;
  342. }
  343. .jobslist_table .li-table-btn {
  344. width: 120px;
  345. height: 50px;
  346. line-height: 50px;
  347. }
  348. .modal {
  349. display: block;
  350. position: static;
  351. }
  352. .qs-category-unlimited .selected-group .selected-box .s-cell {
  353. width: 112px;
  354. }
  355. .qs-category-unlimited .cate-type .dd {
  356. margin: 0px;
  357. font-size: 14px;
  358. }
  359. .qs-category-unlimited .cate-type .one-select label {
  360. display: block;
  361. margin: 0px;
  362. width: 110px;
  363. }
  364. .qs-category-unlimited .cate-type .one-select .check-box {
  365. margin: 0px;
  366. }
  367. .modal_body_box .list_nav1 li label {
  368. margin-bottom: 0px;
  369. }
  370. .disappear_tooltip .content {
  371. min-height: auto;
  372. padding: 0px;
  373. padding-left: 10px;
  374. padding-right: 10px;
  375. }
  376. </style>