Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MySubjectParticipate.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectParticipate.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectParticipate" %> <%--<%= new MySubjectUserNavTopInstance(this) { Local= MySubjectUserNavTopItem.?????? }.ToHtml()%>--%> <div class="flat data-box"> <div class="head"> <%if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.??) { %> <span class="title">??????<%= this.ListSubjectUser.Count %>????????</span> <% } else { if (this.JoinType == (int)AVA.ResourcesPlatform.Model.Pub.SubjectUserJoinTypeEnum.???????) { %> <span class="title">??????????<%= this.ListSubjectUser.Count %>????????</span> <% } else { %> <span class="title">?????????<%= this.ListSubjectUser.Count %>????????</span> <% } } %> </div> <div class="dataControl "> <form id="frmSubjectUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToLongDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MySubjectParticipate") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%--<%= new HtmlButton("???", "SubjectUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>--%> </form> <script type="text/javascript"> $(function () { $("#frmSubjectUserSearch [name=BeginTime]").datepicker({ //maxDate: new Date($("#frmSubjectUserSearch [name=EndTime]").val()), onClose: function () { //$("#frmSubjectUserSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmSubjectUserSearch [name=EndTime]").datepicker({ //minDate: new Date($("#frmSubjectUserSearch [name=BeginTime]").val()), onClose: function () { //$("#frmSubjectUserSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function SubjectUserBatchDelete(send) { var items = $("#MySubjectUserData .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("???????????<%= Define.Get("Client_??????")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_??????")%>??????") Global.Disabled(send, false); $("#frmSubjectUserSearch").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("???????????<%= Define.Get("Client_??????")%>??"); } }; //?????? function SubjectUserDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_??????")%>??????") Global.Disabled(send, false); $("#frmSubjectUserSearch").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 SubjectUserConfirmInClient(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????")%>?")) { //var remark = window.prompt("???????????:", ""); var remark = ""; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserConfirm", data: "key=" + pkid + "&ConfirmRemark=" + encodeURIComponent(remark) + "&ConfirmStatus=1", async: true, dataType: 'json', success: function (result) { flash("???????????") $("#Status" + pkid).val(""); $("#ConfirmStatus" + pkid).html("?????"); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); $(send).val($("#Status" + pkid).val()); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; //??????????? function SubjectUserConfirmOutClient(send, pkid) { if (confirm("???????????<%= Define.Get("Client_??????")%>?")) { var remark = window.prompt("????????????:", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserConfirm", data: "key=" + pkid + "&ConfirmRemark=" + encodeURIComponent(remark) + "&ConfirmStatus=2", async: true, dataType: 'json', success: function (result) { flash("?????????????") $("#Status" + pkid).val($(send).val()); $("#ConfirmStatus" + pkid).html("?????"); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); $(send).val($("#Status" + pkid).val()); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; //??? function SubjectUserSignClient(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????")%>?")) { var remark = window.prompt("???????????:", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserSign", data: "key=" + pkid + "&SignInRemark=" + encodeURIComponent(remark), async: true, dataType: 'json', success: function (result) { $("#Status" + pkid).val($(send).val()); $("#ConfirmStatus" + pkid).html("?????"); $("#SignInStatus" + pkid).html("?????"); Global.Disabled(send, false); flash("<%= Define.Get("Client_??????")%>???????????"???\"???<%= Define.Get("Client_??????")%>????????????????????????????????????????????????????????"???<%= Define.Get("Client_??????")%>\""); window.open(result); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); $(send).val($("#Status" + pkid).val()); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; </script> </div> <div id="MySubjectUserData" 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" width="190px">?????? </td> <td valign="middle" width="190px">?????? </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.ListSubjectUser.Count - 1; i++) { var subject = this.ListSubjectUser[i].ParentSubject; var subjectUser = this.ListSubjectUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(subjectUser.Guid, subjectUser.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#", OnClick= "CheckStatus()" ,Title = subject.Name }%></div> <% } else { //???????????r?????? if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.??) { %> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name }%></div> <% } else { %> <div class="min-video-photo"> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal" href="#" id="ShiXunWorkView<%=subject.Guid %>"><%=new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} %></a> </div> <script type="text/javascript"> $(function () { $("#ShiXunWorkView<%=subject.Guid %>").click(function () { var url = "/ShiXunWorkView.aspx?Guid=<%= subject.Guid%>"; $("#sharedModal #sharedModalLabel").html("?????????"); $(".modal-body").css("height", $(window).height() * .7); $("#sharedModal").width($(window).width() * .8) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", param.height); }); }) }); </script> <% } } %> </td> <td> <p> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <%= new HtmlAnchor(subject.Name) { Href = "#", OnClick= "CheckStatus()" }%> <% } else { //???????????r?????? if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.??) { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid),Suffix="..", TextLength=8, Target = "_blank" }%> <% } else { %> <a href="#" id=""><%=subject.Name %></a> <% } } %> <br /> ?????<%= (AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)subject.Status %> </p> </td> <td> <%= subject.BeginTime.ToShortDate() %> ?? <%= subject.EndTime.ToShortDate() %> </td> <%-- <td> <%= subject.CutoffTime.ToShortDate() %> </td>--%> <td> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal" href="#" id="<%=subject.Guid %>">?????????</a> <br /> <%= new HtmlAnchor("???????????") { Href = WebUrl.MySubjectUserVideo(subject.Guid) }%> <script type="text/javascript"> $(document).on("hidden", "#sharedModal", function () { location.reload(); }); $("#<%=subject.Guid%>").on("click", function () { var url = "/My/SubjectUserVideoAdd.aspx?Guid=<%= subject.Guid%>"; $("#sharedModal #sharedModalLabel").html("?????????"); $(".modal-body").css("height", $(window).height() * .7); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); </script> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> function CheckStatus() { flash("???????????"); return false; } $("#MySubjectUserData .trselall").click(function () { if (this.checked == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); } }) function SelectMySubjectUserAll() { var bool = $("#MySubjectUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); $("#MySubjectUserData .trselall").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); $("#MySubjectUserData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectParticipate(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