|
@@ -0,0 +1,166 @@
|
|
|
+<?php
|
|
|
+$status = Dever::config('base')->status;
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 1 => '永久有效',
|
|
|
+ 2 => '固定天数',
|
|
|
+);
|
|
|
+
|
|
|
+$card_type = array
|
|
|
+(
|
|
|
+ 1 => '全数字',
|
|
|
+ 2 => '全小写',
|
|
|
+ 3 => '全大写',
|
|
|
+ 4 => '大小写组合',
|
|
|
+ 5 => '数字+大小写组合',
|
|
|
+);
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'info',
|
|
|
+
|
|
|
+ 'lang' => '礼品卡配置',
|
|
|
+
|
|
|
+ 'order' => 99,
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ 'order' => 'desc',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-80',
|
|
|
+ 'name' => '礼品卡名称',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入礼品卡名称',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'value' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '面值',
|
|
|
+ 'default' => '100',
|
|
|
+ 'desc' => '面值',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '礼品卡类型',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '礼品卡类型',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $type,
|
|
|
+ 'control' => 'type',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'day' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '有效天数',
|
|
|
+ 'default' => '7',
|
|
|
+ 'desc' => '有效天数',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'show' => 'type=2',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'card_type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '卡号生成规则',
|
|
|
+ 'default' => '3',
|
|
|
+ 'desc' => '卡号生成规则',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'option' => $card_type,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'card_prefix' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-80',
|
|
|
+ 'name' => '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '卡号前缀',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'card_len' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '卡号长度',
|
|
|
+ 'default' => '14',
|
|
|
+ 'desc' => '卡号长度',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'status' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+
|
|
|
+ 'option' => $status,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ 'edit' => 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' => true,
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+ 'list_button' => array
|
|
|
+ (
|
|
|
+ 'fast' => array('生成卡号', '"add&where_id=1&search_option_info_id={id}"', '{status} == 1'),
|
|
|
+
|
|
|
+ 'list1' => array('卡号列表', '"code&search_option_info_id={id}&oper_table=info"'),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|