order_process.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. $status = array
  3. (
  4. 1 => '初审',
  5. 2 => '终审',
  6. 3 => '权益发放',
  7. );
  8. $type = array
  9. (
  10. 1 => '支付已确认',
  11. 2 => '权益已确认发放',
  12. 3 => '分润已确认发放',
  13. 4 => '期权已确认发放',
  14. 5 => '代理合同已生成',
  15. );
  16. return array
  17. (
  18. # 表名
  19. 'name' => 'order_process',
  20. # 显示给用户看的名称
  21. 'lang' => '订单审核进度表',
  22. 'menu' => false,
  23. 'status' => $status,
  24. # 数据结构
  25. 'struct' => array
  26. (
  27. 'id' => array
  28. (
  29. 'type' => 'int-11',
  30. 'name' => 'ID',
  31. 'default' => '',
  32. 'desc' => '',
  33. 'match' => 'is_numeric',
  34. 'search' => 'order',
  35. 'update' => 'hidden',
  36. //'list' => true,
  37. ),
  38. 'order_id' => array
  39. (
  40. 'type' => 'int-11',
  41. 'name' => '订单表id',
  42. 'default' => '',
  43. 'desc' => '订单表id',
  44. 'match' => 'is_numeric',
  45. ),
  46. 'status' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '状态',
  50. 'default' => '1',
  51. 'desc' => '状态',
  52. 'match' => 'is_numeric',
  53. 'update' => 'radio',
  54. 'option' => $status,
  55. 'search' => 'select',
  56. 'control' => 'status',
  57. ),
  58. 'desc' => array
  59. (
  60. 'type' => 'varchar-400',
  61. 'name' => '备注',
  62. 'default' => '',
  63. 'desc' => '备注',
  64. 'match' => 'is_string',
  65. 'update' => 'text',
  66. 'search' => 'fulltext',
  67. 'list' => true,
  68. 'show' => 'type=1,2',
  69. ),
  70. 'type' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '权益发放情况',
  74. 'default' => '1',
  75. 'desc' => '权益发放情况',
  76. 'match' => 'is_numeric',
  77. 'update' => 'radio',
  78. 'option' => $type,
  79. 'search' => 'select',
  80. 'show' => 'type=3',
  81. ),
  82. 'state' => array
  83. (
  84. 'type' => 'tinyint-1',
  85. 'name' => '状态',
  86. 'default' => '1',
  87. 'desc' => '请选择状态',
  88. 'match' => 'is_numeric',
  89. ),
  90. 'cdate' => array
  91. (
  92. 'type' => 'int-11',
  93. 'name' => '创建时间',
  94. 'match' => array('is_numeric', time()),
  95. 'desc' => '',
  96. # 只有insert时才生效
  97. //'insert' => true,
  98. 'search' => 'date',
  99. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  100. ),
  101. ),
  102. 'manage' => array
  103. (
  104. 'insert' => false,
  105. 'delete' => false,
  106. 'page_list' => 'order_process',
  107. ),
  108. 'request' => array
  109. (
  110. ),
  111. );