Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyLLUserFile.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyLLUserFile.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyLLUserFile" %> <%= new MyListenLessonNavInstance(this) { Local = MyListenLessonNavItem.??????????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">?????????</span> <span> <%= this.ListLLUserFile.Count %>????? </span> </div> <div class="dataControl"> <form> <%--<%= new HtmlButton("???...", "window.location.href='" + WebUrl.MyLLUserFileUpload(this.ListenLesson.Guid) + "';")%>--%> <%= new HtmlButton("???", "LLUserFileBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> </div> <div id="MyLLUserFileData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </td> <td valign="middle" style="width:130px;"> ??? </td> <td valign="middle"> ??? </td> <td valign="middle"> ???????? </td> <td valign="middle"> ?????? </td> <td valign="middle" class="disabled" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListLLUserFile.Count - 1; i++) { var llUserFile = this.ListLLUserFile[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListLLUserFile.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(llUserFile.Guid, llUserFile.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= llUserFile.ParentLLUser.ParentUser.ParentDomain.Name %> <br /> <%= llUserFile.ParentLLUser.ParentUser.TrueName %> <%= llUserFile.ParentLLUser.ParentUser.UserName %> </td> <td class="v"> <%= llUserFile.ParentLLApplication.ParentApplication.Title %> </td> <td class="v"> <%-- ????????????????????????--%> <%if (llUserFile.FileType == (int)AVA.ResourcesPlatform.Model.Pub.LLUserFileFileTypeEnum.??????) { %> <%= new HtmlSpan(llUserFile.Commnt) { TextLength=10, Suffix="..."}%> <% } else { %> <%= llUserFile.Name %> <% } %> </td> <td class="v"> <%= (AVA.ResourcesPlatform.Model.Pub.LLUserFileFileTypeEnum)llUserFile.FileType %> </td> <td class="action"> <a href="#delete" onclick="LLUserFileDelete(this,'<%= SetKey(llUserFile.Guid, llUserFile.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyLLUserFileData .trselall").click(function () { if (this.checked == true) { $("#MyLLUserFileData .trsel").attr("checked", "checked"); } else { $("#MyLLUserFileData .trsel").removeAttr("checked"); } }) function SelectMyLLUserFileAll() { var bool = $("#MyLLUserFileData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyLLUserFileData .trsel").attr("checked", "checked"); $("#MyLLUserFileData .trselall").attr("checked", "checked"); } else { $("#MyLLUserFileData .trsel").removeAttr("checked"); $("#MyLLUserFileData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function LLUserFileBatchDelete(send) { var items = $("#MyLLUserFileData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("??????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLUserFileBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("??????????????????") Global.Disabled(send, false); location.reload(); }, 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); } }); } } else { alert("????????????????????????"); } }; //?????? function LLUserFileDelete(send, pkid) { if (confirm("????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLUserFileDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("??????????????????") Global.Disabled(send, false); location.reload(); }, beforeSend: function () { $(send).html("?????"); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; </script> <div> <a onclick="SelectMyLLUserFileAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de