<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" href="{{ kg['tpl_url'] }}style/template_update.css">
<script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{ kg['tpl_url'] }}script/template_update.js"></script>
</head>
<body data-type="generalComponents" style="overflow-y: hidden;">
	{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper ngco-Osz-marginT">
			<div class="tpl-content-page-title">
				编辑网站模板
			</div>
			<ol class="am-breadcrumb">
				<li><a href="#" class="am-icon-home">首页</a></li>
				<li><a href="template_manage">网站模板管理</a></li>
				<li class="am-active">编辑网站模板</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title ngte-T15-paddingB">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;编辑网站模板
					</div>
					<div class="tpl-portlet-input tpl-fz-ml am-no-margintop" style=" width: 25%; margin-right: 0px; ">
						<label for="Category" class="am-u-md-5 am-form-label style_lab"><span>选择模板 :</span></label>
						<div class="am-form-group am-fl am-no-marginbtm am-select-hover  am-no-outline" style="margin-right:0px;float: right;">
							<select onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{searchBox: 1}" name="menu" class="" style="display: none;" id="selected-searchu">
								{%for row in dirs%}
								<option {%if row['dir']==dir['file'] %}selected="selected" {%endif%} value="template_update?dir={{row['dir']}}">{{row['title']}}</option>
								{%endfor%}
							</select>
						</div>
					</div>
				</div>
				<form action="" method="post" name="form" id="form">
					<div>
						<ul class=" am-tabs-nav  tpl-left-nav  tpl-left-nav-list nav-link tpl-left-nav-link-list ngte-Yfu-ul">
							<li class="ngte-first-li">
								<div class="ngte-Ldiv-style"><span>{{dir['title']}}-模板文件列表</span></div>
							</li>
							{% for row in list %}
							<li class="ngte-Yli-style sql-content">
								<span>{%if row['name']%}{{row['name']}}{%else%}自定义模板文件{%endif%}：</span><a href="template_update?dir={{dir['file']}}&file={{row['file']}}">{{row['file']}}</a>
							</li>
							{% endfor %}
						</ul>
						<div class="am-tabs-bd am_box ngco-ANo-borderRB">
							<div class="am-tab-panel am-fade am-in am-active am-box-padd1 ngco-KNo2-padding" id="tab1">
								<ul>
									<li>
										<div class="span_fon ngte-Ldiv-style">
											<span class=" ">{%if name[1]%}{{name[1]}}{%else%}自定义模板文件{%endif%}</span> - <span class=" ">{{name[0]}}</span>
										</div>
									</li>
									<li style="height: 50px;">
										<div class="tpl-portlet-input ngte-Jdiv-style">文件路径：<span class="ling_col">{{path}}</span>
										</div>
									</li>
									<li style="padding-left: 20px;">
										<textarea wrap="physical" name="code" class="rounded">{{content}}</textarea>
									</li>
								</ul>
							</div>
							<!-- tab体结束-->
							<div class="am-g">
								<div class="tpl-form-body tpl-form-line">
									<div class="am-form-group">
										<div class="am-u-md-9 am-u-md-push-3 center_div ngco-W50bai-width">
											<button type="submit" class="am-btn am-btn-primary distances submin_but am-box-bt1 ngte-Jbtn-styleL">提交</button>
											<a  class="am-btn am-btn-primary ngte-Jbtn-styleR">重置</a>
										</div>
									</div>
								</div>
							</div>
						</div>
						<input type="hidden" name="action" value="submit">
					</div>
				</form>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
	</div>
</body>
</html>