help.php 2.5 KB

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