Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyGroupUser.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupUser.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupUser" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span><span>???????? </span><span class="f_r"></span> </div> <div class="dataControl box"> <form id="frmUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlSelect("DomainGuid", "Name", "Guid", "Guid") { Width=120, Option = this.ListDomain, DefaultSelectValue = "", SelectedValue = this.DomainGuid }.InsertOption("::???::", "", 0)%> ?????? <%= new HtmlText("UserName", this.UserName) { Width = 80 }%> ???????? <%= new HtmlText("TrueName", this.TrueName) { Width = 80 }%> <%= new HtmlHidden("Key","MyGroupUser") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> <script type="text/javascript"> $(function () { $("#frmUserSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmUserSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmUserSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmUserSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmUserSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmUserSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); //??????? function UserChangeStatusClient(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.UserChangeStatus", data: "key=" + pkid + "&Status=" + $(send).val(), async: true, dataType: 'json', success: function (result) { alert("?????????????") send.lang = send.value; Global.Disabled(send, false); }, 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 UserChangeVerifyClient(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.UserChangeVerify", data: "key=" + pkid + "&Verify=" + $(send).val(), async: true, dataType: 'json', success: function (result) { alert("????????????????") send.lang = send.value; Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textVerify, errorThrown) { Global.Disabled(send, false); send.value = send.lang; var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } }; </script> </div> <div id="MyGroupUserData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" colspan="3">??? </td> <td valign="middle" class="disabled">??? </td> <td valign="middle" class="disabled">?????? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListUserGroup.Count - 1; i++) { var user = this.ListUserGroup[i].ParentUser; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListUserGroup.Count - 1 ? "lastLine" : "" %>' style="vertical-align:middle;"> <td> <%= new HtmlAnchor(user.UserName){ Href=WebUrl.Show(user.ParentDomain.Code,user.UserName)} %> (<%= new HtmlAnchor(user.TrueName) { Href = WebUrl.Show(user.ParentDomain.Code, user.UserName) }%>) </td> <td> <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "UserChangeVerifyClient(this,'" + SetKey(user.Guid, user.Version) + "');", Lang = user.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.UserVerifyEnum), SelectedValue = user.Verify }.Style(new { Width = "auto" })%> </td> <td> <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "UserChangeStatusClient(this,'" + SetKey(user.Guid, user.Version) + "');", Lang = user.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.UserStatusEnum), SelectedValue = user.Status }.Style(new { Width = "auto" })%> </td> <td> <%= user.ParentUserType.Name %> </td> <td> <p><%= user.ParentDomain.Name %></p> <p style="display:none;"> ?????<%= user.MobilePhone %> <br /> Email:<%= user.Email %> </p> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupUserData .trselall").click(function () { if (this.checked == true) { $("#MyGroupUserData .trsel").attr("checked", "checked"); } else { $("#MyGroupUserData .trsel").removeAttr("checked"); } }) function SelectMyGroupUserAll() { var bool = $("#MyGroupUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupUserData .trsel").attr("checked", "checked"); $("#MyGroupUserData .trselall").attr("checked", "checked"); } else { $("#MyGroupUserData .trsel").removeAttr("checked"); $("#MyGroupUserData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupUser(int.MaxValue, this.DomainGuid, this.UserName, this.TrueName) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de