Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyComment.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyComment" %> <%= new MyCommentNavTopInstance(this) { Local= MyCommentNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title"><%= Define.Get("Client_??????") %>??</span> </div> <div class="dataControl box"> <form id="frmCommentManagerSearch" method="post" action="<%= WebUrl.Proxy() %>"> <%= new HtmlHidden("TargetGuid",this.TargetGuid) %> ?????? <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> ????? <% var dicType = new Dictionary<string, int>(); dicType.Add("::???::", 0); dicType.Add("::?????::", 1); dicType.Add("::?????::", -1); %> <%= new HtmlSelect("Type", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.Type }%> <%= new HtmlHidden("Key","MyComment") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "CommentManagerBatchDelete(this);")%> </form> <script type="text/javascript"> //?????? function CommentManagerBatchDelete(send) { var items = $("#MyCommentData .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.CommentBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmCommentManagerSearch").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 CommentManagerDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.CommentDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("?????????") Global.Disabled(send, false); $("#frmCommentManagerSearch").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="MyCommentData" 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">??????</td> <td valign="middle">??????</td> <td valign="middle">??????</td> <td valign="middle" style="width: 100px;">???</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListComment.Count - 1; i++) { var comment = this.ListComment[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListComment.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(comment.Guid, comment.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <% switch (comment.TargetType) { case "Video": case "VideoAsk": var video = CreateInstance.VideoDao.Get(comment.TargetGuid); if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> <% } break; case "Application": var application = CreateInstance.ApplicationDao.Get(comment.TargetGuid); if (application != null) { %> <%= new HtmlAnchor(application.Title) { Href = WebUrl.LivePlay(application.Guid), Title = application.Title, Target = "_blank" }%> <% } break; case "Album": var album = CreateInstance.AlbumDao.Get(comment.TargetGuid); if (album != null) { %> <%= new HtmlAnchor(album.Name) { Href = WebUrl.AlbumView(album.Guid), Title = album.Name, Target = "_blank" }%> <% } break; case "Meeting": var meeting = CreateInstance.MeetingDao.Get(comment.TargetGuid); if (meeting != null) { %> <%= new HtmlAnchor(meeting.Name) { Href = WebUrl.AlbumView(meeting.Guid), Title = meeting.Name, Target = "_blank" }%> <% } break; case "Subject": var subject = CreateInstance.SubjectDao.Get(comment.TargetGuid); if (subject != null) { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Title = subject.Name, Target = "_blank" }%> <% } break; default: break; } %> </li> </ul> </td> <td> <p> <% if (comment.Title != null) { %> <%= comment.Title.RestoreHtml() %> <br /> <% } %> <%= comment.CommentText %> <br /> <% var classStatus = ""; if (comment.Status == (int)AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)comment.Status).Define() %> </span> </td> <td style="width:70px;"> <%= comment.CreateTime.ToShortDate() %> </td> <td> <a href="#delete" onclick="CommentManagerDelete(this,'<%= SetKey(comment.Guid, comment.Version) %>'); return false;">???</a> </td> </tr> <% //?????? var listReplay = CreateInstance.CommentDao.Replay(comment); foreach (var replay in listReplay) { %> <tr> <td> </td> <td>????? </td> <td colspan="2"> <% if (replay.Title != null) { %> <%= replay.Title.RestoreHtml() %> <br /> <% } %> <%= replay.CommentText.RestoreHtml() %> <br /> <%= replay.CreateTime.ToAutoShortDate() %> </td> <td> <a href="#delete" onclick="CommentManagerDelete(this,'<%= SetKey(replay.Guid, replay.Version) %>'); return false;">???</a> </td> </tr> <% } %> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyCommentData .trselall").click(function () { if (this.checked == true) { $("#MyCommentData .trsel").attr("checked", "checked"); } else { $("#MyCommentData .trsel").removeAttr("checked"); } }) function SelectMyCommentAll() { var bool = $("#MyCommentData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyCommentData .trsel").attr("checked", "checked"); $("#MyCommentData .trselall").attr("checked", "checked"); } else { $("#MyCommentData .trsel").removeAttr("checked"); $("#MyCommentData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyCommentAll(); return false;">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyComment(int.MaxValue, this.KeyWord, this.Type,this.TargetGuid) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de