help.php 2.8 KB

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