<?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('add', array('uid' => $uid)),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
        ),
        'search'    => array
        (
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'uid' => array
            (
                'type' => 'hidden',
            ),
            'name' => array
            (
                'rules' => true,
            ),
            'logo' => array
            (
                'type' => 'upload',
                'upload' => 1,
                'yun' => true,
                'multiple' => false,
                'tip' => '',
                'style' => 'pic',
            ),
            'content' => array
            (
                'type' => 'editor',
                'editorMenu' => array
                (
                    'uploadImage' => 1,
                    'uploadVideo' => 3,
                ),
            ),
        ),
        'check' => 'key',
        'end' => 'manage/system.update?system=sector',
    ),
);