page.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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' => true,
  78. 'order' => 'asc',
  79. 'edit' => true,
  80. ),
  81. 'pdate' => array
  82. (
  83. 'type' => 'int-11',
  84. 'name' => '发布时间',
  85. 'match' => array('is_numeric', time()),
  86. 'default' => '',
  87. 'desc' => '',
  88. 'update' => 'date',
  89. 'callback' => 'maketime',
  90. 'list' => 'date("Y-m-d H:i", {pdate})',
  91. ),
  92. 'state' => array
  93. (
  94. 'type' => 'tinyint-1',
  95. 'name' => '状态',
  96. 'default' => '1',
  97. 'desc' => '请选择状态',
  98. 'match' => 'is_numeric',
  99. ),
  100. 'cdate' => array
  101. (
  102. 'type' => 'int-11',
  103. 'name' => '录入时间',
  104. 'match' => array('is_numeric', time()),
  105. 'desc' => '',
  106. # 只有insert时才生效
  107. 'insert' => true,
  108. 'list' => 'date("Y-m-d H:i", {cdate})',
  109. ),
  110. ),
  111. 'manage' => array
  112. (
  113. 'lang' => 'name,desc',
  114. 'insert' => false,
  115. 'edit' => false,
  116. # 自定义快捷新增和编辑
  117. 'button' => array
  118. (
  119. '新增' => array('fast'),
  120. ),
  121. # 快捷更新
  122. 'list_button' => array
  123. (
  124. 'edit' => array('编辑'),
  125. ),
  126. ),
  127. 'default' => array
  128. (
  129. 'col' => '`name`,`key`,`desc`,`state`,`pdate`,`cdate`',
  130. 'value' => array
  131. (
  132. '"默认页面","home","默认页面", 1,' . DEVER_TIME . ',' . DEVER_TIME,
  133. ),
  134. ),
  135. 'request' => array
  136. (
  137. ),
  138. );