Commit 66d773e3 by 冷斌

`试卷`

parent 83cc8cab
......@@ -103,8 +103,9 @@ class IndexAction extends Action
$where['exams_paper_title'] = array('like' , '%'.$search.'%');
$this->assign('search', $search);
}
var_dump($where);
die;
if ($_GET['best']) {
$where['best'] = 1;
}
$list = D('ExamsPaper', 'exams')->getPaperPageList($where, 16, $order, true);
foreach ($list['data'] as &$v) {
$v['paper_options'] = D('ExamsPaperOptions', 'exams')->where(['exams_paper_id'=>$v['exams_paper_id']])->field('questions_count,score')->find();//getPaperOptionsById($v['exams_paper_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment