factory_config.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'factory_config',
  11. # 显示给用户看的名称
  12. 'lang' => '供应链基础信息',
  13. 'order' => 1,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => '平台ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-32',
  28. 'name' => '供应链名称',
  29. 'default' => '',
  30. 'desc' => '供应链名称',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. ),
  34. 'info' => array
  35. (
  36. 'type' => 'varchar-1000',
  37. 'name' => '供应链业务描述',
  38. 'default' => '',
  39. 'desc' => '供应链业务描述',
  40. 'match' => 'option',
  41. 'update' => 'textarea',
  42. ),
  43. 'kf_name' => array
  44. (
  45. 'type' => 'varchar-100',
  46. 'name' => '客服姓名',
  47. 'default' => '',
  48. 'desc' => '客服姓名',
  49. 'match' => 'option',
  50. 'update' => 'text',
  51. ),
  52. 'phone' => array
  53. (
  54. 'type' => 'varchar-100',
  55. 'name' => '客服电话',
  56. 'default' => '',
  57. 'desc' => '请输入客服电话',
  58. 'match' => 'option',
  59. 'update' => 'text',
  60. ),
  61. 'dz_phone' => array
  62. (
  63. 'type' => 'varchar-100',
  64. 'name' => '对账专员电话',
  65. 'default' => '',
  66. 'desc' => '请输入对账专员电话',
  67. 'match' => 'option',
  68. 'update' => 'text',
  69. ),
  70. 'foot' => array
  71. (
  72. 'type' => 'text-255',
  73. 'name' => '底部信息',
  74. 'default' => '',
  75. 'desc' => '底部信息',
  76. 'match' => 'option',
  77. 'update' => 'editor',
  78. 'key' => '1',
  79. ),
  80. 'state' => array
  81. (
  82. 'type' => 'tinyint-1',
  83. 'name' => '状态',
  84. 'default' => '1',
  85. 'desc' => '请选择状态',
  86. 'match' => 'is_numeric',
  87. ),
  88. 'cdate' => array
  89. (
  90. 'type' => 'int-11',
  91. 'name' => '录入时间',
  92. 'match' => array('is_numeric', time()),
  93. 'desc' => '',
  94. # 只有insert时才生效
  95. 'insert' => true,
  96. ),
  97. ),
  98. 'default' => array
  99. (
  100. 'col' => 'name,info,cdate',
  101. 'value' => array
  102. (
  103. '"供应链管理","供应链管理",' . time(),
  104. ),
  105. ),
  106. 'manage' => array
  107. (
  108. # 后台管理不要列表页
  109. 'list' => 'update',
  110. ),
  111. );