Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyShiXunWorkEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectEdit" %> <% if (Has(this.ViewData["_Subject"])) { %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.??????, Subject = this.Subject }.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="frmSubjectEdit" 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["_Subject.Name"], 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("Status", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = this.ViewData["_Subject"] == null ? 0 : this.ViewData["_Subject.Status"], }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%= new HtmlYKTip("Status")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("BeginTime", this.ViewData["_Subject.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["_Subject.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["_Subject.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%> </td> </tr> <tr class="hidden"> <td class="label-td"><span class="label">???????????</span></td> <td> <% var CheckVideoAttachment = this.ViewData["_Subject.CheckVideoAttachment"] == null ? false : this.ViewData["_Subject.CheckVideoAttachment"]; %> <%= new HtmlCheckBox("CheckVideoAttachment", CheckVideoAttachment, 1, 0) { Class = "" }.Style(new { Width = "auto" })%> <span class="label">????????????????????????????????????°????????????</span> </td> </tr> <tr class="hidden"> <td class="label-td"><span class="label">???????????</span></td> <td> <%--<%= new HtmlCheckBox("STEnable",this.ViewData["_Subject.STEnable"], 1, 0) { Class = "", OnClick="SwitchCutoffTimeBeforLock();" }.Style(new { Width = "auto" })%>--%> <% var STEnableDefault = this.ViewData["_Subject.STEnable"] == null ? false : this.ViewData["_Subject.STEnable"]; %> <%= new HtmlCheckBox("STEnable", STEnableDefault, 1, 0) { Class = "", OnClick="SwitchCutoffTimeBeforLock();" }.Style(new { Width = "auto" })%> </td> </tr> <tr id="trCutoffTimeBeforLock" style="display: none;"> <td style="text-align: right;"><span class="label">???????????????????????</span></td> <td> <%= new HtmlCheckBox("CutoffTimeBeforLock", this.ViewData["_Subject.CutoffTimeBeforLock"], 1, 0) { Class = "" }.Style(new { Width = "auto" })%> <script type="text/javascript"> function SwitchCutoffTimeBeforLock() { var checked = $("#frmSubjectEdit [Name=STEnable]").is(':checked'); //alert(checked==true); if (checked == true) { document.getElementById("trCutoffTimeBeforLock").style.display = ""; } else { document.getElementById("trCutoffTimeBeforLock").style.display = "none"; $("#frmSubjectEdit [Name=CutoffTimeBeforLock]").prop('checked', false); } } $(function () { SwitchCutoffTimeBeforLock(); }); </script> </td> </tr> <tr class="hidden"> <td class="label-td"><span class="label">???????????????</span></td> <td> <%--<%= new HtmlCheckBox("ShareUpload", this.ViewData["_Subject.ShareUpload"], 1, 0) { Class = "" }.Style(new { Width = "auto" })%>--%> <% var shareUploadDefault = this.ViewData["_Subject.ShareUpload"] == null ? false : this.ViewData["_Subject.ShareUpload"]; %> <%= new HtmlCheckBox("ShareUpload", shareUploadDefault, 1, 0) { Class = ""}.Style(new { Width = "auto" })%> <%--<span class="label">????????????????????????????????????</span>--%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"></span>????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", this.ViewData["_Subject.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.SubjectCover(this.ViewData["_Subject"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=140, Height=88 }%> <% } else { %> <%= new HtmlImg(SettingGroup.SubjectCover(this.ViewData["_Subject"]), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadSubjectCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> <script type="text/javascript"> function UploadSubjectCover() { UploadFile('#frmSubjectEdit [name=Cover]', '?????????', '0', '<%= SettingGroup.SubjectUploadPath %>', '', '480', '300'); } </script> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr style="display:none"> <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["_Subject.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.SubjectAd(this.ViewData["_Subject"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.SubjectAd(this.ViewData["_Subject"]), "") { ID = "imgAd", OnErrorImg= SettingGroup.DefaultImg, Width = 400, Height = 300 }%> <% } %></div> </td> </tr> <tr> <td> <input type="button" value="????????" onclick="UploadSubjectAd();" style="width: auto;" /> <%= new HtmlYKTip("Ad")%> <script type="text/javascript"> function UploadSubjectAd() { UploadFile('#frmSubjectEdit [name=Ad]', '?????????', '0', '<%= SettingGroup.SubjectUploadPath %>', '', '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["_Subject.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%> </td> </tr> </table> <%if (AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l => l.ParentSubject == this.Subject) > 0 && this.PrimaryKey != null) { %> <div class="accordion_bl" style="background: #FCFCFC; margin-bottom: 20px;"> <div class="accordion"> <div class="accordion-heading "> <a href="#slide-con_AlbumInfo" data-parent="" data-toggle="collapse" class="accordion-toggle ">?????<%= Define.Get("Client_???")%> <i class="ico oct"></i> </a> </div> <div class="accordion-body collapse " id="slide-con_AlbumInfo"> <div class=" accordion-inner"> <table border="0" cellpadding="2px" cellspacing="2px"> <% var subSubject = AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Where(l => l.ParentSubject == this.Subject).ToList(); foreach (var item in subSubject) { %> <tr> <td class="label-td"><span class="label">??<%= Define.Get("Client_???")%>???</span></td> <td><%=item.Name %></td> <td class="label-td"><span class="label">??<%= Define.Get("Client_???")%>????</span></td> <td><%=(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)item.Status %></td> </tr> <tr> <td class="label-td"><span class="label">??<%= Define.Get("Client_???")%>??????</span></td> <td><%=item.BeginTime.ToShortDate() %><br /> ??<br /> <%=item.EndTime.ToShortDate() %></td> </tr> <tr> <td class="label-td"><span class="label">??<%= Define.Get("Client_???")%>????????????</span></td> <td><%=item.CutoffTime.ToShortDate() %></td> </tr> <% } %> </table> </div> </div> </div> </div> <%} %> <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="ico oct"></i> </a> </div> <div class="accordion-body collapse " id="Div1"> <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 HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 0 ? true : false), 0, null) { ID = "Subject_Share_0" }.Style(new { Width = "auto" })%> <label for="Subject_Share_0"> ??? </label> <%--<%= new HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Subject_Share_1" }.Style(new { Width = "auto" })%> <label for="Subject_Share_1"> ??? </label>--%> <%= new HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 2 || this.ViewData["_Subject.Share"] == null ? true : false), 2, null) { ID = "Subject_Share_2" }.Style(new { Width = "auto" })%> <label for="Subject_Share_2"> ??? </label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"></span>??????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_Subject.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????(" ")?????</span></td> <td> <%= new HtmlText("SubjectTag", this.SubjectTag, 256) { }%> </td> </tr> <tr> <td class="label-td"><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> <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("InheritScoreItem", "0")%> <%= new HtmlHidden("ShiXunWork", "1")%> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Subject.Guid"], this.ViewData["_Subject.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "?????????" : "?????????", "SubjectEdit", "SubjectEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> <script type="text/javascript"> $(function () { $("#frmSubjectEdit [name=BeginTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmSubjectEdit [name=BeginTime]", "SubjectEdit"); } }); $("#frmSubjectEdit [name=EndTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmSubjectEdit [name=EndTime]", "SubjectEdit"); } }); $("#frmSubjectEdit [name=CutoffTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmSubjectEdit [name=CutoffTime]", "SubjectEdit"); } }); }); //?????? $.validator.initConfig({ validatorGroup: "SubjectEdit", form: "#frmSubjectEdit", alertMessage: true, showMessage: false }); //?????? $("#frmSubjectEdit [name=Name]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: null }, message: { required: "???????????" } }); ////?????? //$("#frmSubjectEdit [name=Cover]").formValidator({ // validatorGroup: "SubjectEdit", // rules: //{ // required: null //}, // message: //{ // required: "???????????" //} //}); ////???????? //$("#frmSubjectEdit [name=Ad]").formValidator({ // validatorGroup: "SubjectEdit", // rules: // { // required: null // }, // message: // { // required: "????????????" // } //}); //??????? $("#frmSubjectEdit [name=BeginTime]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: null, regex: "date" }, message: { required: "????????????", regex: "??????????????" } }); //?????? $("#frmSubjectEdit [name=EndTime]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: null, regex: "date" }, message: { required: "???????????", regex: "??????????????" } }); //????????? $("#frmSubjectEdit [name=CutoffTime]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: null, regex: "date" }, message: { required: "??????????????", regex: "?????????????????" } }); //?????? $("#frmSubjectEdit [name=Share]").formValidator({ validatorGroup: "SubjectEdit", rules: { min: 1 }, message: { min: "???????????" } }); //??????? <%if (this.PrimaryKey != null) { %> $("#frmSubjectEdit [name=Status]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: 1 }, message: { required: "????????????" } }); <%}%> //????? $("#frmSubjectEdit [name=SortNumber]").formValidator({ validatorGroup: "SubjectEdit", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); </script> <script type="text/javascript"> function SubjectEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectEdit", data: Global.GetFormValue($("#frmSubjectEdit")), 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