Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\Credits\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Credits.Edit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> <%= this.Title %></title> <%= Import.Theme() %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag() %>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title %></h3> <span class="txt-info">[<a href="#" onclick="GoList();return false;"><%= DefineEnum.???.Define() %></a>]</span> </div> <div class="ln-thick ln-c-mid"> </div> <div class="subcontent"> <form id="frmCredits" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("Credits_?????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Code", this.ViewData["_Credits.Code"], 32) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Code") %> </td> </tr> <tr> <th title="<%= Define.Get("Credits_???").ToScriptTag() %>"> <%= Define.Get("Credits_???").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_Type_?????????").ToScriptTag()%>"> <label for="Credits_Type_0"><%= new HtmlRadio("Type", 0, null) { ID = "Credits_Type_0", Class = "", Checked = (this.ViewData["_Credits.Type"].ToIntN() == 0 ? true : false), OnClick="TypeChange();" }%><%= Define.Get("Credits_Type_???") %></lable> <label for="Credits_Type_1"><%= new HtmlRadio("Type", 1, null) { ID = "Credits_Type_1", Class = "", Checked = (this.ViewData["_Credits.Type"].ToIntN() == 1 ? true : false), OnClick="TypeChange();" }%><%= Define.Get("Credits_Type_???") %></lable> <script type="text/javascript"> function TypeChange() { //alert($("#Credits_Type_0").attr("checked")); //alert($("#Credits_Type_1").attr("checked")); if ($("#Credits_Type_0").attr("checked") == "checked") { $(".Cbegin").show(); } if ($("#Credits_Type_1").attr("checked") == "checked") { $(".Cbegin").hide(); } } $(function () { TypeChange(); }); </script> </td> </tr> <tr> <th title="<%= Define.Get("Credits_?????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("Image", ViewData["_Credits.Image"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <%= new HtmlYKTip("Image") %> <br /> <a href="#deleteImage" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadImage" class="decoration-none" onclick="return UploadFile('#frmCredits [name=Image]','<%= Define.Get("Credits_Image_??????????????????")%>:?????640*480???','0','<%= SettingGroup.CreditsUploadPath %>','','640','480')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_????????????").ToScriptTag() %>"> <%= Define.Get("Credits_????????????").HtmlEncode() %>?? </th> <td> <%-- <%= new HtmlText("FontTitle", this.ViewData["_Credits.FontTitle"], 256) { Class = "ipt-t ipt-t-dft " }%>--%> <%= new HtmlSelect("FontTitle", "Value", "Key", "Value") { Option = DICFONT }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_Credits.FontTitle"] == null ? "?????" : this.ViewData["_Credits.FontTitle"])%> <%= new HtmlYKTip("FontTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_????????????").ToScriptTag() %>"> <%= Define.Get("Credits_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ColorTitle", this.ViewData["_Credits.ColorTitle"], 50) { Class = "ipt-t ipt-t-dft colorpickerField", DefaultValue="#000000" }%> <%= new HtmlYKTip("ColorTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_???????????????").ToScriptTag() %>"> <%= Define.Get("Credits_???????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FontSizeTitle", this.ViewData["_Credits.FontSizeTitle"], 50) { Class = "ipt-t ipt-t-dft ", DefaultValue="24" }%> <%= new HtmlYKTip("FontSizeTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_??????X?????").ToScriptTag() %>"> <%= Define.Get("Credits_??????X?????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_XSiteTitle_??????????????????????").ToScriptTag()%>"> <%= new HtmlText("XSiteTitle", this.ViewData["_Credits.XSiteTitle"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="20" }%> <%= new HtmlYKTip("XSiteTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_??????Y?????").ToScriptTag() %>"> <%= Define.Get("Credits_??????Y?????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_YSiteTitle_??????????????????????").ToScriptTag()%>"> <%= new HtmlText("YSiteTitle", this.ViewData["_Credits.YSiteTitle"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="20" }%> <%= new HtmlYKTip("YSiteTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_WidthTitle_??????????????????????????").ToScriptTag()%>"> <%= new HtmlText("WidthTitle", this.ViewData["_Credits.WidthTitle"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="480" }%> <%= new HtmlYKTip("WidthTitle") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_????????????").ToScriptTag() %>"> <%= Define.Get("Credits_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsBoldTitle", this.ViewData["_Credits.IsBoldTitle"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????????????").HtmlEncode() %>?? </th> <td> <%-- <%= new HtmlText("FontSpeaker", this.ViewData["_Credits.FontSpeaker"], 50) { Class = "ipt-t ipt-t-dft " }%>--%> <%= new HtmlSelect("FontSpeaker", "Value", "Key", "Value") { Option = DICFONT }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_Credits.FontSpeaker"] == null ? "?????" : this.ViewData["_Credits.FontSpeaker"])%> <%= new HtmlYKTip("FontSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ColorSpeaker", this.ViewData["_Credits.ColorSpeaker"], 50) { Class = "ipt-t ipt-t-dft colorpickerField" , DefaultValue="#000000"}%> <%= new HtmlYKTip("ColorSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FontSizeSpeaker", this.ViewData["_Credits.FontSizeSpeaker"], 50) { Class = "ipt-t ipt-t-dft ", DefaultValue="20" }%> <%= new HtmlYKTip("FontSizeSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_XSiteSpeaker_?????????X??????????????").ToScriptTag()%>"> <%= new HtmlText("XSiteSpeaker", this.ViewData["_Credits.XSiteSpeaker"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="20" }%> <%= new HtmlYKTip("XSiteSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_?????????????").ToScriptTag() %>"> <%= Define.Get("Credits_?????????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_YSiteSpeaker_?????????Y??????????????").ToScriptTag()%>"> <%= new HtmlText("YSiteSpeaker", this.ViewData["_Credits.YSiteSpeaker"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="20" }%> <%= new HtmlYKTip("YSiteSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_???????????").ToScriptTag() %>"> <%= Define.Get("Credits_???????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_WidthSpeaker_???????????????????????????").ToScriptTag()%>"> <%= new HtmlText("WidthSpeaker", this.ViewData["_Credits.WidthSpeaker"]) { Class = "ipt-t ipt-t-dft ", DefaultValue="300" }%> <%= new HtmlYKTip("WidthSpeaker") %> </td> </tr> <tr class="Cbegin"> <th title="<%= Define.Get("Credits_??????????????").ToScriptTag() %>"> <%= Define.Get("Credits_??????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsBoldSpeaker", this.ViewData["_Credits.IsBoldSpeaker"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("Credits_????????????").ToScriptTag() %>"> <%= Define.Get("Credits_????????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_ShowTime_??????????????").ToScriptTag()%>"> <%= new HtmlText("ShowTime", this.ViewData["_Credits.ShowTime"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ShowTime") %> </td> </tr> <tr> <th title="<%= Define.Get("Credits_?????").ToScriptTag() %>"> <%= Define.Get("Credits_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Credits_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_Credits.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> </table> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th> </th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_Credits"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_Credits"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("js", "/XhEditor/xheditor-zh-cn.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("js","/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/CreditsAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmCredits" }); //????? $("#frmCredits [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("Credits_SortNumber_???????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_SortNumber_???????????").ToScriptChar() %>" } }); //????????? $("#frmCredits [name=Code]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Credits_Code_?????????????????").ToScriptChar() %>" } }); //????????? $("#frmCredits [name=Image]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Credits_Image_??????????????").ToScriptChar() %>" } }); //????????????????? $("#frmCredits [name=FontSpeaker]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Credits_FontSpeaker_???????????????").ToScriptChar() %>" } }); //????????????????? $("#frmCredits [name=ColorSpeaker]").formValidator({ validatorGroup: "Edit", rules: { regex:"^#[0-9a-fA-F]{6}$", required: null }, message: { regex: "<%= Define.Get("Credits_ColorSpeaker_???????????????").ToScriptChar() %> ?????#000000", required: "<%= Define.Get("Credits_ColorSpeaker_???????????????").ToScriptChar() %>" } }); //????????????? $("#frmCredits [name=XSiteSpeaker]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_XSiteSpeaker_?????????????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_XSiteSpeaker_???????????").ToScriptChar() %>" } }); //????????????? $("#frmCredits [name=YSiteSpeaker]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_YSiteSpeaker_?????????????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_YSiteSpeaker_???????????").ToScriptChar() %>" } }); //??????????? $("#frmCredits [name=WidthSpeaker]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_WidthSpeaker_?????????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_WidthSpeaker_???????????").ToScriptChar() %>" } }); //???????????? $("#frmCredits [name=FontTitle]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Credits_FontTitle_??????????????").ToScriptChar() %>" } }); //???????????? $("#frmCredits [name=ColorTitle]").formValidator({ validatorGroup: "Edit", rules: { regex:"^#[0-9a-fA-F]{6}$", required: null }, message: { regex: "<%= Define.Get("Credits_ColorTitle_??????????????").ToScriptChar() %> ?????#000000", required: "<%= Define.Get("Credits_ColorTitle_??????????????").ToScriptChar() %>" } }); //??????X????? $("#frmCredits [name=XSiteTitle]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_XSiteTitle_??????X?????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_XSiteTitle_???????????").ToScriptChar() %>" } }); //??????Y????? $("#frmCredits [name=YSiteTitle]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_YSiteTitle_??????Y?????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_YSiteTitle_???????????").ToScriptChar() %>" } }); //????????? $("#frmCredits [name=WidthTitle]").formValidator({ validatorGroup: "Edit", rules: { required: "0", regex: "num1" }, message: { required: "<%= Define.Get("Credits_WidthTitle_???????????????").ToScriptChar() %>", regex: "<%= Define.Get("Credits_WidthTitle_???????????").ToScriptChar() %>" } }); //????????????????? $("#frmCredits [name=FontSizeSpeaker]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("Credits_FontSizeSpeaker_??????????????????").ToScriptChar() %>", regex: "?????????????????????" } }); //??????????????? $("#frmCredits [name=FontSizeTitle]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("Credits_FontSizeTitle_?????????????????").ToScriptChar() %>", regex: "?????????????????????" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { CreditsAjax.Insert($("#frmCredits"), send, function (json) { document.getElementById("frmCredits").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { CreditsAjax.Update($("#frmCredits"), send, function (json) { document.getElementById("frmCredits").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmCredits").KEY.value; CreditsAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //????????? $("#frmCredits [name=Image]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.CreditsUploadPath %>" + $("#frmCredits [name=Image]").val()); //??????????? </script> <%= Import.Script("js", "/colorpicker/js/colorpicker.js")%> <%= Import.CSS("js", "/colorpicker/css/colorpicker.css")%> <script type="text/javascript"> //?????? var that; $('.colorpickerField').ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { $(el).val("#"+hex); $(el).ColorPickerHide(); }, onChange: function (hsb, hex, rgb) { $(that).val("#"+hex); }, onBeforeShow: function () { $(this).ColorPickerSetColor(this.value); that = this; } }) .bind('keyup', function(){ $(this).ColorPickerSetColor(this.value); }); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de