-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminHome.aspx
67 lines (66 loc) · 4.25 KB
/
AdminHome.aspx
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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminHome.aspx.cs" Inherits="AdminHome" %>
<%@ Register TagPrefix="header" TagName="HeaderControl" Src="~/HeaderControl.ascx" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Seller Home</title>
<style type="text/css">
.auto-style1 {
width: 191px;
}
</style>
</head>
<body>
<header:HeaderControl runat="server" />
<div style="background-color:coral">
<h2 style="text-align: center">Admin Home</h2>
</div>
<form id="form1" runat="server">
<asp:Label ID="lblLogin" runat="server" CssClass="padleft10" Text="Users" Font-Bold="True" Font-Underline="True" ToolTip="User Information"></asp:Label>
<br/><br/>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="AdminDataSource_User" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="userName" HeaderText="userName" SortExpression="userName" />
<asp:BoundField DataField="userRole" HeaderText="userRole" SortExpression="userRole" />
<asp:CheckBoxField DataField="isAdmin" HeaderText="isAdmin" SortExpression="isAdmin" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="AdminDataSource_User" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [userName], [userRole], [isAdmin] FROM [User] ORDER BY [userName]"></asp:SqlDataSource>
<br/><br/>
<asp:Label ID="Label2" runat="server" CssClass="padleft10" Text="Auction " Font-Bold="True" Font-Underline="True" ToolTip="Auction Information"></asp:Label>
<br/><br/>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="AdminDataSource_Bid" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="ownerName" HeaderText="ownerName" SortExpression="ownerName" />
<asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
<asp:BoundField DataField="basePrice" HeaderText="basePrice" SortExpression="basePrice" />
<asp:BoundField DataField="startingDate" HeaderText="startingDate" SortExpression="startingDate" />
<asp:BoundField DataField="endingDate" HeaderText="endingDate" SortExpression="endingDate" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="AdminDataSource_Bid" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [ownerName], [title], [basePrice], [startingDate], [endingDate] FROM [Auctions] ORDER BY [endingDate] DESC"></asp:SqlDataSource>
</form>
</body>
</html>