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

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head id="Head1" runat="server">
    <title>添加网站</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.htm" -->
</head>

<script language="javascript" type="text/javascript">
			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>

<body>
    <div class="edit-func-box func-box">
        <div class="hd">
            申请信息：</div>
        <form id="frmAuditing" method="post" runat="server">
        <div class="bd">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <table class="edit-table">
                <tr>
                    <th width="25%">
                        网站名称：
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="txtSchoolName" CssClass="input-txt input-txt3" runat="server" Enabled="False"
                            onchange="change();"></asp:TextBox><asp:Label ID="lblError_1" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        序列号：
                    </th>
                    <td>
                        <asp:TextBox ID="txtSN" CssClass="input-txt input-txt3" runat="server" Enabled="False"></asp:TextBox><asp:Label
                            ID="lblError_2" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        域名：
                    </th>
                    <td>
                        <asp:TextBox ID="txtDomainName" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox><asp:Label
                            ID="lblError_3" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        联系人：
                    </th>
                    <td>
                        <asp:TextBox ID="txtLinkman" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox><font
                            color="red">&nbsp;</font>
                    </td>
                </tr>
                <tr>
                    <th>
                        联系电话：
                    </th>
                    <td>
                        <asp:TextBox ID="txtPhone" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox><font
                            color="red">&nbsp;</font>
                    </td>
                </tr>
                <tr>
                    <th>
                        E-mail：
                    </th>
                    <td>
                        <asp:TextBox ID="txtEmail" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox><font
                            color="red">&nbsp;</font>
                    </td>
                </tr>
                <tr>
                    <th>
                        QQ：
                    </th>
                    <td>
                        <asp:TextBox ID="txtQQ" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        MSN：
                    </th>
                    <td>
                        <asp:TextBox ID="txtMSN" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        移动电话：
                    </th>
                    <td>
                        <asp:TextBox ID="txtMobile" CssClass="input-txt input-txt1" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <div class="ft">
                <div class="action-field txt-c">
                    <asp:RadioButton ID="rbPass" runat="server" Text="通过" GroupName="Auditing" Checked="True">
                    </asp:RadioButton><asp:RadioButton ID="rbNotPass" runat="server" Text="不通过" GroupName="Auditing">
                    </asp:RadioButton>&nbsp;&nbsp;<asp:Button ID="btnTest" CssClass="btn" Text="确 定"
                        CausesValidation="False" runat="server" OnClick="btnTest_Click"></asp:Button>&nbsp;&nbsp;<input
                            onclick="javascript:window.close();" type="button" class="btn" value="关闭" name="btnClose">&nbsp;
                    <asp:Label ID="lblInfo" runat="server"></asp:Label><br>
                </div>
            </div>
            <table id="table" style="visibility: hidden" cellspacing="0" cellpadding="0" width="720"
                align="center" border="0" runat="server">
                <tr>
                    <td align="right">
                        <asp:Panel ID="pnlAuditing" Width="720" runat="server">
                            <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                <tr class="topbg">
                                    <td align="right" width="25%">
                                        网站配置：
                                    </td>
                                    <td colspan="4" align="left">
                                        <font face="宋体">&nbsp;</font>
                                    </td>
                                </tr>
                                <tr class="tdbg">
                                    <td align="right" style="height: 23px">
                                        WEB服务器：
                                    </td>
                                    <td width="3%" align="left" style="height: 23px;">
                                        <asp:DropDownList ID="ddlServer" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlServer_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right" style="width: 63px">
                                        WEB服务：
                                    </td>
                                    <td width="26%" align="left">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlWebServer" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlWebServer_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                <span style="color: #ff0000">*</span>
                                                <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>
                                    </td>
                                    <td width="27%" align="left">
                                        <asp:Label ID="lbSpace" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right" width="25%">
                                        服务器IP：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtIP" runat="server"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqIP" runat="server" Display="Dynamic" ControlToValidate="txtIP"
                                            ErrorMessage="请输入服务器IP"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right">
                                        端口号：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtPort" runat="server" Width="56px">80</asp:TextBox>
                                        <font color="red">*</font>
                                        <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 class="tdbg">
                                    <td align="right">
                                        网站分配空间大小：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtWebSpace" runat="server" Width="56px" MaxLength="4">0</asp:TextBox>
                                        MB（0为不限制大小） <font color="red">*</font>
                                        <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>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right">
                                        目标文件夹路径：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtDesnPath" runat="server" Width="376px"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqDesnPath" runat="server" Display="Dynamic" ControlToValidate="txtDesnPath"></asp:RequiredFieldValidator>
                                        <asp:Label ID="lblError_4" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr style="display: none">
                                    <td align="right">
                                        网站服务器IP：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtSysIP" runat="server"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqSysIP" Enabled="False" runat="server" Display="Dynamic"
                                            ControlToValidate="txtSysIP"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr style="display: none">
                                    <td align="right">
                                        网站管理员：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtSysAdmin" runat="server" Width="112px"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqSysAdmin" Enabled="False" runat="server" Display="Dynamic"
                                            ControlToValidate="txtSysAdmin"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr style="display: none">
                                    <td align="right">
                                        网站管理员密码：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtSysPwd" runat="server" Width="112px" TextMode="Password"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqSysPwd" Enabled="False" runat="server" Display="Dynamic"
                                            ControlToValidate="txtSysPwd"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg">
                                    <td align="right">
                                        数据库服务：
                                    </td>
                                    <td align="left">
                                        <asp:DropDownList ID="ddlDBServer" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="left" style="width: 63px">
                                        &nbsp;<span style="color: #ff0000">*</span>
                                    </td>
                                    <td colspan="2" align="left">
                                        &nbsp;
                                        <asp:RequiredFieldValidator ID="reqddlDbServer" runat="server" ControlToValidate="ddlDBServer"
                                            Display="Dynamic" ErrorMessage="请选择数据库服务" Font-Bold="False" Font-Italic="False"
                                            ValidationGroup="auditweb" Width="133px"></asp:RequiredFieldValidator>
                                        <span style="color: #ff0000"></span>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right">
                                        数据库IP：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtDBIP" runat="server"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqDBIP" runat="server" Display="Dynamic" ControlToValidate="txtDBIP"
                                            ErrorMessage="请输入数据库IP"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right">
                                        数据库管理员：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtDBAdmin" runat="server" Width="112px"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqDBAdmin" runat="server" Display="Dynamic" ControlToValidate="txtDBAdmin"
                                            ErrorMessage="请输入数据库管理员"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right" style="height: 24px">
                                        数据库管理员密码：
                                    </td>
                                    <td colspan="4" align="left" style="height: 24px">
                                        <asp:TextBox ID="txtDBAdminPwd" runat="server" Width="112px" TextMode="Password"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqDBAdminPwd" runat="server" Display="Dynamic" ControlToValidate="txtDBAdminPwd"
                                            ErrorMessage="请输入数据库管理员密码"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td style="height: 21px" align="right">
                                        数据库名称：
                                    </td>
                                    <td colspan="4" align="left" style="height: 21px">
                                        <asp:TextBox ID="txtDBName" runat="server" Width="112px"></asp:TextBox>
                                        <font color="red">*</font>以字母开头，可以是字母与数字的组合！
                                        <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 class="tdbg" style="display: none">
                                    <td align="right">
                                        数据库访问密码：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtDBUserPwd" runat="server" Width="112px" TextMode="Password"></asp:TextBox>
                                        <font color="red">*</font>
                                        <asp:RequiredFieldValidator ID="reqDBUserPwd" runat="server" Display="Dynamic" ControlToValidate="txtDBUserPwd"
                                            ErrorMessage="请输入数据库访问密码"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr class="tdbg" style="display: none">
                                    <td align="right">
                                        备注：
                                    </td>
                                    <td colspan="4" align="left">
                                        <asp:TextBox ID="txtRemark" runat="server" Width="380" TextMode="MultiLine" Rows="4"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="topbg">
                                    <td align="center" colspan="5">
                                        <asp:Button ID="btnSave" Text="保存" runat="server" OnClick="btnSave_Click" ValidationGroup="auditweb">
                                        </asp:Button>
                                        <input onclick="javascript:window.close();" type="button" value="关闭" name="btnClose">
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <input id="SystemPath" type="hidden" name="Hidden1" runat="server">
        </div>
        </form>
    </div>
</body>
</html>
