public function actionAjaxGetJobTitles()
 {
     if (isset($_POST['jobCat'])) {
         $titles = CHtml::listData(JobTitle::getAllTitlesByCategory($_POST['jobCat']), 'job_title_id', 'job_title_name');
         echo '<option value="">' . Yii::t('model', 'viewStudentJobTitle.jobTitles_empty') . '</option>';
         foreach ($titles as $value => $name) {
             echo CHtml::tag('option', array('value' => $value), CHtml::encode($name), true);
         }
     }
 }
		<?php 
echo $form->dropDownList($model, 'college_id', CHtml::listData(College::getAllCollege(), 'college_name', 'college_name'), array('prompt' => Yii::t('model', 'student.college_id_empty')));
?>
		<?php 
echo $form->dropDownList($model, 'ECWS_id', CHtml::listData(EcwsCourse::getAllEcws(), 'ECWS_id', 'ECWS_name'), array('prompt' => Yii::t('model', 'postResumeForm.ecwsCourse_empty')));
?>
	</div>
	<div class="search-control-row">
		<?php 
echo $form->textField($model, 'first_name', array('placeholder' => Yii::t('model', 'user.first_name')));
?>
		<?php 
echo $form->textField($model, 'last_name', array('placeholder' => Yii::t('model', 'user.last_name')));
?>
		<?php 
echo $form->dropDownList($model, 'job_title_id', CHtml::listData(JobTitle::getAllTitlesByCategory($model->job_cat_id), 'job_title_id', 'job_title_name'), array('prompt' => Yii::t('model', 'viewStudentJobTitle.jobTitles_empty')));
?>
 		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => 'Go', 'type' => 'primary'));
?>
		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'button', 'label' => 'Close', 'htmlOptions' => array('id' => 'btn-close-emp-adv-search')));
?>
	</div>

</div>
<?php 
$this->endWidget();
Yii::app()->clientScript->registerScript('employer-search-form-advance-btn', "\n\n\$(document).on('click','#employer-search-form #btn-emp-adv-search', function(e){\n\tif(!\$('#employer-search-form .advance-search').toggle().is(':visible')){\n\t\t\$('#employer-search-form .advance-search input, #employer-search-form .advance-search select').val('');\n\t\t\$('#employer-search-form #emp-advanced-search').val(0);\n\t}else{\n\t\t\$('#employer-search-form #emp-advanced-search').val(1);\n\t}\n\treturn false;\n});\n\t\t\n\$(document).on('click','#employer-search-form #btn-close-emp-adv-search', function(e){\n\t\$('#employer-search-form .advance-search').hide();\n\t\$('#employer-search-form .advance-search input, #employer-search-form .advance-search select').val('');\n\t\$('#employer-search-form #emp-advanced-search').val(0);\n\treturn false;\n});\n\t\t", CClientScript::POS_READY);
?>