public static function pageHeader($heading, $subtext, $htmlOptions = array())
{
self::addCssClass('page-header', $htmlOptions);
$headerOptions = TbArray::popValue('headerOptions', $htmlOptions, array());
$subtextOptions = TbArray::popValue('subtextOptions', $htmlOptions, array());
$output = self::openTag('div', $htmlOptions);
$output .= self::openTag('h1', $headerOptions);
$output .= parent::encode($heading) . ' ' . self::tag('small', $subtextOptions, $subtext);
$output .= '</h1>';
$output .= '</div>';
return $output;
}
Yii::app()->clientScript->registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit(function(){ $('#indicator-data-source-grid').yiiGridView('update', { data: $(this).serialize() }); return false; }); "); ?> <?php echo TbHtml::pageHeader('', 'Manage Indicator Data Sources'); ?> <p> You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b> <></b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?><br><br/> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array( 'model' => $model, )); ?> </div><!-- search-form -->