-
Notifications
You must be signed in to change notification settings - Fork 2
/
AdminProductDoc.ascx
95 lines (95 loc) · 5.74 KB
/
AdminProductDoc.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AdminProductDoc.ascx.vb" Inherits="NEvoWeb.Modules.NB_Store.AdminProductDoc" %>
<%@ 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="cmdAddDoc" runat="server" CssClass="dnnSecondaryAction NBright_AddButton" Resourcekey="Add">Add</asp:LinkButton>
<asp:TextBox ID="txtSearch" runat="server" Width="169px"></asp:TextBox>
<asp:LinkButton ID="cmdSearch" CssClass="dnnSecondaryAction NBright_CommandButton" resourcekey="cmdSearch"
runat="server">Search</asp:LinkButton>
</div>
<asp:DataGrid ID="dgSelectDoc" runat="server" AutoGenerateColumns="False" CellPadding="2"
GridLines="None" PageSize="25" Width="100%" AllowPaging="True">
<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>
<dnntc:ImageCommandColumn KeyField="" ShowImage="True" ImageURL="~/images/edit.gif"
CommandName="Edit" 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:BoundColumn DataField="FileName" HeaderText="Name"></asp:BoundColumn>
<asp:BoundColumn DataField="DocDesc" HeaderText="Description"></asp:BoundColumn>
<asp:BoundColumn DataField="DocPath" HeaderText="DocPath" Visible="false"></asp:BoundColumn>
<asp:BoundColumn DataField="FileExt" HeaderText="FileExt" Visible="false"></asp:BoundColumn>
</Columns>
</asp:DataGrid>
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
<asp:DataGrid ID="dgDocs" 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="DocID" HeaderText="ID" Visible="false"></asp:BoundColumn>
<dnntc:ImageCommandColumn KeyField="DocID" 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="Name">
<HeaderTemplate>
<nwb:ShowSelectLang id="ShowSelectLang" runat="server"></nwb:ShowSelectLang>
<asp:Label ID="nlName" runat="server" Text="Name."></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox ID="txtDocName" runat="server" Width="150px" MaxLength="50" Text='<%# System.Web.HttpUtility.UrlDecode(DataBinder.Eval(Container, "DataItem.FileName")) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Description">
<HeaderTemplate>
<nwb:ShowSelectLang id="ShowSelectLang2" runat="server"></nwb:ShowSelectLang>
<asp:Label ID="nlDescription" runat="server" Text="Description."></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox ID="txtDocDesc" runat="server" Width="400px" MaxLength="200" Text='<%# DataBinder.Eval(Container, "DataItem.DocDesc") %>'></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>