<%@ Page Language="c#" Inherits="WebApp.Auditing" CodeBehind="Auditing.aspx.cs" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站审核</title>
    <meta name="description" content="overview &amp; stats" />
    <!--#include file = "../assets/head.htm" -->
    <script src="../assets/js/validate.js" type="text/javascript"></script>
    <script type="text/javascript">
    function checkAll()
    {
        //验证
        return checkAllValidate();
    }
    
    function change() {
        var arr = document.frmAuditing.txtSchoolName.value;
        if (arr != "")
            document.frmAuditing.txtDesnPath.value = document.all.SystemPath.value + arr;
    }
    function sendEmail(id) {
        //document.frmAuditing.pass.checked
        var temp = document.frmAuditing.rbNotPass.checked;
        var email = document.frmAuditing.txtEmail.value;
        if (temp == true) {
            //showModalDialog("SendEmail.aspx?email="+email+"&id="+id,window, "dialogWidth:550px;dialogHeight:400px;help:no;scroll:no;status:no");
        }
    }
    function showSend(value) {
        if (value == 0) {
            document.frmAuditing.btnSendMail.style.visibility = "hidden";
        }
        else {
            document.frmAuditing.btnSendMail.style.visibility = "visible";
        }
    }

</script>
</head>
<body class="no-skin">
    <form id="frmAuditing" method="post" runat="server">
        <div class="main-content-inner">
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <!-- PAGE CONTENT BEGINS -->
                <div class="page-header">
                    <h1>站点开通审核
						<small>
                            <i class="ace-icon fa fa-angle-double-right"></i>
                            网站审核
                        </small>
                    </h1>
                </div>
                
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <table class="table table-striped table-bordered">
                        <tr>
                            <th>
                                <font color="red">*</font>网站名称：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="txtSchoolName" CssClass="col-xs-10 col-sm-6" runat="server" onchange="change();" notNull="true" msgName="网站名称"></asp:TextBox>
                                <asp:Label ID="lblError_1" runat="server" CssClass="middle"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <font color="red">*</font>序列号：
                            </th>
                            <td colspan="3">
                                <div class="input-group col-xs-10 col-sm-6">
                                <asp:TextBox ID="txtSN" CssClass="form-control input-mask-product col-xs-10 col-sm-6" runat="server" notNull="true" msgName="序列号"></asp:TextBox>
                                <span class="input-group-addon">
								    <i class="ace-icon fa fa-key"></i>
							    </span>
							    </div>
                                <asp:Label ID="lblError_2" runat="server" CssClass="middle"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <font color="red">*</font>域名：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="txtDomainName" CssClass="input-txt input-txt1" runat="server" notNull="true" msgName="域名"></asp:TextBox>
                                <asp:Label ID="lblError_3" runat="server" CssClass="small">注：请确保所填写的域名与将建站的Web服务器IP地址之间已做好域名解析，否则网站将不能正常访问。</asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th width="15%">
                                <font color="red">*</font>WEB服务器：
                            </th>
                            <td width="35%">
                                <asp:DropDownList ID="ddlServer" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlServer_SelectedIndexChanged"></asp:DropDownList>
                            </td>
                            <th width="15%">
                                <font color="red">*</font>WEB服务：
                            </th>
                            <td width="35%">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlWebServer" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlWebServer_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                
                                                <asp:RequiredFieldValidator ID="reqddlWebServer" runat="server" ControlToValidate="ddlWebServer" Display="Dynamic" ErrorMessage="请选择WEB服务" ValidationGroup="auditweb"></asp:RequiredFieldValidator>
                                                
                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="ddlServer" EventName="SelectedIndexChanged" />
                                            </Triggers>
                                        </asp:UpdatePanel>
                                        <asp:Label ID="lbSpace" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>服务器IP：
                            </th>
                            <td>
                                <asp:TextBox ID="txtIP" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqIP" runat="server" Display="Dynamic" ControlToValidate="txtIP" ErrorMessage="请输入服务器IP"></asp:RequiredFieldValidator>
                            </td>
                            <th>
                                <font color="red">*</font>端口号：
                            </th>
                            <td>
                                <asp:TextBox ID="txtPort" runat="server">80</asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqPort" runat="server" Display="Dynamic" ControlToValidate="txtPort"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="validPort" runat="server" Display="Dynamic" ControlToValidate="txtPort" ErrorMessage=" 端口号为数字型" Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator>
                             </td>
                        </tr>
                        <tr>
                            <th>
                                <font color="red">*</font>数据库服务：
                            </th>
                            <td>
                                <asp:DropDownList ID="ddlDBServer" runat="server"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="reqddlDbServer" runat="server" ControlToValidate="ddlDBServer" Display="Dynamic" ErrorMessage="请选择数据库服务" Font-Bold="False" Font-Italic="False" ValidationGroup="auditweb"></asp:RequiredFieldValidator>
                                        
                            </td>
                            <th>
                                <font color="red">*</font>分配空间大小：
                            </th>
                            <td>
                                <asp:TextBox ID="txtWebSpace" runat="server" MaxLength="4" CssClass="col-xs-10 col-sm-2">0</asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqWebSpace" runat="server" Display="Dynamic" ControlToValidate="txtWebSpace" ErrorMessage="请输入网站空间大小" ValidationGroup="auditweb"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="validWebSpace" runat="server" Display="Dynamic" ControlToValidate="txtWebSpace" ErrorMessage=" 网站空间大小必须为大于等于0的整数" Type="Integer" Operator="GreaterThanEqual" ValueToCompare="0" ValidationGroup="auditweb"></asp:CompareValidator>
                                <span class="middle">MB（0为不限制大小）</span>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>目标文件夹路径：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDesnPath" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqDesnPath" runat="server" Display="Dynamic" ControlToValidate="txtDesnPath"></asp:RequiredFieldValidator>
                                <asp:Label ID="lblError_4" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <th>
                                <font color="red">*</font>网站服务器IP：
                            </th>
                            <td>
                                <asp:TextBox ID="txtSysIP" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqSysIP" Enabled="False" runat="server" Display="Dynamic" ControlToValidate="txtSysIP"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>网站管理员：
                            </th>
                            <td>
                                <asp:TextBox ID="txtSysAdmin" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqSysAdmin" Enabled="False" runat="server" Display="Dynamic" ControlToValidate="txtSysAdmin"></asp:RequiredFieldValidator>
                            </td>
                            <th>
                                <font color="red">*</font>网站管理员密码：
                            </th>
                            <td>
                                <asp:TextBox ID="txtSysPwd" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqSysPwd" Enabled="False" runat="server" Display="Dynamic" ControlToValidate="txtSysPwd"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>数据库IP：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDBIP" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqDBIP" runat="server" Display="Dynamic" ControlToValidate="txtDBIP" ErrorMessage="请输入数据库IP"></asp:RequiredFieldValidator>
                            </td>
                            <th>
                                <font color="red">*</font>数据库管理员：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDBAdmin" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqDBAdmin" runat="server" Display="Dynamic" ControlToValidate="txtDBAdmin" ErrorMessage="请输入数据库管理员"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>数据库管理员密码：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDBAdminPwd" runat="server" TextMode="Password"></asp:TextBox>
                                        <span class="middle">*</span>
                                        <asp:RequiredFieldValidator ID="reqDBAdminPwd" runat="server" Display="Dynamic" ControlToValidate="txtDBAdminPwd"
                                            ErrorMessage="请输入数据库管理员密码"></asp:RequiredFieldValidator>
                            </td>
                            <th>
                                <font color="red">*</font>数据库名称：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDBName" runat="server"></asp:TextBox>
                                        <span class="middle">以字母开头，可以是字母与数字的组合！</span>
                                        <asp:RequiredFieldValidator ID="reqDBName" runat="server" Display="Dynamic" ControlToValidate="txtDBName"
                                            ErrorMessage="请输入数据库名称"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDBName"
                                            ErrorMessage="数据库命名错误！" ValidationExpression="^[a-zA-Z][a-zA-Z0-9]*$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <th>
                                <font color="red">*</font>数据库访问密码：
                            </th>
                            <td>
                                <asp:TextBox ID="txtDBUserPwd" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqDBUserPwd" runat="server" Display="Dynamic" ControlToValidate="txtDBUserPwd" ErrorMessage="请输入数据库访问密码"></asp:RequiredFieldValidator>
                            </td>
                            <th>
                                
                            </th>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <font color="red">*</font>联系人：
                            </th>
                            <td>
                                <asp:TextBox ID="txtLinkman" CssClass="input-txt input-txt1" runat="server" notNull="true" msgName="联系人"></asp:TextBox>
                            </td>
                            <th>
                                <font color="red">*</font>联系电话：
                            </th>
                            <td>
                                <asp:TextBox ID="txtPhone" CssClass="input-txt input-txt1" runat="server" notNull="true" msgName="联系电话"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <font color="red">*</font>E-mail：
                            </th>
                            <td>
                                <asp:TextBox ID="txtEmail" CssClass="input-txt input-txt1" runat="server" notNull="true" msgName="电子邮件" regex="/^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$/" regexMsg="信箱格式不正确"></asp:TextBox>
                            </td>
                            <th>
                                QQ：
                            </th>
                            <td>
                                <asp:TextBox ID="txtQQ" CssClass="input-txt input-txt1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                移动电话：
                            </th>
                            <td>
                                <asp:TextBox ID="txtMobile" CssClass="input-txt input-txt1" runat="server"></asp:TextBox>
                            </td>
                            <th>
                                MSN：
                            </th>
                            <td>
                                <asp:TextBox ID="txtMSN" CssClass="input-txt input-txt1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                备注：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Rows="2" CssClass="input-txt" Width="380"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                                <asp:Button ID="btnSave" Text="审核通过" runat="server" class="btn btn-sm btn-primary" OnClientClick="return checkAll()" OnClick="btnSave_Click" ValidationGroup="auditweb"></asp:Button>
                                &emsp;
                                <input onclick="parent.$.fancybox.close();" type="button" class="btn btn-sm btn-primary" value="关闭" name="btnClose" />
                                <asp:Label ID="lblInfo" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    </div>
                </div>
            </div>
            <input id="SystemPath" type="hidden" name="Hidden1" runat="server" />
        </div>
    </form>
</body>
</html>
