<?php
/* @var $this ScoreController */
/* @var $model Score */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>


	<div class="row">
		<?php echo $form->label($model,'student_id'); ?>
		<?php echo $form->textField($model,'student_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'grade_id'); ?>
		<?php echo $form->dropDownList($model,'grade_id',Student::model()->list,array('prompt'=>'-请选择-',
			'ajax'=>array(
					'url'=>$this->createUrl('student/get_classroom_list'),
					'data'=>array('pid'=>'js:this.value'),
					'update'=>'#Score_classroom_id',
				),
		)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'classroom_id'); ?>
		<?php echo $form->dropDownList($model,'classroom_id',$model->getClassroomList($model->grade_id),array('empty'=>'-请选择-')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'exam_id'); ?>
		<?php echo $form->dropDownlist($model,'exam_id',CHtml::listData($exammanage,'id','title')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'reexam'); ?>
		<?php echo $form->checkBox($model,'reexam'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('搜索'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->