content_text.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. $location = array
  3. (
  4. 1 => '上左',
  5. 2 => '上中',
  6. 3 => '上右',
  7. 4 => '中左',
  8. 5 => '正中',
  9. 6 => '中右',
  10. 7 => '下左',
  11. 8 => '下中',
  12. 9 => '下右',
  13. //10 => '自定义',
  14. );
  15. return array
  16. (
  17. # 表名
  18. 'name' => 'content_text',
  19. # 显示给用户看的名称
  20. 'lang' => '内页管理的文字设置',
  21. 'menu' => false,
  22. 'location' => $location,
  23. # 数据结构
  24. 'struct' => array
  25. (
  26. 'id' => array
  27. (
  28. 'type' => 'int-11',
  29. 'name' => 'ID',
  30. 'default' => '',
  31. 'desc' => '',
  32. 'match' => 'is_numeric',
  33. 'search' => 'order',
  34. 'update' => 'hidden',
  35. 'value' => Dever::input('where_id')
  36. //'list' => true,
  37. ),
  38. 'info_id' => array
  39. (
  40. 'type' => 'int-11',
  41. 'name' => '小刊',
  42. 'default' => '',
  43. 'desc' => '小刊',
  44. 'match' => 'is_numeric',
  45. 'update' => 'hidden',
  46. 'value' => Dever::input('search_option_info_id')
  47. ),
  48. 'content_id' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '小刊内页',
  52. 'default' => '',
  53. 'desc' => '小刊内页',
  54. 'match' => 'is_numeric',
  55. 'update' => 'hidden',
  56. 'value' => Dever::input('search_option_content_id')
  57. ),
  58. 'name' => array
  59. (
  60. 'type' => 'varchar-800',
  61. 'name' => '文字内容',
  62. 'default' => '',
  63. 'desc' => '文字内容',
  64. 'match' => 'is_string',
  65. 'update' => 'textarea',
  66. 'list' => true,
  67. ),
  68. 'location' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '文字显示位置',
  72. 'default' => '1',
  73. 'desc' => '显示位置',
  74. 'match' => 'is_numeric',
  75. 'update' => 'hidden',
  76. 'option' => $location,
  77. 'value' => Dever::input('search_option_location'),
  78. ),
  79. 'color' => array
  80. (
  81. 'type' => 'varchar-10',
  82. 'name' => '文字颜色',
  83. 'default' => '#000000',
  84. 'desc' => '文字颜色',
  85. 'match' => 'is_string',
  86. 'update' => 'color',
  87. ),
  88. 'bgcolor' => array
  89. (
  90. 'type' => 'varchar-10',
  91. 'name' => '背景颜色',
  92. 'default' => '#000000',
  93. 'desc' => '背景颜色',
  94. 'match' => 'is_string',
  95. 'update' => 'color',
  96. ),
  97. 'size' => array
  98. (
  99. 'type' => 'int-11',
  100. 'name' => '文字大小-直接输入像素数字',
  101. 'default' => '16',
  102. 'desc' => '文字大小',
  103. 'match' => 'is_numeric',
  104. 'update' => 'text',
  105. ),
  106. 'state' => array
  107. (
  108. 'type' => 'tinyint-1',
  109. 'name' => '状态',
  110. 'default' => '1',
  111. 'desc' => '请选择状态',
  112. 'match' => 'is_numeric',
  113. ),
  114. 'cdate' => array
  115. (
  116. 'type' => 'int-11',
  117. 'name' => '创建时间',
  118. 'match' => array('is_numeric', time()),
  119. 'desc' => '',
  120. # 只有insert时才生效
  121. 'insert' => true,
  122. 'search' => 'date',
  123. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  124. ),
  125. ),
  126. 'manage' => array
  127. (
  128. ),
  129. );