<!--#include file="../Inc/Cls_Main.Asp"-->
<!--#include file="inc.asp"-->
<!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=utf-8" />
<title><%=SiteSysName%>安装向导</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="<%=SiteWebFilePath%>Scripts/jquery/jquery.js"></script>
</head>

<body>
<form action="install.asp" method="post" onsubmit="return InstallForm();">
  <div id="install" class="data">
    <h1><%=SiteSysName%>安装配置</h1>
    <div class="content">
      <div class="list">
        <div class="name">网站名称：</div>
        <div class="value">
          <input type="text" class="input" name="SiteName" id="SiteName" maxlength="100" value="<%=CmsSiteName%>" />
        </div>
      </div>
      <div class="list">
        <div class="name">网站标题：</div>
        <div class="value">
          <input type="text" class="input" name="SiteTitle" id="SiteTitle" maxlength="100" value="<%=CmsSiteTitle%>" />
        </div>
      </div>
      <div class="list">
        <div class="name">网站主域名：</div>
        <div class="value">
          <input type="text" class="input" name="SiteUrl" id="SiteUrl" maxlength="100" value="<%=CmsSiteUrl%>" />
        </div>
      </div>
      <div class="list">
        <div class="name">管理账号：</div>
        <div class="value">
          <input type="text" class="inputs" name="AdminName" id="AdminName" maxlength="50" value="admin" />
        </div>
      </div>
      <div class="list">
        <div class="name">管理密码：</div>
        <div class="value">
          <input type="text" class="inputs" name="AdminPass" id="AdminPass" maxlength="50" value="admin" />
        </div>
      </div>
      <div class="list">
        <div class="name">上传文件目录：</div>
        <div class="value">
          <input type="text" class="inputf" name="UpLoadFile" id="UpLoadFile" maxlength="50" value="<%=CmsUpLoadFile%>" />
        </div>
      </div>
    </div>
    <div class="menu">
      <button type="submit" class="submit">准备完毕进入安装</button>
    </div>
  </div>
</form>
<script>
function InstallForm() {
    if ($('#SiteName').val() == '') {
        alert('网站名称必须填写!');
        $('#SiteName').focus();
        return false;
    }
    if ($('#SiteTitle').val() == '') {
        alert('网站标题必须填写!');
        $('#SiteTitle').focus();
        return false;
    }
    if ($('#SiteUrl').val() == '') {
        alert('网站主域名必须填写!');
        $('#SiteUrl').focus();
        return false;
    }
    if ($('#AdminName').val() == '') {
        alert('管理账号必须填写!');
        $('#AdminName').focus();
        return false;
    }
    if ($('#AdminPass').val() == '') {
        alert('管理密码必须填写!');
        $('#AdminPass').focus();
        return false;
    }
    if ($('#UpLoadFile').val() == '') {
        alert('上传文件目录必须填写!');
        $('#UpLoadFile').focus();
        return false;
    }
}
</script>
</body>
</html>
