| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 | 
							- <?php
 
- $mid = Dever::input('search_option_mid');
 
- $status = array
 
- (
 
- 	1 => '发放成功',
 
- 	2 => '发放失败',
 
- );
 
- $type = array
 
- (
 
-     1 => '个人业绩',
 
-     2 => '团队业绩',
 
- );
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'push_sell',
 
-     # 显示给用户看的名称
 
-     'lang' => '发放业绩',
 
-     'order' => 99,
 
-     'menu' => false,
 
-     'end' => array
 
-     (
 
-         'insert' => 'bill/lib/manage.sellUpdate',
 
-     ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             //'list'        => true,
 
-         ),
 
-         'mid'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '代理商',
 
-             'default'   => '-1',
 
-             'desc'      => '代理商',
 
-             'match'     => 'is_string',
 
-             'update'    => 'hidden',
 
-             'value'		=> $mid,
 
-         ),
 
-         'type'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '发放类型',
 
-             'default'   => '1',
 
-             'desc'      => '发放类型',
 
-             'match'     => 'is_numeric',
 
-             'option'    => $type,
 
-             'update'    => 'radio',
 
-         ),
 
-         'num'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '发放业绩金额-金额单位为元',
 
-             'default'   => '',
 
-             'desc'      => '发放业绩金额',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-         ),
 
-         'desc'      => array
 
-         (
 
-             'type'      => 'varchar-600',
 
-             'name'      => '发放说明',
 
-             'default'   => '',
 
-             'desc'      => '发放说明',
 
-             'match'     => 'option',
 
-             'update'    => 'textarea',
 
-         ),
 
-         'admin_founder' => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '插入操作人',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             //'list'        => true,
 
-         ),
 
-         'admin_editor' => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '更新操作人',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             //'list'        => true,
 
-         ),
 
-         'status'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '发放状态',
 
-             'default'   => '1',
 
-             'desc'      => '发放状态',
 
-             'match'     => 'is_numeric',
 
-             'update'  	=> 'hidden',
 
-             'option'    => $status,
 
-         ),
 
-         '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", {cdate})',
 
-             'list_order'  => 2,
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         'insert' => false,
 
-         'delete' => false,
 
-         'edit' => false,
 
-         'page_list' => 'push_sell',
 
-         'list_button' => array
 
-         (
 
-             
 
-         ),
 
-     ),
 
-     'request' => array
 
-     (
 
-         
 
-     ),
 
- );
 
 
  |