session['session_subject_id']) ? Yii::app()->session['session_subject_id']:0; $duo_sub_id = isset(Yii::app()->session['session_duoxueke_subject_id']) ? Yii::app()->session['session_duoxueke_subject_id']:0; $testFlag = isset(Yii::app()->session['testFlag'])?Yii::app()->session['testFlag']:0; $printType = isset($printType)?$printType:''; $subject = isset($subject)?$subject:array(); $urlInfoAll = Yii::app()->request->getPathInfo(); $urlInfo = ''; if($urlInfoAll){ $urlInfoArr = explode('/',$urlInfoAll); if(isset($urlInfoArr[0]) && isset($urlInfoArr[1])){ $urlInfo = $urlInfoArr[0].'/'.$urlInfoArr[1]; } $urlType = ''; foreach ($urlInfoArr as $_url_k => $_url_v) { if ($_url_v == 'type' && isset($urlInfoArr[$_url_k + 1])) { $urlType = $urlInfoArr[$_url_k + 1]; } } if(count($urlInfoArr) > 4){ $urlInfoArr = array_slice($urlInfoArr,0,4); } $urlInfoAll = implode('/',$urlInfoArr); } $subjectNameArr = array( 3 => '数学', 8 => '英语', 9 => '语文', 12 => '物理', 13 => '化学', 14 => '生物', 15 => '政治', 16 => '历史', 17 => '地理', 18 => '理综', 19 => '文综', 21 => '日语', ); ?>
产品设置
params["subjectId"][$sub_id])?Yii::app()->params["subjectId"][$sub_id]:'数学'?>
切换学科
$_subName):?>