| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 | 
							- <{include file="./admin/header.html"}>
 
- <{include file="get_kindeditor.html"}>
 
- <style>
 
- <!--
 
- .container, .container5 {
 
- width:780px;
 
- 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">
 
- $(document).ready(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 = '<{$web_cfg.domain}>';
 
- 	KindEditor.ready(function(K) {
 
- 		var editor = K.create('textarea[name=content]', {
 
- 			allowFileManager : true,
 
- 			uploadJson : ROOT_DOMAIN + '/?c=kindeditor&a=updateJson',
 
- 			fileManagerJson : ROOT_DOMAIN + '/?c=kindeditor&a=fileManagerJson'
 
- 		});
 
- 	});
 
- 	
 
- 	$("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("");
 
- 		}
 
- 	});
 
- 	
 
- 	$("input[type=submit]").click(function () {
 
- 		var title = $.trim($("#title").val());
 
- 		if (title == '') {
 
- 			alert('请填写文章标题');
 
- 			return false;
 
- 		}
 
- 		
 
- 		if (!confirm("确认<{if $article}>修改<{else}>创建<{/if}>?")) {
 
- 			return false;
 
- 		}
 
- 	});
 
- });
 
- </script>
 
- <{include file="./admin/nav.html"}>
 
- <div class="container">
 
- <form method="post" action="<{$web_cfg.domain}>">
 
- 	<input name="c" type="hidden" value="admin_articles" />
 
- 	<{if $article}>
 
- 	<input name="a" type="hidden" value="edit" />
 
- 	<input name="id" type="hidden" value="<{$article.id}>" />
 
- 	<input name="cas_token" type="hidden" value="<{$article.cas_token}>" />
 
- 	<{else}>
 
- 	<input name="a" type="hidden" value="add" />
 
- 	<{/if}>
 
- 	<div class="containerBox">
 
- 		<{if $article.friendlyUrl}>
 
- 		<label class="block"><span class="upload-tip"></span>文章链接地址</label>
 
- 		<a href="<{$web_cfg.domain}>/article/<{$article.friendlyUrl}>" target="_blank"><{$web_cfg.domain}>/article/<{$article.friendlyUrl}></a>
 
- 		<{/if}>
 
- 		<label class="block">标题</label>
 
- 		<input type="text" name="title" id="title" value="<{$article.title}>"/>
 
- 		<label class="block">作者</label>
 
- 		<input type="text" name="author" id="author" value="<{$article.author}>"/>
 
- 		<label class="block">内容</label>
 
- 		<textarea name="content"><{$article.content}></textarea>
 
- 	</div>
 
- <div class="msg-btn">
 
- <input type="submit" class="btn btn-success" value="<{if $article}>修改<{else}>创建<{/if}>">
 
- </div>
 
- </form>
 
- </div>
 
- </body>
 
- </html>
 
 
  |