Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubject" %> <%= new MySubjectNavTopInstance(this) { Local= MySubjectNavTopItem.?????? }.ToHtml() %> <div class="box 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); location.reload(); }, 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" width="80px">?????? </td> <td valign="middle" class="disabled" width="80px">????????? </td> <td valign="middle" class="disabled" style="width: 50px;">??? </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" : "" %> <%= subject.ParentSubject !=null ? "subLine" : "" %>' > <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#", Title=subject.Name, OnClick= "CheckStatus()"}%> </li> <% } else { %> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Title=subject.Name, Target = "_blank"}%> </li> <% } %> </ul> </td> <td> <p> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <%= new HtmlAnchor(subject.Name) { Href = "#",OnClick="CheckStatus();",Suffix="..", TextLength=8 }%> <% } else { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank",Suffix="..", TextLength=8 }%> <% } %> <br /> ????????<%=AVA.ResourcesPlatform.Factory.CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject) %>?? <br /> <%--?????????<%= AVA.ResourcesPlatform.Factory.CreateInstance.SubjectVideoDao.Where(l => l._ListSTUserVideo.Select(s => s.ParentSubjectVideo.Guid).ToArray().Contains(l.Guid)).Count()%>--%> ?????????<% = (CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject))-(CreateInstance.SubjectVideoDao.Count(l => l._ListSTUserVideo.Any(li => li.ParentSubjectVideo.ParentSubject == subject))) %>?? <br /> <% if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.???????? || subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.??????) { %> <span><%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define()%></span> <% } %> <%-- <% 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 = ""; } %> <% var isOver = false; if (subject.ParentSubject != null && subject.ParentSubject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { isOver = true; } %> <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 = isOver ? (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.??? : subject.Status, Disabled=isOver }.Style(new { Width = "auto" })%> </span><br /> <%if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.??? && AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l => l.ParentSubject == subject) > 0) { if (subject.CutoffTime > DateTime.Now) { %> <p style="color:red;">??????</p> <% } else { %> <p style="color:red;">??????</p> <% } } %> </td> <td> <%= subject.BeginTime.ToShortDate()%> <br /> ?? <br /> <%= subject.EndTime.ToShortDate()%> </td> <td> <%= subject.CutoffTime.ToShortDate()%> </td> <td> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectEdit(subject.Guid) }%> | <a href="#delete" onclick="SubjectDelete(this,'<%= SetKey(subject.Guid, subject.Version)%>'); return false;">???</a> <br /> <%--<%= new HtmlAnchor("???") { Href = WebUrl.MySubjectAlbumList(subject.Guid) }%> <%--<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) }%> <br /> <% 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) }%> |--%> <% } %> <%= 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"> function CheckStatus(){ alert("???????????"); return false; } $("#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