<!DOCTYPE html>
<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
	<meta charset="utf-8">
	<title>GCMS后台管理</title>
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<link rel="stylesheet" href="__PUBLIC__/Css/admincss.css" type="text/css">	
	<link rel="stylesheet" href="{echo C('SITE_EDITOR')}/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="{echo C('SITE_EDITOR')}/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="{echo C('SITE_EDITOR')}/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="{echo C('SITE_EDITOR')}/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="{echo C('SITE_EDITOR')}/kindeditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="pcontent"]', {
				cssPath : '{echo C('SITE_EDITOR')}/kindeditor/plugins/code/prettify.css',
				uploadJson : '{echo C('SITE_EDITOR')}/JSON/upload_json.php',
				fileManagerJson : '{echo C('SITE_EDITOR')}/JSON/file_manager_json.php',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=contactform]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=contactform]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>

	</head><body>

		<section class="hbox stretch">
			{template /Admin/Index/navli.html}
			<section id="content">
				<section class="vbox">
					{template /Admin/Index/header.html}
					<section class="scrollable bg-light lter">
						<section id="docs">
							<div class="clearfix padder">
								
								
<section class="panel">
	<header class="panel-heading">
		<nav class="m-crumb m-crumb-arr">
		<ul class="f-cb">
			<li><a href="#">GCMS</a></li>
			<li><a href="#">网站设置</a></li>
			<li>{if getGp('a')=='editpage'}修改{else}添加{/if}单页</li>
    </ul>
    </nav>
  </header>
</section>
	
<section class="panel">
	<header class="panel-heading">◆ {if getGp('a')=='editpage'}修改{else}添加{/if}单页</header>
	<div class="panel-body">
			<form method="post" action="{echo U('Admin/Index/'.getGp('a').'save')}" name="contactform" id="contactform">__TOKEN__
				<div id="contact-form"><input name="id" type="hidden" value="{$pagedata['0']['id']}">
				<label><span class="required"> * </span>标题</label>
				<input name="ptitle" type="text" value="{$pagedata['0']['title']}">
				<label><span class="required"> * </span>内容</label>
				<textarea name="pcontent" style="width:100%;height:220px;visibility:hidden;">{$pagedata['0']['content']}</textarea>
				<label><span class="required"> * </span>关键字 </label>
				<input name="pkeywords" type="text" value="{$pagedata['0']['keywords']}">
				<label><span class="required"> * </span>描述</label>
				<textarea name="pdescription" cols="20" rows="3" style="height:50px;">{$pagedata['0']['description']}</textarea>
				<label><span class="required"> * </span>别名</label>
				<input name="poname" type="text" value="{$pagedata['0']['oname']}">
								<p>
									<input class="button" type="submit" name="submit" value=" {if getGp('a')=='editpage'}修改{else}添加{/if} ">
								</p>
</div> 
</form>



</div> 
	
	
	</section>

</div></section></section></section></section></section></body></html>