add_edit_ordinary_article.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. $('#preview').click(function(){
  140. $("form").target = '';
  141. $("form").action = '';
  142. $("form").submit();
  143. });
  144. $('#save').click(function(){
  145. $("form").target = '';
  146. $("form").action = '';
  147. $("form").submit();
  148. });
  149. $("#start_time").live("click", function(){
  150. $("#start_time").val('');
  151. showCalendar('start_time', 'y-mm-dd');
  152. });
  153. $("#end_time").live("click", function(){
  154. $("#end_time").val('');
  155. showCalendar('end_time', 'y-mm-dd');
  156. });
  157. var ROOT_DOMAIN = '<{$smarty.const.ROOT_DOMAIN}>';
  158. KindEditor.ready(function(K) {
  159. var editor = K.create('textarea[name=content]', {
  160. allowFileManager : true,
  161. uploadJson : ROOT_DOMAIN + '/kindeditor/upload_json.php',
  162. fileManagerJson : ROOT_DOMAIN + '/kindeditor/file_manager_json.php',
  163. themesPath : ROOT_DOMAIN + '/statics/c/themes/'
  164. });
  165. });
  166. $("input[type=radio]").click(function () {
  167. var type_id = $(this).attr("id");
  168. if (type_id == 'type_TYPE_TRY') {
  169. var html = $("#hiddenDIv").html();
  170. $(".ordinary").html(html);
  171. } else {
  172. $(".ordinary").html("");
  173. }
  174. });
  175. });
  176. </script>
  177. <{include file="../admin/nav.html"}>
  178. <form method="post">
  179. <div class="container">
  180. <div class="containerBox">
  181. <label class="block">标题</label>
  182. <input type="text" name="title" id="title" value="<{$article.title}>"/>
  183. <label class="block"><span class="upload-tip"></span>根路径&nbsp;&nbsp;如:<{$smarty.const.ROOT_DOMAIN}>/weixin/product/<font color="red"><{if $baseUrl}><{$baseUrl}><{else}><{$article.base_url}><{/if}></font></label>
  184. <input type="text" name="base_url" value="<{if $baseUrl}><{$baseUrl}><{else}><{$article.base_url}><{/if}>"/>
  185. <label class="block">页面类型</label>
  186. <input name="type" type="radio" id="type_ordinary" value="ordinary" checked="checked"/><label for="type_ordinary">普通产品</label>
  187. <div class="ordinary" style="margin-left: 10px;">
  188. </div>
  189. <label class="block">内容</label>
  190. <textarea name="content"><{$article.content}></textarea>
  191. </div>
  192. </div>
  193. <div class="msg-btn">
  194. <input type="submit" value="提交">
  195. </div>
  196. </form>
  197. </body>
  198. </html>