<?php
$extend = Dever::load('common', 'manage')->extend();
$uid = $extend['data_id'];
return array
(
    'source' => 'pan/account',
    'list' => array
    (
        'where' => array('uid' => $uid),
        'field'      => array
        (
            'name',
            'type',
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('fastadd', array('uid' => $uid)),
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
            '任务' => array('route', array
            (
                'path' => 'user_tool_manage/user_pan_task',
                'param' => array
                (
                    'set' => array('account_id' => 'id', 'menu' => 'user_tool_manage/user_tool_list', 'parent' => 'user_tool_manage/user_pan_account'),
                ),
            ), 'ChatLineSquare'),
        ),
        'search'    => array
        (
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'uid' => array
            (
                'type' => 'hidden',
            ),
            'name' => array
            (
                'rules' => true,
            ),
            'type' => array
            (
                'rules' => true,
            ),
            'cookie' => array
            (
                'type' => 'textarea',
                'rules' => true,
                'autosize' => array('minRows' => 10),
            ),
        ),
    ),
);