Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyLLUserAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyLLUserAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyLLUserAdd" %> <%= new MyListenLessonNavInstance(this) { Local = MyListenLessonNavItem.??????, ListenLesson = this.ListenLesson }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">??????????????"<%= this.ListenLesson.Name %>" </span> </div> <div class="dataControl"> <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","MyLLUserAdd") %> <%= new HtmlHidden("ParentListenLesson",this.ListenLesson.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???????????", "LLUserBatchAdd(this);"){ Class="btn btn-warning pull-right" }%> </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)); } }); }); </script> <script type="text/javascript"> //?????? function LLUserBatchAdd(send) { var items = $("#MyUserData .trsel:checked"); var key = ""; var guestType = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); guestType += "GuestType=" + $(items[i]).parent().parent().find("[Name=GuestType]").val(); if (i != items.length - 1) { key += "&"; guestType += "&"; } } if (key != "") { //if (confirm("?????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLUserBatchAdd", data: key + "&" + guestType, async: true, dataType: 'json', success: function (result) { $(send).val("???????????"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyLLUserList(this.ListenLesson.Guid) %>"; }, 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 LLUserAdd(send, pkid) { //if (confirm("???????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLUserAdd", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyLLUserList(this.ListenLesson.Guid) %>"; }, 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="MyUserData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel"> <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"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListUser.Count - 1; i++) { var user = this.ListUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(user.Guid + "," + this.ListenLesson.Guid, user.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= user.ParentDomain.Name %> <br /> <%= user.UserName %> ( <%= user.TrueName %> ) </td> <td> <%= user.ParentUserType.Name %> </td> <td> <%= user.MobilePhone %> <br /> <%= user.Email %> </td> <td class="action"> <a href="#add" onclick="LLUserAdd(this,'<%= SetKey(user.Guid + "," + this.ListenLesson.Guid, user.Version) %>'); return false;">???</a><%-- | <%= new HtmlAnchor("???") { Href = WebUrl.Show(user.ParentDomain.Guid, user.Guid) }%>--%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyUserData .trselall").click(function () { if (this.checked == true) { $("#MyUserData .trsel").attr("checked", "checked"); } else { $("#MyUserData .trsel").removeAttr("checked"); } }) function SelectMyUserAll() { var bool = $("#MyUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyUserData .trsel").attr("checked", "checked"); $("#MyUserData .trselall").attr("checked", "checked"); } else { $("#MyUserData .trsel").removeAttr("checked"); $("#MyUserData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyLLUserAdd(this.ListenLesson.Guid, 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