<?php
return array
(
    'list' => array
    (
        'field'      => array
        (
            'name',
            'icon_id' => array
            (
                //'show' => '"{icon}" ? "<img src=\'{icon}\' width=\'50\' \/>" : ""',
                'show' => 'Dever::call("cate/icon.show", "{icon_id}")',
            ),
            'sort' => array
            (
                'type' => 'input',
                'tips' => '双击修改排序',
            ),
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => 'fastadd',
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
        ),
        'search'    => array
        (
            'name',
            'status',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
        ),
    ),
);