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

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>system</title>
    <meta name="description" content="overview &amp; stats" />
    <!--#include file = "../assets/head.htm" -->
    <base target="_self" />
</head>
<body class="no-skin">
    <form id="frmSpaceStat" method="post" runat="server">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        主页
                    </li>
                    <li>站点运行监控</li>
                    <li class="active">站点批量参数设置</li>
                </ul>
                <!-- /.breadcrumb -->

                <!-- /section:basics/content.searchbox -->
            </div>
            <!-- /section:basics/content.breadcrumbs -->

            <div class="page-content">
                <!-- PAGE CONTENT BEGINS -->

                <div class="row form-horizontal">
                    <div class="col-xs-12">
                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">图片格式：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="picType" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">中间以“|”隔开,如：gif|jpg|jpeg|bmp</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">flash格式：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="flashType" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">中间以“|”隔开</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">媒体格式：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="mediaType" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">中间以“|”隔开</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">其他格式：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="otherType" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">中间以“|”隔开</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">图片上传大小限制：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="picSize" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <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>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">文件大小单位为KB，0表示没有限制</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">flash上传大小限制：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="flashSize" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <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>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">文件大小单位为KB，0表示没有限制</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">媒体文件上传大小限制：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="mediaSize" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <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>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">文件大小单位为KB，0表示没有限制</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">其他文件上传大小限制：</label>
                            <div class="col-sm-9">
                                <asp:TextBox ID="otherSize" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                <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>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">文件大小单位为KB，0表示没有限制</span>
                                </span>
                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">用户密码等级设置：</label>
                            <div class="col-sm-9">
                                
                                <asp:DropDownList ID="UserStrongPasswordRank" runat="server" CssClass="col-sm-4 input-md">
                                    <asp:ListItem Text="弱密码" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="普通密码" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="强密码" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                                <span class="help-inline col-xs-12 col-sm-7">
                                    <span class="middle">[弱密码:任意字符；普通密码:数字或字母的组合；强密码:数字,字母和特殊字符的组合]</span>
                                </span>
                            </div>
                        </div>
                        
                    </div>

                    <div class="col-md-offset-3 col-md-9">
                        <asp:Button ID="editSystem" runat="server" Text="修 改" OnClick="editSystem_Click"
                            CssClass="btn btn-sm btn-primary"></asp:Button>&emsp;&nbsp;<asp:Button ID="reset" runat="server" Text="重 载"
                                OnClick="reset_Click" CssClass="btn btn-sm btn-primary" CausesValidation="False"></asp:Button>
                    </div>
                </div>
                <div class="page-header">
                </div>
                <div class="row form-horizontal">
                    <div class="col-xs-12">
                        <div class="alert alert-info">
                            批量设置站点属性
											<br>
                        </div>
                        <div class="col-sm-4 col-sm-offset-2">
                            <asp:ListBox ID="schoolList" Width="100%" Rows="10" Height="270px" runat="server"></asp:ListBox>
                        </div>
                        <div class="col-sm-6">
                            <p>
                                <asp:Button ID="btnSelSchools" runat="server" CssClass="btn btn-sm btn-primary" Text="选择站点"></asp:Button></p>
                            <p>
                                <asp:Button ID="btnStat" runat="server" CssClass="btn btn-sm btn-primary" Text="批量更新" OnClientClick="javascript:queryform();return true;" OnClick="btnStat_Click"></asp:Button></p>
                            
                        <input id="d_name" type="hidden" name="Hidden1" runat="server" />
                        <input id="d_value" type="hidden" name="Hidden2" runat="server" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
     <!--#include file = "../assets/foot.htm" -->
       <script type="text/javascript">

           $(function () {
               $("#btnSelSchools").fancybox({
                   autoSize: false,
                   'type': 'iframe',
                   'width': 600,
                   'height': 450,
                   'hideOnOverlayClick': false,
                   'href': 'selectSchools.aspx'
               });
           })
    </script>

    <script type="text/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>
</body>
</html>
