<?php
return array
(
    'source' => 'place/member',
    'list' => array
    (
        'where' => array('agent_id' => array('>=', 1)),
        'field'      => array
        (
            'id',
            'name',
            'mobile',
            'agent_id',
            'cash',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            //'新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
            '下级' => array('route', array
            (
                'path' => 'member_manage/member_agent_child',
                'param' => array
                (
                    'set' => array('parent_uid' => 'id', 'menu' => 'member_manage/member_agent', 'parent' => 'member_manage/member_agent'),
                ),
            )),
        ),
        'search'    => array
        (
            'name' => 'like',
            'mobile',
            'agent_id',
            'status',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name',
            'agent_id',
        ),
    ),
);