help.php 2.8 KB

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