help.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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' => 'help',
  17. # 显示给用户看的名称
  18. 'lang' => '帮助中心',
  19. # 后台菜单排序
  20. 'order' => 1,
  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. 'order' => 'desc',
  34. ),
  35. 'name' => array
  36. (
  37. 'type' => 'varchar-80',
  38. 'name' => '标题',
  39. 'default' => '',
  40. 'desc' => '标题',
  41. 'match' => 'is_string',
  42. 'update' => 'text',
  43. 'search' => 'fulltext',
  44. 'list' => true,
  45. ),
  46. 'desc' => array
  47. (
  48. 'type' => 'varchar-500',
  49. 'name' => '描述',
  50. 'default' => '',
  51. 'desc' => '描述',
  52. 'match' => 'option',
  53. 'update' => 'textarea',
  54. ),
  55. 'type' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '帮助类型',
  59. 'default' => '1',
  60. 'desc' => '帮助类型',
  61. 'match' => 'is_numeric',
  62. 'update' => 'radio',
  63. 'option' => $type,
  64. 'search' => 'select',
  65. 'list' => true,
  66. ),
  67. 'content' => array
  68. (
  69. 'type' => 'text-255',
  70. 'name' => '内容',
  71. 'default' => '',
  72. 'desc' => '内容',
  73. 'match' => 'is_string',
  74. 'update' => 'editor',
  75. //'list_name' => '链接',
  76. //'list' => 'Dever::load("content/lib/page.link", {id})',
  77. ),
  78. 'state' => array
  79. (
  80. 'type' => 'tinyint-1',
  81. 'name' => '状态',
  82. 'default' => '1',
  83. 'desc' => '请选择状态',
  84. 'match' => 'is_numeric',
  85. ),
  86. 'cdate' => array
  87. (
  88. 'type' => 'int-11',
  89. 'name' => '录入时间',
  90. 'match' => array('is_numeric', time()),
  91. 'desc' => '',
  92. # 只有insert时才生效
  93. 'insert' => true,
  94. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  95. ),
  96. ),
  97. 'manage' => array
  98. (
  99. ),
  100. 'request' => array
  101. (
  102. )
  103. );
  104. return $config;