|
@@ -66,16 +66,15 @@ class Collection extends Backend
|
|
{
|
|
{
|
|
$isset = $this->model->alias('z')
|
|
$isset = $this->model->alias('z')
|
|
->join('real_exam r','z.exam_collection_id=r.exam_collection_id','left')
|
|
->join('real_exam r','z.exam_collection_id=r.exam_collection_id','left')
|
|
- ->where('z.exam_collection_type=3 and z.exam_collection_state=2 and r.user_id='.$this->auth->id)->find();
|
|
|
|
|
|
+ ->where('z.exam_collection_type=3 and z.exam_collection_state=2 and r.endtime=0 and r.user_id='.$this->auth->id)->find();
|
|
if(empty($isset)){
|
|
if(empty($isset)){
|
|
//提示页面,没有开始的考试
|
|
//提示页面,没有开始的考试
|
|
return $this->view->fetch('tishi');
|
|
return $this->view->fetch('tishi');
|
|
}else{
|
|
}else{
|
|
-// halt('22222');
|
|
|
|
- $this->redirect('/ZQOtIMLKud.php/student/collection/examing/ids/'.$isset['exam_id'].'?ref=addtabs');
|
|
|
|
-// echo "<script>location.href='/lAoJtOcmYN.php/hotelmanage/room/displayindex/ids/".$this->auth->street_id."';</script>";
|
|
|
|
-// //$this->redirect('/hotelmanage/room/displayindex/ids/1');
|
|
|
|
-// exit();
|
|
|
|
|
|
+// $this->redirect('/ZQOtIMLKud.php/student/collection/examing/ids/'.$isset['exam_id'].'?ref=addtabs');
|
|
|
|
+ echo "<script>location.href='/ZQOtIMLKud.php/student/collection/examing/ids/".$isset['exam_id']."';</script>";
|
|
|
|
+ //$this->redirect('/hotelmanage/room/displayindex/ids/1');
|
|
|
|
+ exit();
|
|
}
|
|
}
|
|
die();
|
|
die();
|
|
//设置过滤方法
|
|
//设置过滤方法
|