Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\LLUserFile\EditIFrame.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditIFrame.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.LLUserFile.EditIFrame" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> <%= this.Title %></title> <%= Import.Theme() %> <%= Import.Script("/jquery.1.9.js")%> </head> <body> <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="frmLLUserFile" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr style='<%= IN(this.ViewData["_LLUserFile.ParentLLUser"], "", "display:none;")%>'> <th title="<%= Define.Get("LLUserFile_LLUserUserUserName_????????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_LLUserUserUserName_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_LLUserFile.ParentLLUser.ParentUser.UserName"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentLLUser_Guid", IN(this.ViewData["_LLUserFile"], this.ViewData["_LLUserFile.ParentLLUser.Guid"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmLLUserFile [name=ParentLLUser]","Edit");" }%> <%= new HtmlHidden("ParentLLUser", this.ViewData["_LLUserFile.ParentLLUser.Guid"])%> <a href="#selectLLUser" class="decoration-none" onclick="return SelectLLUser('#frmLLUserFile [name=ParentLLUser]','#frmLLUserFile [name=ParentLLUser_Guid]')"><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("ParentLLUser") %> </td> </tr> <tr style='<%= IN(this.ViewData["_LLUserFile.ParentLLApplication"], "", "display:none;")%>'> <th title="<%= Define.Get("LLUserFile_LLApplicationListenLessonName_??????????????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_LLApplicationListenLessonName_??????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_LLUserFile.ParentLLApplication.ParentListenLesson.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentLLApplication_Guid", IN(this.ViewData["_LLUserFile"], this.ViewData["_LLUserFile.ParentLLApplication.Guid"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmLLUserFile [name=ParentLLApplication]","Edit");" }%> <%= new HtmlHidden("ParentLLApplication", this.ViewData["_LLUserFile.ParentLLApplication.Guid"])%> <a href="#selectLLApplication" class="decoration-none" onclick="return SelectLLApplication('#frmLLUserFile [name=ParentLLApplication]','#frmLLUserFile [name=ParentLLApplication_Guid]')"><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("ParentLLApplication") %> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_LLUserFile.Name"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Name") %> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.LLUserFileFileTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_LLUserFile.FileType"])%> <%= new HtmlYKTip("FileType") %> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_?????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FileName", this.ViewData["_LLUserFile.FileName"], 256) { Class = "ipt-t ipt-t-dft", Width = 400, ReadOnly = true }%> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <br /> <div> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadFileType.ToUpper().Replace("*","").Replace(";",","), UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=*.*|*.*,SelectFiles=??????????????,Upload=?????????" }.ToHtml()%> --%> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmLLUserFile [Name=FileName]").val(fileName); if ($("#frmLLUserFile [Name=Name]").val() == "") { var name = fileName.substring(0, fileName.lastIndexOf(".") - 24); $("#frmLLUserFile [Name=Name]").val(name); } $("#frmLLUserFile [Name=FileSize]").val(fileSize) if (fileName.toLowerCase().indexOf(".doc") != -1 || fileName.toLowerCase().indexOf(".docx") != -1 || fileName.toLowerCase().indexOf(".ppt") != -1 || fileName.toLowerCase().indexOf(".pptx") != -1 || fileName.toLowerCase().indexOf(".xls") != -1 || fileName.toLowerCase().indexOf(".xlsx") != -1 || fileName.toLowerCase().indexOf(".txt") != -1) { $("#frmLLUserFile [Name=FileType]").val("1"); } else if (fileName.toLowerCase().indexOf(".jpg") != -1 || fileName.toLowerCase().indexOf(".png") != -1 || fileName.toLowerCase().indexOf(".gif") != -1 ||fileName.toLowerCase().indexOf(".bmp") != -1) { $("#frmLLUserFile [Name=FileType]").val("2"); } else if (fileName.toLowerCase().indexOf(".asf") != -1 || fileName.toLowerCase().indexOf(".wmv") != -1 || fileName.toLowerCase().indexOf(".flv") != -1 || fileName.toLowerCase().indexOf(".rm") != -1 || fileName.toLowerCase().indexOf(".rmvb") != -1 || fileName.toLowerCase().indexOf(".avi") != -1 || fileName.toLowerCase().indexOf(".mp4") != -1) { $("#frmLLUserFile [Name=FileType]").val("3"); } else if (fileName.toLowerCase().indexOf(".mp3") != -1) { $("#frmLLUserFile [Name=FileType]").val("4"); } else if (fileName.toLowerCase().indexOf(".txt") != -1) { $("#frmLLUserFile [Name=FileType]").val("5"); } else { $("#frmLLUserFile [Name=FileType]").val("0"); } } </script> </div> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FileSize", this.ViewData["_LLUserFile.FileSize"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("FileSize") %> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_LLUserFile.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_???").ToScriptTag() %>"> <%= Define.Get("LLUserFile_???").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Commnt", this.ViewData["_LLUserFile.Commnt"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <%-- <tr> <th title="<%= Define.Get("LLUserFile_??????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("CreateTime", this.ViewData["_LLUserFile.CreateTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("CreateTime") %> </td> </tr> <tr> <th title="<%= Define.Get("LLUserFile_?????").ToScriptTag() %>"> <%= Define.Get("LLUserFile_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("LLUserFile_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_LLUserFile.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["_LLUserFile"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_LLUserFile"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </div> </div> </div> </div> </body> </html> <%= 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/LLUserFileAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmLLUserFile" }); //????? //$("#frmLLUserFile [name=SortNumber]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "num1" // }, // message: // { // required: "<%= Define.Get("LLUserFile_SortNumber_???????????").ToScriptChar() %>", // regex: "<%= Define.Get("LLUserFile_SortNumber_???????????").ToScriptChar() %>" // } //}); //?????? $("#frmLLUserFile [name=ParentLLUser]").formValidator({ targetFocus: "#frmLLUserFile [name=ParentLLUser_Guid]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("LLUserFile_LLUserGuid_???????????").ToScriptChar() %>" } }); //?????????? $("#frmLLUserFile [name=ParentLLApplication]").formValidator({ targetFocus: "#frmLLUserFile [name=ParentLLApplication_Guid]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("LLUserFile_LLApplication_???????????????").ToScriptChar() %>" } }); //?????? $("#frmLLUserFile [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("LLUserFile_Name_???????????").ToScriptChar() %>" } }); //?????? $("#frmLLUserFile [name=FileType]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("LLUserFile_FileType_???????????").ToScriptChar() %>" } }); //????? $("#frmLLUserFile [name=FileName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("LLUserFile_FileName_????????").ToScriptChar() %>" } }); //?????? $("#frmLLUserFile [name=FileSize]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("LLUserFile_FileSize_???????????").ToScriptChar() %>" } }); //?????? //$("#frmLLUserFile [name=CreateTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "datetime" // }, // message: // { // required: "<%= Define.Get("LLUserFile_CreateTime_???????????").ToScriptChar() %>", // regex: "<%= Define.Get("LLUserFile_CreateTime_??????????????").ToScriptChar() %>" // } //}); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { LLUserFileAjax.Insert($("#frmLLUserFile"), send, function (json) { document.getElementById("frmLLUserFile").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { LLUserFileAjax.Update($("#frmLLUserFile"), send, function (json) { document.getElementById("frmLLUserFile").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmLLUserFile").KEY.value; LLUserFileAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? //????? $("#frmLLUserFile [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.LLUserFileUploadPath %>" + $("#frmLLUserFile [name=FileName]").val()); </script> <script type="text/javascript"> //?????? function GoList() { window.location.href = "ListIframe.aspx?ListenLessonGuid=<%= this.ListenLesson.Guid %>"; } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de