<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="step2.aspx.cs" Inherits="DTInstall.Install.step2" %>

<!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>
<title>安装 鼎太播客</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rev="stylesheet" media="all" href="css/styles.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
    function showLoading() {
        var siteNameLen=document.getElementById("txtSiteName").value.trim().length;
        var siteUrlLen = document.getElementById("txtSiteUrl").value.trim().length
        var siteProtLen = document.getElementById("txtSitePort").value.trim().length
        if (siteNameLen > 0 && siteProtLen > 0 && siteUrlLen > 0) {

            document.getElementById("loading").style.display = "block"
        } else {
        return false;
        }
    }
    String.prototype.trim = function() {
        // 用正则表达式将前后空格  
        // 用空字符串替代。  
        return this.replace(/(^\s*)|(\s*$)/g, "");
    }
</script>
</head>
<body >
<form name="Form1" id="Form1" runat="server">
  <table cellspacing="1" cellpadding="0" width="700" align="center" bgcolor="#666666"
            border="0">
    <tr>
      <td bgcolor="#ffffff"><table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
          <tr>
            <td bgcolor="#333" colspan="2"><table cellspacing="0" cellpadding="8" width="100%" border="0">
                <tr>
                  <td><font color="#ffffff">安装鼎太播客</font></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td valign="top" width="180"><img src="images/logo.jpg" width="180" height="300"/> </td>
            <td valign="top" width="520"><br/>
              <table cellspacing="0" cellpadding="8" width="100%" border="0">
                <tr>
                  <td><p> 
                      <asp:Label ID="labState" runat="server" Text="文件站点的配置" Font-Size="Medium"></asp:Label>
                      </p>
                    <table cellspacing="0" cellpadding="8" width="100%" border="0">
                      <tr>
                        <td width="30%" style="background-color: #f5f5f5">网站的名称:</td>
                        <td style="width: 352px;background-color: #f5f5f5"><asp:TextBox ID="txtSiteName" runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                                runat="server" ControlToValidate="txtSiteName" ErrorMessage="请填写网站名称"></asp:RequiredFieldValidator>
                                                  </td>
                      </tr> 
                      <tr>
                        <td width="30%" style="background-color: #f5f5f5">网站的域名:</td>
                        <td style="width: 352px;background-color: #f5f5f5"><asp:TextBox ID="txtSiteUrl" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                                runat="server" ControlToValidate="txtSiteUrl" ErrorMessage="请填写网站域名" Display="Dynamic"></asp:RequiredFieldValidator>
                          </td>
                      </tr>
                       <tr id="tr5">
                        <td style="background-color: #f5f5f5"><span> 端口号:</span></td>
                        <td style= "width: 352px;background-color: #f5f5f5"><asp:TextBox ID="txtSitePort" runat="server" Text="80"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                                runat="server" ControlToValidate="txtSitePort" ErrorMessage="请填写端口号"></asp:RequiredFieldValidator>
                            </td></tr>
                       <tr>
                        <td>&nbsp;</td>
                        <td style="width: 352px">
                            <asp:Button ID="Button1" runat="server" OnClientClick="showLoading()" Text="安装" Height="30px" Width="88px" onclick="Button1_Click" 
                                />
                        </td>
                      </tr>
                      <tr><td colspan="2"><center><img id="loading" style="display:none" src="/Image/loading.gif"/></center></td></tr>
                    </table>
                    </td>
                </tr>
              </table>
              </td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table></td>
    </tr>
  </table>
<!--#include file="copyright.htm"  -->
</form>
</body>
</html>