skin.php 1.8 KB

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