Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\MeetingServer\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.MeetingServer.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> </div> <div class="ln-thick ln-c-mid"> </div> <div class="subcontent"> <form id="frmMeetingServer" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("MeetingServer_???????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentDomain_Name_Code", IN(this.ViewData["_MeetingServer"], this.ViewData["_MeetingServer.ParentDomain.Name"] + "[" + this.ViewData["_MeetingServer.ParentDomain.Code"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmMeetingServer [name=ParentDomain]","Edit");" }%> <%= new HtmlHidden("ParentDomain", this.ViewData["_MeetingServer.ParentDomain.Guid"])%> <a href="#selectDomain" class="decoration-none" onclick="return SelectDomain('#frmMeetingServer [name=ParentDomain]','#frmMeetingServer [name=ParentDomain_Name_Code]')"> <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> <%= new HtmlYKTip("ParentDomain") %> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("MeetingServer_??????ID").ToScriptTag() %>"> <%= Define.Get("MeetingServer_??????ID").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("MeetingServer_ServerID_????????????????????????ID").ToScriptTag()%>"> <%= new HtmlText("ServerID", this.ViewData["_MeetingServer.ServerID"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_???").ToScriptTag() %>"> <%= Define.Get("MeetingServer_???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("CodeNo", this.ViewData["_MeetingServer.CodeNo"], 20) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_??????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ServerName", this.ViewData["_MeetingServer.ServerName"], 128) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ServerName") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_?????P").ToScriptTag() %>"> <%= Define.Get("MeetingServer_?????P").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ServerIP", this.ViewData["_MeetingServer.ServerIP"], 16) { Class = "ipt-t ipt-t-dft " }%> <div title="" onclick="PingService();" class="btn btn-dft"> <span id="PingServiceServerIP">?????????????????</span> </div> <%= new HtmlYKTip("ServerIP") %> <script type="text/javascript"> function PingService() { var ip = $("#frmMeetingServer [name=ServerIP]").val().trim(); if(ip==""||ip==null) { alert("?????????IP"); return; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.HelperAjax.PingService", data: "ip=" + encodeURIComponent(ip), async: true, dataType: 'json', success: function (result) { $("#PingServiceServerIP").html("?????????????????"); if(result=="1") { alert("???????????"); } else if(result=="0") { alert("???????????"); } else { alert(result); } }, beforeSend: function () { $("#PingServiceServerIP").html("??????..."); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#PingServiceServerIP").html("?????????????????"); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_?????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ServerPort", this.ViewData["_MeetingServer.ServerPort"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ServerPort") %> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("MeetingServer_????????P").ToScriptTag() %>"> <%= Define.Get("MeetingServer_????????P").HtmlEncode() %>?? </th> <td> <%= new HtmlText("MasterServerIP", this.ViewData["_MeetingServer.MasterServerIP"], 16) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("MeetingServer_???????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_???????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("MasterServerPort", this.ViewData["_MeetingServer.MasterServerPort"]) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("MeetingServer_???").ToScriptTag() %>"> <%= Define.Get("MeetingServer_???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Flag", this.ViewData["_MeetingServer.Flag"], 1) { Class = "ipt-t ipt-t-dft ", DefaultValue = "0" }%> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_????????").HtmlEncode() %>?? </th> <td> <label for="McuType0"> <%= new HtmlRadio("McuType", "0", null) { ID = "McuType0", Checked = this.ViewData["_MeetingServer.McuType"].ToInt() == 0 }%> MCU </label> <label for="McuType1"> <%= new HtmlRadio("McuType", "1", null) { ID = "McuType1", Checked = this.ViewData["_MeetingServer.McuType"].ToInt() == 1 }%> ??????????? </label> <%= new HtmlYKTip("McuType") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_??????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("MeetingWeb", this.ViewData["_MeetingServer.MeetingWeb"], 512) { Class = "ipt-t ipt-t-dft width400" }%> <%= new HtmlYKTip("MeetingWeb") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("DBServer", this.ViewData["_MeetingServer.DBServer"], 256) { Class = "ipt-t ipt-t-dft " }%> <div title="" onclick="CheckMYSQLConnection();" class="btn btn-dft"> <span id="CheckMYSQLConnectionDBServer">?????????????????</span> </div> <%= new HtmlYKTip("DBServer") %> <script type="text/javascript"> function CheckMYSQLConnection() { var DBServer = $("#frmMeetingServer [name=DBServer]").val().trim(); var DBName = $("#frmMeetingServer [name=DBName]").val().trim(); var DBUser = $("#frmMeetingServer [name=DBUser]").val().trim(); var DBPassword = $("#frmMeetingServer [name=DBPassword]").val().trim(); if(DBServer==""||DBServer==null) { alert("????????????"); return; } if(DBName==""||DBName==null) { alert("???????????"); return; } if(DBUser==""||DBUser==null) { alert("????????????"); return; } if(DBPassword==""||DBPassword==null) { alert("????????????"); return; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.HelperAjax.CheckMYSQLConnectionParams", data: "DBServer=" + encodeURIComponent(DBServer) + "&DBName=" + encodeURIComponent(DBName) + "&DBUser=" + encodeURIComponent(DBUser) + "&DBPassword=" + encodeURIComponent(DBPassword), async: true, dataType: 'json', success: function (result) { $("#CheckMYSQLConnectionDBServer").html("?????????????????"); if(result=="1") { alert("???????????"); } else if(result=="0") { alert("???????????"); } else { alert("????????????????????????????????????????"); } }, beforeSend: function () { $("#CheckMYSQLConnectionDBServer").html("??????..."); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#CheckMYSQLConnectionDBServer").html("?????????????????"); var message = XMLHttpRequest.responseText; alert("???????????????????????" + message); //Global.Error(message); } }); } </script> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_??????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("DBName", this.ViewData["_MeetingServer.DBName"], 256) { Class = "ipt-t ipt-t-dft " }%> ??????xedb?? <%= new HtmlYKTip("DBName") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("DBUser", this.ViewData["_MeetingServer.DBUser"], 256) { Class = "ipt-t ipt-t-dft " }%> ??????xengine?? <%= new HtmlYKTip("DBUser") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_????????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("DBPassword", this.ViewData["_MeetingServer.DBPassword"], 256) { Class = "ipt-t ipt-t-dft " }%> ??????xenginepwd?? <%= new HtmlYKTip("DBPassword") %> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_IP???").ToScriptTag() %>"> <%= Define.Get("MeetingServer_IP???").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("MeetingServer_IPRoute_IP????????????????????IP??????????????").ToScriptTag()%>"> <%= new HtmlTextArea("IPRoute", this.ViewData["_MeetingServer.IPRoute"], 512) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("MeetingServer_?????").ToScriptTag() %>"> <%= Define.Get("MeetingServer_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("MeetingServer_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_MeetingServer.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> </th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_MeetingServer"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_MeetingServer"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </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/MeetingServerAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmMeetingServer" }); //????? $("#frmMeetingServer [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("MeetingServer_SortNumber_???????????").ToScriptChar() %>", regex: "<%= Define.Get("MeetingServer_SortNumber_???????????").ToScriptChar() %>" } }); //??????? $("#frmMeetingServer [name=ParentDomain]").formValidator({ targetFocus : "#frmMeetingServer [name=ParentDomain_Name_Code]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_DomainGuid_????????????").ToScriptChar() %>" } }); //?????? $("#frmMeetingServer [name=ServerName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_ServerName_???????????").ToScriptChar() %>" } }); //?????P $("#frmMeetingServer [name=ServerIP]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "ip4" }, message: { required: "<%= Define.Get("MeetingServer_ServerIP_?????????IP").ToScriptChar() %>", regex: "?????P????????" } }); //????????? $("#frmMeetingServer [name=ServerPort]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("MeetingServer_ServerPort_???????????????").ToScriptChar() %>", regex: "<%= Define.Get("MeetingServer_ServerPort_???????????????").ToScriptChar() %>" } }); //???????? $("#frmMeetingServer [name=McuType]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_McuType_?????????????").ToScriptChar() %>" } }); //?????? $("#frmMeetingServer [name=MeetingWeb]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_MeetingWeb_???????????").ToScriptChar() %>" } }); //???????? $("#frmMeetingServer [name=DBServer]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_DBServer_????????????").ToScriptChar() %>" } }); //?????? $("#frmMeetingServer [name=DBName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_DBName_???????????").ToScriptChar() %>" } }); //???????? $("#frmMeetingServer [name=DBUser]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_DBUser_????????????").ToScriptChar() %>" } }); //???????? $("#frmMeetingServer [name=DBPassword]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_DBPassword_????????????").ToScriptChar() %>" } }); //??? $("#frmMeetingServer [name=CodeNo]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("MeetingServer_CodeNo_????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { MeetingServerAjax.Insert($("#frmMeetingServer"), send, function (json) { document.getElementById("frmMeetingServer").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { MeetingServerAjax.Update($("#frmMeetingServer"), send, function (json) { document.getElementById("frmMeetingServer").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmMeetingServer").KEY.value; MeetingServerAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? </script> <script type="text/javascript"> //?????? </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de