Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyClassInfoEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyClassInfoEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyClassInfoEdit" %> <div class="flat data-box"> <div class="head"> <span class="title"><%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_??????") : Define.Get("Client_??????")+"???"%></span> </div> <div class="userInput body"> <form id="frmClassInfoEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("Name", this.ViewData["_ClassInfo.Name"], 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", SelectedValue = (this.ClassInfo != null ? this.ClassInfo.ParentCategory != null ? this.ClassInfo.ParentCategory.Guid : "" : CookieGroup.ListUserCategory.FirstResult())}.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentCategory") { }%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = "", SelectedValue = (this.ClassInfo != null ? this.ClassInfo.ParentGrade !=null ?this.ClassInfo.ParentGrade.Guid : "" : "") }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentGrade") { }%> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_ClassInfo.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%> </td> </tr> </table> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"></span></td> <td> <%= new HtmlHidden("InheritScoreItem", "0")%> <%= new HtmlHidden("Key", SetKey(this.ViewData["_ClassInfo.Guid"], this.ViewData["_ClassInfo.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "?????????" : "?????????", "ClassInfoEdit", "ClassInfoEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> <script type="text/javascript"> $(function () { $("#frmClassInfoEdit [name=BeginTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmClassInfoEdit [name=BeginTime]", "ClassInfoEdit"); } }); $("#frmClassInfoEdit [name=EndTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmClassInfoEdit [name=EndTime]", "ClassInfoEdit"); } }); $("#frmClassInfoEdit [name=CutoffTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmClassInfoEdit [name=CutoffTime]", "ClassInfoEdit"); } }); }); //?????? $.validator.initConfig({ validatorGroup: "ClassInfoEdit", form: "#frmClassInfoEdit", alertMessage: true, showMessage: false }); //?????? $("#frmClassInfoEdit [name=Name]").formValidator({ validatorGroup: "ClassInfoEdit", rules: { required: null }, message: { required: "???????????" } }); //??????? $("#frmClassInfoEdit [name=ParentCategory]").formValidator({ targetFocus: "#frmClassInfoEdit [name=ParentCategory_Name]", validatorGroup: "ClassInfoEdit", rules: { required: null }, message: { required: "????????????" } }); //??????? $("#frmClassInfoEdit [name=ParentGrade]").formValidator({ targetFocus: "#frmClassInfoEdit [name=ParentGrade_Name]", validatorGroup: "ClassInfoEdit", rules: { required: null }, message: { required: "????????????" } }); </script> <script type="text/javascript"> function ClassInfoEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ClassInfoEdit", data: Global.GetFormValue($("#frmClassInfoEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "??????"%>'); flash('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "?????????" : "?????????"%>') Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "?????..." : "?????..."%>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "??????" %>'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de