<?php

return array(array('value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)', 'htmlOptions' => array('style' => 'width:30px;')), array('name' => 'post_name', 'type' => 'raw', 'value' => array($this, 'Post'), 'htmlOptions' => array('style' => 'width:60%;')), array('name' => 'categorySearch', 'filter' => Category::makeDropdown(), 'type' => 'raw', 'value' => 'Category::makeValue($data)'), array('name' => 'post_status', 'filter' => array('draft' => 'Draft', 'publish' => 'Publish'), 'type' => 'raw', 'value' => array($this, 'Status')));
<p>
	You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
		&lt;&gt;</b>
	or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>


<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
echo $form->textFieldRow($model, 'post_name', array('class' => 'span5', 'maxlength' => 255));
?>

<?php 
echo $form->dropDownListRow($model, 'authorSearch', $this->listUser('author'), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'editorSearch', $this->listUser('editor'), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'categorySearch', Category::makeDropdown(), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'labelSearch', Label::makeList(), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'topicSearch', Topic::makeList(), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'tagSearch', Tag::makeList(), array('class' => 'span3', 'prompt' => ''));
echo $form->dropDownListRow($model, 'post_status', $this->listAllStatus(), array('class' => 'span3', 'prompt' => ''));
?>

<?php 
/*echo $form->datepickerRow($model,'post_date',
         array('options'=>array('format' => 'yyyy-mm-dd','viewformat' => 'yyyy-mm-dd')),
  array('prepend' => '<i class="icon-calendar"></i>',)); */
echo $form->datepickerRow($model, 'post_modified', array('options' => array('format' => 'yyyy-mm-dd', 'viewformat' => 'yyyy-mm-dd')), array('prepend' => '<i class="icon-calendar"></i>'));
?>

<?php 
echo $form->textFieldRow($model, 'post_hits', array('class' => 'span2'));