
<?php 
  $form = $this->beginWidget('CActiveForm',array('method'=>'get','action'=>Yii::app()->createUrl('searchlist/index'),'htmlOptions'=>array('class'=>'form-c')));
  ?>
 
				 
						 
					<div id="search_block">
					<?php $mer = array_merge($model->getHtmlOptions('state'),array('empty'=>'Select Location',"required"=>true)); ?>
					<?php echo $form->dropDownList($model, 'state',CHtml::listData($states,'state_id','state_name'), $mer); ?>
					 
					<?php $mer = array_merge($model->getHtmlOptions('category_id'),array('empty'=>'All Of RS Classifieds')); ?>
					<?php echo $form->dropDownList($model,'category_id',CHtml::listData($category,'category_id','category_name'), $mer); ?>
					 
							 
					<?php echo $form->textField($model, 'keyword', array_merge($model->getHtmlOptions('checkin'),array("placeholder"=>"Tags"))); ?>
						
					<input type="submit" value="Search" />


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