Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\Domain\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Domain.Edit" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title> <%= this.Title %></title> <%= Import.Theme() %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag() %>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title %></h3> <span class="txt-info">[<a href="#" onclick="GoList();return false;"><%= DefineEnum.???.Define() %></a>]</span> <span class="txt-info">[<a href="InportEdit.aspx">?????????</a>]</span> </div> <div class="gWel-tab"> <div class="tabs txt-link"> <ul> <li>?????? </li> <% if (Has(this.ViewData["_Domain"])) { %> <li>?????? </li> <% } %> </ul> </div> <div class="pans"> <div style="display: none;" class="panel"> <div> <form id="frmDomain" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <%-- <% if (this.ME == true) { %>--%> <tr> <th title="<%= Define.Get("Domain_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Code", this.ViewData["_Domain.Code"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Code") %> </td> </tr> <tr> <th title="<%= Define.Get("Domain_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_Domain.Name"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Name") %> </td> </tr> <%--<% } %>--%> <%-- <tr> <th title="<%= Define.Get("Domain_?????????").ToScriptTag() %>"> <%= Define.Get("Domain_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsMaster", this.ViewData["_Domain.IsMaster"], true, false) { Class = ""}%> </td> </tr>--%> <tr> <th title="<%= Define.Get("Domain_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_??????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_DomainType_????????????").ToScriptTag()%>"> <label for="Domain_DomainType_0"> <%= new HtmlRadio("DomainType", 0, null) { ID = "Domain_DomainType_0", Class = "", Checked = (this.ViewData["_Domain.DomainType"].ToIntN() == 0 ? true : false) }%><%= Define.Get("Domain_DomainType_??????") %></label> <label for="Domain_DomainType_1"> <%= new HtmlRadio("DomainType", 1, null) { ID = "Domain_DomainType_1", Class = "", Checked = (this.ViewData["_Domain.DomainType"].ToIntN() == 1 ? true : false) }%><%= Define.Get("Domain_DomainType_?????") %></label> <label for="Domain_DomainType_2"> <%= new HtmlRadio("DomainType", 2, null) { ID = "Domain_DomainType_2", Class = "", Checked = (this.ViewData["_Domain.DomainType"].ToIntN() == 2 ? true : false) }%><%= Define.Get("Domain_DomainType_????????") %></label> <label for="Domain_DomainType_3"> <%= new HtmlRadio("DomainType", 3, null) { ID = "Domain_DomainType_3", Class = "", Checked = (this.ViewData["_Domain.DomainType"].ToIntN() == 3 ? true : false) }%><%= Define.Get("Domain_DomainType_????????") %></label> <label for="Domain_DomainType_4"> <%= new HtmlRadio("DomainType", 4, null) { ID = "Domain_DomainType_4", Class = "", Checked = (this.ViewData["_Domain.DomainType"].ToIntN() == 4 ? true : false) }%><%= Define.Get("Domain_DomainType_?????") %></label> </td> </tr> <tr style="display: none"> <th title="<%= Define.Get("Domain_Logo").ToScriptTag() %>"> <%= Define.Get("Domain_Logo").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("Logo", ViewData["_Domain.Logo"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <%--<%= new HtmlYKTip("Logo") %>--%> <br /> <a href="#deleteLogo" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadLogo" class="decoration-none" onclick="return UploadFile('#frmDomain [name=Logo]','<%= Define.Get("Domain_Logo_???Logo???")%>','0','<%= SettingGroup.DomainUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <%--<% if (SettingGroup.HasAPP == true) { %>--%> <tr> <th title="<%= Define.Get("Domain_APPLogo").ToScriptTag() %>"> <%= Define.Get("Domain_APPLogo").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("APPLogo", ViewData["_Domain.APPLogo"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <%= new HtmlYKTip("APPLogo") %> <br /> <a href="#deleteAPPLogo" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadAPPLogo" class="decoration-none" onclick="return UploadFile('#frmDomain [name=APPLogo]','<%= Define.Get("Domain_APPLogo_???APPLogo???")%>','0','<%= SettingGroup.DomainUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> ????????88?????PNG??? </td> </tr> <%--<% } %>--%> <tr> <th title="<%= Define.Get("Domain_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("WebSite", this.ViewData["_Domain.WebSite"], 256) { Class = "ipt-t ipt-t-dft width400 " }%> <%= new HtmlYKTip("WebSite") %> </td> </tr> <tr> <th title="<%= Define.Get("Domain_?????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("RecourseSite", this.ViewData["_Domain.RecourseSite"], 256) { Class = "ipt-t ipt-t-dft width400 " }%> <%= new HtmlYKTip("RecourseSite") %> </td> </tr> <tr class="SyncUserType hide"> <th title="<%= Define.Get("Domain_??????????????").ToScriptTag() %>"> <%= Define.Get("Domain_??????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentTeacherUserType_Name", IN(this.ViewData["_Domain"], this.ViewData["_Domain.ParentTeacherUserType.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentTeacherUserType", this.ViewData["_Domain.ParentTeacherUserType.Guid"])%> <a href="#selectTeacherUserType" class="decoration-none" onclick="return SelectUserType('#frmDomain [name=ParentTeacherUserType]','#frmDomain [name=ParentTeacherUserType_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> </td> </tr> <tr class="SyncUserType hide"> <th title="<%= Define.Get("Domain_??????????????").ToScriptTag() %>"> <%= Define.Get("Domain_??????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentStudentUserType_Name", IN(this.ViewData["_Domain"], this.ViewData["_Domain.ParentStudentUserType.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentStudentUserType", this.ViewData["_Domain.ParentStudentUserType.Guid"])%> <a href="#selectStudentUserType" class="decoration-none" onclick="return SelectUserType('#frmDomain [name=ParentStudentUserType]','#frmDomain [name=ParentStudentUserType_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> </td> </tr> <tr class="SyncUserType hide"> <th title="<%= Define.Get("Domain_???????????????").ToScriptTag() %>"> <%= Define.Get("Domain_???????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentResearchUserType_Name", IN(this.ViewData["_Domain"], this.ViewData["_Domain.ParentResearchUserType.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentResearchUserType", this.ViewData["_Domain.ParentResearchUserType.Guid"])%> <a href="#selectResearchUserType" class="decoration-none" onclick="return SelectUserType('#frmDomain [name=ParentResearchUserType]','#frmDomain [name=ParentResearchUserType_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("Domain_?????????").ToScriptTag() %>"> <%= Define.Get("Domain_?????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_WebSiteRoute_??????????????????????????IP??????????????").ToScriptTag()%>"> <%= new HtmlTextArea("WebSiteRoute", this.ViewData["_Domain.WebSiteRoute"], 512) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("Domain_?????????").ToScriptTag() %>"> <%= Define.Get("Domain_?????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_RecourseSiteRoute_??????????????????????????IP??????????????").ToScriptTag()%>"> <%= new HtmlTextArea("RecourseSiteRoute", this.ViewData["_Domain.RecourseSiteRoute"], 512) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("Domain_??????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Domain_??????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_DownloadSpeed_?????????????????(MB)").ToScriptTag()%>"> <%= new HtmlText("DownloadSpeed", this.ViewData["_Domain.DownloadSpeed"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("DownloadSpeed") %> </td> </tr> <tr> <th title="<%= Define.Get("Domain_???").ToScriptTag() %>"> <%= Define.Get("Domain_???").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_Domain.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <%-- <tr> <th title="<%= Define.Get("Domain_????????").ToScriptTag() %>"> <%= Define.Get("Domain_????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_FolderPower_????????????????????????????????????????¤?????????").ToScriptTag()%>"> <%= new HtmlTextArea("FolderPower", this.ViewData["_Domain.FolderPower"], 500) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr>--%> <tr> <th title="<%= Define.Get("Domain_?????").ToScriptTag() %>"> <%= Define.Get("Domain_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_Domain.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> </table> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("Domain_????").ToScriptTag() %>"> <%= Define.Get("Domain_????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Domain_Status_????????????").ToScriptTag()%>"> <%= new HtmlCheckBox("Status", this.ViewData["_Domain.Status"], 1, 0) { DefaultChecked = 0 }%> </td> </tr> <tr> <th></th> <td> <span style="color: red">???????????????????????????????????????</span> </td> </tr> <tr> <th> </th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_Domain"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_Domain"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </div> </div> <% if (Has(this.ViewData["_Domain"])) { %> <div style="display: none; " class="panel"> <div> <iframe class="ifrmtab" width="100% " id="resizeIt" height="100% " frameborder="0" scrolling="auto" title="../DomainInfo/EditIFrame.aspx?DomainGuid=<%= this.PrimaryKey %>"></iframe> <script> $(function () { $("#resizeIt").on("load", function () { Helper.resizeIFrame("resizeIt"); }) }) </script> </div> </div> <% } %> </div> </div> </div> </div> </div> </div></div></div></div></body> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("js", "/XhEditor/xheditor-zh-cn.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("js","/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/DomainAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmDomain" }); //????? $("#frmDomain [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("Domain_SortNumber_???????????").ToScriptChar() %>", regex: "<%= Define.Get("Domain_SortNumber_???????????").ToScriptChar() %>" } }); <% if (this.ME == true) { %> //?????? $("#frmDomain [name=Code]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Domain_Code_???????????").ToScriptChar() %>" } }); //?????? $("#frmDomain [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Domain_Name_???????????").ToScriptChar() %>" } }); <% } %> //Logo // $("#frmDomain [name=Logo]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("Domain_Logo_????????ogo").ToScriptChar() %>" // } // }); //?????? $("#frmDomain [name=WebSite]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Domain_WebSite_???????????").ToScriptChar() %>" } }); //????????? $("#frmDomain [name=RecourseSite]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Domain_RecourseSite_??????????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { DomainAjax.Insert($("#frmDomain"), send, function (json) { document.getElementById("frmDomain").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { DomainAjax.Update($("#frmDomain"), send, function (json) { document.getElementById("frmDomain").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmDomain").KEY.value; DomainAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //Logo $("#frmDomain [name=Logo]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.DomainUploadPath %>" + $("#frmDomain [name=Logo]").val()); //AppLogo $("#frmDomain [name=APPLogo]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.DomainUploadPath %>" + $("#frmDomain [name=APPLogo]").val()); //??????????? </script> <script type="text/javascript"> //?????? ShowSyncUserType(); function ShowSyncUserType() { var domainType = $('input:radio[name="DomainType"]:checked').val(); if (domainType == 2) { $(".SyncUserType").removeClass("hide"); } else { $(".SyncUserType").addClass("hide"); } } $('input:radio[name="DomainType"]').change(function () { ShowSyncUserType(); }) </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de