add_edit_try_more.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <{include file="../admin/header.html"}>
  2. <{include file="../admin/get_kindeditor.html"}>
  3. <style>
  4. <!--
  5. .container, .container5 {
  6. width:720px;
  7. margin: 0 auto;
  8. padding-top: 20px;
  9. padding-left:20px;
  10. padding-right:20px;
  11. }
  12. .containerBox {
  13. border-radius: 5px;
  14. box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  15. moz-border-radius: 5px;
  16. moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  17. padding: 14px 22px 20px 20px;
  18. webkit-border-radius: 5px;
  19. webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  20. background-color: #f8f8f8;
  21. border: 1px solid #b8b8b8;
  22. padding:15px 20px 20px 20px;
  23. margin-top:10px;
  24. }
  25. input[type="text"] {
  26. background-color: #fff;
  27. border: 1px solid #d3d3d3;
  28. color: #666;
  29. max-width: 480px;
  30. padding: 2px 8px;
  31. width: 480px;
  32. display: inline-block;
  33. }
  34. .fileUpload {
  35. display:none!important;
  36. }
  37. .container .block, .container5 .block {
  38. cursor: default;
  39. padding-bottom: 4px;
  40. padding-top: 10px;
  41. display: block;
  42. font-size: 14px;
  43. }
  44. .upload-tip {
  45. color: #666;
  46. font-size: 12px;
  47. margin-top: 2px;
  48. float: right;
  49. cursor: default;
  50. line-height: 1.5;
  51. }
  52. .desctextarea{
  53. width: 480px;
  54. height: 50px;
  55. outline: 0;
  56. overflow: auto;
  57. vertical-align: top;
  58. padding: 2px 8px;
  59. background-color: #fff;
  60. border: 1px solid #d3d3d3;
  61. }
  62. .sub-add-btn {
  63. line-height: 30px;
  64. color: red;
  65. border: 2px dotted #b8b8b8;
  66. border-radius: 3px;
  67. -webkit-border-radius: 3px;
  68. -moz-border-radius: 3px;
  69. display: block;
  70. margin-top: 10px;
  71. text-align: center;
  72. background-color: #f8f8f8;
  73. }
  74. a:visited, a:link {
  75. text-decoration: none;
  76. }
  77. a:hover {
  78. text-decoration: underline;
  79. }
  80. .msg-btn {
  81. padding: 12px 0 20px;
  82. text-align: center;
  83. font-size: 14px;
  84. }
  85. a.btnGreen:link {
  86. text-decoration: none;
  87. margin: 0 20px;
  88. text-align: center;
  89. overflow: visible;
  90. border-radius: 3px;
  91. -moz-border-radius: 3px;
  92. -webkit-border-radius: 3px;
  93. border: 1px solid #3d810c;
  94. padding: 5px 20px;
  95. cursor: pointer;
  96. display: inline-block;
  97. text-align: center;
  98. overflow: visible;
  99. border-radius: 3px;
  100. -moz-border-radius: 3px;
  101. -webkit-border-radius: 3px;
  102. color: #fff;
  103. border: 1px solid #3d810c;
  104. background-color: #5aaa4b;
  105. background-image: -moz-linear-gradient(top,#60b452 0,#56a447 100%);
  106. background-image: -webkit-gradient(linear,0 0,0 100%,from(#60b452),to(#56a447));
  107. background-image: -webkit-linear-gradient(top,#60b452 0,#56a447 100%);
  108. background-image: -o-linear-gradient(top,#60b452 0,#56a447 100%);
  109. background-image: linear-gradient(to bottom,#60b452 0,#56a447 100%);
  110. }
  111. a.btnGreen:hover {
  112. background-color: #53a046;
  113. background-image: -moz-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  114. background-image: -webkit-gradient(linear,0 0,0 100%,from(#5aab4d),to(#4f9841));
  115. background-image: -webkit-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  116. background-image: -o-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  117. background-image: linear-gradient(to bottom,#5aab4d 0,#4f9841 100%);
  118. color: #fff;
  119. color: #fff;
  120. box-shadow: 0 1px 1px #aaa;
  121. -moz-box-shadow: 0 1px 1px #aaa;
  122. -webkit-box-shadow: 0 1px 1px #aaa;
  123. }
  124. .imgPreview {
  125. display:none;
  126. }
  127. .b {width:320px; height:160px;}
  128. .s {width:100px; height:100px;}
  129. .ke-container {
  130. width:100%!important;
  131. }
  132. textarea[name="content"] {
  133. height:320px;
  134. }
  135. -->
  136. </style>
  137. <script type="text/javascript">
  138. TMJF(function ($) {
  139. var ROOT_DOMAIN = '<{$smarty.const.ROOT_DOMAIN}>';
  140. KindEditor.ready(function(K) {
  141. var editor = K.create('textarea[name=content]', {
  142. allowFileManager : true,
  143. uploadJson : ROOT_DOMAIN + '/kindeditor/upload_json.php',
  144. fileManagerJson : ROOT_DOMAIN + '/kindeditor/file_manager_json.php',
  145. themesPath : ROOT_DOMAIN + '/statics/c/themes/'
  146. });
  147. });
  148. $("#preview").click(function () {
  149. this.form.target = '_blank';
  150. this.form.action = '<{$smarty.const.ROOT_DOMAIN}>/admin/weixin/preview_more_module.php';
  151. });
  152. $("#save").click(function () {
  153. this.form.target = '';
  154. this.form.action = '';
  155. });
  156. });
  157. </script>
  158. <{include file="../admin/nav.html"}>
  159. <form method="post">
  160. <div class="container">
  161. <div class="containerBox">
  162. <label class="block">更多活动模块内容</label>
  163. <textarea name="content"><{$article.content}></textarea>
  164. </div>
  165. </div>
  166. <div class="msg-btn">
  167. <input type="submit" id="preview" value="预览"><input type="submit" id="save" onClick="return(confirm('确认保存修改?'))" value="提交">
  168. </div>
  169. </form>
  170. </body>
  171. </html>