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

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

    <script language="javascript">
			function selectSchools()
			{	
				var arr = showModalDialog("selectSchools.aspx", window, "dialogWidth:500px;dialogHeight:326px;help:no;scroll:no;resizable:yes;status:no");
		   		if(arr!=null)
		   		  location.href="SetWebSiteProperty.aspx";
			}
			function DelAll() 
			{
				var selectTo=document.frmSpaceStat.schoolList;
				var nLen = selectTo.length;
				if (nLen<1) return;
				for(var loop=nLen;loop>=0;loop--)
				{ 
               		selectTo.options[loop] = null;
               	}			  
			}
			function checkform(text,value) 
			{				
				var selectFrom=document.frmSpaceStat.schoolList;
			    selectFrom.add(new Option(text,value));
			    //alert(text+","+value);
			}
			function queryform() {
				var sel=document.frmSpaceStat.schoolList;
				var nLen = sel.length;
				var str1="";
				var str2="";
				for (var i=0;i<nLen;i++) {
					if (i>0) 
					{str2+=",";str1+=",";}
					str2+=sel.options[i].value;
					str1+=sel.options[i].text;
				}
				document.frmSpaceStat.d_name.value=str1;
				document.frmSpaceStat.d_value.value=str2;
				//alert(str1+str2);
				return true;
			}
    </script>

    <base target="_self" />
</head>
<body leftmargin="0" topmargin="0">
    <div class="edit-func-box func-box">
        <div class="hd">
            上传文件条件设置
        </div>
        <form id="frmSpaceStat" method="post" runat="server">
        <div class="bd">
            <table id="Table1" class="edit-table">
                <font face="宋体"></font>
                <tr>
                    <th width="25%">
                        <p align="right">
                            图片格式：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="picType" runat="server" CssClass="input-txt input-txt3"></asp:TextBox>
                        中间以“|”隔开,如：gif|jpg|jpeg|bmp
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            flash格式：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="flashType" runat="server" CssClass="input-txt input-txt3"></asp:TextBox>中间以“|”隔开
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            媒体格式：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="mediaType" runat="server" CssClass="input-txt input-txt3"></asp:TextBox>中间以“|”隔开
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            其他格式：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="otherType" runat="server" CssClass="input-txt input-txt3"></asp:TextBox>中间以“|”隔开
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            远程格式：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="remoteType" runat="server" CssClass="input-txt input-txt3"></asp:TextBox>中间以“|”隔开
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            <font face="宋体">图片上传大小限制：</font>
                        </p>
                    </th>
                    <td width="75%">
                        <font face="宋体">
                            <asp:TextBox ID="picSize" runat="server" Width="94px"></asp:TextBox>文件大小单位为KB，0表示没有限制<asp:CompareValidator
                                ID="CompareValidator1" runat="server" Display="Dynamic" ErrorMessage="大小必须为大于等于0的整数"
                                Operator="GreaterThanEqual" Type="Integer" ValueToCompare="0" ControlToValidate="picSize"></asp:CompareValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="picSize"
                                ErrorMessage="不能为空！"></asp:RequiredFieldValidator></font>
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            <font face="宋体">flash上传大小限制：</font>
                        </p>
                    </th>
                    <td width="75%">
                        <font face="宋体">
                            <asp:TextBox ID="flashSize" runat="server" Width="93px"></asp:TextBox>文件大小单位为KB，0表示没有限制<asp:CompareValidator
                                ID="CompareValidator2" runat="server" Display="Dynamic" ErrorMessage="大小必须为大于等于0的整数"
                                Operator="GreaterThanEqual" Type="Integer" ValueToCompare="0" ControlToValidate="flashSize"></asp:CompareValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="flashSize"
                                ErrorMessage="不能为空！"></asp:RequiredFieldValidator></font>
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            媒体文件上传大小限制：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="mediaSize" runat="server" Width="88px"></asp:TextBox>文件大小单位为KB，0表示没有限制<asp:CompareValidator
                            ID="CompareValidator3" runat="server" Display="Dynamic" ErrorMessage="大小必须为大于等于0的整数"
                            Operator="GreaterThanEqual" Type="Integer" ValueToCompare="0" ControlToValidate="mediaSize"></asp:CompareValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="mediaSize"
                            ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            其他文件上传大小限制：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="otherSize" runat="server" Width="88px"></asp:TextBox>文件大小单位为KB，0表示没有限制<asp:CompareValidator
                            ID="CompareValidator4" runat="server" Display="Dynamic" ErrorMessage="大小必须为大于等于0的整数"
                            Operator="GreaterThanEqual" Type="Integer" ValueToCompare="0" ControlToValidate="otherSize"></asp:CompareValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="otherSize"
                            ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th width="25%">
                        <p align="right">
                            远程文件上传大小限制：</p>
                    </th>
                    <td width="75%">
                        <asp:TextBox ID="remoteSize" runat="server" Width="88px"></asp:TextBox>文件大小单位为KB，0表示没有限制<asp:CompareValidator
                            ID="CompareValidator5" runat="server" Display="Dynamic" ErrorMessage="大小必须为大于等于0的整数"
                            Operator="GreaterThanEqual" Type="Integer" ValueToCompare="0" ControlToValidate="remoteSize"></asp:CompareValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="remoteSize"
                            ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            <div class="ft">
                <div class="action-field txt-c">
                    <asp:Button ID="editSystem" runat="server" Text="修 改" OnClick="editSystem_Click"
                        CssClass="btn"></asp:Button>&nbsp;<asp:Button ID="reset" runat="server" Text="重 载"
                            OnClick="reset_Click" CssClass="btn" CausesValidation="False"></asp:Button>&nbsp;</font></div>
            </div>
        </div>
        <!--/action-field-->
        <div class="hd">
            批量设置子站属性
        </div>
        <%--      <div class="function-hd">
                <div class="search-box fr">
                </div>
                <!--/search-box-->
                <div class="action-field">
                    
                </div>
                <!--/action-field-->
            </div>--%>
        <div class="bd">
            <table cellspacing="0" cellpadding="2" width="560" align="center" style="margin-top: 5px">
                <tr class="tdbg">
                    <td align="left" width="70%">
                        <asp:ListBox ID="schoolList" runat="server" Width="100%" Height="216px" Rows="10">
                        </asp:ListBox>
                    </td>
                    <td>
                        <asp:Button ID="btnSelSchools" runat="server" CssClass="btn" Text="选择子站"></asp:Button><br />
                        <br />
                        <asp:Button ID="btnStat" runat="server"  CssClass="btn" Text="批量更新" OnClick="btnStat_Click">
                        </asp:Button>
                    </td>
                </tr>
            </table>
            <div class="ft">
                <div class="pagination">
                    <font face="宋体">
                        <input id="d_name" style="width: 80px; height: 21px" type="hidden" size="8" name="Hidden1"
                            runat="server"><input id="d_value" style="width: 88px; height: 21px" type="hidden"
                                size="9" name="Hidden2" runat="server"></font>
                </div>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
