account; $status = array ( 1 => Dever::lang('pay_wait'), 2 => Dever::lang('pay_yes'), 3 => Dever::lang('pay_no'), ); return array ( # 表名 'name' => 'order', # 显示给用户看的名称 'lang' => Dever::lang('order_manage'), 'order' => 1, 'status' => $status, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'list' => true, ), 'company_id' => array ( 'type' => 'int-11', 'name' => Dever::lang('company'), 'default' => '1', 'desc' => Dever::lang('company'), 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'uid' => array ( 'type' => 'varchar-200', 'name' => Dever::lang('user'), 'default' => '1', 'desc' => Dever::lang('user'), 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'order_id' => array ( 'type' => 'varchar-100', 'name' => Dever::lang('order'), 'default' => '', 'desc' => Dever::lang('order'), 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'product_name' => array ( 'type' => 'varchar-200', 'name' => Dever::lang('product_name'), 'default' => '', 'desc' => Dever::lang('product_name'), 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'account' => array ( 'type' => 'varchar-24', 'name' => Dever::lang('account'), 'default' => 'payfort', 'desc' => Dever::lang('account'), 'match' => 'is_numeric', 'update' => 'select', 'option' => $account, 'search' => 'select', 'list' => true, ), 'type' => array ( 'type' => 'int-11', 'name' => Dever::lang('type'), 'default' => '', 'desc' => Dever::lang('type'), 'match' => 'is_numeric', //'update' => 'text', //'list' => true, ), 'amount' => array ( 'type' => 'varchar-30', 'name' => Dever::lang('amount'), 'default' => '', 'desc' => Dever::lang('amount'), 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'currency' => array ( 'type' => 'varchar-11', 'name' => Dever::lang('currency'), 'default' => '', 'desc' => Dever::lang('currency'), 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'status' => array ( 'type' => 'tinyint-1', 'name' => Dever::lang('status'), 'default' => '1', 'desc' => Dever::lang('status'), 'match' => 'is_numeric', 'update' => 'radio', 'option' => $status, 'search' => 'select', 'list' => true, 'control' => 'status', ), 'status_desc' => array ( 'type' => 'varchar-300', 'name' => Dever::lang('status_desc'), 'default' => '', 'desc' => Dever::lang('status_desc'), 'match' => 'option', 'update' => 'textarea', 'show' => 'status=3', ), 'param' => array ( 'type' => 'text-255', 'name' => Dever::lang('pay_info'), 'default' => '', 'desc' => Dever::lang('pay_info'), 'match' => 'option', ), 'state' => array ( 'type' => 'tinyint-1', 'name' => Dever::lang('state'), 'default' => '1', 'desc' => Dever::lang('state'), 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => Dever::lang('cdate'), 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, 'search' => 'date', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( 'insert' => false, 'edit' => false, 'delete' => false, ), );