コード例 #1
0
 public function _initialize()
 {
     parent::_initialize();
     //各页面下拉选项列表
     $school_year_options = D('SchoolYear')->getOptions($this->school_year);
     $town_id_options = get_town_options($this->town_id);
     $school_code_options = get_school_options($this->school_year, $this->town_id, $this->school_code);
     $this->assign('school_year_options', $school_year_options);
     $this->assign('town_id_options', $town_id_options);
     $this->assign('school_code_options', $school_code_options);
 }
コード例 #2
0
 public function _initialize()
 {
     parent::_initialize();
     //各页面下拉选项列表
     $school_year_options = D('SchoolYear')->getOptions($this->school_year);
     $town_id_options = get_town_options($this->town_id);
     $school_code_options = get_school_options($this->school_year, $this->town_id, $this->school_code);
     $this->assign('school_year_options', $school_year_options);
     $this->assign('town_id_options', $town_id_options);
     $this->assign('school_code_options', $school_code_options);
     //判断是否需要为模版年级和班级下拉框赋值
     if (in_array(ACTION_NAME, array('template', 'receipt', 'cshedu')) && !IS_AJAX) {
         $school_grade_options = get_grade_options($this->school_year, $this->town_id, $this->school_code, $this->school_grade, 'school_code');
         $class_num_options = get_class_options($this->school_year, $this->town_id, $this->school_code, $this->school_grade, $this->class_num);
         $this->assign('school_grade_options', $school_grade_options);
         $this->assign('class_num_options', $class_num_options);
     }
 }
コード例 #3
0
 public function _initialize()
 {
     parent::_initialize();
     //各页面下拉选项列表
     $school_year_options = D('SchoolYear')->getOptions($this->school_year);
     $town_id_options = get_town_options($this->town_id);
     $school_code_options = get_school_options($this->school_year, $this->town_id, $this->school_code);
     $this->assign('school_year_options', $school_year_options);
     $this->assign('town_id_options', $town_id_options);
     $this->assign('school_code_options', $school_code_options);
     //判断是否需要为模版年级和班级下拉框赋值
     if (in_array(ACTION_NAME, array('stuInfo', 'printRegister', 'upNum', 'phydata', 'phydataRanking')) && !IS_AJAX) {
         $school_grade_options = get_grade_options($this->school_year, $this->town_id, $this->school_code, $this->school_grade);
         $class_num_options = get_class_options($this->school_year, $this->town_id, $this->school_code, $this->school_grade, $this->class_num);
         $this->assign('school_grade_options', $school_grade_options);
         $this->assign('class_num_options', $class_num_options);
     }
     //系统定义参数
     $this->folkList = session('folkList');
     $this->dictList = session('dictList');
 }
コード例 #4
0
  public function _initialize(){
	parent::_initialize();
  }
コード例 #5
0
  public function _initialize(){
	parent::_initialize();
	$usecssjs = '<link href="'.__ROOT__.'/Public/css/index.css" rel="stylesheet" type="text/css" /><link href="'.__ROOT__.'/Public/css/pro_list.css" rel="stylesheet" type="text/css" /><link href="'.__ROOT__.'/Public/css/zc.css" rel="stylesheet" type="text/css" /><link href="'.__ROOT__.'/Public/css/font-awesome.min.css" rel="stylesheet" type="text/css" /><link href="'.__ROOT__.'/Public/css/false.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="'.__ROOT__.'/Public/js/jquery-1.8.2.min.js"></script><link href="'.__ROOT__.'/Public/js/artDialog/skins/blue.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="'.__ROOT__.'/Public/js/artDialog/jquery.artDialog.js"></script><script type="text/javascript" src="'.__ROOT__.'/Public/js/artDialog/plugins/iframeTools.js"></script><script type="text/javascript" src="'.__ROOT__.'/Public/js/jquery.countdown.min.js"></script><script type="text/javascript" src="'.__ROOT__.'/Public/js/common.js"></script><script type="text/javascript" src="'.__ROOT__.'/Public/js/dropMenu1.js"></script>';
	$this->assign('usecssjs',$usecssjs);
	$this->assign('action_name','zhongchou');
  }