forked from ventrian/Simple-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddPhoto.ascx
executable file
·116 lines (109 loc) · 6.61 KB
/
AddPhoto.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AddPhoto.ascx.vb" Inherits="Ventrian.SimpleGallery.AddPhoto" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="SimpleGallery" TagName="GalleryMenu" Src="Controls\GalleryMenu.ascx" %>
<%@ Register TagPrefix="SimpleGallery" TagName="EditPhotos" Src="Controls\EditPhotos.ascx" %>
<SimpleGallery:GalleryMenu ID="ucGalleryMenu" runat="server" ShowCommandBar="False" ShowSeparator="True" />
<div align="left">
<table cellspacing="0" cellpadding="0" width="600" summary="Wizard Design Table">
<tr>
<td width="50" height="50" align="center" valign="middle">
<asp:Image ID="imgStep" runat="server" ImageUrl="~/DesktopModules/SimpleGallery/Images/iconStep1.gif" Width="48" Height="48" />
</td>
<td>
<asp:Label ID="lblStep" runat="server" CssClass="NormalBold" /><br />
<asp:Label ID="lblStepDescription" runat="server" CssClass="Normal" /><br />
<asp:Label ID="lblRequiresApproval" runat="server" CssClass="NormalRed" ResourceKey="RequiresApproval" EnableViewState="False" Visible="False" />
</td>
</tr>
</table>
</div>
<hr size="1" />
<asp:Panel ID="pnlStep1" runat="server">
<asp:PlaceHolder ID="phStep1a" runat="server">
<table cellspacing="0" cellpadding="2" width="600" summary="Select Album Design Table" align="center">
<tr>
<td colspan="2">
<asp:RadioButton ID="rdoSelectExisting" runat="server" Text="Selecting Existing Album" ResourceKey="SelectExisting" CssClass="NormalBold" GroupName="Step1" /></td>
</tr>
<tr valign="top">
<td class="SubHead" width="150">
<dnn:Label ID="plAlbum" runat="server" ControlName="drpAlbums" Suffix=":"></dnn:Label>
</td>
<td>
<asp:DropDownList ID="drpAlbums" runat="server" DataTextField="CaptionIndented" DataValueField="AlbumID" Width="300px" />
<asp:CustomValidator ID="valSelectExisting" runat="server" CssClass="NormalRed" ResourceKey="valSelectExisting" Display="Dynamic"
ControlToValidate="drpAlbums" ErrorMessage="<br>You must select an existing album."></asp:CustomValidator>
</td>
</tr>
</table>
<hr size="1" />
</asp:PlaceHolder>
<asp:PlaceHolder ID="phStep1b" runat="server">
<table cellspacing="0" cellpadding="2" width="600" summary="Select Album Design Table" align="center">
<tr>
<td colspan="2">
<asp:RadioButton ID="rdoCreateNew" runat="server" Text="Create New Album" ResourceKey="CreateNew" CssClass="NormalBold" GroupName="Step1" /></td>
</tr>
<tr valign="top" runat="server" id="trParentAlbum">
<td class="SubHead" width="150">
<dnn:Label ID="plParentAlbum" runat="server" ResourceKey="ParentAlbum" Suffix=":" ControlName="drpParentAlbum"></dnn:Label>
</td>
<td>
<asp:DropDownList ID="drpParentAlbum" DataValueField="AlbumID" DataTextField="CaptionIndented" runat="server" Width="300px"></asp:DropDownList></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" width="450">
<asp:TextBox ID="txtCaption" CssClass="NormalTextBox" runat="server" Width="300" MaxLength="255"></asp:TextBox>
<asp:CustomValidator ID="valSelectNew" runat="server" CssClass="NormalRed" ResourceKey="valSelectNew" Display="Dynamic"
ErrorMessage="<br>You Must Enter a Valid Caption" ControlToValidate="txtCaption" ValidateEmptyText="true" />
</td>
</tr>
<tr valign="top">
<td class="SubHead" width="150">
<dnn:Label ID="plDescription" runat="server" Suffix=":" ControlName="txtDescription"></dnn:Label>
</td>
<td>
<asp:TextBox ID="txtDescription" CssClass="NormalTextBox" runat="server" Width="300" Columns="30"
MaxLength="255" TextMode="MultiLine" Rows="5"></asp:TextBox></td>
</tr>
</table>
</asp:PlaceHolder>
</asp:Panel>
<asp:Panel ID="pnlStep2" runat="server">
<asp:HiddenField ID="litBatchID" runat="server" />
<div>
<asp:FileUpload ID="fupFile" runat="server" AllowMultiple="true" />
<asp:Button runat="server" ID="btnUploadFiles" OnClick="btnUploadFiles_OnClick" resourcekey="btnUploadFiles" />
</div>
<asp:Repeater runat="server" ID="addedPhotosRepeater" EnableViewState="True" OnItemDataBound="addedPhotosRepeater_OnItemDataBound">
<ItemTemplate>
<asp:Image runat="server" ID="addedPhoto" />
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
<div style="width: 100%;">
<SimpleGallery:EditPhotos ID="ucEditPhotos" runat="server" />
</div>
<asp:Panel ID="pnlWizard" runat="server">
<div align="center">
<br />
<asp:ImageButton ID="imgPrevious" runat="server" ImageUrl="~\images\lt.gif" ImageAlign="AbsBottom" />
<asp:LinkButton ID="cmdPrevious" resourcekey="PreviousStep" runat="server" CssClass="CommandButton" Text="Previous"
BorderStyle="none" />
<asp:ImageButton ID="imgCancel" runat="server" ImageUrl="~\DesktopModules\SimpleGallery\images\iconCancel.gif" ImageAlign="AbsBottom" CausesValidation="False" Style="padding-left: 20px;" />
<asp:LinkButton ID="cmdCancel" runat="server" CssClass="CommandButton" ResourceKey="cmdCancel" Text="Cancel" BorderStyle="none" CausesValidation="False" Style="padding-right: 20px;" />
<asp:LinkButton ID="cmdNext" resourcekey="NextStep" runat="server" CssClass="CommandButton" Text="Next" BorderStyle="none" />
<asp:ImageButton ID="imgNext" runat="server" ImageUrl="~\images\rt.gif" ImageAlign="AbsBottom" />
</div>
</asp:Panel>
<asp:Panel ID="pnlSave" runat="server">
<p align="center">
<br />
<asp:ImageButton ID="imgSave" runat="server" ImageUrl="~\DesktopModules\SimpleGallery\images\iconSave.gif" ImageAlign="AbsBottom" />
<asp:LinkButton ID="cmdSave" runat="server" CssClass="CommandButton" ResourceKey="cmdSave" Text="Save this batch" BorderStyle="none" />
</p>
</asp:Panel>
<ul id="thumbnails" class="sg_photolist"></ul>