123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <{include file="../admin/header.html"}>
- <{include file="../admin/get_kindeditor.html"}>
- <style>
- <!--
- .container, .container5 {
- width:720px;
- margin: 0 auto;
- padding-top: 20px;
- padding-left:20px;
- padding-right:20px;
- }
- .containerBox {
- border-radius: 5px;
- box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- moz-border-radius: 5px;
- moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- padding: 14px 22px 20px 20px;
- webkit-border-radius: 5px;
- webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- background-color: #f8f8f8;
- border: 1px solid #b8b8b8;
- padding:15px 20px 20px 20px;
- margin-top:10px;
- }
- input[type="text"] {
- background-color: #fff;
- border: 1px solid #d3d3d3;
- color: #666;
- max-width: 480px;
- padding: 2px 8px;
- width: 480px;
- display: inline-block;
- }
- .fileUpload {
- display:none!important;
- }
- .container .block, .container5 .block {
- cursor: default;
- padding-bottom: 4px;
- padding-top: 10px;
- display: block;
- font-size: 14px;
- }
- .upload-tip {
- color: #666;
- font-size: 12px;
- margin-top: 2px;
- float: right;
- cursor: default;
- line-height: 1.5;
- }
- .desctextarea{
- width: 480px;
- height: 50px;
- outline: 0;
- overflow: auto;
- vertical-align: top;
- padding: 2px 8px;
- background-color: #fff;
- border: 1px solid #d3d3d3;
- }
- .sub-add-btn {
- line-height: 30px;
- color: red;
- border: 2px dotted #b8b8b8;
- border-radius: 3px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- display: block;
- margin-top: 10px;
- text-align: center;
- background-color: #f8f8f8;
- }
- a:visited, a:link {
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- .msg-btn {
- padding: 12px 0 20px;
- text-align: center;
- font-size: 14px;
- }
- a.btnGreen:link {
- text-decoration: none;
- margin: 0 20px;
- text-align: center;
- overflow: visible;
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- border: 1px solid #3d810c;
- padding: 5px 20px;
- cursor: pointer;
- display: inline-block;
- text-align: center;
- overflow: visible;
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- color: #fff;
- border: 1px solid #3d810c;
- background-color: #5aaa4b;
- background-image: -moz-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: -webkit-gradient(linear,0 0,0 100%,from(#60b452),to(#56a447));
- background-image: -webkit-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: -o-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: linear-gradient(to bottom,#60b452 0,#56a447 100%);
- }
- a.btnGreen:hover {
- background-color: #53a046;
- background-image: -moz-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: -webkit-gradient(linear,0 0,0 100%,from(#5aab4d),to(#4f9841));
- background-image: -webkit-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: -o-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: linear-gradient(to bottom,#5aab4d 0,#4f9841 100%);
- color: #fff;
- color: #fff;
- box-shadow: 0 1px 1px #aaa;
- -moz-box-shadow: 0 1px 1px #aaa;
- -webkit-box-shadow: 0 1px 1px #aaa;
- }
- .imgPreview {
- display:none;
- }
- .b {width:320px; height:160px;}
- .s {width:100px; height:100px;}
- .ke-container {
- width:100%!important;
- }
- textarea[name="content"] {
- height:320px;
- }
- -->
- </style>
- <script type="text/javascript">
- TMJF(function ($) {
- $('#preview').click(function(){
- $("form").target = '';
- $("form").action = '';
- $("form").submit();
- });
-
- $('#save').click(function(){
- $("form").target = '';
- $("form").action = '';
- $("form").submit();
- });
-
- $("#start_time").live("click", function(){
- $("#start_time").val('');
- showCalendar('start_time', 'y-mm-dd');
- });
- $("#end_time").live("click", function(){
- $("#end_time").val('');
- showCalendar('end_time', 'y-mm-dd');
- });
-
- var ROOT_DOMAIN = '<{$smarty.const.ROOT_DOMAIN}>';
- KindEditor.ready(function(K) {
- var editor = K.create('textarea[name=content]', {
- allowFileManager : true,
- uploadJson : ROOT_DOMAIN + '/kindeditor/upload_json.php',
- fileManagerJson : ROOT_DOMAIN + '/kindeditor/file_manager_json.php',
- themesPath : ROOT_DOMAIN + '/statics/c/themes/'
- });
- });
-
- $("input[type=radio]").click(function () {
- var type_id = $(this).attr("id");
- if (type_id == 'type_TYPE_TRY') {
- var html = $("#hiddenDIv").html();
- $(".ordinary").html(html);
- } else {
- $(".ordinary").html("");
- }
- });
- });
- </script>
- <{include file="../admin/nav.html"}>
- <form method="post">
- <div class="container">
- <div class="containerBox">
- <label class="block">标题</label>
- <input type="text" name="title" id="title" value="<{$article.title}>"/>
-
- <label class="block"><span class="upload-tip"></span>根路径 如:<{$smarty.const.ROOT_DOMAIN}>/weixin/product/<font color="red"><{if $baseUrl}><{$baseUrl}><{else}><{$article.base_url}><{/if}></font></label>
- <input type="text" name="base_url" value="<{if $baseUrl}><{$baseUrl}><{else}><{$article.base_url}><{/if}>"/>
-
- <label class="block">页面类型</label>
- <input name="type" type="radio" id="type_ordinary" value="ordinary" checked="checked"/><label for="type_ordinary">普通产品</label>
-
- <div class="ordinary" style="margin-left: 10px;">
-
- </div>
-
- <label class="block">内容</label>
- <textarea name="content"><{$article.content}></textarea>
- </div>
- </div>
- <div class="msg-btn">
- <input type="submit" value="提交">
- </div>
- </form>
- </body>
- </html>
|