Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\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="flat data-box"> <div class="head"> <span class="title">??????</span> </div> <div class="userInput body"> <form id="frmLiveInport" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><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> <br /> ???????????? <%= new HtmlAnchor("?????????.xlsx") { Href = "../../Resource/ExcelTemplate/?????????.xlsx", Class = "down" }.Style(new { Color="#10931f"})%> <br /> ?????????????? <%= new HtmlAnchor("????????????.doc") { Href = "../../Resource/ExcelTemplate/????????????.doc", Class="down" }.Style(new { Color="#10931f"})%> <br /> ?????????????????????????????????????????????????????? </div> </td> </tr> <tr> <td class="label-td"><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 %>', '', '480', '300'); } </script> </td> </tr> <tr> <td class="label-td"></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('???'); flash("???????????" + 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