Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MySubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubject" %> <div class="well"> <div class="p_title"> <span class="title">???????????</span>???<%= this.Query.RecordCount %>???????? </div> <div class="dataControl box"> <form id="frmSubjectSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MySubject") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("?????????...", "window.location.href='" + WebUrl.MySubjectAdd() + "';")%> <%= new HtmlButton("???", "SubjectBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmSubjectSearch [name=BeginTime]").datepicker({ maxDate: new Date($("#frmSubjectSearch [name=EndTime]").val()), onClose: function () { $("#frmSubjectSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmSubjectSearch [name=EndTime]").datepicker({ minDate: new Date($("#frmSubjectSearch [name=BeginTime]").val()), onClose: function () { $("#frmSubjectSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <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 SubjectDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectSearch").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); } }); } }; //??????? 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 SubjectChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("??????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { alert("?????????????????") Global.Disabled(send, false); $("#frmSubjectSearch").submit(); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { send.value = send.lang; Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } } }; </script> </div> <div id="MySubjectData" 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" class="disabled">???? </td> <td valign="middle" class="disabled">????????? </td> <td valign="middle" class="disabled">????????? </td> <td valign="middle" class="disabled" style="width: 100px;">??? </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" valign="middle"> <%= 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> </ul> </td> <td> <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> </td> <td> <% var classStatus = ""; if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %> short_input" > <%= 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 }.Style(new { Width = "auto" })%> </span></td> <td> <%= subject.BeginTime.ToShortDate()%> <br /> ?? <br /> <%= subject.EndTime.ToShortDate()%> </td> <td> <%= subject.CutoffTime.ToShortDate()%> </td> <td> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectEdit(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectAlbumList(subject.Guid) }%> <%--<a href="#delete" onclick="SubjectDelete(this,'<%= SetKey(subject.Guid, subject.Version) %>'); return false;">???</a>--%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectUserList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectUserApplyList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectAttachmentList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectVideoList(subject.Guid) }%> <br /> <% if (SettingGroup.HasMeeting == true) { %> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectMeetingList(subject.Guid) }%> | <% } %> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectApplicationList(subject.Guid) }%> <% if (subject.STEnable == true) { %> <%= new HtmlAnchor("???") { Href = WebUrl.MySTAwardList(subject.Guid) }%> | <%= new HtmlAnchor("?????") { Href = WebUrl.MySTScoreItemList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySTUserList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySTfinallyScoreList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySTVideoScore(subject.Guid) }%> <br /> <% } %> <%= new HtmlText("SortNumber", subject.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectChangeSortNumberClient(this,'" + SetKey(subject.Guid, subject.Version) + "')", Lang = subject.SortNumber.ToString(), Width = 50, Title = "??????????????" }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectData .trselall").click(function () { if (this.checked == true) { $("#MySubjectData .trsel").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); } }) function SelectMySubjectAll() { var bool = $("#MySubjectData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectData .trsel").attr("checked", "checked"); $("#MySubjectData .trselall").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); $("#MySubjectData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubject(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de