push_sell.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. $mid = Dever::input('search_option_mid');
  3. $status = array
  4. (
  5. 1 => '发放成功',
  6. 2 => '发放失败',
  7. );
  8. $type = array
  9. (
  10. 1 => '个人业绩',
  11. 2 => '团队业绩',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'push_sell',
  17. # 显示给用户看的名称
  18. 'lang' => '发放业绩',
  19. 'order' => 99,
  20. 'menu' => false,
  21. 'end' => array
  22. (
  23. 'insert' => 'bill/lib/manage.sellUpdate',
  24. ),
  25. # 数据结构
  26. 'struct' => array
  27. (
  28. 'id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => 'ID',
  32. 'default' => '',
  33. 'desc' => '',
  34. 'match' => 'is_numeric',
  35. 'search' => 'order',
  36. //'list' => true,
  37. ),
  38. 'mid' => array
  39. (
  40. 'type' => 'int-11',
  41. 'name' => '代理商',
  42. 'default' => '-1',
  43. 'desc' => '代理商',
  44. 'match' => 'is_string',
  45. 'update' => 'hidden',
  46. 'value' => $mid,
  47. ),
  48. 'type' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '发放类型',
  52. 'default' => '1',
  53. 'desc' => '发放类型',
  54. 'match' => 'is_numeric',
  55. 'option' => $type,
  56. 'update' => 'radio',
  57. ),
  58. 'num' => array
  59. (
  60. 'type' => 'decimal-11,2',
  61. 'name' => '发放业绩金额-金额单位为元',
  62. 'default' => '',
  63. 'desc' => '发放业绩金额',
  64. 'match' => 'is_numeric',
  65. 'update' => 'text',
  66. ),
  67. 'desc' => array
  68. (
  69. 'type' => 'varchar-600',
  70. 'name' => '发放说明',
  71. 'default' => '',
  72. 'desc' => '发放说明',
  73. 'match' => 'option',
  74. 'update' => 'textarea',
  75. ),
  76. 'admin_founder' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '插入操作人',
  80. 'default' => '',
  81. 'desc' => '',
  82. 'match' => 'is_numeric',
  83. 'search' => 'order',
  84. //'list' => true,
  85. ),
  86. 'admin_editor' => array
  87. (
  88. 'type' => 'int-11',
  89. 'name' => '更新操作人',
  90. 'default' => '',
  91. 'desc' => '',
  92. 'match' => 'is_numeric',
  93. 'search' => 'order',
  94. //'list' => true,
  95. ),
  96. 'status' => array
  97. (
  98. 'type' => 'int-11',
  99. 'name' => '发放状态',
  100. 'default' => '1',
  101. 'desc' => '发放状态',
  102. 'match' => 'is_numeric',
  103. 'update' => 'hidden',
  104. 'option' => $status,
  105. ),
  106. 'state' => array
  107. (
  108. 'type' => 'tinyint-1',
  109. 'name' => '状态',
  110. 'default' => '1',
  111. 'desc' => '请选择状态',
  112. 'match' => 'is_numeric',
  113. ),
  114. 'cdate' => array
  115. (
  116. 'type' => 'int-11',
  117. 'name' => '交易时间',
  118. 'match' => array('is_numeric', time()),
  119. 'desc' => '',
  120. # 只有insert时才生效
  121. //'insert' => true,
  122. 'update' => 'date',
  123. 'search' => 'date',
  124. 'list' => 'date("Y-m-d H:i", {cdate})',
  125. 'list_order' => 2,
  126. ),
  127. ),
  128. 'manage' => array
  129. (
  130. 'insert' => false,
  131. 'delete' => false,
  132. 'edit' => false,
  133. 'page_list' => 'push_sell',
  134. 'list_button' => array
  135. (
  136. ),
  137. ),
  138. 'request' => array
  139. (
  140. ),
  141. );