'初审', 2 => '终审', 3 => '权益发放', ); $type = array ( 1 => '支付已确认', 2 => '权益已确认发放', 3 => '分润已确认发放', 4 => '期权已确认发放', 5 => '代理合同已生成', ); return array ( # 表名 'name' => 'order_process', # 显示给用户看的名称 'lang' => '订单审核进度表', 'menu' => false, 'status' => $status, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'update' => 'hidden', //'list' => true, ), 'order_id' => array ( 'type' => 'int-11', 'name' => '订单表id', 'default' => '', 'desc' => '订单表id', 'match' => 'is_numeric', ), 'status' => array ( 'type' => 'int-11', 'name' => '状态', 'default' => '1', 'desc' => '状态', 'match' => 'is_numeric', 'update' => 'radio', 'option' => $status, 'search' => 'select', 'control' => 'status', ), 'desc' => array ( 'type' => 'varchar-400', 'name' => '备注', 'default' => '', 'desc' => '备注', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, 'show' => 'type=1,2', ), 'type' => array ( 'type' => 'int-11', 'name' => '权益发放情况', 'default' => '1', 'desc' => '权益发放情况', 'match' => 'is_numeric', 'update' => 'radio', 'option' => $type, 'search' => 'select', 'show' => 'type=3', ), '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, 'delete' => false, 'page_list' => 'order_process', ), 'request' => array ( 'getData' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'order_id' => 'yes', 'state' => 1, ), 'type' => 'all', 'order' => array('status' => 'asc', 'cdate' => 'desc'), 'col' => '*', ), ), );