forked from ventrian/Simple-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditTemplate.ascx
executable file
·104 lines (96 loc) · 5.49 KB
/
EditTemplate.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditTemplate.ascx.vb" Inherits="Ventrian.SimpleGallery.EditTemplate" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left">
<asp:Repeater ID="rptBreadCrumbs" Runat="server" EnableViewState="False">
<ItemTemplate><a href='<%# DataBinder.Eval(Container.DataItem, "Url") %>' class="NormalBold"><%# DataBinder.Eval(Container.DataItem, "Caption") %></a></ItemTemplate>
<SeparatorTemplate> » </SeparatorTemplate>
</asp:Repeater>
</td>
</tr>
</table>
<table class="Settings" cellspacing="2" cellpadding="2" summary="Edit Tags Design Table"
border="0" width="100%">
<tr>
<td valign="top">
<dnn:sectionhead id="dshEditTemplate" cssclass="Head" runat="server" includerule="True" resourcekey="EditTemplate"
section="tblEditTemplate" text="Edit Template"></dnn:sectionhead>
<div align="center">
<table id="tblEditTemplate" cellspacing="0" cellpadding="2" summary="Edit Template Design Table"
border="0" runat="server" width="600">
<tr>
<td align="center">
<table cellspacing="0" cellpadding="2" width="600" summary="Edit Template Design Table">
<tr valign="top">
<td class="SubHead" width="150"><dnn:label id="plTemplate" runat="server" controlname="drpTemplates" suffix=":"></dnn:label></td>
<td align="left">
<asp:DropDownList ID="drpTemplates" Runat="server" AutoPostBack="True" Width="300" />
</td>
</tr>
<tr>
<td class="SubHead" width="150">Header</td>
<td align="left">
<asp:textbox id="txtTemplateHeader" runat="server" cssclass="NormalTextBox" width="300" rows="20"
textmode="MultiLine"></asp:textbox>
</td>
</tr>
<tr>
<td class="SubHead" width="150"><dnn:label id="plTemplateBody" runat="server" controlname="txtTemplateBody" suffix=":"></dnn:label></td>
<td align="left">
<asp:textbox id="txtTemplate" runat="server" cssclass="NormalTextBox" width="300" rows="20"
textmode="MultiLine"></asp:textbox>
</td>
</tr>
<tr>
<td class="SubHead" width="150">Footer</td>
<td align="left">
<asp:textbox id="txtTemplateFooter" runat="server" cssclass="NormalTextBox" width="300" rows="20"
textmode="MultiLine"></asp:textbox>
</td>
</tr>
</table>
<p>
<br />
<asp:linkbutton id="cmdUpdate" resourcekey="cmdUpdate" runat="server" CssClass="CommandButton" Text="Update"
BorderStyle="none"></asp:linkbutton>
<asp:linkbutton id="cmdCancel" resourcekey="cmdCancel" runat="server" CssClass="CommandButton" Text="Cancel"
BorderStyle="none" CausesValidation="False"></asp:linkbutton>
<asp:linkbutton id="cmdRestoreDefault" resourcekey="cmdRestoreDefault" runat="server" CssClass="CommandButton"
Text="Restore Default Template" BorderStyle="none" CausesValidation="False"></asp:linkbutton>
</p>
</td>
</tr>
</table>
</div>
<dnn:sectionhead id="dshTokens" cssclass="Head" runat="server" includerule="True" resourcekey="Tokens"
section="tblTokens" text="Tokens"></dnn:sectionhead>
<div align="center">
<table id="tblTokens" cellspacing="0" cellpadding="2" summary="Tokens Design Table"
border="0" runat="server" width="600">
<tr>
<td align="center">
<asp:Repeater ID="rptTemplateTokens" Runat="server">
<HeaderTemplate>
<table cellspacing="0" cellpadding="2" width="600" summary="Edit Template Token Design Table">
</HeaderTemplate>
<ItemTemplate>
<tr valign="top">
<td class="SubHead" width="150" align="left">[<%# Container.DataItem.ToString() %>]</td>
<td class="Normal" align="left">
<%# GetLocalizedValue(Container.DataItem.ToString()) %>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>