host.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'host',
  6. # 显示给用户看的名称
  7. 'lang' => '域名管理',
  8. # 是否显示在后台菜单
  9. 'order' => -1,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. 'order' => 'asc',
  21. 'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-100',
  26. 'name' => '域名',
  27. 'default' => '',
  28. 'desc' => '域名',
  29. 'match' => 'is_string',
  30. 'update' => 'text',
  31. 'search' => 'fulltext',
  32. 'list' => true,
  33. ),
  34. 'state' => array
  35. (
  36. 'type' => 'tinyint-1',
  37. 'name' => '状态',
  38. 'default' => '1',
  39. 'desc' => '请选择状态',
  40. 'match' => 'is_numeric',
  41. ),
  42. 'cdate' => array
  43. (
  44. 'type' => 'int-11',
  45. 'name' => '录入时间',
  46. 'match' => array('is_numeric', time()),
  47. 'desc' => '',
  48. # 只有insert时才生效
  49. 'insert' => true,
  50. 'search' => 'date',
  51. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  52. ),
  53. ),
  54. 'manage' => array
  55. (
  56. 'delete' => false,
  57. ),
  58. 'default' => array
  59. (
  60. 'col' => 'id, name,state,cdate',
  61. 'value' => array
  62. (
  63. '1, "http://u.buykey.cn/",1,' . DEVER_TIME,
  64. ),
  65. ),
  66. 'request' => array
  67. (
  68. )
  69. );