| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 | 
							- <?php
 
- $config_id = Dever::input('search_option_config_id', 1);
 
- $uid = Dever::input('search_option_uid');
 
- $type = function() use($config_id) {
 
-     $config = Dever::db('account/config')->find($config_id);
 
-     return Dever::db('account/config_type')->getData(array('manual' => 1, 'project_id' => '-1,' . $config['project_id']));
 
- };
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'push',
 
-     # 显示给用户看的名称
 
-     'lang' => '发放资金',
 
-     'order' => 99,
 
-     'menu' => false,
 
-     'end' => array
 
-     (
 
-         'insert' => 'account/lib/manage.push',
 
-     ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             //'list'        => true,
 
-         ),
 
-         'uid'       => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '用户ID',
 
-             'default'   => '0',
 
-             'desc'      => '用户名称',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'hidden',
 
-             'value'     => $uid,
 
-         ),
 
-         'config_id'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '选择账户',
 
-             'default'   => '1',
 
-             'desc'      => '选择账户',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'hidden',
 
-             'value'     => $config_id,
 
-         ),
 
-         'type_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '交易类型',
 
-             'default'   => '1',
 
-             'desc'      => '交易类型',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'radio',
 
-             'option'    => $type,
 
-         ),
 
-         'cash'      => 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',
 
-         ),
 
-         '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,
 
-         'list_button' => array
 
-         (
 
-             
 
-         ),
 
-     ),
 
-     'request' => array
 
-     (
 
-         
 
-     ),
 
- );
 
 
  |