config.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. $ios_pay = array
  3. (
  4. 1 => '关闭小程序支付',
  5. 2 => '开启公众号支付',
  6. 3 => '开启小程序支付',
  7. );
  8. $video = array
  9. (
  10. 1 => '显示',
  11. 2 => '不显示',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'config',
  17. # 显示给用户看的名称
  18. 'lang' => '基本配置',
  19. 'order' => 1,
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => '系统ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. ),
  31. 'hr1' => array
  32. (
  33. 'name' => '通用设置',
  34. 'class' => '',//本项必须填写
  35. 'attr' => '',
  36. ),
  37. 'name' => array
  38. (
  39. 'type' => 'varchar-32',
  40. 'name' => '站点名称',
  41. 'default' => '',
  42. 'desc' => '请输入站点名称',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. ),
  46. 'info' => array
  47. (
  48. 'type' => 'text-255',
  49. 'name' => '站点名称',
  50. 'default' => '',
  51. 'desc' => '请输入站点名称',
  52. 'match' => 'option',
  53. 'update' => 'textarea',
  54. ),
  55. 'logo' => array
  56. (
  57. 'type' => 'varchar-150',
  58. 'name' => 'logo图片',
  59. 'default' => '',
  60. 'desc' => 'logo图片',
  61. 'match' => 'option',
  62. 'update' => 'image',
  63. 'key' => '1',
  64. 'place' => '150',
  65. ),
  66. 'email_link' => array
  67. (
  68. 'type' => 'varchar-300',
  69. 'name' => '企业邮箱登录地址',
  70. 'default' => '',
  71. 'desc' => '企业邮箱登录地址',
  72. 'match' => 'option',
  73. 'update' => 'textarea',
  74. ),
  75. 'buy_link' => array
  76. (
  77. 'type' => 'varchar-300',
  78. 'name' => '报刊订阅链接',
  79. 'default' => '',
  80. 'desc' => '报刊订阅链接',
  81. 'match' => 'option',
  82. 'update' => 'textarea',
  83. ),
  84. 'foot' => array
  85. (
  86. 'type' => 'text-255',
  87. 'name' => '底部联系信息',
  88. 'default' => '',
  89. 'desc' => '底部联系信息',
  90. 'match' => 'option',
  91. 'update' => 'editor',
  92. ),
  93. 'cdate' => array
  94. (
  95. 'type' => 'int-11',
  96. 'name' => '录入时间',
  97. 'match' => array('is_numeric', time()),
  98. 'desc' => '',
  99. # 只有insert时才生效
  100. 'insert' => true,
  101. ),
  102. ),
  103. 'default' => array
  104. (
  105. 'col' => 'name,info,cdate',
  106. 'value' => array
  107. (
  108. '"SG精品网","SG精品网",' . time(),
  109. ),
  110. ),
  111. 'manage' => array
  112. (
  113. # 后台管理不要列表页
  114. 'list' => 'update',
  115. ),
  116. );