/BlogEngine/BlogEngine.NET/admin/WidgetEditor.aspx
ASP.NET | 74 lines | 70 code | 4 blank | 0 comment | 9 complexity | eb12c78a3ffca9ad55db7577ecdbd2e4 MD5 | raw file
1<%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin.WidgetEditor" 2 ValidateRequest="false" Codebehind="WidgetEditor.aspx.cs" %> 3 4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5<html xmlns="http://www.w3.org/1999/xhtml"> 6<head runat="server"> 7 <title>Widget Editor</title> 8 <style type="text/css"> 9 body 10 { 11 font: 11px verdana; 12 margin: 0; 13 overflow: hidden; 14 } 15 #title 16 { 17 background: #F1F1F1; 18 border-bottom: 1px solid silver; 19 padding: 10px; 20 } 21 label 22 { 23 font-weight: bold; 24 } 25 #phEdit 26 { 27 padding: 10px; 28 height: 390px; 29 overflow: auto; 30 overflow-x: hidden; 31 } 32 #bottom 33 { 34 background: #F1F1F1; 35 border-top: 1px solid silver; 36 padding: 10px; 37 text-align: right; 38 } 39 </style> 40</head> 41<body scroll="no" onkeypress="ESCclose(event)"> 42 <script type="text/javascript"> 43 function ESCclose(evt) { 44 if (!evt) evt = window.event; 45 46 if (evt && evt.keyCode == 27) 47 window.parent.BlogEngine.widgetAdmin.closeEditor(); 48 } 49 function PostEdit() { 50 if (parent && typeof parent.BlogEngine != 'undefined' && 51 typeof parent.BlogEngine.widgetAdmin != 'undefined' && 52 typeof parent.BlogEngine.widgetAdmin.clearWidgetList != 'undefined') { 53 54 parent.BlogEngine.widgetAdmin.clearWidgetList(); 55 } 56 57 top.location.reload(false); 58 } 59 </script> 60 <form id="form1" runat="server"> 61 <div id="title"> 62 <label for="<%=txtTitle.ClientID %>"> 63 <%=Resources.labels.title %></label> 64 <asp:TextBox runat="server" ID="txtTitle" Width="300px" /> 65 <asp:CheckBox runat="Server" ID="cbShowTitle" Text="<%$Resources:labels, showTitle %>" /> 66 </div> 67 <div runat="server" id="phEdit" /> 68 <div id="bottom"> 69 <asp:Button runat="server" ID="btnSave" Text="Save" /> 70 <input type="button" value="<%=Resources.labels.cancel %>" onclick="parent.BlogEngine.widgetAdmin.closeEditor()" /> 71 </div> 72 </form> 73</body> 74</html>