<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="setup.aspx.cs" Inherits="TotCms.Web.setup" %>

<!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 runat="server">
    <title>TotNetCms安装</title>
  <link href="style/global.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
      .style2
      {
        width: 600px;
      }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table class="style1" align="center" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#F7FAFE" width="60%" style="border-bottom:solid 1px #eeeeee;">
          <img alt="TotNetCms" src="images/logo.gif" 
            style="width: 318px; height: 106px" /></td>
        <td bgcolor="#F7FAFE" valign="bottom" style="border-bottom:solid 1px #eeeeee;">
          基于Asp.Net4.0</td>
      </tr>
      <tr>
        <td colspan="2" style="background-image:url(images/setup_bg.gif);background-color:#f3f6f8; background-repeat:repeat-x; background-position:top;">
          <div align="center">
            <fieldset class="style2">
              <legend>环境检测</legend>
              
              <table class="style1">
                <tr>
                  <td>
                    文件</td>
                  <td>
                    读写支持</td>
                </tr>
                <tr>
                  <td>
                    app.config</td>
                  <td>
                    <asp:Label ID="lbApp" runat="server"></asp:Label>
                  </td>
                </tr>
                <tr>
                  <td>
                    db.config</td>
                  <td>
                    <asp:Label ID="lbDb" runat="server"></asp:Label>
                  </td>
                </tr>
                <tr>
                  <td>
                    SetUp.config</td>
                  <td>
                    <asp:Label ID="lbSetUp" runat="server"></asp:Label>
                  </td>
                </tr>                
                             
              </table>
              
            </fieldset>
          </div>
          <br />
          <table align="center" class="style2">
            <tr>
              <td height="32">
          
          数据库类型：</td>
              <td>
                <asp:DropDownList ID="DbType" runat="server">
      <asp:ListItem Value="2000">SqlServer2000</asp:ListItem>
      <asp:ListItem Value="2005">SqlServer2005</asp:ListItem>
    </asp:DropDownList>
              </td>
            </tr>
            <tr>
              <td height="32">
    数据库地址：</td>
              <td>
                <asp:TextBox ID="db_host" runat="server">local</asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
      ControlToValidate="db_host" ErrorMessage="请填写您的数据库服务器IP地址或名称"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td height="32">
    数据库名称：</td>
              <td>
                <asp:TextBox ID="db_name" runat="server">totnetcms</asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
      ControlToValidate="db_name" ErrorMessage="请填写您的数据库名称"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td height="32">
    用&nbsp;&nbsp;&nbsp; 户&nbsp;&nbsp;&nbsp; 名：</td>
              <td>
                <asp:TextBox ID="db_username" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
      ControlToValidate="db_username" ErrorMessage="请填写您的数据库联接用户名"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td height="32">
    密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 码：</td>
              <td>
                <asp:TextBox ID="db_password" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
      ControlToValidate="db_password" ErrorMessage="连接密码请填写数据库"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td height="32">
                &nbsp;</td>
              <td>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="安装系统" />
              </td>
            </tr>
          </table>
          </td>
      </tr>
      <tr>
        <td colspan="2">
          &nbsp;</td>
      </tr>
    </table>
    
    </form>
<p align="center">
  提示：首先请确定在Sqlserver企业管理器中已创建一个空的数据库(假如名字为totnetcms)及连接该数据库的用户名和密码，然后填写上面信息，安装程序将会连接至数据库并创建CMS表结构信息。</p>
</body>
</html>
