-
Notifications
You must be signed in to change notification settings - Fork 2
/
AdminCategories.ascx
255 lines (248 loc) · 17 KB
/
AdminCategories.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
<%@ Control Language="vb" Inherits="NEvoWeb.Modules.NB_Store.AdminCategories" AutoEventWireup="false"
Explicit="True" CodeBehind="AdminCategories.ascx.vb" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<%@ Register TagPrefix="nwb" TagName="SelectLang" Src="controls/SelectLang.ascx" %>
<%@ Register TagPrefix="nwb" TagName="ShowSelectLang" Src="controls/ShowSelectLang.ascx" %>
<%@ Register TagPrefix="nbs" Namespace="NEvoWeb.Modules.NB_Store" Assembly="NEvoweb.DNN.Modules.NB_Store" %>
<%@ Register TagPrefix="nbs" TagName="ProdList" Src="~/DesktopModules/NB_Store/AdminProductList.ascx" %>
<div class="NBright_ContentDiv">
<asp:Panel ID="pnlList" runat="server">
<nbs:ProdList id="productlist" runat="server">
</nbs:ProdList>
</asp:Panel>
<asp:Panel ID="pnlCategory" runat="server">
<table width="100%">
<tr>
<td width="300px" valign="top" >
<div id="divCatSelect" class="NBright_ButtonDiv" runat="server">
<asp:LinkButton CssClass="dnnSecondaryAction NBright_AddButton" ID="cmdAdd" resourcekey="cmdAddNew" runat="server" Text="Add"></asp:LinkButton>
</div>
<asp:ListBox ID="lbCategory" Width="290px" Height="450px" runat="server" CssClass="NormalTextBox" AutoPostBack="true"></asp:ListBox>
</td>
<td class="CategoryEditor" valign="top" >
<asp:Panel ID="pnlEdit" runat="server">
<nwb:SelectLang ID="selectlang" runat="server"></nwb:SelectLang>
<div class="NBright_ButtonDiv">
<asp:LinkButton CssClass="dnnPrimaryAction NBright_SaveButton" ID="cmdUpdate" resourcekey="cmdUpdate"
runat="server" Text="Update"></asp:LinkButton>
<asp:LinkButton CssClass="dnnSecondaryAction NBright_CancelButton" ID="cmdCancel" resourcekey="cmdCancel"
runat="server" Text="Cancel" CausesValidation="False"></asp:LinkButton>
<asp:LinkButton CssClass="dnnSecondaryAction NBright_DeleteButton" ID="cmdDelete" resourcekey="cmdDelete"
runat="server" Text="Delete" CausesValidation="False"></asp:LinkButton>
</div>
<p>
<asp:Label ID="lblErrorDelete" runat="server" Font-Bold="true" ForeColor="red" resourcekey="ErrorDelete"
Text="Unable to delete category. Category has dependant categories or Products."
Visible="false"></asp:Label>
</p>
<div id="tabs" runat="server" class="NBright_tabs">
<a id="buttontabs-1" href="#"><asp:Label ID="lblGeneral" runat="server" Text="General" resourcekey="lblGeneral" Width="100"></asp:Label></a>
<a id="buttontabs-2" href="#"><asp:Label ID="lblSEO" runat="server" Text="SEO" resourcekey="lblSEO" Width="100"></asp:Label></a>
<a id="buttontabs-3" href="#"><asp:Label ID="lblExtra" runat="server" Text="Extra" resourcekey="lblExtra" Width="100"></asp:Label></a>
<a id="buttontabs-4" href="#"><asp:Label ID="lblProducts" runat="server" Text="Products" resourcekey="lblProducts" Width="100"></asp:Label></a>
</div>
<div id="tabs-1" >
<table width="100%" border="0" align="left" cellspacing="2">
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelCategoryName" runat="server" controlname="labelCategoryName"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtCategoryName" runat="server" Width="200" MaxLength="50" CssClass="NormalTextBox"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang" runat="server"></nwb:ShowSelectLang><asp:PlaceHolder ID="phCatID" runat="server"></asp:PlaceHolder>
<asp:RequiredFieldValidator ID="valReqCategoryName" runat="server" ControlToValidate="txtCategoryName"
Display="Dynamic" ErrorMessage="* Category name is required." resourcekey="valReqCategoryName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelCategoryDescription" runat="server" controlname="labelCategoryDescription"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtDescription" runat="server" Width="350" MaxLength="500" CssClass="NormalTextBox"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang1" runat="server"></nwb:ShowSelectLang>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelOrder" runat="server" controlname="labelOrder" suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtOrder" runat="server" Width="35" MaxLength="50" CssClass="NormalTextBox"></asp:TextBox>
<asp:CompareValidator ID="validatorOrder" runat="server" ErrorMessage="Error! Please enter a valid order."
resourcekey="validatorOrder" Type="integer" ControlToValidate="txtOrder" Operator="DataTypeCheck"
Display="Dynamic"></asp:CompareValidator>
<asp:RequiredFieldValidator ID="validatorRequireOrder" runat="server" ControlToValidate="txtOrder"
Display="Dynamic" ErrorMessage="* Order is required." resourcekey="validatorRequireOrder"></asp:RequiredFieldValidator>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelParentCategory" runat="server" controlname="labelParentCategory"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:DropDownList ID="ddlParentCategory" runat="server">
</asp:DropDownList>
<br />
<asp:Label ID="lblRecursionWarning" runat="server" Font-Bold="true" ForeColor="red"
resourcekey="lblRecursionWarning" Text="Recursive category relationship detected. Please specify a <br/>different parent category."
Visible="false"></asp:Label>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="plProductTemplate" runat="server" controlname="plProductTemplate"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:DropDownList ID="ddlProductTemplate" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="plListItemTemplate" runat="server" controlname="plListItemTemplate"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:DropDownList ID="ddlListItemTemplate" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="plListAltItemTemplate" runat="server" controlname="plListAltItemTemplate"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:DropDownList ID="ddlListAltItemTemplate" runat="server">
</asp:DropDownList>
</td>
</tr>
</table>
</div>
<div id="tabs-2">
<table width="500" border="0" align="left" cellspacing="2">
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelSEOName" runat="server" controlname="labelSEOName"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtSEOName" runat="server" Width="200" MaxLength="150" CssClass="NormalTextBox"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang3" runat="server"></nwb:ShowSelectLang>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelSEOPageTitle" runat="server" controlname="labelSEOPageTitle"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtSEOPageTitle" runat="server" Width="350" MaxLength="500" CssClass="NormalTextBox"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang6" runat="server"></nwb:ShowSelectLang>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelMetaDescription" runat="server" controlname="labelMetaDescription"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtMetaDescription" runat="server" Width="350" MaxLength="500" CssClass="NormalTextBox" TextMode="MultiLine" Height="100"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang4" runat="server"></nwb:ShowSelectLang>
</td>
</tr>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelMetaKeywords" runat="server" controlname="labelMetaKeywords"
suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:TextBox ID="txtMetaKeywords" runat="server" Width="350" MaxLength="500" CssClass="NormalTextBox" TextMode="MultiLine" Height="100"></asp:TextBox><nwb:ShowSelectLang
ID="ShowSelectLang5" runat="server"></nwb:ShowSelectLang>
</td>
</tr>
</table>
</div>
<div id="tabs-3">
<table>
<tr valign="top">
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelArchived" runat="server" controlname="labelArchived" suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:CheckBox CssClass="normalCheckBox" ID="chkArchived" runat="server"></asp:CheckBox>
</td>
<td class="NormalBold" nowrap="nowrap">
<dnn:label id="labelHide" runat="server" controlname="labelHide" suffix=":"></dnn:label>
</td>
<td class="Normal" nowrap="nowrap">
<asp:CheckBox CssClass="normalCheckBox" ID="chkHide" runat="server"></asp:CheckBox>
</td>
</tr>
<tr>
<td colspan="4">
<div class="NBright_ButtonDiv">
<asp:FileUpload ID="cmdBrowse" runat="server" />
<asp:LinkButton ID="cmdAddImage" runat="server" CssClass="dnnSecondaryAction NBright_AddButton" Resourcekey="AddImage">Add</asp:LinkButton>
<asp:LinkButton ID="cmdRemove" runat="server" CssClass="dnnSecondaryAction NBright_CancelButton" Resourcekey="cmdRemove">Remove Image</asp:LinkButton>
</div>
<asp:Image ID="imgCat" runat="server" />
</td>
</tr>
</table>
<dnn:SectionHead ID="dshMsgBox" CssClass="Head" runat="server" visible="false" Text="Message" Section="divMsgBox"
ResourceKey="labelMessage" IncludeRule="True" IsExpanded="False" />
<div id="divMsgBox" runat="server">
<nwb:ShowSelectLang ID="ShowSelectLang2" runat="server"></nwb:ShowSelectLang>
<dnn:label id="labelMessage" runat="server" controlname="labelMessage" suffix=":"></dnn:label><br />
<dnn:TextEditor id="txtMessage" runat="server" width="99%" height="350"></dnn:TextEditor>
</div>
</div>
<div id="tabs-4">
<div class="NBright_ButtonDiv">
<asp:LinkButton ID="cmdSelectProducts" runat="server" CssClass="dnnSecondaryAction NBright_CommandButton" resourcekey="cmdSelectProducts" Text="Select"></asp:LinkButton>
<asp:LinkButton ID="cmdClearProducts" runat="server" CssClass="dnnSecondaryAction NBright_CommandButton" resourcekey="cmdClearProducts" Text="Clear"></asp:LinkButton>
<asp:LinkButton ID="cmdEditProducts" runat="server" CssClass="dnnSecondaryAction NBright_CommandButton" resourcekey="cmdEditProducts" Text="Edit"></asp:LinkButton><br /><br />
<asp:LinkButton ID="cmdMoveProd" runat="server" CssClass="dnnTertiaryAction NBright_CommandButton" resourcekey="cmdMoveProd" Text="Move"></asp:LinkButton>
<asp:LinkButton ID="cmdCopyProd" runat="server" CssClass="dnnTertiaryAction NBright_CommandButton" resourcekey="cmdCopyProd" Text="Copy"></asp:LinkButton>
<asp:DropDownList ID="ddlMoveProd" CssClass="NormalTextBox" runat="server"></asp:DropDownList>
</div>
<asp:DataGrid id="dgProducts" runat="server" AutoGenerateColumns="False" gridlines="None" cellpadding="2" PageSize="20" Width="500" AllowPaging="False">
<HeaderStyle CssClass="NBright_HeaderStyle" />
<FooterStyle cssclass="NBright_FooterStyle"/>
<EditItemStyle cssclass="NBright_EditItemStyle" />
<SelectedItemStyle cssclass="NBright_SelectedItemStyle"/>
<PagerStyle cssclass="NBright_PagerStyle" Mode="NumericPages"/>
<AlternatingItemStyle cssclass="NBright_AlternatingItemStyle" />
<ItemStyle cssclass="NBright_ItemStyle" />
<Columns>
<asp:BoundColumn DataField="ProductID" HeaderText="ID" Visible="false"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductRef" HeaderText="Ref"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductName" HeaderText="Name"></asp:BoundColumn>
<dnn:ImageCommandColumn KeyField="ProductID" ShowImage="True" ImageURL="~/images/delete.gif" CommandName="Remove"
EditMode="Command" HeaderText="">
<HeaderStyle Font-Size="10pt" Font-Names="Tahoma, Verdana, Arial" Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
<EditItemTemplate></EditItemTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate></ItemTemplate>
</dnn:ImageCommandColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" Mode="NumericPages"></PagerStyle>
</asp:DataGrid>
<br />
<nbs:AdminPagingControl id="ctlPagingControl" runat="server" pagesize="20" BorderWidth="0"></nbs:AdminPagingControl>
</div>
</asp:Panel>
</td>
</tr>
</table>
</asp:Panel>
</div>