buy.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'buy',
  6. # 显示给用户看的名称
  7. 'lang' => '购买设置',
  8. 'menu' => false,
  9. 'end' => array
  10. (
  11. //'update' => 'service/lib/manage.feedback',
  12. //'insert' => 'service/lib/manage.feedback',
  13. ),
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => 'ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. 'search' => 'order',
  25. 'update' => 'hidden',
  26. 'value' => Dever::input('where_id')
  27. //'list' => true,
  28. ),
  29. 'info_id' => array
  30. (
  31. 'type' => 'int-11',
  32. 'name' => '小刊',
  33. 'default' => '',
  34. 'desc' => '小刊',
  35. 'match' => 'is_numeric',
  36. 'update' => 'hidden',
  37. 'value' => Dever::input('search_option_info_id')
  38. ),
  39. 'buy_score' => array
  40. (
  41. 'type' => 'int-11',
  42. 'name' => '每购买一本刊获得多少积分',
  43. 'default' => '20',
  44. 'desc' => '每购买一本刊获得多少积分',
  45. 'match' => 'is_numeric',
  46. 'update' => 'text',
  47. ),
  48. 'buy_title' => array
  49. (
  50. 'type' => 'varchar-80',
  51. 'name' => '购买小刊标题',
  52. 'default' => '',
  53. 'desc' => '购买小刊标题',
  54. 'match' => 'is_string',
  55. 'update' => 'text',
  56. ),
  57. 'buy_desc' => array
  58. (
  59. 'type' => 'varchar-800',
  60. 'name' => '购买小刊介绍',
  61. 'default' => '',
  62. 'desc' => '购买小刊介绍',
  63. 'match' => 'is_string',
  64. 'update' => 'textarea',
  65. ),
  66. 'buy_content' => array
  67. (
  68. 'type' => 'text-255',
  69. 'name' => '购买说明',
  70. 'default' => '',
  71. 'desc' => '请输入内容',
  72. 'match' => 'is_string',
  73. 'update' => 'editor',
  74. 'key' => 1,
  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' => 'date("Y-m-d H:i:s", {cdate})',
  94. ),
  95. ),
  96. 'manage' => array
  97. (
  98. ),
  99. );