page.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. $time = time();
  3. return array
  4. (
  5. # 表名
  6. 'name' => 'page',
  7. # 显示给用户看的名称
  8. 'lang' => '页面管理',
  9. # 后台菜单排序
  10. 'order' => 7,
  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' => 'order,fulltext',
  34. 'list' => '"<a href=\"".Dever::load("main/data.page", {id})."\" target=\"_blank\">{name}</a>"',
  35. ),
  36. 'state' => array
  37. (
  38. 'type' => 'tinyint-1',
  39. 'name' => '状态',
  40. 'default' => '1',
  41. 'desc' => '请选择状态',
  42. 'match' => 'is_numeric',
  43. ),
  44. 'cdate' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '录入时间',
  48. 'match' => array('is_numeric', $time),
  49. 'desc' => '',
  50. # 只有insert时才生效
  51. 'insert' => true,
  52. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  53. ),
  54. ),
  55. 'manage' => array
  56. (
  57. 'list_button' => array
  58. (
  59. //oper_save_jump=system&oper_parent=system 特殊配置 oper_save_jump保存之后跳到那个表的列表页 oper_parent下级列表页中显示返回上一页的链接
  60. 'add' => array('新增模块', '"model&project=forum&search_option_page={id}&oper_parent=page&oper_project=main"'),
  61. 'list' => array('模块列表', '"model&project=forum&search_option_page={id}&oper_parent=page&oper_project=main"'),
  62. ),
  63. ),
  64. # 默认值
  65. 'default' => array
  66. (
  67. 'col' => 'id,name,state,cdate',
  68. 'value' => array
  69. (
  70. '1,"首页",1,' . $time,
  71. '2,"列表页",1,' . $time,
  72. '3,"底层页",1,' . $time,
  73. '4,"发布页",1,' . $time,
  74. '5,"关于我",1,' . $time,
  75. ),
  76. ),
  77. );