<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
@set_time_limit(1000);
@set_magic_quotes_runtime(0);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf8" />
	<title></title>
	<style type="text/css">
		#discur{
			width:440px;
			height:400px;
			border:4px solid #B4D6F2;
		}
		.discur_xzaz{
			width:440px;
			height:30px;
			background:#EEEEEE;
		}
		.discur_xzaz span{
			width:140px;
			color:#095596;
			font-weight:bold;
			font-size:12px;
			display:block;
			float:left;
			margin-left:8px;
			margin-top:8px;
		}
		.discur_xzaz a{
			display:block;
			float:right;
			width:16px;
			height:16px;
			margin-right:8px;
			margin-top:5px;
		}
		.discur_welcome{
			clear:both;
			background:#E0EAF3;
			height:50px;
		}
		.discur_welcome span{
			font-weight:bold;
			font-size:14px;
			display:block;
			width:270px;
			margin-left:auto;
			margin-right:auto;
			padding-top:15px;
		}
		.discur_fw{
			width:425px;
			margin-left:auto;
			margin-right:auto;
			margin-top:10px;
		}
		.discur_xy{
			width:420px;
			height:205px;
			border:2px solid #D4E4EF;
			overflow-y: auto;
			overflow-x: hidden;
		}
		.discur_xy span{
			display:block;
			width:220px;
			margin-left:auto;
			margin-right:auto;
			margin-top:10px;
			margin-bottom:20px;
			font-weight:bold;
			font-size:15px;
			font-family:微软雅黑;
			color:#666569;
		}
		.discur_xy div{
			width:410px;
			margin-left:auto;
			margin-right:auto;
			font-size:12px;
			font-family:微软雅黑;
			color:#666569;
		}
		.discur_fw_wty{
			width:420px;
			margin-top:15px;
		}
		.discur_fw_tk{
			float:left;
		}
		.discur_fw_ty {
			font-size:12px;
			color:5D5D5D;
			width:176px;
			display:block;
			float:left;
			margin-top:2px;
			margin-left:4px;
		}
		.discur_fw_next{
			width:150px;
			height:20px;
			clear:both;
			padding-top:20px;
			
		}
		.xyb{
			display:block;
			width:60px;
			height:26px;
			border:none;
			background:#005494;
			color:#ffffff;
			font-size:12px;
			float:left;
		}
		.qx{
			display:block;
			width:60px;
			height:26px;
			border:1px solid #D4D4D4;
			background:#FFFFFF;
			color:#005494;
			font-size:12px;
			float:left;
			margin-left:8px;
		}
	</style>

</head>
<body style="margin:0px;padding:0px;">
	<div id="discur" style="margin-left:auto;margin-right:auto;margin-top:100px">
		<div class="discur_xzaz">
			<span>APPMAKER APP插件安装</span>
			<a href=""><img src="images/close.png" alt="" /></a>
		</div>
		<div class="discur_welcome">
			<span>欢迎使用 APPMAKER APP插件安装</span>
		</div>
		<div class="discur_fw">
			<form action="step_1.php" style="position:relative">
			  <div class="discur_xy">
			  <?php
			  if(file_exists('install.log'))
			  {
			  ?>
			  		   <div>
				   			   		<p>安装锁定。如果您确定要重新安装，请到服务器上删除 install.log</p>
										<p><font color ='red'>您必须解决以上问题，安装才可以继续</font></p>
				   			   </div>
		       </div>
			   <div class="discur_fw_wty">
				<span class="discur_fw_ty"></span>
			   </div>
			   <div class="discur_fw_next" style="left:295px;position:absolute">
				  <input type="button" value="完成" class="finsh" id="finsh" />

			   </div>
			   <?php }else{?>
			    <span>
				APPMAKER APP插件使用协议
				</span>
				 	  <div>APPMAKER APP插件使用协议，暂无
						</div>
		       </div>
			   <div class="discur_fw_wty">
				<input type="checkbox" name="tk" checked="checked" class="discur_fw_tk" id="discurfwtk" onclick='oncheck()'/><span class="discur_fw_ty">
				我同意APPMAKER服务条款
				</span>
			   </div>
			   <div class="discur_fw_next" style="left:295px;position:absolute">
				  <input type="submit" value="下一步" class="xyb" id="xyb" />
			      <input type="reset" value="取消" class="qx" />
			   </div>
			   <?php }?>
		   </form>
		</div>
	</div>
</body>
	<script type="text/javascript">
		
			if(document.getElementById('discurfwtk').checked)
			{
				document.getElementById('xyb').disabled =false;
			}
			else
			{
				document.getElementById('xyb').disabled =true;
			}
		function oncheck()
		{
			if(document.getElementById('discurfwtk').checked)
			{
				document.getElementById('xyb').disabled =false;
			}
			else
			{
				document.getElementById('xyb').disabled =true;
			}
		}
	</script>
</html>