Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyLiveInport.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyLiveInport.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyLiveInport" %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span>?????? </div> <hr /> <div class="userInput pwd"> <form id="frmLiveInport" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlHidden("FileName", null) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("FileName")%> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = ".xlsx", UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=??????Excel??????(*.xls)|*.xls,DefaultColor=#F5F5F5F5,SelectFiles=??????????????????,Upload=?????????" }.ToHtml()%> --%> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmLiveInport [Name=FileName]").val(fileName); } </script> <div> 1.???????????? <%= new HtmlAnchor("?????????.xlsx") { Href = "../../Resource/ExcelTemplate/?????????.xlsx"}%> <br /> 2.?????????????? <%= new HtmlAnchor("????????????.doc") { Href = "../../Resource/ExcelTemplate/????????????.doc"}%> <br /> 3.?????????????????????????????????????????????????????? </div> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", null) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover",Width=140, Height=88 } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadApplicationCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> <script type="text/javascript"> function UploadApplicationCover() { UploadFile('#frmLiveInport [name=Cover]', '?????????', '0', '<%= SettingGroup.ApplicationUploadPath %>', '', '960', '540'); } </script> </td> </tr> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Application.Guid"], this.ViewData["_Application.Version"]))%> <%= new HtmlHidden("ParentUser", this.User.Guid)%> <%= new HtmlSubmit("??????", "ApplicationEdit", "LiveInportClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> </div> <iframe id="frmDownload" src="" style="display: none"></iframe> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "LiveInport", form: "#frmLiveInport", alertMessage: true, showMessage: false }); //?????? $("#frmLiveInport [name=FileName]").formValidator({ validatorGroup: "LiveInport", rules: { required: null }, message: { required: "??????????????" } }); </script> <script type="text/javascript"> function LiveInportClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LiveInportClient", data: Global.GetFormValue($("#frmLiveInport")), async: true, dataType: 'json', success: function (result) { $(send).val('???'); alert("???????????" + result.Count + "?????????????????????????????????"); document.getElementById("frmDownload").src = result.DataUrl; Global.Disabled(send, false); }, beforeSend: function () { $(send).val('?????...'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('???'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de