page.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. $type = array
  3. (
  4. 1 => '门店销售',
  5. 2 => '门店管理',
  6. 3 => '仓库管理',
  7. 4 => '工厂管理',
  8. 5 => '网站',
  9. 6 => '代理商',
  10. 7 => '期权',
  11. 8 => '商学院',
  12. );
  13. $config = array
  14. (
  15. # 表名
  16. 'name' => 'page',
  17. # 显示给用户看的名称
  18. 'lang' => '单页管理',
  19. # 后台菜单排序
  20. 'order' => 2,
  21. 'check' => 'key,type',
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. //'search' => 'order',
  33. //'list' => true,
  34. 'order' => 'desc',
  35. ),
  36. 'name' => array
  37. (
  38. 'type' => 'varchar-80',
  39. 'name' => '标题',
  40. 'default' => '',
  41. 'desc' => '标题',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. ),
  47. 'type' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '类型',
  51. 'default' => '1',
  52. 'desc' => '类型',
  53. 'match' => 'is_numeric',
  54. 'update' => 'radio',
  55. 'option' => $type,
  56. 'search' => 'select',
  57. 'list' => true,
  58. ),
  59. 'key' => array
  60. (
  61. 'type' => 'varchar-80',
  62. 'name' => '标识',
  63. 'default' => '',
  64. 'desc' => '标识',
  65. 'match' => 'is_string',
  66. 'update' => 'text',
  67. 'search' => 'fulltext',
  68. 'list' => true,
  69. ),
  70. 'content' => array
  71. (
  72. 'type' => 'text-255',
  73. 'name' => '内容',
  74. 'default' => '',
  75. 'desc' => '内容',
  76. 'match' => 'is_string',
  77. 'update' => 'editor',
  78. //'list_name' => '链接',
  79. //'list' => 'Dever::load("content/lib/page.link", {id})',
  80. ),
  81. 'state' => array
  82. (
  83. 'type' => 'tinyint-1',
  84. 'name' => '状态',
  85. 'default' => '1',
  86. 'desc' => '请选择状态',
  87. 'match' => 'is_numeric',
  88. ),
  89. 'cdate' => array
  90. (
  91. 'type' => 'int-11',
  92. 'name' => '录入时间',
  93. 'match' => array('is_numeric', time()),
  94. 'desc' => '',
  95. # 只有insert时才生效
  96. 'insert' => true,
  97. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  98. ),
  99. ),
  100. 'manage' => array
  101. (
  102. ),
  103. 'request' => array
  104. (
  105. )
  106. );
  107. return $config;