You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
|
|
<link rel="stylesheet" href="./css/install.css?v=9.0" />
|
|
<script src="./js/jquery.js?v=9.0"></script>
|
|
</head>
|
|
<body>
|
|
<div class="wrap">
|
|
<?php require './templates/header.php';?>
|
|
<section 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="./images/install/loading.gif" align="absmiddle" /> 正在安装...</a> </div>
|
|
</section>
|
|
<script type="text/javascript">
|
|
var n=-1;
|
|
var data = <?php echo json_encode($_POST);?>;
|
|
$.ajaxSetup ({ cache: false });
|
|
function reloads(n) {
|
|
var url = "<?php echo $_SERVER['PHP_SELF']; ?>?step=4&install=1&n="+n;
|
|
$.ajax({
|
|
type: "POST",
|
|
url: url,
|
|
data: data,
|
|
dataType: 'json',
|
|
beforeSend:function(){
|
|
},
|
|
success: function(msg){
|
|
if(msg.n>=0){
|
|
$('#loginner').append(msg.msg);
|
|
if(msg.n=='999999'){
|
|
$('#dosubmit').attr("disabled",false);
|
|
$('#dosubmit').removeAttr("disabled");
|
|
$('#dosubmit').removeClass("nonext");
|
|
setTimeout('gonext()',2000);
|
|
return false;
|
|
}else{
|
|
reloads(msg.n);
|
|
}
|
|
|
|
}else{
|
|
alert(msg.msg);
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
function gonext(){
|
|
window.location.href='<?php echo $_SERVER['PHP_SELF']; ?>?step=5';
|
|
}
|
|
$(document).ready(function(){
|
|
reloads(n);
|
|
})
|
|
</script>
|
|
</div>
|
|
<?php require './templates/footer.php';?>
|
|
</body>
|
|
</html>
|
|
|