Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyClassUserList.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyClassUserList.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyClassUserList" %> <%= new MyShiXunWorkNavTopInstance(this) { Local = MyShiXunWorkNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= this.ClassInfo.Name %>??<%= this.ListClassStudent.Count %>?????</span> </div> <div class="dataControl "> <form id="frmClassUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> <%= new HtmlHidden("Key","MyClassUserList") %> <%= new HtmlHidden("ParentClassInfo",this.ClassInfo.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "ClassUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <script type="text/javascript"> //?????? function ClassUserBatchDelete(send) { var items = $("#MyClassUserData .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.ClassUserBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmClassUserSearch").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 ClassUserDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ClassUseDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); $("#frmClassUserSearch").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); } }); } }; </script> </div> <div id="MyClassUserData" 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" 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.ListClassStudent.Count - 1; i++) { var classStudent = this.ListClassStudent[i]; var classInfo = classStudent.ParentClassInfo; var user = classStudent.ParentUser; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListClassStudent.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(classStudent.Guid, classStudent.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= user.TrueName%><br /> <%= user.UserName %> </td> <td> <%= user.ParentUserType.Name %> </td> <td> <%= user.ParentDomain.Name %> </td> <td> <a href="#delete" onclick="ClassUserDelete(this,'<%= SetKey(classStudent.Guid, classStudent.Version) %>'); return false;">???</a> <br /> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyClassUserData .trselall").click(function () { if (this.checked == true) { $("#MyClassUserData .trsel").attr("checked", "checked"); } else { $("#MyClassUserData .trsel").removeAttr("checked"); } }) function SelectMyClassUserAll() { var bool = $("#MyClassUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyClassUserData .trsel").attr("checked", "checked"); $("#MyClassUserData .trselall").attr("checked", "checked"); } else { $("#MyClassUserData .trsel").removeAttr("checked"); $("#MyClassUserData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyClassUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyClassUserList(this.ClassInfo.Guid, int.MaxValue, this.Name) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de