考试
This commit is contained in:
1 parent
c39ec218c9
commit
bfb471898f
12 files changed
+178
-284
No files matched your search
@@ -437,18 +437,17 @@ class MoreAction extends Base
|
||||
$sheet->setCellValue('B3', '考号');
|
||||
$sheet->setCellValue('C3', '班级');
|
||||
$sheet->setCellValue('D3', '姓名');
|
||||
|
||||
// 获取列数并合并和一行
|
||||
$col = $lieming[count($chengjiinfo->ks_subject)+3];
|
||||
|
||||
$sheet->mergeCells('A1:'.$col.'1');
|
||||
|
||||
|
||||
// 写入列名
|
||||
foreach ($chengjiinfo->ks_subject as $key => $value) {
|
||||
$sheet->setCellValue($lieming[$key + 4].'3', $value->subject_name['title']);
|
||||
$sheet->setCellValue($lieming[$key + 4].'2', $value->lieming);
|
||||
|
||||
}
|
||||
|
||||
// 隐藏第二行和第二列
|
||||
$sheet->getRowDimension('2')->setRowHeight('0');
|
||||
$sheet->getColumnDimension('B')->setWidth('0');
|
||||
|
||||
|
||||
Reference in new issue
Block a user