service_product_col.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. $identity = array
  3. (
  4. 1 => '个人',
  5. 2 => '个体户',
  6. 3 => '企业',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'service_product_col',
  12. # 显示给用户看的名称
  13. 'lang' => '产品字段管理',
  14. # 是否显示在后台菜单
  15. 'order' => -10,
  16. 'menu' => false,
  17. 'check' => 'product_id,key',
  18. # 数据结构
  19. 'struct' => array
  20. (
  21. 'id' => array
  22. (
  23. 'type' => 'int-11',
  24. 'name' => 'ID',
  25. 'default' => '',
  26. 'desc' => '',
  27. 'match' => 'is_numeric',
  28. 'list' => true,
  29. 'order' => 'desc',
  30. ),
  31. 'product_id' => array
  32. (
  33. 'type' => 'int-11',
  34. 'name' => '产品id',
  35. 'default' => '1',
  36. 'desc' => '产品id',
  37. 'match' => 'is_numeric',
  38. 'update' => 'hidden',
  39. 'value' => Dever::input('search_option_product_id'),
  40. ),
  41. 'name' => array
  42. (
  43. 'type' => 'varchar-150',
  44. 'name' => '字段名称',
  45. 'default' => '',
  46. 'desc' => '字段名称',
  47. 'match' => 'is_string',
  48. 'update' => 'text',
  49. 'search' => 'fulltext',
  50. 'list' => true,
  51. ),
  52. 'key' => array
  53. (
  54. 'type' => 'varchar-150',
  55. 'name' => '字段标识',
  56. 'default' => '',
  57. 'desc' => '字段标识',
  58. 'match' => 'is_string',
  59. 'update' => 'text',
  60. 'search' => 'fulltext',
  61. 'list' => true,
  62. ),
  63. 'default' => array
  64. (
  65. 'type' => 'varchar-300',
  66. 'name' => '字段默认值',
  67. 'default' => '',
  68. 'desc' => '字段默认值',
  69. 'match' => 'is_string',
  70. 'update' => 'text',
  71. 'search' => 'fulltext',
  72. 'list' => true,
  73. ),
  74. 'reorder' => array
  75. (
  76. 'type' => 'int-11',
  77. 'name' => '排序(数值越大越靠前)',
  78. 'default' => '1',
  79. 'desc' => '请输入排序',
  80. 'match' => 'option',
  81. //'update' => 'text',
  82. 'search' => 'order',
  83. 'list_name' => '排序',
  84. 'list' => true,
  85. 'order' => 'desc',
  86. 'edit' => true,
  87. ),
  88. 'state' => array
  89. (
  90. 'type' => 'tinyint-1',
  91. 'name' => '状态',
  92. 'default' => '1',
  93. 'desc' => '请选择状态',
  94. 'match' => 'is_numeric',
  95. ),
  96. 'cdate' => array
  97. (
  98. 'type' => 'int-11',
  99. 'name' => '录入时间',
  100. 'match' => array('is_numeric', time()),
  101. 'desc' => '',
  102. # 只有insert时才生效
  103. 'insert' => true,
  104. //'search' => 'date',
  105. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  106. ),
  107. ),
  108. 'manage' => array
  109. (
  110. 'insert' => false,
  111. 'edit' => false,
  112. # 自定义快捷新增和编辑
  113. 'button' => array
  114. (
  115. '新增' => array('fast'),
  116. ),
  117. 'list_button' => array
  118. (
  119. 'edit' => array('编辑'),
  120. )
  121. ),
  122. 'request' => array
  123. (
  124. )
  125. );