page.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'page',
  6. # 显示给用户看的名称
  7. 'lang' => '页面列表',
  8. # 后台菜单排序
  9. 'order' => 1,
  10. 'check' => 'key',
  11. # 数据结构
  12. 'struct' => array
  13. (
  14. 'id' => array
  15. (
  16. 'type' => 'int-11',
  17. 'name' => 'ID',
  18. 'default' => '',
  19. 'desc' => '',
  20. 'match' => 'is_numeric',
  21. 'search' => 'order',
  22. 'list' => true,
  23. 'order' => 'desc',
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-32',
  28. 'name' => '页面名称',
  29. 'default' => '',
  30. 'desc' => '页面名称',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. 'search' => 'fulltext',
  34. 'list' => true,
  35. ),
  36. 'key' => array
  37. (
  38. 'type' => 'varchar-60',
  39. 'name' => '页面标识',
  40. 'default' => '',
  41. 'desc' => '页面标识',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. ),
  47. 'pic' => array
  48. (
  49. 'type' => 'varchar-150',
  50. 'name' => '页面图片',
  51. 'default' => '',
  52. 'desc' => '页面图片',
  53. 'match' => 'option',
  54. 'update' => 'image',
  55. 'key' => 1,
  56. ),
  57. 'desc' => array
  58. (
  59. 'type' => 'varchar-2000',
  60. 'name' => '页面描述',
  61. 'default' => '',
  62. 'desc' => '页面描述',
  63. 'match' => 'is_string',
  64. 'update' => 'textarea',
  65. 'search' => 'fulltext',
  66. 'list' => true,
  67. ),
  68. 'reorder' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '排序(数值越大越靠前)',
  72. 'default' => '1',
  73. 'desc' => '请输入排序',
  74. 'match' => 'option',
  75. 'update' => 'text',
  76. 'search' => 'order',
  77. 'list_name' => '排序',
  78. 'list' => true,
  79. 'order' => 'desc',
  80. 'edit' => true,
  81. ),
  82. 'pdate' => array
  83. (
  84. 'type' => 'int-11',
  85. 'name' => '发布时间',
  86. 'match' => array('is_numeric', time()),
  87. 'default' => '',
  88. 'desc' => '',
  89. 'update' => 'date',
  90. 'callback' => 'maketime',
  91. 'list' => 'date("Y-m-d H:i", {pdate})',
  92. ),
  93. 'state' => array
  94. (
  95. 'type' => 'tinyint-1',
  96. 'name' => '状态',
  97. 'default' => '1',
  98. 'desc' => '请选择状态',
  99. 'match' => 'is_numeric',
  100. ),
  101. 'cdate' => array
  102. (
  103. 'type' => 'int-11',
  104. 'name' => '录入时间',
  105. 'match' => array('is_numeric', time()),
  106. 'desc' => '',
  107. # 只有insert时才生效
  108. 'insert' => true,
  109. 'list' => 'date("Y-m-d H:i", {cdate})',
  110. ),
  111. ),
  112. 'manage' => array
  113. (
  114. 'lang' => 'name,desc',
  115. 'insert' => false,
  116. 'edit' => false,
  117. # 自定义快捷新增和编辑
  118. 'button' => array
  119. (
  120. '新增' => array('fast'),
  121. ),
  122. # 快捷更新
  123. 'list_button' => array
  124. (
  125. 'edit' => array('编辑'),
  126. ),
  127. ),
  128. 'default' => array
  129. (
  130. 'col' => '`name`,`key`,`desc`,`state`,`pdate`,`cdate`',
  131. 'value' => array
  132. (
  133. '"默认页面","home","默认页面", 1,' . DEVER_TIME . ',' . DEVER_TIME,
  134. ),
  135. ),
  136. 'request' => array
  137. (
  138. ),
  139. );