active.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'active',
  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. 'name' => array
  40. (
  41. 'type' => 'varchar-80',
  42. 'name' => '活动标题',
  43. 'default' => '',
  44. 'desc' => '活动标题',
  45. 'match' => 'is_string',
  46. 'update' => 'text',
  47. 'search' => 'fulltext',
  48. 'list' => true,
  49. ),
  50. 'desc' => array
  51. (
  52. 'type' => 'varchar-800',
  53. 'name' => '活动描述',
  54. 'default' => '',
  55. 'desc' => '活动描述',
  56. 'match' => 'option',
  57. 'update' => 'textarea',
  58. //'search' => 'fulltext',
  59. //'list' => true,
  60. ),
  61. 'invite_num' => array
  62. (
  63. 'type' => 'int-11',
  64. 'name' => '邀请多少个好友开启免费阅读',
  65. 'default' => '10',
  66. 'desc' => '邀请多少个好友开启免费阅读',
  67. 'match' => 'is_numeric',
  68. 'update' => 'text',
  69. ),
  70. 'invite_score' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '每邀请一个好友获得积分',
  74. 'default' => '2',
  75. 'desc' => '每邀请一个好友获得积分',
  76. 'match' => 'is_numeric',
  77. 'update' => 'text',
  78. ),
  79. 'invite_title' => array
  80. (
  81. 'type' => 'varchar-80',
  82. 'name' => '邀请好友标题',
  83. 'default' => '',
  84. 'desc' => '邀请好友标题',
  85. 'match' => 'is_string',
  86. 'update' => 'text',
  87. ),
  88. 'invite_desc' => array
  89. (
  90. 'type' => 'varchar-800',
  91. 'name' => '邀请好友标题介绍',
  92. 'default' => '',
  93. 'desc' => '邀请好友标题介绍',
  94. 'match' => 'is_string',
  95. 'update' => 'textarea',
  96. ),
  97. 'content' => array
  98. (
  99. 'type' => 'text-255',
  100. 'name' => '活动规则说明',
  101. 'default' => '',
  102. 'desc' => '活动规则说明',
  103. 'match' => 'is_string',
  104. 'update' => 'editor',
  105. 'key' => 1,
  106. ),
  107. 'state' => array
  108. (
  109. 'type' => 'tinyint-1',
  110. 'name' => '状态',
  111. 'default' => '1',
  112. 'desc' => '请选择状态',
  113. 'match' => 'is_numeric',
  114. ),
  115. 'cdate' => array
  116. (
  117. 'type' => 'int-11',
  118. 'name' => '创建时间',
  119. 'match' => array('is_numeric', time()),
  120. 'desc' => '',
  121. # 只有insert时才生效
  122. 'insert' => true,
  123. 'search' => 'date',
  124. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  125. ),
  126. ),
  127. 'manage' => array
  128. (
  129. ),
  130. );