12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- $sub_id = isset(Yii::app()->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 => '日语',
- );
- ?>
- <div class="changeSubjectNav">
- <div class="productSettingBtn"> <a href="javascript:;">产品设置</a> </div>
- <div class="tabs clearfix">
- <div class="tab-con clearfix pull-right">
- <div class="has-sel fl"><?php echo isset(Yii::app()->params["subjectId"][$sub_id])?Yii::app()->params["subjectId"][$sub_id]:'数学'?></div>
- <div class="sel-opt fl">
- 切换学科
- </div>
- <div class="sel-cons" style="z-index:6;background-color: #fff;">
- <?php foreach ($subjectNameArr as $_subId => $_subName):?>
- <div class="sc-lis2" val="<?php echo $_subId;?>"><span><?php echo $_subName;?><?php if($subject && isset($subject[$_subId]) && !empty($subject[$_subId])){?><?php }?></span></div>
- <?php endforeach;?>
- </div>
- </div>
- </div>
- </div>
|