Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MySTUser.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySTUser.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTUser" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.????????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_??????")%>?????<%= this.ListSTUser.Count %>????????</span> <span> </span><span class="f_r"> </span> </div> <div class="dataControl "><form> <%--<%= new HtmlButton("??????????", "window.location.href='" + WebUrl.MySTUserAdd(this.Subject.Guid) + "';"){ Class="btn btn-warning " }%>--%> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal btn btn-warning" href="#" id="AddSTUser">??????????</a> <%= new HtmlButton("???", "STUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form></div> <div id="MySTUserData" 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"> ?????? </td> <%-- <td valign="middle"> ???ST?? </td> --%> <td valign="middle" class="disabled" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSTUser.Count - 1; i++) { var stUser = this.ListSTUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSTUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(stUser.Guid, stUser.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= stUser.ParentUser.TrueName %></br> <%= stUser.ParentUser.ParentDomain.Name %> <%--<%= stUser.ParentUser.UserName %>--%> </td> <td> <%= new HtmlCheckBox("",stUser.HasScore, 1, 0) { OnClick="STUserHasScoreClient(\""+SetKey(stUser.Guid,stUser.Version)+"\",this);" }%> </td> <td> <%= new HtmlCheckBox("",stUser.HasComment, 1, 0) { OnClick="STUserHasCommentClient(\""+SetKey(stUser.Guid,stUser.Version)+"\",this);" }%> </td> <%-- <td> <%= new HtmlCheckBox("",stUser.HasST, 1, 0) { OnClick="STUserHasSTClient(\""+SetKey(stUser.Guid,stUser.Version)+"\",this);"}%> </td> --%> <td class="action"> <%--<a href="#delete" onclick="STUserDelete(this,'<%= SetKey(stUser.Guid, stUser.Version) %>'); return false;">???</a><br />--%> <%--<%= new HtmlAnchor("?????????") { Href = WebUrl.MySTUserVideo(stUser.Guid) }%>--%> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal" href="#" id="AddVideoToSTUser<%= stUser.Guid %>">?????????</a></br> <script type="text/javascript"> $("#AddVideoToSTUser<%=stUser.Guid%>").click(function () { var url = "/My/STUserVideo.aspx?Guid=<%= stUser.Guid%>"; $("#sharedModal #sharedModalLabel").html("???????????<%=stUser.ParentUser.TrueName%>"); $(".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> <%= new HtmlAnchor("???????????") { Href = WebUrl.MySTUserVideoList(stUser.Guid) }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $(document).on("hidden", "#sharedModal", function () { location.reload(); }); $(function () { $("#AddSTUser").click(function () { var url = "/My/STUserAdd.aspx?Guid=<%= this.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); }); }) }); $("#MySTUserData .trselall").click(function () { if (this.checked == true) { $("#MySTUserData .trsel").attr("checked", "checked"); } else { $("#MySTUserData .trsel").removeAttr("checked"); } }) function SelectMySTUserAll() { var bool = $("#MySTUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySTUserData .trsel").attr("checked", "checked"); $("#MySTUserData .trselall").attr("checked", "checked"); } else { $("#MySTUserData .trsel").removeAttr("checked"); $("#MySTUserData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function STUserBatchDelete(send) { var items = $("#MySTUserData .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.STUserBatchDelete", 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 STUserDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserDelete", 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 STUserHasScoreClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserHasScore", 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 STUserHasCommentClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserHasComment", 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 STUserHasSTClient(pkid, send) { var checked = send.checked; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserHasST", 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="SelectMySTUserAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de