修改年级计算
This commit is contained in:
1 parent
0c1a44be74
commit
7516401795
3 files changed
+7
-4
No files matched your search
+3
-1
@@ -51,9 +51,11 @@ function nianjiList($riqi=0)
|
||||
{
|
||||
$jiedian = strtotime(date('Y').'-8-1');
|
||||
$thisday = time();
|
||||
$nian = date('Y');
|
||||
}else{
|
||||
$jiedian = strtotime(date('Y',$riqi).'-8-1');
|
||||
$thisday = $riqi;
|
||||
$nian = date('Y',$riqi);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +67,7 @@ function nianjiList($riqi=0)
|
||||
}
|
||||
|
||||
|
||||
$nian = date('Y') - $str;
|
||||
$nian = $nian - $str;
|
||||
|
||||
$njlist = array();
|
||||
|
||||
|
||||
@@ -383,7 +383,6 @@ class Kaohao extends BaseController
|
||||
$md5 = new \app\system\controller\Encrypt;
|
||||
|
||||
|
||||
|
||||
// 循环写出信息
|
||||
$i = 2;
|
||||
foreach ($kaohao as $key=>$bj)
|
||||
@@ -399,7 +398,7 @@ class Kaohao extends BaseController
|
||||
$sheet->setCellValue('C'.$i, $bj->cjSchool->jiancheng);
|
||||
$sheet->setCellValue('B'.$i, $stuKaohao);
|
||||
$sheet->setCellValue('D'.$i, $bj->cjBanji->numTitle);
|
||||
$sheet->setCellValue('E'.$i, $sbj->subject_name->jiancheng);
|
||||
$sheet->setCellValue('E'.$i, $sbj->subjectName->jiancheng);
|
||||
$sheet->setCellValue('F'.$i, $kh->cjStudent['xingming']);
|
||||
$i++;
|
||||
}
|
||||
@@ -455,7 +454,7 @@ class Kaohao extends BaseController
|
||||
{
|
||||
foreach ($kaoshilist->ks_subject as $key => $value) {
|
||||
$list['data']['subject'][$key]['id']=$value->subjectid;
|
||||
$list['data']['subject'][$key]['title']=$value->subject_name->title;
|
||||
$list['data']['subject'][$key]['title']=$value->subjectName->title;
|
||||
}
|
||||
}else{
|
||||
$list['data']['subject']= array();
|
||||
|
||||
@@ -399,6 +399,8 @@ class Kaohao extends Base
|
||||
$nj = nianjiList($bfdate);
|
||||
$bj = banjinamelist();
|
||||
|
||||
|
||||
|
||||
$title = $nj[$this->getAttr('ruxuenian')] . $bj[$this->getAttr('paixu')];
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user