index.blade.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <form action="" method="get" class="form-horizontal form-line" name="thisform">
  7. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="record_id" value="{{request('record_id','')}}" placeholder="请输入记录ID查询" />
  9. </div>
  10. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  11. <select name="course_id" class="form-control selectpicker" data-live-search="true" data-live-search-placeholder="搜索课程名称" data-none-results-text="未搜索到 {0}" title="选择课程名称">
  12. <option value="0" @if( 0 == request('course_id',0) ) selected @endif>不限课程</option>
  13. @foreach ($courseList as $value)
  14. <option value="{{$value['id']}}" @if( $value['id'] == request('course_id',0) ) selected @endif>{{$value['name']}}</option>
  15. @endforeach
  16. </select>
  17. </div>
  18. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  19. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  20. </div>
  21. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  22. <input type="text" class="form-control" name="custom_name" value="{{request('custom_name','')}}" placeholder="请输入客户昵称查询" />
  23. </div>
  24. <div class="form-group col col-xs-4 col-md-2" style="margin-right: 2px;">
  25. <button type="button" onclick="alter_from_attr({'method':'get','action':''})" class="btn btn-sm btn-primary" style="margin-right: 20px;"> 查询</button>
  26. <a href="{{url('admin/video_exam_answer/index')}}" class="btn btn-sm btn-default" style="margin-right: 20px;" >重置</a>
  27. @if( check_auth('admin/video_exam_answer/down_excel') )
  28. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/video_exam_answer/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载表格</button>
  29. @endif
  30. </div>
  31. </form>
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="table-responsive">
  35. <table class="table table-striped table-bordered table-hover">
  36. <thead>
  37. <tr>
  38. <th>ID</th>
  39. <th>课程名称</th>
  40. <th>客户编码</th>
  41. <th>客户昵称</th>
  42. <th>习题题目</th>
  43. <th>习题选项</th>
  44. <th>所得积分</th>
  45. <th>答题时间</th>
  46. <th>操作</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. @foreach ($list as $a)
  51. <tr>
  52. <th>{{$a['id']}}</th>
  53. <td>{{$a['course_name']}}</td>
  54. <td>{{$a['custom_code']}}</td>
  55. <td>{{$a['custom_name']}}</td>
  56. <td>{{$a['question_title']}}</td>
  57. <td>
  58. @foreach ($a['answer_list'] as $v)
  59. <p @if( $a['answer_id'] == $v['id'] ) @if( $a['is_answer'] ) class="text-green" @else class="text-red" @endif @endif>
  60. {{$v['value']}} @if($v['is_answer']) 【○】 @endif
  61. </p>
  62. @endforeach
  63. </td>
  64. <td>{{$a['get_score']}}</td>
  65. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  66. <td>
  67. </td>
  68. </tr>
  69. @endforeach
  70. <tr>
  71. <td colspan="20" class="page">{{$list->render()}}</td>
  72. </tr>
  73. <tr>
  74. <td colspan="20">总计 {{$list->total()}} 个记录</td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. </div>
  81. @endsection