Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\ApplicationInstructor\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.ApplicationInstructor.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"> <% if (Request.UrlReferrer != null && Request.UrlReferrer.ToString().IndexOf("ListIFrame") == -1) { %> <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="frmApplicationInstructor" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentApplication"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentDomainName_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentApplication.ParentRecordEquipment.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentApplication"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentApplication.ParentRecordEquipment.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentApplication"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentName_?????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_ApplicationRecordEquipmentName_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentApplication.ParentRecordEquipment.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentApplication_Title", IN(this.ViewData["_ApplicationInstructor"], this.ViewData["_ApplicationInstructor.ParentApplication.Title"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmApplicationInstructor [name=ParentApplication]","Edit");" }%> <%= new HtmlHidden("ParentApplication", this.ViewData["_ApplicationInstructor.ParentApplication.Guid"])%> <a href="#selectApplication" class="decoration-none" onclick="return SelectApplication('#frmApplicationInstructor [name=ParentApplication]','#frmApplicationInstructor [name=ParentApplication_Title]')"><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 style='<%= IN(this.ViewData["_ApplicationInstructor.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_UserDomainName_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_UserDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentUser.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_UserDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_UserDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentUser.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationInstructor_UserUserTypeName_?????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_UserUserTypeName_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentUser.ParentUserType.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentUser_TrueName_UserName", IN(this.ViewData["_ApplicationInstructor"], this.ViewData["_ApplicationInstructor.ParentUser.TrueName"] + "[" + this.ViewData["_ApplicationInstructor.ParentUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmApplicationInstructor [name=ParentUser]","Edit");" }%> <%= new HtmlHidden("ParentUser", this.ViewData["_ApplicationInstructor.ParentUser.Guid"])%> <a href="#selectUser" class="decoration-none" onclick="return SelectUser('#frmApplicationInstructor [name=ParentUser]','#frmApplicationInstructor [name=ParentUser_TrueName_UserName]')"><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("ParentUser") %> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FileName", this.ViewData["_ApplicationInstructor.FileName"]) { ReadOnly = true, Class = "ipt-t ipt-t-dft " }%> <a href="#deleteFileName" class="delete-file decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadFileName" class="decoration-none" onclick="return UploadFile('#frmApplicationInstructor [name=FileName]','<%= Define.Get("ApplicationInstructor_FileName_?????????????????")%>','1','<%= SettingGroup.ApplicationInstructorUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_?????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.ApplicationInstructorFileTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_ApplicationInstructor.FileType"])%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_??????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_??????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("ApplicationInstructor_DownloadStatus_??????????????????").ToScriptTag()%>"> <%= new HtmlSelect("DownloadStatus", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.ApplicationInstructorDownloadStatusEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_ApplicationInstructor.DownloadStatus"])%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_??????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FileSize", this.ViewData["_ApplicationInstructor.FileSize"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("FileSize") %> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_?????????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_?????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("StartSecond", this.ViewData["_ApplicationInstructor.StartSecond"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("StartSecond") %> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_????????????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("EndSecond", this.ViewData["_ApplicationInstructor.EndSecond"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("EndSecond") %> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Title", this.ViewData["_ApplicationInstructor.Title"], 512) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Title") %> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_ApplicationInstructor.Description"], 512) { Class = "ipt-t ipt-t-dft "}%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("DescriptionSound", this.ViewData["_ApplicationInstructor.DescriptionSound"], 512) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("SendStatus", this.ViewData["_ApplicationInstructor.SendStatus"], 1, 0) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_???????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("ValidStatus", this.ViewData["_ApplicationInstructor.ValidStatus"], 1, 0) { Class = ""}%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentValidUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ValidApplicationInstructor_UserDomainName_Valid??????").ToScriptTag() %>"> <%= Define.Get("ValidApplicationInstructor_UserDomainName_Valid??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentValidUser.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentValidUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ValidApplicationInstructor_UserDomainCode_Valid??????").ToScriptTag() %>"> <%= Define.Get("ValidApplicationInstructor_UserDomainCode_Valid??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentValidUser.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_ApplicationInstructor.ParentValidUser"], "", "display:none;")%>'> <th title="<%= Define.Get("ValidApplicationInstructor_UserUserTypeName_Valid?????????").ToScriptTag() %>"> <%= Define.Get("ValidApplicationInstructor_UserUserTypeName_Valid?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_ApplicationInstructor.ParentValidUser.ParentUserType.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationInstructor_?????").ToScriptTag() %>"> <%= Define.Get("ApplicationInstructor_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentValidUser_TrueName_UserName", IN(this.ViewData["_ApplicationInstructor"], this.ViewData["_ApplicationInstructor.ParentValidUser.TrueName"] + "[" + this.ViewData["_ApplicationInstructor.ParentValidUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentValidUser", this.ViewData["_ApplicationInstructor.ParentValidUser.Guid"])%> <a href="#selectValidUser" class="decoration-none" onclick="return SelectUser('#frmApplicationInstructor [name=ParentValidUser]','#frmApplicationInstructor [name=ParentValidUser_TrueName_UserName]')"><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> </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["_ApplicationInstructor.Guid"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_ApplicationInstructor.Guid"])%></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> </html> <%= Import.Script("/jquery-1.44.min.js")%> <%= Import.Script("js","/JQueryUI/jquery-ui-1.8.9.custom.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/ApplicationInstructorAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmApplicationInstructor" }); //?????? $("#frmApplicationInstructor [name=ParentUser]").formValidator({ targetFocus : "#frmApplicationInstructor [name=ParentUser_TrueName_UserName]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("ApplicationInstructor_UserGuid_???????????").ToScriptChar() %>" } }); //?????? $("#frmApplicationInstructor [name=FileSize]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("ApplicationInstructor_FileSize_???????????").ToScriptChar() %>" } }); //????????????? $("#frmApplicationInstructor [name=StartSecond]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "decmal1" }, message: { required: "<%= Define.Get("ApplicationInstructor_StartSecond_??????????????????").ToScriptChar() %>", regex: "<%= Define.Get("ApplicationInstructor_StartSecond_????????????????????").ToScriptChar() %>" } }); //???????????? $("#frmApplicationInstructor [name=EndSecond]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "decmal1" }, message: { required: "<%= Define.Get("ApplicationInstructor_EndSecond_?????????????????").ToScriptChar() %>", regex: "<%= Define.Get("ApplicationInstructor_EndSecond_????????????????????").ToScriptChar() %>" } }); //??? $("#frmApplicationInstructor [name=Title]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("ApplicationInstructor_Title_????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { ApplicationInstructorAjax.Insert($("#frmApplicationInstructor"), send, function (json) { document.getElementById("frmApplicationInstructor").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { ApplicationInstructorAjax.Update($("#frmApplicationInstructor"), send, function (json) { document.getElementById("frmApplicationInstructor").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmApplicationInstructor").KEY.value; ApplicationInstructorAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? //???????? $("#frmApplicationInstructor [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.ApplicationInstructorUploadPath %>" + $("#frmApplicationInstructor [name=FileName]").val()); </script> <script type="text/javascript"> //?????? <% if (Request.UrlReferrer != null && Request.UrlReferrer.ToString().IndexOf("ListIFrame") != -1) { %> function GoList() { GoReturn(); } <% } %> </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de