<%@ Page Language="c#" Inherits="WebApp.Wpdcc.manageUnitInfo" CodeBehind="manageUnitInfo.aspx.cs" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
	<title>网站基本属性</title>
	<meta name="description" content="网站基本属性" />

    <!--#include file = "../assets/head.htm" -->
	
</head>
<body class="no-skin">
<form id="Form1" method="post" runat="server" class="form-horizontal">
	<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">

			<!-- /section:settings.box -->

			<!-- PAGE CONTENT BEGINS -->
			<div class="row">
			
			<div class="col-xs-12">
							<!-- #section:elements.tab -->
							<div class="tabbable">
								<ul class="nav nav-tabs">
									<li class="active">
										<a href="#manageunitinfo" >
											<i class="green ace-icon fa fa-home bigger-120"></i>
											站群基本信息
										</a>
									</li>

									<li class="">
										<a href="manageBasic.aspx" target="_self">
											站群系统参数
										</a>
									</li>
									
									<li class="">
										<a href="manageSSO.aspx" target="_self">
											单点登录配置
										</a>
									</li>
									
									<li class="">
										<a href="manageSMTP.aspx" target="_self">
											电子邮箱参数
										</a>
									</li>
								</ul>

								<div class="tab-content">
									<div class="tab-pane fade active in">
									
								    <!-- #section:elements.form -->
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="siteName">网站名称</label>

									    <div class="col-sm-9">
									        <asp:TextBox ID="siteName" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true" MaxLength="100" msgname="网站名称"></asp:TextBox>
										    
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="siteUrl">网站地址(域名)</label>

									    <div class="col-sm-9">
										    <asp:TextBox ID="siteUrl" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true" MaxLength="100" msgname="网站地址(域名)" regex="[a-zA-z]+://[^\s]*" regexMsg="网址格式错误!"></asp:TextBox>
									    </div>
								    </div>
								    
								    <!-- /section:elements.form -->
								    <div class="space-4"></div>
								    
                                    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="unitName"><font color="red">*</font>单位名称</label>

									    <div class="col-sm-9">
										    <asp:TextBox ID="unitName" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true" MaxLength="100" msgname="单位名称"></asp:TextBox>
									    </div>
									    
								    </div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="seiral"><font color="red">*</font>序列号</label>

									    <div class="col-sm-9">
									        <div class="input-group col-xs-10 col-sm-5">
									            <asp:TextBox ID="seiral" runat="server" CssClass="form-control input-mask-product col-xs-10 col-sm-5" notnull="true" MaxLength="50" msgname="序列号"></asp:TextBox>
									            <span class="input-group-addon">
						                            <i class="ace-icon fa fa-key"></i>
					                            </span>
										    </div>
									    </div>
								    </div>

								    <div class="space-4"></div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="unitAddress">单位地址</label>

									    <div class="col-sm-9">
									        
										    <asp:TextBox ID="unitAddress" runat="server" CssClass="col-xs-10 col-sm-5" MaxLength="100"></asp:TextBox>
									    </div>
								    </div>
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="Phone">联系电话</label>

									    <div class="col-sm-9">
									        
										    <asp:TextBox ID="Phone" runat="server" CssClass="col-xs-10 col-sm-5" MaxLength="100"></asp:TextBox>
									    </div>
								    </div>
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="mailName">信箱名称</label>

									    <div class="col-sm-9">
									        <asp:TextBox ID="mailName" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true" MaxLength="100" msgname="信箱名称"></asp:TextBox>
									    </div>
								    </div>
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="mail">信箱地址</label>

									    <div class="col-sm-9">
									        <asp:TextBox ID="mail" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true"
                                                        MaxLength="100" msgname="邮箱地址" regex="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                        regexMsg="email地址格式错误!"></asp:TextBox>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="copyRight">版权说明</label>

									    <div class="col-sm-9">
									        <asp:TextBox ID="copyRight" runat="server" CssClass="col-xs-10 col-sm-5" notnull="true" MaxLength="100" msgname="版权说明" ></asp:TextBox>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="version">版本信息</label>

									    <div class="col-sm-9">
									        <asp:TextBox ID="version" runat="server" CssClass="col-xs-10 col-sm-5" ReadOnly="True">ZDSoft网站生成系统</asp:TextBox>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label class="col-sm-3 control-label no-padding-right" for="versionId">版本号</label>

									    <div class="col-sm-9">
									        <asp:Label ID="versionId" runat="server" ></asp:Label>
									    </div>
								    </div>
								    
									<div class="clearfix">
									    <div class="col-md-offset-3 col-md-2">
									        <asp:Button ID="ok" CssClass="btn btn-sm btn-primary" runat="server" OnClick="ok_Click" OnClientClick="return checkAllValidate();" Text="保存" ></asp:Button>
										    &nbsp;&nbsp;&nbsp;
										    <asp:Button ID="reset" CssClass="btn btn-sm btn-primary" runat="server" CausesValidation="False" OnClick="reset_Click" Text="重载"></asp:Button>
									    </div>
									    <div id="showMessage" ></div>
								    </div>
									
									</div>
								</div>
								
							</div>

							<!-- /section:elements.tab -->
						</div>
		
		    </div>
	    <!-- PAGE CONTENT ENDS -->
        </div>
    </div>
	
	</form>
	<!--#include file = "../assets/foot.htm" -->
    <script type="text/javascript">
        function showMessage(i) {
            switch (i) {
                case "1":
                    $('#showMessage').html("<div class=\"alert alert-block alert-success col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-check green\"></i>保存成功</div>");
                    break;
                case "2":
                    $('#showMessage').html("<div class=\"alert alert-danger col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-times\"></i>序列号不匹配</div>");
                    break;
                case "3":
                    $('#showMessage').html("<div class=\"alert alert-danger col-sm-5\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-times\"></i>本系统是站群应用版本，不能使用非站群应用的序列号。</div>");
                    break;
                case "4":
                    $('#showMessage').html("<div class=\"alert alert-danger col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-times\"></i>配置文件不存在</div>");
                    break;
                case "5":
                    $('#showMessage').html("<div class=\"alert alert-danger col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-times\"></i>配置文件已损坏</div>");
                    break;
                case "6":
                    $('#showMessage').html("<div class=\"alert alert-danger col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-times\"></i>配置文件修改失败</div>");
                    break;
            }
        }
    </script>
</body>
</html>
