下载试卷标签数据完成

This commit is contained in:
cxdbz committed 2019-12-13 19:57:54 +08:00
1 parent 1f00e25024
commit 8001f374f1
5 files changed
+16 -16

No files matched your search

+4 -5
View File
@@ -24,9 +24,6 @@ class Index extends BaseController
'url'=>'/chengji/malu',
);
dump('aa');
halt('aa');
// 模板赋值
$this->assign('list',$list);
@@ -126,10 +123,12 @@ class Index extends BaseController
// 根据考号获取学生信息
public function read()
{
// 获取表单数据
// 获取表单数据
$val = input('post.val');
$val = action('system/Encrypt/decrypt',[$val,'key'=>'dlbz']);
// 实例化系统设置类
$md5 = new \app\system\controller\Encrypt;
$val = $md5->decrypt($val,'dlbz');
$list = explode('|',$val);
$sbj = $list[1];
+2
View File
@@ -384,10 +384,12 @@ class Index extends BaseController
->field('id,title,bfdate,enddate')
->find();
// 设置页面标题
$list['webtitle'] = $kaoshi['title'] .'('. $kaoshi['bfdate'].'~'.$kaoshi['enddate'].')';
$list['kaoshiid'] = $kaoshi['id'];
// 模板赋值
$this->view->assign('list',$list);
// 渲染
+1 -6
View File
@@ -79,7 +79,7 @@ class Kaohao extends BaseController
return ['msg'=>$msg,'val'=>0];
}
if(kaoshiDate($list['kaoshi'],'bfdate'))
if(kaoshiDate($list['kaoshi'],'enddate'))
{
return ['msg'=>'考试已经结束,不能分配考号','val'=>0];
}
@@ -371,13 +371,8 @@ class Kaohao extends BaseController
$i = 2;
foreach ($kaohao as $key=>$bj)
{
foreach ($kslist->ksSubject as $ksbj => $sbj)
{
// halt($obj);
foreach ($bj->banjiKaohao as $kkh => $kh)
{
// 表格赋值
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more