forked from ventrian/Simple-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditAlbum.ascx
executable file
·317 lines (315 loc) · 18.7 KB
/
EditAlbum.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditAlbum.ascx.vb" Inherits="Ventrian.SimpleGallery.EditAlbum" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<%@ Register TagPrefix="SimpleGallery" TagName="GalleryMenu" Src="Controls\GalleryMenu.ascx"%>
<SimpleGallery:GalleryMenu id="ucGalleryMenu" runat="server" ShowCommandBar="False" />
<table class="Settings" cellspacing="2" cellpadding="2" summary="Edit Album Design Table"
border="0" width="100%">
<tr>
<td valign="top">
<asp:panel id="pnlSettings" runat="server" cssclass="WorkPanel" visible="True">
<dnn:sectionhead id="dshAlbum" cssclass="Head" runat="server" includerule="True" resourcekey="AlbumSettings"
section="tblAlbum" text="Album Settings"></dnn:sectionhead>
<asp:label id="lblAlbumSettingsHelp" cssclass="Normal" runat="server" resourcekey="AlbumSettingsDescription"
enableviewstate="False"></asp:label>
<div align="center">
<table id="tblAlbum" cellspacing="0" cellpadding="2" width="600" summary="Album Settings Design Table"
border="0" runat="server">
<tr valign="top">
<td class="SubHead" width="150">
<dnn:label id="plParentAlbum" runat="server" resourcekey="ParentAlbum" suffix=":" controlname="drpParentAlbum"></dnn:label></td>
<td align="left">
<asp:DropDownList id="drpParentAlbum" DataValueField="AlbumID" DataTextField="CaptionIndented" Runat="server" width="300"></asp:DropDownList>
<asp:CustomValidator id="valInvalidParentAlbum" runat="server" ErrorMessage="<br>Invalid Parent Album. Possible Loop Detected."
ResourceKey="valInvalidParentAlbum" ControlToValidate="drpParentAlbum" CssClass="NormalRed" Display="Dynamic"></asp:CustomValidator></td>
</tr>
<tr valign="top">
<td class="SubHead" nowrap="nowrap" width="150">
<dnn:label id="plCaption" runat="server" resourcekey="Caption" suffix=":" controlname="txtCaption"></dnn:label></td>
<td align="left">
<asp:textbox id="txtCaption" cssclass="NormalTextBox" runat="server" width="300" columns="30"
maxlength="255"></asp:textbox>
<asp:requiredfieldvalidator id="valCaption" cssclass="NormalRed" runat="server" resourcekey="valCaption" display="Dynamic"
errormessage="<br>You Must Enter a Valid Caption" controltovalidate="txtCaption"></asp:requiredfieldvalidator></td>
</tr>
<tr valign="top">
<TD class="SubHead" width="150">
<dnn:label id="plDescription" runat="server" suffix=":" controlname="txtDescription"></dnn:label></TD>
<TD align="left">
<asp:textbox id="txtDescription" cssclass="NormalTextBox" runat="server" width="300" columns="30"
textmode="MultiLine" rows="5"></asp:textbox></TD>
</tr>
<tr>
<td class="SubHead" width="150"><dnn:label id="plInheritSecurity" resourcekey="InheritSecurity" runat="server" controlname="chkInheritSecurity" suffix=":"></dnn:label></td>
<td>
<asp:CheckBox ID="chkInheritSecurity" runat="server" AutoPostBack="true" Checked="true" />
</td>
</tr>
<tr runat="server" id="trPermissions" visible="false">
<td class="SubHead" width="150"><dnn:label id="plPermissions" resourcekey="Permissions" runat="server" controlname="chkPermissions" suffix=":"></dnn:label></td>
<td>
<asp:DataGrid ID="grdAlbumPermissions" Runat="server" AutoGenerateColumns="False" ItemStyle-CssClass="Normal"
ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center"
HeaderStyle-CssClass="NormalBold" CellSpacing="0" CellPadding="0" GridLines="None" BorderWidth="1"
BorderStyle="None" DataKeyField="Value">
<Columns>
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Left" Wrap="False"/>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Text") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblAdd" Runat="server" EnableViewState="False" ResourceKey="Add" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkAdd" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblEdit" Runat="server" EnableViewState="False" ResourceKey="Edit" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkEdit" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblDelete" Runat="server" EnableViewState="False" ResourceKey="Delete" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkDelete" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>
</table>
</div>
<dnn:sectionhead id="dshAdvanced" cssclass="Head" runat="server" includerule="True" resourcekey="AdvancedSettings"
section="tblAdvanced" text="Advanced Settings" IsExpanded="false"></dnn:sectionhead>
<div align="center">
<table id="tblAdvanced" cellspacing="0" cellpadding="2" width="600" summary="Album Settings Design Table"
border="0" runat="server">
<tr valign="top">
<td class="SubHead" nowrap="nowrap" width="150">
<dnn:label id="plIsPublic" runat="server" resourcekey="IsPublic" suffix=":" controlname="chkIsPublic"></dnn:label></td>
<td align="left">
<asp:CheckBox id="chkIsPublic" cssclass="NormalTextBox" runat="server" Checked="True"></asp:CheckBox></td>
</tr>
<TR valign="top">
<TD class="SubHead" nowrap="nowrap" width="150">
<dnn:label id="plHomeDirectory" runat="server" resourcekey="HomeDirectory" suffix=":" controlname="txtHomeDirectory"></dnn:label></TD>
<td align="left">
<asp:textbox id="txtHomeDirectory" cssclass="NormalTextBox" runat="server" width="300"
maxlength="255" Enabled="False"></asp:textbox> <asp:linkbutton id="cmdCustomize" cssclass="CommandButton" runat="server" resourcekey="cmdCustomize"
text="Customize" CausesValidation="False"></asp:linkbutton>
<asp:requiredfieldvalidator id="valHomeDirectory" cssclass="NormalRed" runat="server" resourcekey="valHomeDirectory"
display="Dynamic" errormessage="<br>You Must Enter a Home Directory" controltovalidate="txtHomeDirectory"></asp:requiredfieldvalidator>
</td>
</TR>
<tr id="trDefaultPhoto" runat="server">
<td class="SubHead" width="150" valign="top"><dnn:label id="plDefaultPhoto" runat="server" suffix=":" controlname="drpDefaultPhoto"></dnn:label></td>
<td align="left"><asp:DropDownList id="drpDefaultPhoto" Runat="server" CssClass="NormalTextBox" DataTextField="Name" DataValueField="PhotoID"></asp:DropDownList></td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top"><dnn:label id="plCreateDate" runat="server" controlname="txtCreateDate" text="Create Date:"></dnn:label></td>
<td align="left">
<asp:DropDownList ID="drpCreateTimeHour" Runat="server">
<asp:ListItem Value="0">0</asp:ListItem>
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="6">6</asp:ListItem>
<asp:ListItem Value="7">7</asp:ListItem>
<asp:ListItem Value="8">8</asp:ListItem>
<asp:ListItem Value="9">9</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
<asp:ListItem Value="13">13</asp:ListItem>
<asp:ListItem Value="14">14</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="16">16</asp:ListItem>
<asp:ListItem Value="17">17</asp:ListItem>
<asp:ListItem Value="18">18</asp:ListItem>
<asp:ListItem Value="19">19</asp:ListItem>
<asp:ListItem Value="20">20</asp:ListItem>
<asp:ListItem Value="21">21</asp:ListItem>
<asp:ListItem Value="22">22</asp:ListItem>
<asp:ListItem Value="23">23</asp:ListItem>
</asp:DropDownList>
:
<asp:DropDownList ID="drpCreateTimeMinute" Runat="server">
<asp:ListItem Value="0">00</asp:ListItem>
<asp:ListItem Value="1">01</asp:ListItem>
<asp:ListItem Value="2">02</asp:ListItem>
<asp:ListItem Value="3">03</asp:ListItem>
<asp:ListItem Value="4">04</asp:ListItem>
<asp:ListItem Value="5">05</asp:ListItem>
<asp:ListItem Value="6">06</asp:ListItem>
<asp:ListItem Value="7">07</asp:ListItem>
<asp:ListItem Value="8">08</asp:ListItem>
<asp:ListItem Value="9">09</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
<asp:ListItem Value="13">13</asp:ListItem>
<asp:ListItem Value="14">14</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="16">16</asp:ListItem>
<asp:ListItem Value="17">17</asp:ListItem>
<asp:ListItem Value="18">18</asp:ListItem>
<asp:ListItem Value="19">19</asp:ListItem>
<asp:ListItem Value="20">20</asp:ListItem>
<asp:ListItem Value="21">21</asp:ListItem>
<asp:ListItem Value="22">22</asp:ListItem>
<asp:ListItem Value="23">23</asp:ListItem>
<asp:ListItem Value="24">24</asp:ListItem>
<asp:ListItem Value="25">25</asp:ListItem>
<asp:ListItem Value="26">26</asp:ListItem>
<asp:ListItem Value="27">27</asp:ListItem>
<asp:ListItem Value="28">28</asp:ListItem>
<asp:ListItem Value="29">29</asp:ListItem>
<asp:ListItem Value="30">30</asp:ListItem>
<asp:ListItem Value="31">31</asp:ListItem>
<asp:ListItem Value="32">32</asp:ListItem>
<asp:ListItem Value="33">33</asp:ListItem>
<asp:ListItem Value="34">34</asp:ListItem>
<asp:ListItem Value="35">35</asp:ListItem>
<asp:ListItem Value="36">36</asp:ListItem>
<asp:ListItem Value="37">37</asp:ListItem>
<asp:ListItem Value="38">38</asp:ListItem>
<asp:ListItem Value="39">39</asp:ListItem>
<asp:ListItem Value="40">40</asp:ListItem>
<asp:ListItem Value="41">41</asp:ListItem>
<asp:ListItem Value="42">42</asp:ListItem>
<asp:ListItem Value="43">43</asp:ListItem>
<asp:ListItem Value="44">44</asp:ListItem>
<asp:ListItem Value="45">45</asp:ListItem>
<asp:ListItem Value="46">46</asp:ListItem>
<asp:ListItem Value="47">47</asp:ListItem>
<asp:ListItem Value="48">48</asp:ListItem>
<asp:ListItem Value="49">49</asp:ListItem>
<asp:ListItem Value="50">50</asp:ListItem>
<asp:ListItem Value="51">51</asp:ListItem>
<asp:ListItem Value="52">52</asp:ListItem>
<asp:ListItem Value="53">53</asp:ListItem>
<asp:ListItem Value="54">54</asp:ListItem>
<asp:ListItem Value="55">55</asp:ListItem>
<asp:ListItem Value="56">56</asp:ListItem>
<asp:ListItem Value="57">57</asp:ListItem>
<asp:ListItem Value="58">58</asp:ListItem>
<asp:ListItem Value="59">59</asp:ListItem>
</asp:DropDownList>
<asp:textbox id="txtCreateDate" runat="server" cssclass="NormalTextBox" width="120" columns="30" maxlength="11"></asp:textbox>
<asp:hyperlink id="cmdCreateCalendar" cssclass="CommandButton" runat="server" resourcekey="Calendar">Calendar</asp:hyperlink>
<asp:CompareValidator ID="valtxtCreateDate" ControlToValidate="txtCreateDate" Operator="DataTypeCheck" Type="Date"
Runat="server" Display="Dynamic" ErrorMessage="<br>Invalid Create Date" resourcekey="valCreateDate.ErrorMessage" />
</td>
</tr>
</table>
</div>
</asp:panel>
</td>
</tr>
</table>
<p align="center">
<br />
<asp:linkbutton id="cmdUpdate" resourcekey="cmdUpdate" runat="server" cssclass="CommandButton" text="Update"
borderstyle="none" />
<asp:linkbutton id="cmdCancel" resourcekey="cmdCancel" runat="server" cssclass="CommandButton" text="Cancel"
causesvalidation="False" borderstyle="none" />
</p>
<asp:Panel ID="pnlDelete" runat="server">
<table class="Settings" cellspacing="2" cellpadding="2" summary="Delete Album Design Table"
border="0" width="100%">
<tr>
<td width="100%" valign="top">
<asp:panel id="pnlDeleteTable" runat="server" cssclass="WorkPanel" visible="True">
<dnn:sectionhead id="dshDelete" cssclass="Head" runat="server" includerule="True" resourcekey="DeleteAlbum"
section="tblDeleteAlbum" text="Delete Album" isexpanded="false"></dnn:sectionhead>
<div align="center">
<table id="tblDeleteAlbum" cellspacing="0" cellpadding="2" width="600" summary="Delete Album Design Table"
border="0" runat="server">
<tr>
<td class="SubHead" width="150">
<dnn:label id="plDeletePhysicalFiles" runat="server" suffix=":" controlname="chkDeletePhysicalFiles"></dnn:label></td>
<td align="left"><asp:CheckBox id="chkDeletePhysicalFiles" runat="server" Checked="True" /></td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:linkbutton id="cmdDelete" resourcekey="cmdDelete" runat="server" cssclass="CommandButton" text="Delete"
causesvalidation="False" borderstyle="none" />
</td>
</tr>
</table>
</div>
</asp:panel>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlSynch" Runat="server">
<table class="Settings" cellspacing="2" cellpadding="2" summary="Synchronize Design Table"
border="0" width="100%">
<tr>
<td width="100%" valign="top">
<asp:panel id="pnlSynchronize" runat="server" cssclass="WorkPanel" visible="True">
<dnn:sectionhead id="dshSynchronize" cssclass="Head" runat="server" includerule="True" resourcekey="SynchronizeSettings"
section="tblSynchronize" text="Synchronize Settings" IsExpanded="false"></dnn:sectionhead>
<div align="center">
<table id="tblSynchronize" cellspacing="0" cellpadding="2" width="600" summary="Synchronize Settings Design Table"
border="0" runat="server">
<TR valign="top">
<TD class="SubHead" width="150">
<dnn:label id="plIncludeSubFolders" runat="server" resourcekey="IncludeSubFolders" controlname="chkIncludeSubFolders"></dnn:label></TD>
<TD align="left">
<asp:CheckBox ID="chkIncludeSubFolders" Runat="server" Checked="True" />
</TD>
</TR>
<TR valign="top">
<TD class="SubHead" width="150">
<dnn:label id="plAbsoluteSync" runat="server" resourcekey="plAbsoluteSync" controlname="chkAbsoluteSync"></dnn:label></TD>
<TD align="left">
<asp:CheckBox ID="chkAbsoluteSync" Runat="server" /><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=350>
</TD>
</TR>
<TR valign="top">
<TD class="SubHead" width="150">
<dnn:label id="plResizeImages" runat="server" resourcekey="ResizeImages" controlname="chkResizeImages"></dnn:label></TD>
<TD align="left">
<asp:CheckBox ID="chkResizeImages" Runat="server" Checked="False" /><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=350>
</TD>
</TR>
<TR valign="top">
<TD class="SubHead" width="150">
<dnn:label id="plAsynchronous" runat="server" resourcekey="Asynchronous" controlname="chkAsynchronous"></dnn:label></TD>
<TD align="left">
<asp:CheckBox ID="chkAsynchronous" Runat="server" Checked="False" />
</TD>
</TR>
<tr>
<td colspan="2" align="center">
<asp:linkbutton id="cmdSynchronize" resourcekey="cmdSynchronize" runat="server" cssclass="CommandButton"
text="Synchronize Folder" causesvalidation="False" borderstyle="none" />
<asp:Label ID="lblSynchResults" Runat="server" CssClass="Normal" EnableViewState="False" />
</td>
</tr>
</table>
</div>
</asp:Panel>
</td>
</tr>
</table>
</asp:Panel>