Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyListenLesson.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyListenLesson.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyListenLesson" %> <%= new MyInstructorNavTopInstance(this) { Local= MyInstructorNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span>???<%= this.Query.RecordCount %>????? </div> <div class="dataControl box"> <form id="frmListenLessonSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%-- ????? <%= new HtmlSelect("CategoryGuid", "Name", "Guid", "Guid") { Option= this.ListCategory }.InsertOption("::???::","",0).SelectValue(this.CategoryGuid)%>--%> <%= new HtmlHidden("Key","MyListenLesson") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("?????????...", "window.location.href='" + WebUrl.MyListenLessonAdd() + "';")%> <%= new HtmlButton("???", "ListenLessonBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmListenLessonSearch [name=BeginTime]").datepicker({ maxDate: new Date($("#frmListenLessonSearch [name=EndTime]").val()), onClose: function () { $("#frmListenLessonSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmListenLessonSearch [name=EndTime]").datepicker({ minDate: new Date($("#frmListenLessonSearch [name=BeginTime]").val()), onClose: function () { $("#frmListenLessonSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function ListenLessonBatchDelete(send) { var items = $("#MyListenLessonData .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.ListenLessonBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmListenLessonSearch").submit(); }, 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 ListenLessonDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ListenLessonDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); $("#frmListenLessonSearch").submit(); }, 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); } }); } }; //??????? function ListenLessonChangeStatusClient(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ListenLessonChangeStatus", data: "key=" + pkid + "&Status=" + $(send).val(), async: true, dataType: 'json', success: function (result) { alert("????????????????") send.lang = send.value; Global.Disabled(send, false); location.reload(); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.value = send.lang; var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } }; </script> </div> <div id="MyListenLessonData" 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" width="80px">?????????</td> <td valign="middle" width="80px">??????????</td> <td valign="middle" class="disabled" width="80px">?????????? </td> <td valign="middle" class="disabled" width="80px">????????? </td> <td valign="middle" class="disabled" style="width: 50px;">????</td> <td valign="middle" class="disabled" width="80px">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListListenLesson.Count - 1; i++) { var item = this.ListListenLesson[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListListenLesson.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <p><%= item.Name %></p> </td> <td> <p><%= item.ParentCategory.Name %></p> </td> <td> <p><%= item.BeginTime.ToShortDate() %></p> </td> <td> <p><%= item.EndTime.ToShortDate() %></p> </td> <td> <span class="short_input" > <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "ListenLessonChangeStatusClient(this,'" + SetKey(item.Guid, item.Version) + "');", Lang = item.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.ListenLessonStatusEnum), SelectedValue = item.Status }.Style(new { Width = "auto" })%> </span> </td> <td> <%= new HtmlAnchor("???") { Href = WebUrl.MyListenLessonEdit(item.Guid) }%> | <a href="#delete" onclick="ListenLessonDelete(this,'<%= SetKey(item.Guid, item.Version)%>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyListenLessonData .trselall").click(function () { if (this.checked == true) { $("#MyListenLessonData .trsel").attr("checked", "checked"); } else { $("#MyListenLessonData .trsel").removeAttr("checked"); } }) function SelectMyListenLessonAll() { var bool = $("#MyListenLessonData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyListenLessonData .trsel").attr("checked", "checked"); $("#MyListenLessonData .trselall").attr("checked", "checked"); } else { $("#MyListenLessonData .trsel").removeAttr("checked"); $("#MyListenLessonData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyListenLessonAll(); return false;" href="#">???? - ???</a> </div> <div class="pull-right"> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyListenLesson(int.MaxValue) }.ToHtml()%> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de