Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyPublicClassEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPublicClassEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyPublicClassEdit" %> <% if (Has(this.ViewData["_PublicClass"])) { %> <%= new MyPublicClassNavInstance(this) { Local = MyPublicClassNavItem.??????, PublicClass = this.PublicClass }.ToHtml()%> <% } %> <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="frmPublicClassEdit" 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><%= Define.Get("Client_?????")%>????????</span></td> <td> <%= new HtmlText("Name", this.ViewData["_PublicClass.Name"], 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <%if (this.PrimaryKey != null) { %> <tr> <td class="label-td"><span class="label"><span class="required">*</span><%= Define.Get("Client_?????")%>????????</span></td> <td> <%= new HtmlSelect("Status", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum), SelectedValue = this.ViewData["_PublicClass.Status"] }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%= new HtmlYKTip("Status")%> </td> </tr> <tr> <td class="label-td"><span class="label"><%= Define.Get("Client_?????")%>????????</span></td> <td> <%= new HtmlSelect("Examine", "Value", "Key", "Key") { Disabled=true, Option = typeof(AVA.ResourcesPlatform.Model.Pub.PublicClassExamineEnum), SelectedValue = this.ViewData["_PublicClass.Examine"] }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%= new HtmlYKTip("Examine")%> </td> </tr> <% } %> <tr> <td class="label-td"><span class="label">?????????</span></td> <td> <%= new HtmlText("Compere", this.ViewData["_PublicClass.Compere"], 255) { }%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("BeginTime", this.ViewData["_PublicClass.BeginTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("BeginTime")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("EndTime", this.ViewData["_PublicClass.EndTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("EndTime")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>???????????</span></td> <td> <%= new HtmlText("CutoffTime", this.ViewData["_PublicClass.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%> </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),SelectedValue = this.PublicClassCategory != null ? this.PublicClassCategory.Guid : CookieGroup.ListUserCategory.FirstResult() }.InsertOption("::???::", "", 0) %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"></span><%= Define.Get("Client_?????")%>????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", this.ViewData["_PublicClass.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.PublicClassCover(this.ViewData["_PublicClass"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=140, Height=88 }%> <% } else { %> <%= new HtmlImg(SettingGroup.PublicClassCover(this.ViewData["_PublicClass"]), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadPublicClassCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> <script type="text/javascript"> function UploadPublicClassCover() { UploadFile('#frmPublicClassEdit [name=Cover]', '<%= Define.Get("Client_?????")%>?????????', '0', '<%= SettingGroup.PublicClassUploadPath %>', '', '480', '300'); } </script> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr> <td class="label-td"><span class="label">?????????</span></td> <td> <table border="0"> <tr> <td><div class="min-video-photo"> <%= new HtmlHidden("Ad", this.ViewData["_PublicClass.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.PublicClassAd(this.ViewData["_PublicClass"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.PublicClassAd(this.ViewData["_PublicClass"]), "") { ID = "imgAd", OnErrorImg= SettingGroup.DefaultImg, Width = 400, Height = 300 }%> <% } %></div> </td> </tr> <tr> <td> <input type="button" value="????????" onclick="UploadPublicClassAd();" style="width: auto;" /> <%= new HtmlYKTip("Ad")%> <script type="text/javascript"> function UploadPublicClassAd() { UploadFile('#frmPublicClassEdit [name=Ad]', '<%= Define.Get("Client_?????")%>?????????', '0', '<%= SettingGroup.PublicClassUploadPath %>', '', '0', '0'); } </script> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_PublicClass.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%> </td> </tr> </table> <div class="accordion_bl" style="background: #FCFCFC; margin-bottom: 20px;display:none"> <div class="accordion"> <div class="accordion-heading "> <a href="#slide-con_PublicClassInfo" data-parent="" data-toggle="collapse" class="accordion-toggle ">?????? <i class="ico oct"></i> </a> </div> <div class="accordion-body collapse " id="slide-con_PublicClassInfo"> <div class=" accordion-inner"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td class="label-td"><span class="label"><span class="required"></span>??????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_PublicClass.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <ul> <% foreach (var category in this.ListAllCategory) { string parentCategoryGuid = ""; if (category.ParentCategory != null) { parentCategoryGuid = category.ParentCategory.Guid; %> <li> <%= new HtmlCheckBox("Category", this.SelectCategory.Contains(category.Guid), category.Guid, "") { ID = "Category" + category.Guid, Class = "CategoryItem CategoryItemCategory" + parentCategoryGuid, Lang = category.ParentCategory.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Category" + category.Guid, category.Name)%> </li> <% } else { %> <li> <%= new HtmlCheckBox("Category", this.SelectCategory.Contains(category.Guid), category.Guid, "") { ID = "Category" + category.Guid, Class = "CategoryMaster CategoryMaster" + category.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Category" + category.Guid, category.Name)%> </li> <% } } %> </ul> <script type="text/javascript"> //??????????? $(".CategoryMaster").bind("click", function () { if (this.checked == false) { $(".CategoryItem" + this.id).removeAttr("checked"); } }) //??????????? $(".CategoryItem").bind("click", function () { if (this.checked == true) { $(".CategoryMaster" + this.lang).attr("checked", "checked"); } else { if ($(".CategoryItemCategory" + this.lang + ":checked").length > 0) { $(".CategoryMaster" + this.lang).attr("checked", "checked"); } else { $(".CategoryMaster" + this.lang).removeAttr("checked"); } } }) </script> </td> </tr> </table> </div> </div> </div> </div> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"></span></td> <td> <%= new HtmlHidden("Key", SetKey(this.ViewData["_PublicClass.Guid"], this.ViewData["_PublicClass.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_?????")+"???" : "???"+Define.Get("Client_?????")+"???", "PublicClassEdit", "PublicClassEditClient(this);").Style(new { Width = "120px" })%> </td> </tr> </table> </form> </div> <script type="text/javascript"> $(function () { $("#frmPublicClassEdit [name=BeginTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmPublicClassEdit [name=BeginTime]", "PublicClassEdit"); } }); $("#frmPublicClassEdit [name=EndTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmPublicClassEdit [name=EndTime]", "PublicClassEdit"); } }); $("#frmPublicClassEdit [name=CutoffTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmPublicClassEdit [name=CutoffTime]", "PublicClassEdit"); } }); }); //?????? $.validator.initConfig({ validatorGroup: "PublicClassEdit", form: "#frmPublicClassEdit", alertMessage: true, showMessage: false }); //<%= Define.Get("Client_?????")%>?????? $("#frmPublicClassEdit [name=Name]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null }, message: { required: "?????<%= Define.Get("Client_?????")%>??????" } }); //??????? $("#frmPublicClassEdit [name=BeginTime]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null, regex: "date" }, message: { required: "????????????", regex: "??????????????" } }); //?????? $("#frmPublicClassEdit [name=EndTime]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null, regex: "date" }, message: { required: "???????????", regex: "??????????????" } }); //????????? $("#frmPublicClassEdit [name=CutoffTime]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null, regex: "date" }, message: { required: "??????????????", regex: "?????????????????" } }); //??????? <%if (this.PrimaryKey != null) { %> $("#frmPublicClassEdit [name=Status]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null }, message: { required: "????????????" } }); <%}%> //????? $("#frmPublicClassEdit [name=SortNumber]").formValidator({ validatorGroup: "PublicClassEdit", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); </script> <script type="text/javascript"> function PublicClassEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PublicClassEdit", data: Global.GetFormValue($("#frmPublicClassEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_?????")+"???" : "???"+Define.Get("Client_?????")+"???" %>'); flash('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_?????")+"??????" : Define.Get("Client_?????")+"?????????"%>') 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) ? "???"+Define.Get("Client_?????")+"???" : "???"+Define.Get("Client_?????")+"???" %>'); 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