excel中学生:
确认
姓名 | 班级 | params['subjectId']; unset($allSubject[3]); unset($allSubject[51]); unset($allSubject[20]); $ExcelToSubject=array(); $subjectOrder=0; foreach ($allSubject as $key =>$val){ $ExcelToSubject[$letters[$subjectOrder]]=$key; $subjectOrder++; } if(isset($list) && $list){ $scoreArr=json_decode($list[0]['score_data'],true); $check_field=$list[0]['check_field']; foreach($scoreArr as $f=>$v){ echo ''.Yii::app()->params['subjectId'][$ExcelToSubject[$f]].' | '; } echo '|
---|---|---|---|
'; }else{ echo ' | '.$val['student_name'].' | '; } echo ''.$val['class_name'].' | '; foreach($topic_score as $v){ echo ''.$v.' | '; } echo '