forked from ventrian/News-Articles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathucEditPages.ascx
executable file
·28 lines (26 loc) · 2.25 KB
/
ucEditPages.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ucEditPages.ascx.vb" Inherits="Ventrian.NewsArticles.ucEditPages" %>
<%@ Import Namespace="DotNetNuke.Common" %>
<%@ Import Namespace="DotNetNuke.Common.Utilities" %>
<%@ Register TagPrefix="article" TagName="Header" Src="ucHeader.ascx" %>
<article:Header runat="server" id="ucHeader1" SelectedMenu="SubmitArticle" MenuPosition="Top" />
<asp:Label ID="lblTitle" Runat="server" CssClass="NormalBold" />
<asp:datagrid id="grdPages" Border="0" CellPadding="4" CellSpacing="0" Width="100%" AutoGenerateColumns="false" EnableViewState="false" runat="server" summary="Pages Design Table" GridLines="None">
<Columns>
<asp:TemplateColumn ItemStyle-Width="20">
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# GetEditPageUrl(Request("ArticleID"), DataBinder.Eval(Container.DataItem,"PageID").ToString()) %>' runat="server" ID="Hyperlink1">
<asp:Image ImageUrl="~/images/edit.gif" AlternateText="Edit" runat="server" ID="Hyperlink1Image" resourcekey="Edit"/></asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="SortOrder" DataField="SortOrder" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" ItemStyle-Width="60px" HeaderStyle-Wrap="False" ItemStyle-HorizontalAlign="Center" />
<asp:BoundColumn HeaderText="Title" DataField="Title" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" ItemStyle-Width="90%" />
</Columns>
</asp:datagrid>
<asp:Label ID="lblNoPages" Runat="server" CssClass="Normal" />
<p align="Center">
<asp:linkbutton id="cmdAddPage" resourcekey="AddPage" runat="server" cssclass="CommandButton" text="Add Page" causesvalidation="False" borderstyle="none" />
<asp:linkbutton id="cmdSortOrder" resourcekey="EditSortOrder" runat="server" cssclass="CommandButton" text="Edit Sort Order" causesvalidation="False" borderstyle="none" />
<asp:linkbutton id="cmdSummary" resourcekey="EditSummary" runat="server" cssclass="CommandButton" text="Edit Summary" borderstyle="none" />
<asp:linkbutton cssclass="CommandButton" id="cmdSubmitApproval" resourcekey="cmdSubmitApproval" runat="server" text="Submit For Approval"></asp:linkbutton>
</p>
<article:Header runat="server" id="ucHeader2" SelectedMenu="SubmitArticle" MenuPosition="Bottom" />