buy.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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' => '每购买一本刊获得20积分',
  62. 'desc' => '购买小刊介绍',
  63. 'match' => 'is_string',
  64. 'update' => 'textarea',
  65. ),
  66. 'buy_content' => array
  67. (
  68. 'type' => 'text-255',
  69. 'name' => '购买说明',
  70. 'default' => "<p>1、购买成功后可直接点击【开始阅读】查看阅读期刊内容;</p>
  71. <p>2、小刊为虚拟商品,如无系统问题,购买后不可退换;</p>
  72. <p>3、每购买一本小刊,可增加20积分;</p>
  73. <p>4、如有其他使用问题可咨询在线客服。</p>",
  74. 'desc' => '请输入内容',
  75. 'match' => 'is_string',
  76. 'update' => 'editor',
  77. 'key' => 1,
  78. ),
  79. 'state' => array
  80. (
  81. 'type' => 'tinyint-1',
  82. 'name' => '状态',
  83. 'default' => '1',
  84. 'desc' => '请选择状态',
  85. 'match' => 'is_numeric',
  86. ),
  87. 'cdate' => array
  88. (
  89. 'type' => 'int-11',
  90. 'name' => '创建时间',
  91. 'match' => array('is_numeric', time()),
  92. 'desc' => '',
  93. # 只有insert时才生效
  94. 'insert' => true,
  95. 'search' => 'date',
  96. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  97. ),
  98. ),
  99. 'manage' => array
  100. (
  101. ),
  102. );