link.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. $type = array
  3. (
  4. 1 => 'H5',
  5. //2 => '小程序',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'link',
  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. 'list' => true,
  25. ),
  26. 'name' => array
  27. (
  28. 'type' => 'varchar-80',
  29. 'name' => '名称',
  30. 'default' => '',
  31. 'desc' => '请输入名称',
  32. 'match' => 'is_string',
  33. 'update' => 'text',
  34. 'search' => 'fulltext',
  35. 'list' => true,
  36. ),
  37. 'type' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => '类型',
  41. 'default' => '1',
  42. 'desc' => '类型',
  43. 'match' => 'is_numeric',
  44. 'update' => 'select',
  45. 'option' => $type,
  46. 'search' => 'select',
  47. 'list' => true,
  48. ),
  49. 'link' => array
  50. (
  51. 'type' => 'varchar-500',
  52. 'name' => '链接或路径-填写完整的h5链接或者小程序路径',
  53. 'default' => '',
  54. 'desc' => '链接或路径',
  55. 'match' => 'is_string',
  56. 'update' => 'text',
  57. 'search' => 'fulltext',
  58. 'list' => true,
  59. ),
  60. 'state' => array
  61. (
  62. 'type' => 'tinyint-1',
  63. 'name' => '状态',
  64. 'default' => '1',
  65. 'desc' => '请选择状态',
  66. 'match' => 'is_numeric',
  67. ),
  68. 'cdate' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '录入时间',
  72. 'match' => array('is_numeric', time()),
  73. 'desc' => '',
  74. # 只有insert时才生效
  75. 'insert' => true,
  76. ),
  77. ),
  78. 'manage' => array
  79. (
  80. //'delete' => false,
  81. //'edit' => false,
  82. # 列表
  83. 'list_button' => array
  84. (
  85. //'list' => array('渠道列表', '"info&search_option_link_id={id}&oper_parent=link"'),
  86. ),
  87. ),
  88. );