skin.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. $send = array
  3. (
  4. 1 => '发送',
  5. 2 => '不发送',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'skin',
  11. # 显示给用户看的名称
  12. 'lang' => '模板设置',
  13. 'menu' => false,
  14. 'check' => 'config_id,key',
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => 'ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. 'search' => 'order',
  26. //'list' => true,
  27. ),
  28. 'config_id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => '所属配置',
  32. 'default' => '1',
  33. 'desc' => '请选择所属配置',
  34. 'match' => 'is_numeric',
  35. 'update' => 'hidden',
  36. 'value' => Dever::input('search_option_config_id')
  37. ),
  38. 'name' => array
  39. (
  40. 'type' => 'varchar-32',
  41. 'name' => '模板名称',
  42. 'default' => '',
  43. 'desc' => '模板名称',
  44. 'match' => 'is_string',
  45. 'update' => 'text',
  46. 'search' => 'fulltext',
  47. 'list' => true,
  48. ),
  49. 'key' => array
  50. (
  51. 'type' => 'varchar-32',
  52. 'name' => '模板标识',
  53. 'default' => '',
  54. 'desc' => '模板标识',
  55. 'match' => 'is_string',
  56. 'update' => 'text',
  57. 'search' => 'fulltext',
  58. 'list' => true,
  59. ),
  60. 'content' => array
  61. (
  62. 'type' => 'varchar-800',
  63. 'name' => '模板内容-如果短信接口已提供模板,请在此输入模板id',
  64. 'default' => '',
  65. 'desc' => '模板内容',
  66. 'match' => 'is_string',
  67. 'update' => 'text',
  68. 'search' => 'fulltext',
  69. 'list' => true,
  70. ),
  71. 'send' => array
  72. (
  73. 'type' => 'tinyint-1',
  74. 'name' => '是否发送短信',
  75. 'default' => '1',
  76. 'desc' => '是否发送短信',
  77. 'match' => 'is_numeric',
  78. 'update' => 'radio',
  79. 'option' => $send,
  80. 'list' => true,
  81. 'edit' => true,
  82. ),
  83. 'state' => array
  84. (
  85. 'type' => 'tinyint-1',
  86. 'name' => '状态',
  87. 'default' => '1',
  88. 'desc' => '请选择状态',
  89. 'match' => 'is_numeric',
  90. ),
  91. 'cdate' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '录入时间',
  95. 'match' => array('is_numeric', time()),
  96. 'desc' => '',
  97. # 只有insert时才生效
  98. 'insert' => true,
  99. 'search' => 'date',
  100. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  101. ),
  102. ),
  103. 'request' => array
  104. (
  105. 'getAll' => array
  106. (
  107. 'option' => array
  108. (
  109. 'key' => array('yes', 'in'),
  110. 'state' => 1,
  111. ),
  112. 'type' => 'all',
  113. 'order' => array('id' => 'desc'),
  114. 'col' => '*',
  115. ),
  116. )
  117. );