Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MySTGroup.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySTGroup.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTGroup" %> <%--<%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.????????? }.ToHtml()%>--%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_??????")%>?????<%= this.ListSTGroup.Count %>????????</span> <span></span><span class="f_r"></span> </div> <div class="dataControl "> <form> <%= new HtmlButton("????????", "window.location.href='" + WebUrl.MySTGroupAdd(this.Subject.Guid) + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("???", "STGroupBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> </div> <div id="MySTGroupData" 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" style="width: 150px;">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSTGroup.Count - 1; i++) { var stGroup = this.ListSTGroup[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSTGroup.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(stGroup.Guid, stGroup.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <form id="frmSTGroupEdit<%=stGroup.Guid %>" action="" method="post" onsubmit="return false;" class="inline-form"> <table border="0" style="width: 100%;" id="form_<%= stGroup.Guid %>" class=" table-cleared"> <tr> <td class="span2"> <div class="form-edit-before "> <%= stGroup.Name %> <br /> <u><a href="#edit" class="form-edit-btn" data-target="form_<%= stGroup.Guid %>">???</a></u> </div> <div class="form-editing "> <%= new HtmlText("Name", stGroup.Name, 256) { Class="span2" }.AddAttribute("Placeholder","?????????")%> <%= new HtmlYKTip("Name")%> </div> </td> <td style="width: 100px;"> <div class="form-editing"> <%= new HtmlHidden("Key",SetKey(stGroup.Guid, stGroup.Version))%> <div class="btn-group"> <%= new HtmlSubmit("??????", "STScoreTypeEdit" + stGroup.Guid, "STGroupEditClient(this,'" + stGroup.Guid + "');") { Class="btn btn-warning"}%> <a class="btn form-cancel-btn" data-target="form_<%= stGroup.Guid %>">???</a> </div> </div> </td> </tr> </table> </form> </td> <td> <div id="stGroup_User"> <div class="btn-group dropdown"> <button class="btn dropdown-toggle" data-toggle="dropdown">?????????<span class="caret" style="margin-left:5px;"></span></button> <%-- <button class="btn dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button>--%> <div class="dropdown-menu" id="ShowSTGroupUser<%= stGroup.Guid %>"> <!-- dropdown menu links --> <form> <ul> <% List<AVA.ResourcesPlatform.Model.Pub.STUser> listSTUser = null; var stUserGroup = stGroup._ListSTUserGroup; if (stUserGroup != null && stUserGroup.Count > 0) { listSTUser = new List<AVA.ResourcesPlatform.Model.Pub.STUser>(); foreach (var item in stUserGroup) { var stuser = item.ParentSTUser; listSTUser.Add(stuser); } } if (listSTUser != null && listSTUser.Count > 0) { foreach (var stUser in listSTUser) { var stUserVideoCount = CreateInstance.STUserVideoDao.Count(l => l.ParentSTUser == stUser); %> <li style="padding-left: 6px;"> <input type="checkbox" id="checkbox_del_stuser_<%= stUser.Guid %>" class="stUsersel" value="<%= stUser.Guid%>" data-guid="<%= stGroup.Guid %>" /> <%= new HtmlSpan(stUser.ParentUser.TrueName) { TextLength=10, Suffix=".."}%><br /> ?????????<%= stUserVideoCount %>?? </li> <% } %> <li><%= new HtmlButton("??????", "STGroupUserDelete(this);"){ Class="btn btn-danger" }.Style(new {Width ="100%"})%></li></ul> <script> //??????????? function STGroupUserDelete(send) { var items = $(".stUsersel:checked"); var params = ""; for (var i = 0; i <= items.length - 1; i++) { params += "stUserGuid=" + encodeURIComponent(items[i].value) + "&stGroupGuid=" + encodeURIComponent(items[i].getAttribute("data-guid")); if (i != items.length - 1) { params += "&"; } } if (params != "") { if (confirm("??????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupUserDelete", data: params, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("??????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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("??????????????????"); } }; </script> <% } else { %> <li style="padding-left: 6px;">????????? </li> </ul> <% } %> </form> </div> </div> </div> </td> <td class="action" style="width: 150px;"> <%--<a href="#delete" onclick="STGroupDelete(this,'<%= SetKey(stGroup.Guid, stGroup.Version) %>'); return false;">???</a><br />--%> <%= new HtmlAnchor("???????????") { Href = WebUrl.MySTUserGroupAdd(stGroup.Guid) }%><br /> <% if (listSTUser != null && listSTUser.Count>0) { %> <%--<%= new HtmlAnchor("???????????") { Href = WebUrl.MySTUserGroupVideoAdd(stGroup.Guid) }%>--%> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal" href="#" id="AddVideoToSTGroup<%= stGroup.Guid %>">???????????</a> <script type="text/javascript"> $("#AddVideoToSTGroup<%=stGroup.Guid%>").click(function () { var url = "/My/STUserGroupVideoAdd.aspx?Guid=<%= stGroup.Guid%>"; $("#sharedModal #sharedModalLabel").html("????????<%= stGroup.Name%>"); $(".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", "98%"); }); }) </script> <% } else { %> <span>????????????</span> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $(function () { $(".form-editing").hide(); $(".form-edit-btn").on("click", function (e) { var $target = $("#" + $(e.target).attr("data-target")); $target.find(".form-editing").show(); $target.find(".form-edit-before").hide(); }); $(".form-cancel-btn").on("click", function (e) { var $target = $("#" + $(e.target).attr("data-target")); $target.find(".form-editing").hide(); $target.find(".form-edit-before").show(); }) }); $("#MySTGroupData .trselall").click(function () { if (this.checked == true) { $("#MySTGroupData .trsel").attr("checked", "checked"); } else { $("#MySTGroupData .trsel").removeAttr("checked"); } }) function SelectMySTGroupAll() { var bool = $("#MySTGroupData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySTGroupData .trsel").attr("checked", "checked"); $("#MySTGroupData .trselall").attr("checked", "checked"); } else { $("#MySTGroupData .trsel").removeAttr("checked"); $("#MySTGroupData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //???????????? function STGroupEditClient(send, guid) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupEdit", data: Global.GetFormValue($("#frmSTGroupEdit" + guid)), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("??????????????"); Global.Disabled(send, false); window.location.href = result; }, 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); } }); } //?????? function STGroupBatchDelete(send) { var items = $("#MySTGroupData .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.STGroupBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 STGroupDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 STGroupHasScoreClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupHasScore", data: "key=" + pkid + "&HasScore=" + send.checked, async: true, dataType: 'json', success: function (result) { //flash("????????????") //$("#GuestType" + pkid).val($(send).val()); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.checked = !checked; var message = XMLHttpRequest.responseText; Global.Error(message); } }); }; //??????? function STGroupHasCommentClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupHasComment", data: "key=" + pkid + "&HasComment=" + send.checked, async: true, dataType: 'json', success: function (result) { //flash("????????????") //$("#GuestType" + pkid).val($(send).val()); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.checked = !checked; var message = XMLHttpRequest.responseText; Global.Error(message); } }); }; //??????? function STGroupHasSTClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STGroupHasST", data: "key=" + pkid + "&HasST=" + send.checked, async: true, dataType: 'json', success: function (result) { //flash("????????????") //$("#GuestType" + pkid).val($(send).val()); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.checked = !checked; var message = XMLHttpRequest.responseText; Global.Error(message); } }); }; </script> <div> <a onclick="SelectMySTGroupAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de