<!doctype html>
<html>
<head>
<meta charset="gbk" />
<title>cscms产品 - Powered by cscms</title>
<link rel="stylesheet" href="<?=install_path?>csdj/install/images/css.css" />
</head>
<body>
	<div class="wrap">
		<div class="header">
			<h1 class="logo">logo</h1>
					<div class="icon_install">安装向导</div>
					<div class="version">v3.5</div>
		</div><div class="section">
	<div class="step">
		<ul>
			<li class="on"><em>1</em>检测环境</li>
			<li class="on"><em>2</em>创建数据</li>
			<li class="current"><em>3</em>完成安装</li>
		</ul>
	</div>
	<div class="install" id="log">
		<ul id="loginner">
		</ul>
	</div>
	<div class="bottom tac">
		<a href="javascript:;" class="btn_old"><img src="<?=install_path?>csdj/install/images/loading.gif" align="absmiddle" />&nbsp;正在安装...</a>
	</div>
</section>
<script type="text/javascript"> 
var log = "<?=$str?>";
var n = 0;
var timer = 0;
log = log.split('<cscms>');
function GoPlay(){
	if (n > log.length-1) {
		n=-1;
		clearIntervals();
	}
	if (n > -1) {
		postcheck(n);
		n++;
	}
}
function postcheck(n){
	document.getElementById('loginner').innerHTML += '<li><span class="correct_span">&radic;</span>创建数据表' + log[n] + '，完成</li>';
	document.getElementById('log').scrollTop = document.getElementById('log').scrollHeight;
}
function setIntervals(){
	timer = setInterval('GoPlay()',50);
}
function clearIntervals(){
	clearInterval(timer);
	window.location.href = "<?=install_url?>save4";
}
setTimeout(setIntervals, 100);
</script>
 
	</div>

	<div class="footer">
		&copy; 2009-2013 <a href="http://www.chshcms.com" target="_blank">chshcms.com</a>（程氏CMS旗下品牌）
	</div>
</body>
</html>

