Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyWeike.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyWeike.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyWeike" %> <%= new MyVideoNavTopInstance(this) { Local= MyVideoNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span>???<%= this.Query.RecordCount %>????? </div> <div class="dataControl box"> <form id="frmWeikeSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Title", this.Title) { Width = 120 }%> ????? <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyWeike") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "WeikeBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmWeikeSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmWeikeSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmWeikeSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmWeikeSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmWeikeSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmWeikeSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function WeikeBatchDelete(send) { var items = $("#MyWeikeData .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.VideoWeikeBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmWeikeSearch").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 WeikeDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoWeikeDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("?????????") Global.Disabled(send, false); $("#frmWeikeSearch").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); } }); } }; </script> </div> <div id="MyWeikeData" class="data"> <div class="p_title"> <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">??? </td> <td valign="middle">?????? </td> <td valign="middle">???????</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListVideoWeike.Count - 1; i++) { var weike = this.ListVideoWeike[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideoWeike.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(weike.Guid, weike.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= weike.Title %> </td> <td> <%= weike.CreateTime.ToDateTimeN().ToShortDate() %> </td> <%-- <td>??????<%= weike.SHDStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.VideoWeikeStatus)weike.SHDStatus).Define() : null %> <br /> ?????<%= weike.HDStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.VideoWeikeStatus)weike.HDStatus).Define() : null %> <br /> ?????<%= weike.HDStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.VideoWeikeStatus)weike.HDStatus).Define() : null %> <br /> ?????<%= weike.LWStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.VideoWeikeStatus)weike.LWStatus).Define() : null %> </td>--%> <td> <% if (weike.Description == null) { string description = ""; if (weike.SHDDescript != null) { description += " " + weike.SHDDescript; } if (weike.HDDescript != null) { description += " " + weike.HDDescript; } if (weike.NRDescript != null) { description += " " + weike.NRDescript; } if (weike.LWDescript != null) { description += " " + weike.LWDescript; } %> <%= description %> <% } else { %> <%= weike.Description %> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyWeikeData .trselall").click(function () { if (this.checked == true) { $("#MyWeikeData .trsel").attr("checked", "checked"); } else { $("#MyWeikeData .trsel").removeAttr("checked"); } }) function SelectMyWeikeAll() { var bool = $("#MyWeikeData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyWeikeData .trsel").attr("checked", "checked"); $("#MyWeikeData .trselall").attr("checked", "checked"); } else { $("#MyWeikeData .trsel").removeAttr("checked"); $("#MyWeikeData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyWeikeAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyWeike(int.MaxValue, this.Title, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null)) }.ToHtml()%> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de