link.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. $config = array
  3. (
  4. # 表名
  5. 'name' => 'link',
  6. # 显示给用户看的名称
  7. 'lang' => '友情链接',
  8. # 后台菜单排序
  9. 'order' => 8,
  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. //'search' => 'order',
  21. //'list' => true,
  22. 'order' => 'desc',
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-180',
  27. 'name' => '标题',
  28. 'default' => '',
  29. 'desc' => '标题',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. ),
  35. 'link' => array
  36. (
  37. 'type' => 'varchar-500',
  38. 'name' => '链接',
  39. 'default' => '',
  40. 'desc' => '链接',
  41. 'match' => 'is_string',
  42. 'update' => 'textarea',
  43. ),
  44. 'pic' => array
  45. (
  46. 'type' => 'varchar-150',
  47. 'name' => 'logo图片-图片尺寸150*150px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  48. 'default' => '',
  49. 'desc' => '图片',
  50. 'match' => 'option',
  51. 'update' => 'image',
  52. 'key' => '1',
  53. 'place' => '150*150',
  54. //直接上传到云端
  55. //'upload' => 'qiniu',
  56. //上传大数据
  57. //'large' => true,
  58. ),
  59. 'reorder' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '排序(数值越大越靠前)',
  63. 'default' => '1',
  64. 'desc' => '请输入排序',
  65. 'match' => 'option',
  66. 'update' => 'text',
  67. 'search' => 'order',
  68. 'list' => true,
  69. 'order' => 'desc',
  70. 'edit' => true,
  71. ),
  72. 'state' => array
  73. (
  74. 'type' => 'tinyint-1',
  75. 'name' => '状态',
  76. 'default' => '1',
  77. 'desc' => '请选择状态',
  78. 'match' => 'is_numeric',
  79. ),
  80. 'cdate' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '录入时间',
  84. 'match' => array('is_numeric', time()),
  85. 'desc' => '',
  86. # 只有insert时才生效
  87. 'insert' => true,
  88. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  89. ),
  90. ),
  91. 'manage' => array
  92. (
  93. ),
  94. 'request' => array
  95. (
  96. )
  97. );
  98. return $config;