PageRenderTime 68ms CodeModel.GetById 63ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/source/app/NOS.Wiki/AdminContent.aspx

http://github.com/agross/netopenspace
ASP.NET | 98 lines | 84 code | 13 blank | 1 comment | 0 complexity | 76b2cbb23408b2e96aeedb0ff46a751d MD5 | raw file
 1<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeBehind="AdminContent.aspx.cs" Inherits="ScrewTurn.Wiki.AdminContent" ValidateRequest="false" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
 2
 3<%@ Register TagPrefix="st" TagName="Editor" Src="~/Editor.ascx" %>
 4
 5<asp:Content ID="ctnHead" ContentPlaceHolderID="head" runat="server">
 6</asp:Content>
 7
 8<asp:Content ID="ctnContent" ContentPlaceHolderID="cphAdmin" runat="server">
 9	<h2 class="sectiontitle"><asp:Literal ID="lblContent" runat="server" Text="Content Editing" EnableViewState="False" meta:resourcekey="lblContentResource1" /></h2>
10	
11	<asp:Panel ID="pnlList" runat="server" meta:resourcekey="pnlListResource1">
12		<asp:Literal ID="lblNamespace" runat="server" Text="Namespace" EnableViewState="False" meta:resourcekey="lblNamespaceResource1" />
13		<asp:DropDownList ID="lstNamespace" runat="server" meta:resourcekey="lstNamespaceResource1" />
14		<br /><br />
15		
16		<div id="PageLayoutElements">
17			<h3><asp:Literal ID="lblPageLayout" runat="server" Text="Page Layout Elements (Namespace-Specific)" EnableViewState="False" meta:resourcekey="lblPageLayoutResource1" /></h3>
18			<br />
19			
20			<table id="LayoutTable">
21				<tr>
22					<td colspan="2" id="HtmlHeadTd"><asp:LinkButton ID="btnHtmlHead" runat="server" Text="HTML Head" ToolTip="Edit the HTML Head tag" OnClick="btn_Click" meta:resourcekey="btnHtmlHeadResource1" /></td>
23				</tr>
24				<tr>
25					<td colspan="2" id="HeaderTd"><asp:LinkButton ID="btnHeader" runat="server" Text="Header" ToolTip="Edit the global header" OnClick="btn_Click" meta:resourcekey="btnHeaderResource1" /></td>
26				</tr>
27				<tr>
28					<td rowspan="3" id="SidebarTd"><asp:LinkButton ID="btnSidebar" runat="server" Text="Sidebar" ToolTip="Edit the sidebar (menu)" OnClick="btn_Click" meta:resourcekey="btnSidebarResource1" /></td>
29					<td id="PageHeaderTd"><asp:LinkButton ID="btnPageHeader" runat="server" Text="Page Header" ToolTip="Edit the page header" OnClick="btn_Click" meta:resourcekey="btnPageHeaderResource1" /></td>
30				</tr>
31				<tr>
32					<td id="PageContentTd"><asp:Literal ID="lblPageContent" runat="server" Text="Page Content" EnableViewState="False" meta:resourcekey="lblPageContentResource1" /></td>
33				</tr>
34				<tr>
35					<td id="PageFooterTd"><asp:LinkButton ID="btnPageFooter" runat="server" Text="Page Footer" ToolTip="Edit the page footer" OnClick="btn_Click" meta:resourcekey="btnPageFooterResource1" /></td>
36				</tr>
37				<tr>
38					<td colspan="2" id="FooterTd"><asp:LinkButton ID="btnFooter" runat="server" Text="Footer" ToolTip="Edit the global footer" OnClick="btn_Click" meta:resourcekey="btnFooterResource1" /></td>
39				</tr>
40			</table>
41			<br />
42			<span class="small">
43				<asp:Literal ID="lblInfo" runat="server" Text="<b>Note</b>: the actual layout of your current theme might differ from the one displayed here." EnableViewState="False" meta:resourcekey="lblInfoResource1" />
44			</span>
45		</div>
46		
47		<div id="OtherElements">
48			<h3><asp:Literal ID="lblOther" runat="server" Text="Other Elements" EnableViewState="False" meta:resourcekey="lblOtherResource1" /></h3>
49			<br />
50			<ul class="spaced">
51				<li><asp:LinkButton ID="btnEditingPageNotice" runat="server" Text="Editing Page Notice (Namespace-specific)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnEditingPageNoticeResource1" /><br />
52					<span class="small"><asp:Literal ID="lblEditingPageNoticeInfo" runat="server" Text="The message displayed on top of the editing page." EnableViewState="False" meta:resourcekey="lblEditingPageNoticeInfoResource1" /></span></li>
53				<li><asp:LinkButton ID="btnAccountActivationMessage" runat="server" Text="Account Activation Message (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnAccountActivationMessageResource1" /><br />
54					<span class="small"><asp:Literal ID="lblAccountActivationMessageInfo" runat="server" Text="The email message sent to a newly registered user that have to activate her account." EnableViewState="False" meta:resourcekey="lblAccountActivationMessageInfoResource1" /></span></li>
55				<li><asp:LinkButton ID="btnPasswordResetProcedureMessage" runat="server" Text="Password Reset Procedure Message (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnPasswordResetProcedureMessageResource1" /><br />
56					<span class="small"><asp:Literal ID="lblPasswordResetProcedureMessageInfo" runat="server" Text="The email message sent to when a user want to reset her password." EnableViewState="False" meta:resourcekey="lblPasswordResetProcedureMessageInfoResource1" /></span></li>
57				<li><asp:LinkButton ID="btnLoginNotice" runat="server" Text="Login Notice (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnLoginNoticeResource1" /><br />
58					<span class="small"><asp:Literal ID="lblLoginNoticeInfo" runat="server" Text="The message replacing the information at the top of the login screen (if not empty)." EnableViewState="False" meta:resourcekey="lblLoginNoticeInfoResource1" /></span></li>
59				<li><asp:LinkButton ID="btnAccessDeniedNotice" runat="server" Text="Access Denied Notice (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnAccessDeniedNoticeResource1" /><br />
60					<span class="small"><asp:Literal ID="lblAccessDeniedNoticeInfo" runat="server" Text="The message replacing the information at the top of the access denied page (if not empty)." EnableViewState="False" meta:resourcekey="lblAccessDeniedNoticeInfoResource1" /></span></li>
61				<li><asp:LinkButton ID="btnRegisterNotice" runat="server" Text="Register Notice (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnRegisterNoticeResource1" /><br />
62					<span class="small"><asp:Literal ID="lblRegisterNoticeInfo" runat="server" Text="The message replacing the information at the top of the register screen (if not empty)." EnableViewState="False" meta:resourcekey="lblRegisterNoticeInfoResource1" /></span></li>
63				<li><asp:LinkButton ID="btnPageChangeMessage" runat="server" Text="Page Change Message (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnPageChangeMessageResource1" /><br />
64					<span class="small"><asp:Literal ID="lblPageChangeMessageInfo" runat="server" Text="The email message sent to users when a page is modified." EnableViewState="False" meta:resourcekey="lblPageChangeMessageInfoResource1" /></span></li>
65				<li><asp:LinkButton ID="btnDiscussionChangeMessage" runat="server" Text="Discussion Change Message (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnDiscussionChangeMessageResource1" /><br />
66					<span class="small"><asp:Literal ID="lblDiscussionChangeMessageInfo" runat="server" Text="The email message sent to users when a new message is posted to a discussion." EnableViewState="False" meta:resourcekey="lblDiscussionChangeMessageInfoResource1" /></span></li>
67				<li><asp:LinkButton ID="btnApproveDraftMessage" runat="server" Text="Approve Draft Message (Global)" ToolTip="Edit" OnClick="btn_Click" meta:resourcekey="btnApproveDraftMessageResource1" /><br />
68					<span class="small"><asp:Literal ID="lblApproveDraftMessageInfo" runat="server" Text="The email message sent to editor/administrators when a page draft requires approval." EnableViewState="False" meta:resourcekey="lblApproveDraftMessageInfoResource1" /></span></li>
69			</ul>
70		</div>
71	</asp:Panel>
72	
73	<asp:Panel ID="pnlEditor" runat="server" Visible="False" meta:resourcekey="pnlEditorResource1">
74		<asp:Panel ID="pnlInlineTools" runat="server">
75			<div id="InlineToolsDiv">
76				<!-- RESX!!! -->
77				<asp:Literal ID="lblCopyFrom" runat="server" Text="Copy content from: " meta:resourcekey="lblCopyFromResource1" />
78				<asp:DropDownList ID="lstCopyFromNamespace" runat="server" />
79				<asp:LinkButton ID="btnCopyFrom" runat="server" meta:resourcekey="btnCopyFromResource1"
80					Text="Go" ToolTip="Copy the content of the same layout area from the selected Namespace"
81					OnClick="btnCopyFrom_Click"
82					OnClientClick="javascript:return RequestConfirm();" />
83			</div>
84		</asp:Panel>
85		
86		<st:Editor ID="editor" runat="server" />
87		
88		<div id="ButtonsDiv">
89			<asp:Button ID="btnSave" runat="server" Text="Save" ToolTip="Save the content" OnClick="btnSave_Click" meta:resourcekey="btnSaveResource1" />
90			<asp:Button ID="btnCancel" runat="server" Text="Cancel" ToolTip="Cancel and return" OnClick="btnCancel_Click" meta:resourcekey="btnCancelResource1" />
91		</div>
92	</asp:Panel>
93	
94	<asp:HiddenField ID="txtCurrentButton" runat="server" />
95	
96	<div style="clear: both;"></div>
97	
98</asp:Content>