Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyGroupSubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupSubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupSubject" %> <div class="box well"> <div class="p_title"> <span class="title">???????????</span>???<%= this.Query.RecordCount %>??????????? </div> <div class="dataControl box"> <form id="frmGroupSubjectSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ??? <%= new HtmlSelect("LockSubject", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum) }.InsertOption("::???::", "", 0).SelectValue(this.LockSubject)%> ????? <%= new HtmlSelect("Examine", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum) }.InsertOption("::???::", "", 0).SelectValue(this.Examine)%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyGroupSubject") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> <script type="text/javascript"> $(function () { $("#frmGroupSubjectSearch [name=BeginTime]").datepicker({ maxDate: new Date($("#frmGroupSubjectSearch [name=EndTime]").val()), onClose: function () { $("#frmGroupSubjectSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmGroupSubjectSearch [name=EndTime]").datepicker({ minDate: new Date($("#frmGroupSubjectSearch [name=BeginTime]").val()), onClose: function () { $("#frmGroupSubjectSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> </div> <div id="MyGroupSubjectData" 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" class="disabled">???? </td> <td valign="middle" class="disabled">????????????? </td> <td valign="middle" class="disabled">????????? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubject.Count - 1; i++) { var subject = this.ListSubject[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubject.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { Width=100, Height=62 , OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank" }%> </li> <li> <p> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank" }%> <br /> <% var classExamine = ""; if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.??????) { classExamine = "pass"; } else if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <nobr> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define() %> </nobr> </span> <% if (subject.LockSubject == (int)AVA.ResourcesPlatform.Model.Pub.SubjectLockSubjectEnum.???) { %> <%= new HtmlSpan("???") { Title = subject.ParentLockUser.UserName + " " + subject.LockDateTime + " " + subject.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> <% if (subject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.??) { %> ?????? <% } %> ?????<%= subject.VideoView%> ?????<%= subject.CommentCount%> </p> </li> </ul> </td> <td> <% var classStatus = ""; if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "SubjectChangeStatusClient(this,'" + SetKey(subject.Guid, subject.Version) + "');", Lang = subject.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = subject.Status }%> </span></td> <td> <%= subject.BeginTime.ToShortDate()%> <br /> ?? <br /> <%= subject.EndTime.ToShortDate()%> </td> <td> <%= subject.CutoffTime.ToShortDate()%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupSubjectData .trselall").click(function () { if (this.checked == true) { $("#MyGroupSubjectData .trsel").attr("checked", "checked"); } else { $("#MyGroupSubjectData .trsel").removeAttr("checked"); } }) function SelectMyGroupSubjectAll() { var bool = $("#MyGroupSubjectData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupSubjectData .trsel").attr("checked", "checked"); $("#MyGroupSubjectData .trselall").attr("checked", "checked"); } else { $("#MyGroupSubjectData .trsel").removeAttr("checked"); $("#MyGroupSubjectData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupSubjectAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupSubject(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null), this.LockSubject.ToString(null), this.Examine.ToString(null)) }.ToHtml()%> <div class="dataControl box"> <%= new HtmlButton("???", "MeetingBatchLock(this);")%> <%= new HtmlButton("???", "MeetingBatchUnLock(this);")%> <%= new HtmlButton("??????", "MeetingBatchExamine(this);")%> <%= new HtmlButton("????????", "MeetingBatchUnExamine(this);")%> <%= new HtmlButton("???", "MeetingBatchDelete(this);")%> </div> </div> <script type="text/javascript"> //?????? function SubjectBatchDelete(send) { var items = $("#MySubjectData .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.SubjectBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectSearch").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 SubjectChangeStatusClient(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectChangeStatus", data: "key=" + pkid + "&Status=" + $(send).val(), async: true, dataType: 'json', success: function (result) { alert("????????????????") send.lang = send.value; Global.Disabled(send, false); }, 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; } }; //?????? function SubjectBatchLock(send) { var items = $("#MyGroupSubjectData .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) { var lockDescription = window.prompt("?????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectBatchLock", data: key + "&LockDescription=" + encodeURIComponent(lockDescription), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmGroupSubjectSearch").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 SubjectBatchUnLock(send) { var items = $("#MyGroupSubjectData .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.SubjectBatchUnLock", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmGroupSubjectSearch").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 SubjectBatchExamine(send) { var items = $("#MyGroupSubjectData .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.SubjectBatchExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("???????????????") Global.Disabled(send, false); $("#frmGroupSubjectSearch").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 SubjectBatchUnExamine(send) { var items = $("#MyGroupSubjectData .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.SubjectBatchUnExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("????????"); alert("?????????????????") Global.Disabled(send, false); $("#frmGroupSubjectSearch").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("???????????????????????"); } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de