star.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. # 定义几个常用的选项
  3. $status = array
  4. (
  5. 1 => '在线',
  6. 2 => '下线',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'star',
  12. # 显示给用户看的名称
  13. 'lang' => '购买明星设置',
  14. 'order' => 100,
  15. 'menu' => false,
  16. 'end' => array
  17. (
  18. 'insert' => 'journal/lib/manage.setStarCache',
  19. 'update' => 'journal/lib/manage.setStarCache',
  20. ),
  21. # 数据结构
  22. 'struct' => array
  23. (
  24. 'id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => 'ID',
  28. 'default' => '',
  29. 'desc' => '',
  30. 'match' => 'is_numeric',
  31. 'search' => 'order',
  32. //'list' => true,
  33. ),
  34. 'info_id' => array
  35. (
  36. 'type' => 'int-11',
  37. 'name' => '电子刊',
  38. 'default' => '',
  39. 'desc' => '电子刊',
  40. 'match' => 'is_numeric',
  41. 'update' => 'hidden',
  42. 'value' => Dever::input('search_option_info_id')
  43. ),
  44. 'name' => array
  45. (
  46. 'type' => 'varchar-80',
  47. 'name' => '明星姓名',
  48. 'default' => '',
  49. 'desc' => '明星姓名',
  50. 'match' => 'option',
  51. 'update' => 'text',
  52. //'search' => 'fulltext',
  53. 'list' => true,
  54. ),
  55. 'avatar' => array
  56. (
  57. 'type' => 'varchar-150',
  58. 'name' => '明星头像-图片尺寸150*150px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  59. 'default' => '',
  60. 'desc' => '明星头像',
  61. 'match' => 'is_string',
  62. 'update' => 'image',
  63. 'key' => '1',
  64. 'place' => '150',
  65. ),
  66. 'num_ratio_ding' => array
  67. (
  68. 'type' => 'varchar-20',
  69. 'name' => '订阅系数-系数不能小于等于0,支持两位小数,当前明星总订阅量=(用户当前订阅数+订阅基数)*订阅系数',
  70. 'default' => '1',
  71. 'desc' => '手动增加订阅系数',
  72. 'match' => 'is_string',
  73. 'update' => 'text',
  74. ),
  75. 'num_add_ding' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '订阅基数',
  79. 'default' => '0',
  80. 'desc' => '手动增加阅读数',
  81. 'match' => 'option',
  82. 'update' => 'text',
  83. ),
  84. 'num_ding' => array
  85. (
  86. 'type' => 'int-11',
  87. 'name' => '订阅数',
  88. 'default' => '0',
  89. 'desc' => '请填写订阅数',
  90. 'match' => 'option',
  91. 'search' => 'order',
  92. 'list' => 'Dever::load("journal/lib/manage.starDing?id={id}")',
  93. ),
  94. 'reorder' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '排序(数值越大越靠前)',
  98. 'default' => '1',
  99. 'desc' => '请输入排序',
  100. 'match' => 'option',
  101. 'update' => 'text',
  102. 'search' => 'order',
  103. 'list_name' => '排序',
  104. 'list' => true,
  105. 'order' => 'desc',
  106. 'edit' => true,
  107. ),
  108. 'state' => array
  109. (
  110. 'type' => 'tinyint-1',
  111. 'name' => '状态',
  112. 'default' => '1',
  113. 'desc' => '请选择状态',
  114. 'match' => 'is_numeric',
  115. ),
  116. 'cdate' => array
  117. (
  118. 'type' => 'int-11',
  119. 'name' => '添加时间',
  120. 'match' => array('is_numeric', time()),
  121. 'desc' => '',
  122. # 只有insert时才生效
  123. 'insert' => true,
  124. //'search' => 'date',
  125. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  126. ),
  127. ),
  128. 'manage' => array
  129. (
  130. ),
  131. 'request' => array
  132. (
  133. ),
  134. );