<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<title></title>
<style type="text/css">
<!--
.style1 {
	font-size: 16px;
	font-weight: bold;
}
-->
</style>
</HEAD>
<BODY>
<form name="form1" id="form1" method="post" action="restore.php" enctype="multipart/form-data">
<input type="hidden" name="restorefrom" value="server">
<input type="hidden" name="serverfile" value="db.sql">
<div style="padding:100px;">
<table  width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5" height="6" class="box_top_left"><img src="../images/box_top_left.gif" /></td>
    <td    class="box_top_bg">&nbsp;</td>
    <td width="5"  class="box_top_right"></td>
  </tr>
  <tr>
    <td  class="box_left">&nbsp;</td>
    <td  align="center">
			<script language="javascript">
                function checkInstall() {
                    var form=document.getElementById("form1");
                   if(form.mysqlhost.value=="")
                    {
                        alert("Please enter your Host Name!");
                        form.mysqlhost.focus();
                        return;
                    }
					 if(form.mysqldb.value=="")
                    {
                        alert("Please enter your Database Name!");
                        form.mysqldb.focus();
                        return;
                    }
					 if(form.mysqluser.value=="")
                    {
                        alert("Please enter your Database Username!");
                        form.mysqluser.focus();
                        return;
                    }
					if(form.admin_psw.value=="")
                    {
                        alert("Please enter your Administrator password!");
                        form.admin_psw.focus();
                        return;
                    }
					
                    
                  form.submit();
                }
                
            </script>
			<table width="300" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                       <td height="30" colspan="2" align="center"><span class="style1">安装</span></td>
                     </tr>
                     <tr>
                       <td height="30" colspan="2"><strong>主机数据库信息: </strong></td>
                     </tr>
                     <tr>
                       <td width="100" height="30">主机名称</td>
                       <td height="30"><input class="login_input_box" type="text"  name='mysqlhost' id="mysqlhost" /></td>
                     </tr>
                     <tr>
                       <td height="30">数据库名称</td>
                       <td height="30"><input  class="login_input_box" type='text' name='mysqldb' id="mysqldb"></td>
                     </tr>
                     <tr>
                       <td height="30">数据库用户名</td>
                       <td height="30"><input  class="login_input_box" type='text' name='mysqluser' id="mysqluser"></td>
                     </tr>
                     <tr>
                       <td height="30">数据库密码</td>
                       <td height="30"><input  class="login_input_box" type='password' name='mysqlpwd' id="mysqlpwd"></td>
                     </tr>
                     <tr>
                       <td height="30" colspan="2"><strong>管理员信息:</strong></td>
                     </tr>
                     <tr>
                       <td height="30">管理员admin密码</td>
                       <td><input  class="login_input_box" type='password' name='admin_psw' id="admin_psw"></td>
                     </tr>
                     <tr>
                       <td height="30" colspan="2" align="center"><input type="button"  class="button" value="提交" onClick="checkInstall()" /></td>
                     </tr>
                   </table>
                  <br /></td>
    <td  class="box_right">&nbsp;</td>
  </tr>
  <tr>
    <td height="6" class="box_bottom_left"></td>
    <td  class="box_bottom_bg">&nbsp;</td>
    <td class="box_bottom_right"></td>
  </tr>
</table>
</div>
 </form>
   </BODY></HTML>