Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyMeetingEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyMeetingEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMeetingEdit" %> <% if (Has(this.ViewData["_Meeting"])) { %> <%= new MyMeetingNavInstance(this) { Local = MyMeetingNavItem.?????? }.ToHtml()%> <% } else { %> <%= new MyMeetingNavTopInstance(this) { Local = MyMeetingNavTopItem.?????? }.ToHtml()%> <%} %> <div class="box well"> <div class="p_title"> <span class="title">????????</span><%= string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "??????"%> </div> <hr /> <div class="userInput pwd"> <form id="frmMeetingEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right; width: 150px;"><span class="label"><span class="required">*</span>?????????</span></td> <td> <%= new HtmlSelect("ParentMeetingServer", "ServerName", "Guid", "Guid") { Option = this.ListMeetingServer, DefaultSelectValue = "", SelectedValue = this.ViewData["_Meeting.ParentMeetingServer.Guid"] }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentMeetingServer")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlText("Name", this.ViewData["_Meeting.Name"], 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr style="display:none"> <td style="text-align: right;"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlSelect("ParentMeetingLevel", "Name", "Guid", "Guid") {Option=this._ListMeetingLevel, DefaultSelectValue=this.ViewData["_Meeting.ParentMeetingLevel.Guid"] }.InsertOption("::???::","",0)%> <%= new HtmlYKTip("ParentMeetingLevel")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required"></span>????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", this.ViewData["_Meeting.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <% if (string.IsNullOrEmpty(SettingGroup.MeetingCover(this.ViewData["_Meeting"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=140, Height=88 }%> <% } else { %> <%= new HtmlImg(SettingGroup.MeetingCover(this.ViewData["_Meeting"]), "") { ID = "imgCover", Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadMeetingCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> <script type="text/javascript"> function UploadMeetingCover() { UploadFile('#frmMeetingEdit [name=Cover]', '?????????', '0', '<%= SettingGroup.MeetingUploadPath %>', '', '960', '540'); } </script> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required"></span>????????</span></td> <td> <%= new HtmlRadio("MeetingType", (this.ViewData["_Meeting.MeetingType"].ToInt(0) == 0 || this.ViewData["_Meeting.MeetingType"] == null ? true : false), 0, null) { ID = "Meeting_MeetingType_0" }.Style(new { Width = "auto" })%> <label for="Meeting_MeetingType_0"> ?????? </label> <%--<%= new HtmlRadio("Share", (this.ViewData["_Meeting.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Meeting_Share_1" }.Style(new { Width = "auto" })%> <label for="Meeting_Share_1"> ??? </label>--%> <%= new HtmlRadio("MeetingType", (this.ViewData["_Meeting.MeetingType"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Meeting_MeetingType_1" }.Style(new { Width = "auto" })%> <label for="Meeting_MeetingType_1"> ??????? </label> <%= new HtmlYKTip("MeetingType") %> </td> </tr> <tr style="display:none"> <td style="text-align: right;"><span class="label">?????????</span></td> <td> <%= new HtmlText("Compere", this.ViewData["_Meeting.Compere"], 255) { }%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("BeginTime", this.ViewData["_Meeting.BeginTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("BeginTime")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("EndTime", this.ViewData["_Meeting.EndTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("EndTime")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>???????????</span></td> <td> <%= new HtmlText("CutoffTime", this.ViewData["_Meeting.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%> </td> </tr> <tr style="display:none"> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("PersonCount", this.ViewData["_Meeting.PersonCount"], 4) { }%> <%= new HtmlYKTip("PersonCount")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_Meeting.Description"], 2000)%> </td> </tr> <tr style="display:none"> <td style="text-align: right;"><span class="label"><span class="required"></span>??????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_Meeting.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">??????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Ad", this.ViewData["_Meeting.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.MeetingAd(this.ViewData["_Meeting"]))) { %> <%= new HtmlImg(SettingGroup.DefaultMaxImg, "") { ID = "imgAd", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.MeetingAd(this.ViewData["_Meeting"]), "") { ID = "imgAd", Width=400, Height=300, OnErrorImg= SettingGroup.DefaultMaxImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadMeetingAd();" style="width: auto;" /> <%= new HtmlYKTip("Ad")%> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> <script type="text/javascript"> function UploadMeetingAd() { UploadFile('#frmMeetingEdit [name=Ad]', '???????????', '0', '<%= SettingGroup.MeetingUploadPath %>', '', '0', '0'); } </script> </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_AlbumInfo" data-parent="" data-toggle="collapse" class="accordion-toggle ">?????? <i class="oct "></i> </a> </div> <div class="accordion-body collapse " id="slide-con_AlbumInfo"> <div class=" accordion-inner"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr style="display: none;"> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("Password", this.ViewData["_Meeting.Password"], 255) { DefaultValue = "123456" }%> <%= new HtmlYKTip("Password") %> </td> </tr> <tr style="display: none;"> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("MasterPwd", this.ViewData["_Meeting.MasterPwd"], 255) { DefaultValue = "123456" }%> <%= new HtmlYKTip("MasterPwd")%> </td> </tr> <tr style="display: none;"> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%--<%= new HtmlCheckBox("GuestEnable", this.ViewData["_Meeting.GuestEnable"], 1, 0) { Class = ""}%>--%> <%= new HtmlCheckBox("GuestEnable", false, 1, 0) { Class = ""}%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlCheckBox("ShareUpload", this.ViewData["_Meeting.ShareUpload"], 1, 0) { Class = "" }%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required"></span>????????</span></td> <td> <%= new HtmlRadio("Share", (this.ViewData["_Meeting.Share"].ToInt(0) == 0 ? true : false), 0, null) { ID = "Meeting_Share_0" }.Style(new { Width = "auto" })%> <label for="Meeting_Share_0"> ??? </label> <%--<%= new HtmlRadio("Share", (this.ViewData["_Meeting.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Meeting_Share_1" }.Style(new { Width = "auto" })%> <label for="Meeting_Share_1"> ??? </label>--%> <%= new HtmlRadio("Share", (this.ViewData["_Meeting.Share"].ToInt(0) == 2 || this.ViewData["_Meeting.Share"] == null ? true : false), 2, null) { ID = "Meeting_Share_2" }.Style(new { Width = "auto" })%> <label for="Meeting_Share_2"> ??? </label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????(" ")?????</span></td> <td> <%= new HtmlText("MeetingTag", this.MeetingTag, 256) { }%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <ul> <% foreach (var channel in this.ListAllChannel) { string parentChannelGuid = ""; if (channel.ParentChannel != null) { parentChannelGuid = channel.ParentChannel.Guid; %> <li> <%= new HtmlCheckBox("Channel", this.SelectChannel.Contains(channel.Guid), channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelItem ChannelItemChannel" + parentChannelGuid, Lang = channel.ParentChannel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> </li> <% } else { %> <li> <%= new HtmlCheckBox("Channel", this.SelectChannel.Contains(channel.Guid), channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelMaster ChannelMaster" + channel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> </li> <% } } %> </ul> <script type="text/javascript"> //????????? $(".ChannelMaster").bind("click", function () { if (this.checked == false) { $(".ChannelItem" + this.id).removeAttr("checked"); } }) //????????? $(".ChannelItem").bind("click", function () { if (this.checked == true) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { if ($(".ChannelItemChannel" + this.lang + ":checked").length > 0) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { $(".ChannelMaster" + this.lang).removeAttr("checked"); } } }) </script> </td> </tr> <tr style="display:none"> <td style="text-align: right;"><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> <tr> <td style="text-align: right;"><span class="label">??????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Ad", this.ViewData["_Meeting.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.MeetingAd(this.ViewData["_Meeting"]))) { %> <%= new HtmlImg(SettingGroup.DefaultMaxImg, "") { ID = "imgAd", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.MeetingAd(this.ViewData["_Meeting"]), "") { ID = "imgAd", Width=400, Height=300, OnErrorImg= SettingGroup.DefaultMaxImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadMeetingAd();" style="width: auto;" /> <%= new HtmlYKTip("Ad")%> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> <script type="text/javascript"> function UploadMeetingAd() { UploadFile('#frmMeetingEdit [name=Ad]', '???????????', '0', '<%= SettingGroup.MeetingUploadPath %>', '', '0', '0'); } </script> </td> </tr> </table> </div> </div> </div> </div> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right;"><span class="label"></span></td> <td> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Meeting.Guid"], this.ViewData["_Meeting.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "?????????", "MeetingEdit", "MeetingEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> $(function () { $("#frmMeetingEdit [name=BeginTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmMeetingEdit [name=BeginTime]", "MeetingEdit"); } }); $("#frmMeetingEdit [name=EndTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmMeetingEdit [name=EndTime]", "MeetingEdit"); } }); $("#frmMeetingEdit [name=CutoffTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmMeetingEdit [name=CutoffTime]", "MeetingEdit"); } }); }); //?????? $.validator.initConfig({ validatorGroup: "MeetingEdit", form: "#frmMeetingEdit", alertMessage: true, showMessage: false }); //??????????? $("#frmMeetingEdit [name=ParentMeetingServer]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null }, message: { required: "<%= Define.Get("Meeting_MeetingServerGuid_????????????????").ToScriptChar() %>" } }); //?????? $("#frmMeetingEdit [name=Name]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null }, message: { required: "???????????" } }); ////?????? //$("#frmMeetingEdit [name=Cover]").formValidator({ // validatorGroup: "MeetingEdit", // rules: // { // required: null // }, // message: // { // required: "???????????" // } //}); ////???????? //$("#frmMeetingEdit [name=Ad]").formValidator({ // validatorGroup: "MeetingEdit", // rules: // { // required: null // }, // message: // { // required: "????????????" // } //}); //?????? $("#frmMeetingEdit [name=Password]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmMeetingEdit [name=MasterPwd]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null }, message: { required: "???????????" } }); //??????? $("#frmMeetingEdit [name=BeginTime]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null, regex: "date" }, message: { required: "????????????", regex: "??????????????" } }); //?????? $("#frmMeetingEdit [name=EndTime]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null, regex: "date" }, message: { required: "???????????", regex: "??????????????" } }); //????????? $("#frmMeetingEdit [name=CutoffTime]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null, regex: "date" }, message: { required: "??????????????", regex: "?????????????????" } }); //??????? //$("#frmMeetingEdit [name=PersonCount]").formValidator({ // validatorGroup: "MeetingEdit", // rules: // { // required: null, // regex: "num1" // }, // message: // { // required: "?????????????", // regex: "?????????????" // } //}); //?????? $("#frmMeetingEdit [name=Share]").formValidator({ validatorGroup: "MeetingEdit", rules: { min: 1 }, message: { min: "???????????" } }); //?????? $("#frmMeetingEdit [name=MeetingType]").formValidator({ validatorGroup: "MeetingEdit", rules: { min: 1 }, message: { min: "???????????" } }); //????? $("#frmMeetingEdit [name=SortNumber]").formValidator({ validatorGroup: "MeetingEdit", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); </script> <script type="text/javascript"> function MeetingEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingEdit", data: Global.GetFormValue($("#frmMeetingEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "?????????"%>'); alert('<%= 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>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de