<!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_dump.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_dump.js"></script>
</head>
<body data-type="generalComponents">
	{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper">
			<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">
					<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 ">
						<div class="portlet-input input-small input-inline">
							<div class="input-icon right am-fr">
								<div class="am-btn-group am-btn-group-xs">
								</div>
							</div>
							<div class="am-cf"></div>
						</div>
					</div>
				</div>
				<div class="am-g">
					<div class="am-u-sm-12 ngco-No-paddingR">
						<form class="am-form">
							<!-- 显示备份文件列表数据 -->
							<div class="sql-backups">
								<ul class="sql-title">
									<li class="spl-file-name">备份文件ID</li>
									<li class="spl-file-name">模板名称</li>
									<li class="spl-size">文件大小</li>
									<li class="spl-size">文件来源</li>
									<li class="spl-time">备份时间</li>
									<li class="spl-operation">操作</li>
								</ul>
								{% if not list %}<div class="no-data"><ul>没有相关数据</ul></div>{% endif %}
								{% for row in list %}
								<ul class="sql-content">
									<li class="spl-file-name">{{ row["id"] }}</li>
									<li class="spl-title">{{row['title']}}</li>
									<li class="spl-size">{{ row["size"] }}</li>
									<li class="spl-manual">{{ row["source"] }}</li>
									<li class="spl-time">{{ row["addtime"] }}</li>
									<li class="sql-btn spl-operation">
										<div class="sql-pos">
											<a target="_blank" href="../api/admin_process?action=download&name={{ row["name"] }}&code={{ row["code"] }}" class="am-btn am-btn-default am-btn-xs am-edit-bright am-text-secondary spl-js-download">
												<span class="am-icon-download"></span>&nbsp;下载备份
											</a>
											<a href="template_dump?action=revert&file={{ row["file"] }}" class="am-btn am-btn-default am-btn-xs am-text-danger ngro-Jclick-shanchubi spl-js-cog">
												<span class="am-icon-repeat"></span>&nbsp;还原模板
											</a>
											<a href="template_dump?action=del&file={{ row["file"] }}" class="am-btn am-btn-default am-btn-xs am-son-bright spl-js-trash">
												<span class="am-icon-trash-o"></span>&nbsp;删除备份
											</a>
										</div>
									</li>
								</ul>
								{% endfor %}
							</div>
							<!-- 分页 -->
							<div class="am-cf">
								<div class="am-fr">
									{{ page_html }}
								</div>
							</div>
							<!-- 分页 -->
							<div class="am-alert am-alert-warning">
								<h4><i class="am-icon-warning"></i>&nbsp;模板备份操作说明</h4>
								<ul>
									<li>1、模板恢复请谨慎，这将覆盖同目录名的模板。</li>
									<li>2、当前模板备份文件保存路径：&nbsp;<span class="col-039">{{ kg["server"]["ROOT_PATH"] }}backup/template/</span></li>
								</ul>
							</div>
						</form>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		
		</div><!-- /.scrollbar-wrap -->
	</div>
</body>
</html>
