<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of NavPageList
 *
 * @author yzxh24
 */
Yii::import('zii.widgets.grid.CButtonColumn');
class NavPageList extends CButtonColumn
{
    public $header;

    public $buttons = array(
        'edit' => array(
            'label' => '修改',
            'url' => 'Yii::app()->controller->createUrl("/admin/navpage/update",array("id"=>$data->id))',
            'type' => 'raw',
            'options' => array('target'=>'_blank')
        ),
        'delete' => array(
            'label' => '删除',
            'url' => 'Yii::app()->controller->createUrl("/admin/navpage/delete",array("id"=>$data->id))',
            'type' => 'raw',
            'visible' => '$data->id != 1',
        ),
    );
}