config_card.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config_card',
  6. # 显示给用户看的名称
  7. 'lang' => '用户充值卡',
  8. 'menu' => false,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. 'search' => 'order',
  20. 'list' => true,
  21. ),
  22. 'config_id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => '账户id',
  26. 'default' => '',
  27. 'desc' => '账户id',
  28. 'match' => 'is_numeric',
  29. 'update' => 'hidden',
  30. 'value' => Dever::input('set_config_id'),
  31. ),
  32. 'name' => array
  33. (
  34. 'type' => 'varchar-150',
  35. 'name' => '充值卡名称',
  36. 'default' => '',
  37. 'desc' => '充值卡名称',
  38. 'match' => 'is_numeric',
  39. 'update' => 'text',
  40. 'list' => true,
  41. ),
  42. 'cash' => array
  43. (
  44. 'type' => 'varchar-100',
  45. 'name' => '充值卡金额',
  46. 'default' => '',
  47. 'desc' => '充值卡金额',
  48. 'match' => 'is_string',
  49. 'update' => 'text',
  50. 'list' => true,
  51. ),
  52. 'pay' => array
  53. (
  54. 'type' => 'varchar-100',
  55. 'name' => '支付金额',
  56. 'default' => '',
  57. 'desc' => '支付金额',
  58. 'match' => 'is_string',
  59. 'update' => 'text',
  60. 'list' => true,
  61. ),
  62. 'reorder' => array
  63. (
  64. 'type' => 'int-11',
  65. 'name' => '排序(数值越大越靠前)',
  66. 'default' => '1',
  67. 'desc' => '请输入排序',
  68. 'match' => 'option',
  69. 'update' => 'text',
  70. 'search' => 'order',
  71. 'list_name' => '排序',
  72. 'list' => true,
  73. 'order' => 'desc',
  74. 'edit' => true,
  75. ),
  76. 'state' => array
  77. (
  78. 'type' => 'tinyint-1',
  79. 'name' => '状态',
  80. 'default' => '1',
  81. 'desc' => '请选择状态',
  82. 'match' => 'is_numeric',
  83. ),
  84. 'cdate' => array
  85. (
  86. 'type' => 'int-11',
  87. 'name' => '交易时间',
  88. 'match' => array('is_numeric', time()),
  89. 'desc' => '',
  90. # 只有insert时才生效
  91. 'insert' => true,
  92. 'search' => 'date',
  93. 'list_name' => '交易时间',
  94. 'list' => 'date("Y-m-d H:i", {cdate})',
  95. ),
  96. ),
  97. 'manage' => array
  98. (
  99. 'link' => 'parent=config.config_card',
  100. 'insert' => false,
  101. 'edit' => false,
  102. # 自定义快捷新增和编辑
  103. 'button' => array
  104. (
  105. '新增' => array('fast'),
  106. ),
  107. 'list_button' => array
  108. (
  109. 'edit' => array('编辑'),
  110. )
  111. ),
  112. 'request' => array
  113. (
  114. ),
  115. );