PageRenderTime 55ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/admin/WidgetEditor.aspx

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