info.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'info',
  6. # 显示给用户看的名称
  7. 'lang' => '短域名',
  8. # 是否显示在后台菜单
  9. 'order' => 1,
  10. 'menu' => false,
  11. 'auto' => 10000000,
  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. 'order' => 'asc',
  23. 'list' => true,
  24. ),
  25. 'url' => array
  26. (
  27. 'type' => 'varchar-800',
  28. 'name' => '转换的url',
  29. 'default' => '',
  30. 'desc' => '转换的url',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. 'search' => 'fulltext',
  34. 'list' => true,
  35. ),
  36. 'key' => array
  37. (
  38. 'type' => 'varchar-32',
  39. 'name' => '关键字',
  40. 'default' => '',
  41. 'desc' => '关键字',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. ),
  47. 'state' => array
  48. (
  49. 'type' => 'tinyint-1',
  50. 'name' => '状态',
  51. 'default' => '1',
  52. 'desc' => '请选择状态',
  53. 'match' => 'is_numeric',
  54. ),
  55. 'cdate' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '录入时间',
  59. 'match' => array('is_numeric', time()),
  60. 'desc' => '',
  61. # 只有insert时才生效
  62. 'insert' => true,
  63. 'search' => 'date',
  64. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  65. ),
  66. ),
  67. 'manage' => array
  68. (
  69. ),
  70. 'request' => array
  71. (
  72. )
  73. );