<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyComment" %> <%= new MyCommentManagerNavTopInstance(this) { Local= MyCommentManagerNavTopItem.我发表的评论 }.ToHtml()%>
<%= Define.Get("Client_我的评论") %>:
<%= new HtmlHidden("TargetGuid",this.TargetGuid) %> 关键字: <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> 类型: <% var dicType = new Dictionary(); dicType.Add("::全部::", 0); dicType.Add("::已回复::", 1); dicType.Add("::未回复::", -1); %> <%= new HtmlSelect("Type", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.Type, OnChange="ExcuteQuery();" }%> <%= new HtmlHidden("Key","MyComment") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("删除", "CommentManagerBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>
<% for (int i = 0; i <= this.ListComment.Count - 1; i++) { var comment = this.ListComment[i]; %> <% //得出回复 var listReplay = CreateInstance.CommentDao.Replay(comment); foreach (var replay in listReplay) { %> <% } %> <% } %>
评论视频 评论信息 评论日期 操作
<%= new HtmlCheckBox() { Value = SetKey(comment.Guid, comment.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <% 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", Suffix="..", TextLength=10 }%> <% } 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", Suffix="..", TextLength=10 }%> <% } 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", Suffix="..", TextLength=10 }%> <% } 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", Suffix="..", TextLength=10 }%> <% } 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", Suffix="..", TextLength=10 }%> <% } break; default: break; } %>

<% if (comment.Title != null) { %> <%= comment.Title.RestoreHtml() %>
<% } %> <%= comment.CommentText %>
<% var classStatus = ""; if (comment.Status == (int)AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum.已审) { classStatus = "pass"; } else { classStatus = ""; } %> 管理员<%= ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)comment.Status).Define() %>

<%= comment.CreateTime.ToShortDate() %> 删除
回复: <% if (replay.Title != null) { %> <%= replay.Title.RestoreHtml() %>
<% } %> <%= replay.CommentText.RestoreHtml() %>
<%= replay.CreateTime.ToAutoShortDate() %>
删除
全选 - 取消
<%= 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()%>