<!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 editor = K.editor({
				uploadJson : '{echo C('SITE_EDITOR')}/JSON/upload_json.php',
				fileManagerJson : '{echo C('SITE_EDITOR')}/JSON/file_manager_json.php',
					allowFileManager : true
				});
				K('#image1').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							imageUrl : K('#url1').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('a[href="\\#editpic"]').attr('href','/phpimageeditor/editimage.php?imagesrc=..'+url);
								K('#url1').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</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')=='editpics'}修改{else}添加{/if}图集</li>
    </ul>
    </nav>
  </header>
</section>
	
<section class="panel">
	<header class="panel-heading">◇ {if getGp('a')=='editpics'}修改{else}添加{/if}图片</header>
	<div class="panel-body">
			<form method="post" action="{echo U('Admin/Pic/'.getGp('a').'save')}" id="contactform">__TOKEN__
				<div id="contact-form"><input name="id" type="hidden" value="{$picdata['0']['id']}"><input name="classid" type="hidden" value="{if getGp('a')=='editpics'}{$picdata['0']['class']}{else}{echo getGp('classid')}{/if}">
				<label><span class="required"> * </span>图片标题</label>
				<input name="gcmstitle" type="text" value="{$picdata['0']['title']}">
				<label><span class="required"> * </span>图片路径</label>
				<p style="width:100%"><input name="gcmsurl" type="text" id="url1" value="{$picdata['0']['url']}" style="margin-right:15px; float:left; width:400px;" /> <input class="button" type="button" id="image1" value="选择图片" style="height:34px; float:left; width:100px;" /> <a href="#editpic" class="button button-red" style="height:34px; float:left; margin:0 0 0 10px;padding:6px; 15px; 6px; 15px;" target="_blank"> 修图 </a></p>
				<br /><br />
				<label><span class="required"></span>图片信息</label>
				<textarea name="gcmsinfo" cols="20" rows="3" style="height:80px;">{$picdata['0']['info']}</textarea>
				<label><span class="required"></span>图片标签 </label>
				<input name="gcmstags" type="text" value="{$picdata['0']['tags']}" >
				<label><span class="required"></span>SEO(只能填写用于优化的英文名)</label>
				<input name="gcmsseo" type="text" value="{$picdata['0']['seo']}" >
								<p>
									<input class="button" type="submit" name="submit" value=" 提 交 ">
								</p>
</div> 
</form>


</div> 
	
	
	</section>

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

