Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyBasic.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyBasic.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyBasic" %> <div class="box well"> <div class="p_title"> <span class="title">???????????</span> <%= this.User.UserName %> ???????? </div> <hr /> <form id="frmHeadPortrait" action="" onsubmit="return false;"> <div class="userInput"> <table border="0" style="margin: 0 auto; text-align: center;"> <tr> <td> <div class="personalHead"> <% if (this.HeadPortraitUrl != null) { //?????? %> <%= new HtmlImg(this.HeadPortraitUrl, this.User.TrueName + "?????") { ID = "imgHeadPortrait", Width=120, Height=120 }%> <% } else { //???????? %> <%= new HtmlImg(SettingGroup.DefauteUserImg, this.User.TrueName + "?????") { ID = "imgHeadPortrait", Width=120, Height=120 }%> <% } %> <%= new HtmlHidden("HeadPortrait", this.User.HeadPortrait)%> </div> </td> </tr> <tr> <td> <div id="m_icon" style=""> <!-- headCheck --> <div class="action" style=""> <input type="button" value="??????" onclick="UploadHeadPortrait();" class="btn" /> <%= new HtmlYKTip("Photo")%> <script type="text/javascript"> function UploadHeadPortrait() { UploadFile('#frmHeadPortrait [name=HeadPortrait]', '??????', '0', '<%= SettingGroup.UserUploadPath %>', '', '160', '160'); } </script> <%--<%= new HtmlSubmit("??????", null, "HeadPortraitClient(this);") { Class="btn" }%>--%> <br /> <span>???.jpg??if??ng????????</span> </div> </div> </td> </tr> </table> </div> <div class="clear"> </div> </form> <%-- <script type="text/javascript"> function HeadPortraitClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.HeadPortrait", data: Global.GetFormValue($("#frmHeadPortrait")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("?????????"); Global.Disabled(send, false); }, 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); } }); } </script>--%> <hr /> <form action="" id="frmBasic" method="post" onsubmit="return false;"> <ul class="userInput user" id="info"> <li><span class="label"><span class="required">*</span>????????</span> <%= new HtmlText("TrueName", this.User.TrueName, 12) { Class = "text" }%> <%= new HtmlYKTip("TrueName") { }%> </li> <li ><span class="label"><span class="required">*</span>????????</span> <ul style="vertical-align: top;width:290px;display:inline-block;*display:inline;*zoom:1;margin-left: 0;-moz-column-count:2; -webkit-column-count:2; column-count:2;"> <% var listCategory = CreateInstance.CategoryDao.Where(l => l.ParentCategory != null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.CategoryStatusEnum.???) .ToList(); for (var i = 0; i <= listCategory.Count - 1; i++) { var category = listCategory[i]; bool has = CookieGroup.ListUserCategory.Count(l => l == category.Guid) > 0; %> <li> <%= new HtmlCheckBox("UserCategory", false, category.Guid, "") { ID = "UserCategory" + category.Guid, Checked = has }.Style(new { Width = "auto" })%> <%= new HtmlLabel("UserCategory" + category.Guid, category.Name)%> </li> <% } %> </ul> </li> <li><span class="label">??????????</span> <%= new HtmlTextArea("Introduction", this.User.Introduction, 1000) { Class = "text span4", Rows = 3 }%> <%= new HtmlYKTip("Introduction") { }%> </li> <li><span class="label"><span class="required">*</span>????????</span> <%= new HtmlText("MobilePhone", this.User.MobilePhone, 255) { Class = "text" }%> <%= new HtmlYKTip("MobilePhone") { }%> </li> <li><span class="label">?????</span> <%= new HtmlText("Telephone", this.User.Telephone, 255) { Class = "text" }%> </li> <li><span class="label">Email??</span> <%= new HtmlText("Email", this.User.Email, 255) { Class = "text" }%> </li> <li><span class="label">?????????</span> <%= new HtmlText("IDCard", this.User.IDCard, 255) { Class = "text" }%> </li> <li><span class="label">QQ??</span> <%= new HtmlText("QQ", this.User.QQ, 255) { Class = "text" }%> </li> <li><span class="label">MSN??</span> <%= new HtmlText("MSN", this.User.MSN, 255) { Class = "text" }%> </li> <li><span class="label">????????</span> <%= new HtmlText("Address", this.User.Address, 255) { Class = "text" }%> </li> <li><span class="label">????????</span> <%= new HtmlText("PostalCode", this.User.PostalCode, 55) { Class = "text" }%> </li> <li class="action"> <%= new HtmlSubmit("??????", "Basic", "BasicClient(this);") { Width = 100 }%> </li> </ul> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "Basic", form: "#frmBasic", alertMessage: true, showMessage: false }); $("#frmBasic [name=TrueName]").formValidator({ validatorGroup: "Basic", rules: { required: null }, message: { required: "???????????" } }); $("#frmBasic [name=MobilePhone]").formValidator({ validatorGroup: "Basic", rules: { required: null }, message: { required: "???????????" } }); </script> <script type="text/javascript"> function BasicClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.HeadPortrait", data: Global.GetFormValue($("#frmHeadPortrait")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); //alert("?????????"); Global.Disabled(send, false); }, 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); } }); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.Basic", data: Global.GetFormValue($("#frmBasic")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("????????????") Global.Disabled(send, false); window.location.href = "<%=WebUrl.BasicInfo()%>"; }, 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); } }); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de