-
Notifications
You must be signed in to change notification settings - Fork 2
/
AdminProductImage.ascx
53 lines (53 loc) · 3.06 KB
/
AdminProductImage.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AdminProductImage.ascx.vb" Inherits="NEvoWeb.Modules.NB_Store.AdminProductImage" %>
<%@ Register TagPrefix="dnntc" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="nwb" TagName="ShowSelectLang" Src="controls/ShowSelectLang.ascx"%>
<div class="NBright_ButtonDiv">
<asp:label id="lblBrowse" runat="server" Visible="false" resourcekey="lblBrowse">Label</asp:label><asp:FileUpload ID="cmdBrowse" runat="server" />
<asp:linkbutton id="cmdAddImage" runat="server" cssclass="dnnSecondaryAction NBright_AddButton" Resourcekey="Add">Add</asp:linkbutton>
</div>
<br />
<asp:label id="lblMsg" runat="server"></asp:label>
<asp:datagrid id="dgImages" runat="server" AutoGenerateColumns="False" CellPadding="1" Width="100%" GridLines="None">
<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="ImageID" HeaderText="ID" Visible="false"></asp:BoundColumn>
<dnntc:ImageCommandColumn KeyField="ImageID" ShowImage="True" ImageURL="~/images/delete.gif" CommandName="Delete"
EditMode="Command">
<HeaderStyle Font-Size="10pt" Font-Names="Tahoma, Verdana, Arial" Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
<EditItemTemplate></EditItemTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderTemplate></HeaderTemplate>
<ItemTemplate></ItemTemplate>
</dnntc:ImageCommandColumn>
<asp:TemplateColumn HeaderText="Hidden" Visible="false">
<ItemTemplate>
<asp:CheckBox CssClass="normalCheckBox" id="chkHide" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.Hidden") %>'></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ImgProduct">
<ItemTemplate>
<asp:Image id="imgProduct" runat="server"></asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Description">
<HeaderTemplate>
<nwb:ShowSelectLang id="ShowSelectLang" runat="server"></nwb:ShowSelectLang>
<asp:Label ID="nlDescription" runat="server" Text="Description."></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox id="txtImageDesc" runat="server" Width="400px" MaxLength="200" Text='<%# DataBinder.Eval(Container, "DataItem.ImageDesc") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ListOrder">
<ItemTemplate>
<asp:TextBox id="txtListOrder" runat="server" Width="62px" MaxLength="3" Text='<%# DataBinder.Eval(Container, "DataItem.ListOrder") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>