<?php
$extend = Dever::load('common', 'manage')->extend();
$uid = $extend['data_id'];
return array
(
    'source' => 'source/zone',
    'list' => array
    (
        'where' => array('uid' => $uid),
        'field'      => array
        (
            'name',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
        ),
        'button' => array
        (
            '新增' => array('fastadd', array('uid' => $uid)),
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
        ),
        'search'    => array
        (
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'uid' => array
            (
                'type' => 'hidden',
            ),
            'name',
            'status' => 'radio',
        ),
        'check' => 'key',
        'end' => 'manage/system.update?system=sector',
    ),
);