config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config',
  6. # 显示给用户看的名称
  7. 'lang' => '新增兑换码',
  8. 'order' => 1,
  9. 'menu' => false,
  10. 'end' => array
  11. (
  12. 'update' => 'code/lib/manage.create',
  13. 'insert' => 'code/lib/manage.create',
  14. ),
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => '系统ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. 'value' => Dever::input('where_id'),
  26. ),
  27. 'product_id' => array
  28. (
  29. 'type' => 'int-11',
  30. 'name' => '选择小刊',
  31. 'default' => '',
  32. 'desc' => '选择小刊',
  33. 'match' => 'option',
  34. 'update' => 'select',
  35. 'update_search' => 'journal/lib/manage.search_journal',
  36. ),
  37. 'num' => array
  38. (
  39. 'type' => 'varchar-32',
  40. 'name' => '兑换码数量',
  41. 'default' => '',
  42. 'desc' => '请输入兑换码数量',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. 'value' => '',
  46. ),
  47. 'cdate' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '录入时间',
  51. 'match' => array('is_numeric', time()),
  52. 'desc' => '',
  53. # 只有insert时才生效
  54. 'insert' => true,
  55. ),
  56. ),
  57. 'manage' => array
  58. (
  59. # 后台管理不要列表页
  60. 'list' => 'update',
  61. ),
  62. );