Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyStudentAsk.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyStudentAsk" %> <%= new MyStudentAskNavTopInstance(this) { Local = MyStudentAskNavTopItem.?????? }.ToHtml() %> <div class="flat data-box"> <div class="head"> <span class="title">????????</span> </div> <div class="dataControl "> <form id="frmStudentAskSearch" method="post" action="<%= WebUrl.Proxy() %>"> ?????? <%= 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","MyStudentAsk") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "StudentAskBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <script type="text/javascript"> //?????? function StudentAskBatchDelete(send) { var items = $("#MyStudentAskData .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("???"); flash("?????????") Global.Disabled(send, false); $("#frmStudentAskSearch").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 { flash("???????????????"); } }; //?????? function StudentAskDelete(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("???"); flash("?????????") Global.Disabled(send, false); $("#frmStudentAskSearch").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="MyStudentAskData" class="data "> <table cellspacing="0" cellpadding="0" width="100%" class="table form_table"> <tr id="dataHead" class="dataHead"> <th valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </th> <th valign="middle" style="width: 120px;">??? </th> <th valign="middle">??????</th> <th valign="middle" style="width: 100px;">??????</th> <th valign="middle" style="width: 100px;">???</th> </tr> <tbody> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListComment.Count - 1; i++) { var comment = this.ListComment[i]; var video = CreateInstance.VideoDao.Get(comment.TargetGuid); %> <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 style="vertical-align: middle;padding: 3px;"> <ul> <li> <% if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> <% } %> </li> </ul> </td> <td style="text-align: left; width: 380px;"> <p> <% if (comment.Title != null) { %> <%= comment.Title %> <br /> <% } %> <%= new HtmlAnchor(comment.CommentText) { Href=WebUrl.MyStudentAskDetail(comment.Guid) }%> </td> <td> <%= comment.CreateTime.ToShortDate() %> </td> <td> <% 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> <a href="#delete" onclick="StudentAskDelete(this,'<%= SetKey(comment.Guid, comment.Version) %>'); return false;">???</a> </td> </tr> <% //?????? var listReplay = CreateInstance.CommentDao.Where(l => l.TargetType == "VideoAskReplay" && l.TargetGuid == comment.Guid) .OrderBy(l => l.CreateTime) .ToList(); foreach (var replay in listReplay) { %> <tr> <td></td> <td></td> <td colspan="3" class="replay_comment" style="text-align:left;"> <p> <b><%= replay.ParentUser.UserName %></b>?????<br /> <% if (replay.Title != null) { %> <%= replay.Title %> <br /> <% } %> <%= replay.CommentText %> </p> </td> </tr> <% } %> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyStudentAskData .trselall").click(function () { if (this.checked == true) { $("#MyStudentAskData .trsel").attr("checked", "checked"); } else { $("#MyStudentAskData .trsel").removeAttr("checked"); } }) function SelectMyStudentAskAll() { var bool = $("#MyStudentAskData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyStudentAskData .trsel").attr("checked", "checked"); $("#MyStudentAskData .trselall").attr("checked", "checked"); } else { $("#MyStudentAskData .trsel").removeAttr("checked"); $("#MyStudentAskData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyStudentAskAll(); return false;">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyStudentAsk(int.MaxValue, this.KeyWord, this.Type) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de