page.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'page',
  6. # 显示给用户看的名称
  7. 'lang' => '页面配置',
  8. # 后台菜单排序
  9. 'order' => 3,
  10. 'menu' => false,
  11. 'check' => 'key',
  12. # 数据结构
  13. 'struct' => array
  14. (
  15. 'id' => array
  16. (
  17. 'type' => 'int-11',
  18. 'name' => 'ID',
  19. 'default' => '',
  20. 'desc' => '',
  21. 'match' => 'is_numeric',
  22. 'search' => 'order',
  23. 'list' => true,
  24. 'order' => 'desc',
  25. ),
  26. 'name' => array
  27. (
  28. 'type' => 'varchar-32',
  29. 'name' => '页面名称',
  30. 'default' => '',
  31. 'desc' => '页面名称',
  32. 'match' => 'is_string',
  33. 'update' => 'text',
  34. 'search' => 'fulltext',
  35. 'list' => true,
  36. ),
  37. 'key' => array
  38. (
  39. 'type' => 'varchar-60',
  40. 'name' => '页面标识',
  41. 'default' => '',
  42. 'desc' => '页面标识',
  43. 'match' => 'is_string',
  44. 'update' => Dever::input('where_id') ? 'hidden' : 'text',
  45. 'search' => 'fulltext',
  46. 'list' => true,
  47. ),
  48. 'desc' => array
  49. (
  50. 'type' => 'varchar-200',
  51. 'name' => '页面描述',
  52. 'default' => '',
  53. 'desc' => '页面描述',
  54. 'match' => 'is_string',
  55. 'update' => 'textarea',
  56. 'search' => 'fulltext',
  57. 'list' => true,
  58. ),
  59. 'state' => array
  60. (
  61. 'type' => 'tinyint-1',
  62. 'name' => '状态',
  63. 'default' => '1',
  64. 'desc' => '请选择状态',
  65. 'match' => 'is_numeric',
  66. ),
  67. 'cdate' => array
  68. (
  69. 'type' => 'int-11',
  70. 'name' => '录入时间',
  71. 'match' => array('is_numeric', time()),
  72. 'desc' => '',
  73. # 只有insert时才生效
  74. 'insert' => true,
  75. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  76. ),
  77. ),
  78. 'manage' => array
  79. (
  80. 'lang' => 'name,desc',
  81. 'insert' => false,
  82. 'edit' => false,
  83. # 自定义快捷新增和编辑
  84. 'button' => array
  85. (
  86. '新增' => array('fast'),
  87. ),
  88. # 快捷更新
  89. 'list_button' => array
  90. (
  91. 'edit' => array('编辑'),
  92. ),
  93. ),
  94. 'default' => array
  95. (
  96. 'col' => '`name`,`key`,`desc`,`state`,`cdate`',
  97. 'value' => array
  98. (
  99. '"默认页面","home","默认页面", 1,' . DEVER_TIME,
  100. ),
  101. ),
  102. 'request' => array
  103. (
  104. ),
  105. );