123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <form action="" method="get" class="form-horizontal form-line" name="thisform">
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="record_id" value="{{request('record_id','')}}" placeholder="请输入记录ID查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <select name="course_id" class="form-control selectpicker" data-live-search="true" data-live-search-placeholder="搜索课程名称" data-none-results-text="未搜索到 {0}" title="选择课程名称">
- <option value="0" @if( 0 == request('course_id',0) ) selected @endif>不限课程</option>
- @foreach ($courseList as $value)
- <option value="{{$value['id']}}" @if( $value['id'] == request('course_id',0) ) selected @endif>{{$value['name']}}</option>
- @endforeach
- </select>
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="custom_name" value="{{request('custom_name','')}}" placeholder="请输入客户昵称查询" />
- </div>
- <div class="form-group col col-xs-4 col-md-2" style="margin-right: 2px;">
- <button type="button" onclick="alter_from_attr({'method':'get','action':''})" class="btn btn-sm btn-primary" style="margin-right: 20px;"> 查询</button>
- <a href="{{url('admin/video_exam_answer/index')}}" class="btn btn-sm btn-default" style="margin-right: 20px;" >重置</a>
- @if( check_auth('admin/video_exam_answer/down_excel') )
- <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/video_exam_answer/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载表格</button>
- @endif
- </div>
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>ID</th>
- <th>课程名称</th>
- <th>客户编码</th>
- <th>客户昵称</th>
- <th>习题题目</th>
- <th>习题选项</th>
- <th>正确与否</th>
- <th>所得积分</th>
- <th>答题时间</th>
- <th>操作</th>
- </tr>
- </thead>
-
- <tbody>
- @foreach ($list as $a)
- <tr>
- <th>{{$a['id']}}</th>
- <td>{{$a['course_name']}}</td>
- <td>{{$a['custom_code']}}</td>
- <td>{{$a['custom_name']}}</td>
- <td>{{$a['question_title']}}</td>
- <td>
- @foreach ($a['answer_list'] as $v)
- <p @if( $a['answer_id'] == $v['id'] ) @if( $a['is_answer'] ) class="text-green" @else class="text-red" @endif @endif>
- {{$v['value']}} @if($v['is_answer']) 【○】 @endif
- </p>
- @endforeach
- </td>
- <td>{{$a['get_score']}}</td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- <td>
-
- </td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个记录</td>
- </tr>
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
- @endsection
|