<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Kcms.UI.Install.Default" %>
<!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>欢迎安装 Kcms系统</title>
<style type="text/css">
body{
	margin: 10px;
	padding: 0px;
	font-family: "宋体";
}
input { padding: 5px 3px 3px 3px; font-size: 14px; color: #333; }
.sn {
	padding: 5px 3px 3px 3px;
	font-size: 12px;
	color: #333;
}
.title { font-size: 16px; font-weight: bold; height: 38px; }
.list { font-size: 14px; height:25px; }
.intro { font-size: 12px; color: #999; width: 150px; }
#link{ font-size: 14px; line-height: 150%; font-weight: normal; color: #000000; background-color: #FDFDFD; margin: 120px 120px 0px 120px; padding: 20px; border: 1px solid #B6B6B6; }
#link a{ font-weight: normal; text-decoration: underline; color: #0000FF; }
#link a:hover{ color: #FF0000; text-decoration: none; }
.fini{ text-align:left; margin-left:100px; line-height:28px;}
.fini .tit{ font-weight:bold; list-style:none;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
<table width="100" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#F0F0F0">
   <tr>
     <td>
     <table width="100" border="0" cellpadding="0" cellspacing="1" bgcolor="#ADADAD">
     <tr>
     <td>
<!--1-->
         <asp:Panel ID="Panel1" runat="server">
         <table width="750" border="0" align="center" cellpadding="5" cellspacing="0">
         <tr>
         <td bgcolor="#EFEFEF" class="title">系统使用许可协议</td>
         </tr>
         <tr>
         <td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td></tr><tr><td bgcolor="#FFFFFF">
         <iframe src="License.html" width="100%" height="400px" scrolling="yes" frameborder="0"></iframe>
         </td>
         </tr>
         <tr>
         <td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td>
         </tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF" class="list" style="height:55px;">
                <asp:Button ID="step1" runat="server" 
                    Text="我同意" onclick="step1_Click" />
              <input type="button" value="不同意" onclick="window.close();" />
</td>
</tr>
         </table>
         </asp:Panel>
<!--2-->
<asp:Panel ID="Panel2" runat="server" Visible="false">
<table width="750" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td colspan="2" bgcolor="#EFEFEF" class="title">检测服务器组件</td>
  </tr>
  <tr>
    <td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td>
  </tr>
    <tr>
    <td align="right" bgcolor="#f7f7f7" class="list" width="200">系统安装位置:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label8" runat="server" Text="通过"></asp:Label>
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">.Net版本:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">系统DLL完整性:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">数据库脚本文件:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">config文件夹权限:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">templates文件夹权限:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#f7f7f7" class="list">uploads文件夹权限:</td>
    <td bgcolor="#FFFFFF" class="list">
        <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
      </td>
  </tr>
    <tr>
        <td align="right" bgcolor="#f7f7f7" class="list">
            install文件夹权限:</td>
        <td bgcolor="#FFFFFF" class="list">
            <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
  <tr>
    <td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td>
  </tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF" class="list" style="height:55px;">
                <asp:Button ID="step2" runat="server" 
                    Text="下一步" Enabled="False" onclick="step2_Click" />
</td>
</tr>
</table>
</asp:Panel>
<!--3-->
<asp:Panel ID="Panel3" runat="server" Visible="false">
<table width="750" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">

<tr>
<td colspan="2" bgcolor="#EFEFEF" class="title">系统安装</td>
</tr>
<tr>
<td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td>
</tr>
<tr>
  <td align="right" bgcolor="#f7f7f7" class="list" width="200">网站名称:</td>
  <td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="sitename" runat="server" 
          Text="快聚合网赚系统" Width="160px"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
          ControlToValidate="sitename" ErrorMessage="*" ForeColor="red" 
          SetFocusOnError="True"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
  <td align="right" bgcolor="#f7f7f7" class="list">网站地址:</td>
  <td bgcolor="#FFFFFF" class="list">
      <asp:TextBox ID="siteurl" runat="server" Width="160px" onfocus="this.blur()"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
          ControlToValidate="siteurl" ErrorMessage="*" ForeColor="red" 
          SetFocusOnError="True"></asp:RequiredFieldValidator>
    </td>
</tr>
    <tr>
        <td align="right" bgcolor="#f7f7f7" class="list">
            后台目录名:</td>
        <td bgcolor="#FFFFFF" class="list">
            <asp:TextBox ID="adminpath" runat="server" 
                onkeyup="this.value=this.value.replace(/[^a-z]/gi,'')" onpaste="return false" 
                style="ime-mode:disabled" Width="160px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="adminpath" ErrorMessage="*" ForeColor="red" 
                SetFocusOnError="True"></asp:RequiredFieldValidator><span class="intro">后台管理地址</span>
        </td>
    </tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">首页选择:</td>
<td bgcolor="#FFFFFF" class="list">
    <asp:RadioButtonList ID="siteindex" runat="server" RepeatDirection="Horizontal" 
        RepeatLayout="Flow">
        <asp:ListItem Selected="True" Value="0">系统首页</asp:ListItem>
        <asp:ListItem Value="1">问答首页</asp:ListItem>
    </asp:RadioButtonList>
    </td>
</tr>
    <tr>
        <td align="right" bgcolor="#f7f7f7" class="list">
            管理员帐号:</td>
        <td bgcolor="#FFFFFF" class="list">
            <asp:TextBox ID="adminname" runat="server" Width="160px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="adminname" ErrorMessage="*" ForeColor="red" 
                SetFocusOnError="True"></asp:RequiredFieldValidator><span class="intro">后台登录帐号</span></td>
    </tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">管理员密码:</td>
<td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="adminpsd" runat="server" TextMode="Password" Width="160px"></asp:TextBox><asp:RequiredFieldValidator 
ID="RequiredFieldValidator3" runat="server" ControlToValidate="adminpsd" 
        ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator><span class="intro">后台登录帐号的密码</span></td>
</tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">确认密码:</td>
<td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="adminpsd2" runat="server" TextMode="Password" Width="160px"></asp:TextBox><asp:RequiredFieldValidator
        ID="RequiredFieldValidator8" runat="server" ErrorMessage="*" 
        ControlToValidate="adminpsd2" SetFocusOnError="True"></asp:RequiredFieldValidator>
        <asp:CompareValidator ID="CompareValidator1"
        runat="server" ErrorMessage="两次密码不同" ControlToCompare="adminpsd" 
        ControlToValidate="adminpsd2" SetFocusOnError="True"></asp:CompareValidator>
    </td>
</tr>
<tr>
<td align="center" bgcolor="#f7f7f7" class="list" colspan="2"><font color="blue"><b>SQLserver2000/2005/2008</b></font></td>
</tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">数据库服务器:</td>
<td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="source" runat="server" Width="160px">127.0.0.1</asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
        ControlToValidate="source" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator><asp:Label ID="lblsource" runat="server" Text="数据库服务器地址" CssClass="intro"></asp:Label></td>
</tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">数据库名:</td>
<td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="catalog" runat="server" Width="160px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
        ControlToValidate="catalog" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator><asp:Label ID="lblcatalog" runat="server" Text="数据库名称,请先创建该数据库" CssClass="intro"></asp:Label></td>
</tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">数据库用户名:</td>
<td bgcolor="#FFFFFF" class="list"><asp:TextBox ID="user" runat="server" Width="160px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
        ControlToValidate="user" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator><asp:Label ID="lbluser" runat="server" Text="数据库链接账号" CssClass="intro"></asp:Label></td>
</tr>
<tr>
<td align="right" bgcolor="#f7f7f7" class="list">数据库密码:</td>
<td bgcolor="#FFFFFF" class="list">
<asp:TextBox ID="pass" runat="server" TextMode="Password" Width="160px"></asp:TextBox>
<span class="intro">数据库链接密码</span></td>
</tr>
<tr>
<td colspan="2" height="1" align="right" bgcolor="#E0E0E0"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF" class="list" style="height:55px;">
                <asp:Button ID="step3" runat="server" 
                    Text="下一步" onclick="step3_Click" />
</td>
</tr>
</table>
</asp:Panel>
<!--4-->
<asp:Panel ID="Panel4" runat="server" Visible="false">
<table width="750" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#EFEFEF" class="title">安装完成</td>
</tr>
<tr>
<td height="1" align="right" bgcolor="#E0E0E0"></td>
</tr>
<tr>
<td style="height:360px" align="center" class="list">
    <asp:Label ID="Label7" runat="server" Text="点击[开始配置]，等待完成……"></asp:Label>
</td>
</tr>
<tr>
<td height="1" align="right" bgcolor="#E0E0E0"></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF" class="list" style="height:55px;">
                <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" 
                    Text="开始配置" onclick="FinishButton_Click" OnClientClick="this.disabled=true;" UseSubmitBehavior="False"/>
</td>
</tr>
</table>
</asp:Panel>
<!--end-->     
     </td>
     </tr>
     </table>
     </td>
     </tr>
</table>
    </form>
</body>
</html>