state(); if($info) { $array += $info; } return $array; }; return array ( # 表名 'name' => 'journal', # 显示给用户看的名称 'lang' => '小刊订单', 'order' => '10', # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', //'list' => true, ), 'day_string' => array ( 'type' => 'varchar-60', 'name' => '统计日期', 'default' => '', 'desc' => '统计日期', 'match' => 'is_string', 'update' => 'text', //'search' => 'fulltext', 'list' => true, ), 'day_int' => array ( 'type' => 'int-11', 'name' => '统计日期', 'default' => '', 'desc' => '统计日期', 'match' => 'is_numeric', 'update' => 'text', 'search' => 'time', 'order' => 'desc', //'list' => true, ), 'journal_id' => array ( 'type' => 'int-11', 'name' => '小刊', 'default' => '', 'desc' => '小刊', 'match' => 'is_numeric', 'update' => 'select', 'option' => $journal, 'list' => true, ), 'order_num' => array ( 'type' => 'int-11', 'name' => '总订单数', 'default' => '0', 'match' => '总订单数', 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'order_yes_num' => array ( 'type' => 'int-11', 'name' => '支付订单数', 'default' => '0', 'match' => '支付订单数', 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'order_no_num' => array ( 'type' => 'int-11', 'name' => '未支付订单数', 'default' => '0', 'match' => '未支付订单数', 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'buy_num' => array ( 'type' => 'int-11', 'name' => '售出本数', 'default' => '0', 'match' => '售出本数', 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'buy_cash' => array ( 'type' => 'int-11', 'name' => '售出金额', 'default' => '0', 'match' => '售出金额', 'match' => 'is_numeric', 'update' => 'text', 'list' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '创建时间', '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, 'num' => false, 'excel' => true, //'page_list' => 'journal', ), 'request' => array ( 'getData' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'start' => array('yes-day_int', '>='), 'end' => array('yes-day_int', '<='), 'state' => 1, ), 'type' => 'all', 'order' => array('day_int' => 'asc'), //'group' => 'day_int', 'col' => '*', ), ), );