Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\PublicClass\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.PublicClass.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> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <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="gWel-tab"> <div class="tabs txt-link"> <ul> <li><%= Define.Get("Client_?????")%>??? </li> <% if (Has(this.ViewData["_PublicClass"])) { %> <li style="padding-left: 20px; padding-right: 20px;">???</li> <li style="padding-left: 20px; padding-right: 20px;">?????? </li> <li style="padding-left: 20px; padding-right: 20px;">?????? </li> <li style="padding-left: 20px; padding-right: 20px;"><%= Define.Get("Client_?????")%>??? </li> <% } %> </ul> </div> <div class="pans"> <div style="display: none;" class="panel"> <div class="subcontent"> <form id="frmPublicClass" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <%--<tr style='<%= IN(this.ViewData["_PublicClass.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("PublicClass_UserDomainName_??????").ToScriptTag() %>"> <%= Define.Get("PublicClass_UserDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_PublicClass.ParentUser.ParentUserType.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_PublicClass.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("PublicClass_UserDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("PublicClass_UserDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_PublicClass.ParentUser.ParentUserType.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_PublicClass.ParentUser"], "", "display:none;")%>'> <th title="<%= Define.Get("PublicClass_UserUserTypeName_?????????").ToScriptTag() %>"> <%= Define.Get("PublicClass_UserUserTypeName_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_PublicClass.ParentUser.ParentUserType.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr>--%> <tr> <th title="<%= Define.Get("PublicClass_???????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentUser_TrueName_UserName", IN(this.ViewData["_PublicClass"], this.ViewData["_PublicClass.ParentUser.TrueName"] + "[" + this.ViewData["_PublicClass.ParentUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmPublicClass [name=ParentUser]","Edit");" }%> <%= new HtmlHidden("ParentUser", this.ViewData["_PublicClass.ParentUser.Guid"])%> <a href="#selectUser" class="decoration-none" onclick="return SelectUser('#frmPublicClass [name=ParentUser]','#frmPublicClass [name=ParentUser_TrueName_UserName]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <%= new HtmlYKTip("ParentUser") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Compere", this.ViewData["_PublicClass.Compere"], 2000) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_PublicClass.Name"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Name") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_???").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_???").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("Cover", ViewData["_PublicClass.Cover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <br /> <a href="#deleteCover" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadCover" class="decoration-none" onclick="return UploadFile('#frmPublicClass [name=Cover]','<%= Define.Get("PublicClass_Cover_??????????????")%>','0','<%= SettingGroup.PublicClassUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_?????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("Ad", ViewData["_PublicClass.Ad"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <br /> <a href="#deleteAd" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadAd" class="decoration-none" onclick="return UploadFile('#frmPublicClass [name=Ad]','<%= Define.Get("PublicClass_Ad_???????????????")%>','0','<%= SettingGroup.PublicClassUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_???????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("BeginTime", this.ViewData["_PublicClass.BeginTime"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date " }%> <%= new HtmlYKTip("BeginTime") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("EndTime", this.ViewData["_PublicClass.EndTime"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date " }%> <%= new HtmlYKTip("EndTime") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_?????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("CutoffTime", this.ViewData["_PublicClass.CutoffTime"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date " }%> <%= new HtmlYKTip("CutoffTime") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_??????").ToScriptTag() %>"> <%= Define.Get("PublicClass_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("VideoCount", this.ViewData["_PublicClass.VideoCount"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_????????").ToScriptTag() %>"> <%= Define.Get("PublicClass_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("VideoView", this.ViewData["_PublicClass.VideoView"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_?????").ToScriptTag() %>"> <%= Define.Get("PublicClass_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("CommentCount", this.ViewData["_PublicClass.CommentCount"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_???????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_???????").HtmlEncode() %>?? </th> <td> <label for="PublicClass_Examine_0"><%= new HtmlRadio("Examine", 0, null) { ID = "PublicClass_Examine_0", Class = "", Checked = (this.ViewData["_PublicClass.Examine"].ToIntN() == 0 ? true : false) }%><%= Define.Get("PublicClass_Examine_??????") %></lable> <label for="PublicClass_Examine_1"><%= new HtmlRadio("Examine", 1, null) { ID = "PublicClass_Examine_1", Class = "", Checked = (this.ViewData["_PublicClass.Examine"].ToIntN() == 1 ? true : false) }%><%= Define.Get("PublicClass_Examine_??????") %></lable> <label for="PublicClass_Examine_2"><%= new HtmlRadio("Examine", 2, null) { ID = "PublicClass_Examine_2", Class = "", Checked = (this.ViewData["_PublicClass.Examine"].ToIntN() == 2 ? true : false) }%><%= Define.Get("PublicClass_Examine_????????") %></lable> <%= new HtmlYKTip("Examine") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_???").ToScriptTag() %>"> <%= Define.Get("PublicClass_???").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_PublicClass.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("PublicClass_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("CreateTime", this.ViewData["_PublicClass.CreateTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("CreateTime") %> </td> </tr> <tr> <th title="<%= Define.Get("PublicClass_?????").ToScriptTag() %>"> <%= Define.Get("PublicClass_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("PublicClass_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_PublicClass.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 title="<%= Define.Get("PublicClass_????").ToScriptTag() %>"> <%= Define.Get("PublicClass_????")%>?? </th> <td> <label for="PublicClass_Status_0"> <%= new HtmlRadio("Status", 0, null) { ID = "PublicClass_Status_0", Class = "", Checked = (this.ViewData["_PublicClass.Status"].ToIntN() == 0 ? true : false) }%><%= Define.Get("PublicClass_Status_???") %></label> <label for="PublicClass_Status_1"> <%= new HtmlRadio("Status", 1, null) { ID = "PublicClass_Status_1", Class = "", Checked = (this.ViewData["_PublicClass.Status"].ToIntN() == 1 ? true : false) }%><%= Define.Get("PublicClass_Status_???") %></label> <label for="PublicClass_Status_2"> <%= new HtmlRadio("Status", 2, null) { ID = "PublicClass_Status_2", Class = "", Checked = (this.ViewData["_PublicClass.Status"].ToIntN() == 2 ? true : false) }%><%= Define.Get("PublicClass_Status_?????") %></label> <label for="PublicClass_Status_3"> <%= new HtmlRadio("Status", 3, null) { ID = "PublicClass_Status_3", Class = "", Checked = (this.ViewData["_PublicClass.Status"].ToIntN() == 3 ? true : false) }%><%= Define.Get("PublicClass_Status_???") %></label> <%= new HtmlYKTip("Status") %> </td> </tr> <tr> <th>????? </th> <td> <% var marking0 = CreateInstance.MarkingDao.Has(AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???, AVA.ResourcesPlatform.Model.Pub.MarkingMKTargetEnum.?????, this.ViewData["_PublicClass.Guid"].ToString(null)); %> <%= new HtmlCheckBox("Marking0", marking0, 1, 0) { DefaultChecked = 0 }%> </td> </tr> <tr> <th> </th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_PublicClass"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_PublicClass"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../PublicClassCategory/ListIFrame.aspx?PublicClassGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../PublicClassUser/ListIFrame.aspx?PublicClassGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../PublicClassUserApply/ListIFrame.aspx?PublicClassGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../PublicClassVideo/ListIFrame.aspx?PublicClassGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> </div> </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/PublicClassAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmPublicClass" }); //????? $("#frmPublicClass [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("PublicClass_SortNumber_???????????").ToScriptChar() %>", regex: "<%= Define.Get("PublicClass_SortNumber_???????????").ToScriptChar() %>" } }); //???? $("#frmPublicClass [name=Status]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("PublicClass_Status_?????????").ToScriptChar() %>" } }); //??????? $("#frmPublicClass [name=ParentUser]").formValidator({ targetFocus: "#frmPublicClass [name=ParentUser_TrueName_UserName]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("PublicClass_UserGuid_????????????").ToScriptChar() %>" } }); //?????? $("#frmPublicClass [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("PublicClass_Name_???????????").ToScriptChar() %>" } }); //??????? $("#frmPublicClass [name=BeginTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "date" }, message: { required: "<%= Define.Get("PublicClass_BeginTime_????????????").ToScriptChar() %>", regex: "<%= Define.Get("PublicClass_BeginTime_??????????????").ToScriptChar() %>" } }); //?????? $("#frmPublicClass [name=EndTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "date" }, message: { required: "<%= Define.Get("PublicClass_EndTime_???????????").ToScriptChar() %>", regex: "<%= Define.Get("PublicClass_EndTime_??????????????").ToScriptChar() %>" } }); //????????? $("#frmPublicClass [name=CutoffTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "date" }, message: { required: "<%= Define.Get("PublicClass_CutoffTime_??????????????").ToScriptChar() %>", regex: "<%= Define.Get("PublicClass_CutoffTime_?????????????????").ToScriptChar() %>" } }); //??????? $("#frmPublicClass [name=Examine]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("PublicClass_Examine_????????????").ToScriptChar() %>" } }); //?????? $("#frmPublicClass [name=CreateTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "datetime" }, message: { required: "<%= Define.Get("PublicClass_CreateTime_???????????").ToScriptChar() %>", regex: "<%= Define.Get("PublicClass_CreateTime_??????????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { PublicClassAjax.Insert($("#frmPublicClass"), send, function (json) { document.getElementById("frmPublicClass").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { PublicClassAjax.Update($("#frmPublicClass"), send, function (json) { document.getElementById("frmPublicClass").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmPublicClass").KEY.value; PublicClassAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??? $("#frmPublicClass [name=Cover]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.PublicClassUploadPath %>" + $("#frmPublicClass [name=Cover]").val()); //????? $("#frmPublicClass [name=Ad]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.PublicClassUploadPath %>" + $("#frmPublicClass [name=Ad]").val()); //??????????? </script> <script type="text/javascript"> //?????? </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de