<{import file="index/header.html"}> 
<div class="cnav"><a href="javascript:;" class="back">版本更新</a></div>
<style type="text/css">
td.span{ color:#666; }
a.do{ border:1px solid #ddd; color:#666; padding:3px 10px; border-radius:2px; }

.explain{ background:#f00; }
.explain .name span{ color:#fff; }
.explain .con p{ color:#fff; }

.ov{ width:300px; text-align:center; margin:0 auto; }
.ov span{ width:100%; font-size:22px; float:left; }
.ov a{ width:100%; text-align:center; background:none; border:none; color:#666; font-size:14px; padding-top:10px; }

.conBox{ width:100%; float: left; }
.progress{ width:350px; height:30px; background:#ddd; float:left; }
.progress i{ height:30px; background:#39f; float:left;}
.bfb{ float:left; }
.bfb i{ font-style:inherit; margin:5px 0 0 10px; float:left;  }

.filter{ width:100%; padding:10px 0 0 0; float:left; }
.filter a.cbutton{ background:#ddd; color:#666; border:1px solid #ccc; cursor:default; }

</style> 
<{if $load_zip}>
	<div class="notice">
		<i><img src="<{$__APP__}>public/images/notice.png" width="20"/></i>
		<span>更新需要支持ZIP扩展，请查看PHP是否支持。如需帮助，请联系客服人员。</span>
	</div>
<{/if}>
<div class="explain">
	<div class="name"><span>警告操作</span></div>
	<div class="con">
		<p>下载完会自动解压到/temp/yun/cover目录</p> 
		<p>点击覆盖会执行文件的覆盖操作，谨慎操作，请提前做好数据备份。</p>
	</div> 
</div>


<{if $smarty.get.a == 'version_download'}><!--执行下载--> 
	<div class="conBox">
		<div class="progress"><i style="width:0%;"></i></div> 
		<div class="bfb"><i>0%</i></div>
	</div>
	<div class="filter"> 
		<a href="javascript:;" class="button add_url cbutton">正在下载文件</a> 
	</div>
<{elseif $smarty.get.a == 'version_cover'}>
	<div class="filter"> 
		 <div class="ov"><span><{$msg}></span></div>
	</div> 
<{else}>
<{/if}>
<{import file="index/footer.html"}>
<script type="text/javascript">
function add_url(url, msg){
	$("a.add_url").attr("href", '<{$__ADMIN__}>'+url).removeClass("cbutton").html(msg); 
}

function updateProgress(pct){
	$('.progress i').css({width:pct+'%'});
	$('.bfb i').html(pct+'%');
}

function downloadTimeout(){
	$(".conBox").html('<a href="<{$__ADMIN__}>yun/index">下载超时，重新下载！</a>');
} 

function error_report(str){
	$(".conBox").html(str);
} 
</script>