1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?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];
- }
- if(count($urlInfoArr) > 4){
- $urlInfoArr = array_slice($urlInfoArr,0,4);
- }
- $urlInfoAll = implode('/',$urlInfoArr);
- }
- ?>
- <ul class="clearfix main-content-inner-ul">
- <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("semester/index");?>"' class="button button_normal button_group button_arrow <?php echo (inArray($urlInfo,array('semester/index','semester/add','semester/change','semester/edit')))?'button_active':''?> " data-button="red">学期管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php }?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("teacher/index");?>"' class="button button_normal button_group button_arrow <?php echo (inArray($urlInfo,array('teacher/index','teacher/add','teacher/edit')))?'button_active':''?>" data-button="red">教师管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/index");?>"' class="button button_normal button_group button_arrow <?php echo (inArray($urlInfo,array('classes/index','classes/add','classes/edit','classes/view','classes/copy')))?'button_active':''?>" data-button="red">班级管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("studentinfo/index");?>"' class="button button_normal button_group button_arrow <?php echo (inArray($urlInfo,array('studentinfo/index','studentinfo/add','studentinfo/edit','classes/view','classes/copy')))?'button_active':''?>" data-button="red">学生管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php if(Yii::app()->session['coachInfo']['leader']==1){ ?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("school/add");?>"' class="button button_normal button_group button_arrow <?php echo ($urlInfoAll == 'school/add')?'button_active':''?>" data-button="red">学校管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php } ?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/export");?>"' class="button button_normal button_group button_arrow <?php echo ($urlInfoAll == 'classes/export')?'button_active':''?>" data-button="red">导出学生</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php if(Yii::app()->params['section']==1){?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("textbook/index");?>"' class="button button_normal button_group button_arrow <?php echo ($urlInfoAll == 'textbook/index')?'button_active':''?>" data-button="red">教材管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php } ?>
- </ul>
|