<?php
/* @var $this ProductFeatureController */
/* @var $model ProductFeature */

$this->breadcrumbs=array(
	'Product Features'=>array('index'),
	'Manage',
);

?>
</div><!-- search-form -->
<div style="width: 99%; padding-left:2%;" id="headlines"><img height="7" width="12" class="right5" src="images/admin/bg.png">Manage Product Features | <?php echo CHtml::link('Add new',Yii::app()->createUrl('productFeature/create') ); ?></div>
<div style="height:525px; background-color:#f7eee1;" id="communicationsbox">
<?php
    foreach(Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
    }
?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'product-feature-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'header'=>'Sl.No.',
			'value'=>'$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
			'htmlOptions'=>array('width'=>'5px'),
		),
		'feature_name',
		array(
			'header'=>'Actions',
			'class'=>'CButtonColumn',
			'template'=>'{add}{update}{delete}',
			'buttons'=>array
			(
				'add' => array
				(
					'label'=>'Add',
					'imageUrl'=>Yii::app()->request->baseUrl.'/images/admin/add_small.png',
					'url'=>'Yii::app()->createUrl("productFeature/create")',
				),
				
			),
		),
	),
)); ?>
</div>