ajax_jobfair_mod.blade.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div id="J_jobfairJobsWrap" class="modify_jobfair_dialog" style="width:400px;">
  2. <div class="content">
  3. <div style="height:150px; overflow-y:scroll; width:100%;">
  4. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="link_lan" id="ajax_fairjobs_table">
  5. <tr style="background-color:#f5f5f5;height:30px;">
  6. <td height="26" class="us_list_title"><label>&nbsp;<input type="checkbox" name="chkAll" id="chkAll" title="全选/反选" onclick="selectAll();"/>&nbsp;招聘会名称</label></td>
  7. <td align="center" class="us_list_title">状态</td>
  8. </tr>
  9. @foreach($jobfairInfo as $key => $v)
  10. @if($v->jobfairout)
  11. <tr style="height:30px;">
  12. <td>
  13. <input name="exid" type="hidden" value="{{ $v->id }}">
  14. &nbsp;<input name="jobfair_id" class="chk" type="checkbox" value="{{ $v->jobfair_id }}"/>&nbsp;<a title="{{ $v->jobfairout->title }}" class="substring" style="display: inline-block;width: 260px;" class="subst">{{ $v->jobfairout->title }}</a>
  15. </td>
  16. <td align="center">
  17. @switch($v->audit)
  18. @case(1) <span style="color: green">已审核</span> @break;
  19. @case(2) <span style="">等待审核</span> @break;
  20. @case(3) <span style="color: red">未通过审核</span> @break;
  21. @endswitch
  22. </td>
  23. <tr>
  24. @endif
  25. @endforeach
  26. </table>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <script type="text/javascript">
  32. function selectAll(){
  33. if($("#chkAll").prop("checked")) {
  34. $(".chk").prop("checked", true);
  35. }else{
  36. $(".chk").prop("checked", false);
  37. }
  38. }
  39. </script>