-
Notifications
You must be signed in to change notification settings - Fork 0
/
Wishlist.aspx
155 lines (101 loc) · 5.92 KB
/
Wishlist.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
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
<%@ Page MasterPageFile="~/GameAddict.Master" Language="C#" AutoEventWireup="true" CodeFile="Wishlist.aspx.cs" Inherits="Wishlist" %>
<asp:Content ID="HomeContentHead" ContentPlaceHolderID="GameAddictHead" runat="server">
<style>
.buttons-div{
display:block;
margin: 10px 10px 10px 0px;
}
.my-button{
float: right;
display: inline-block;
padding: 5px;
background-color: #1a1a1a;
border-radius: 4px;
margin-left: 8px;
border: none;
}
.my-button a{
text-decoration: none;
}
.favorites:hover{
cursor: pointer;
color: #c19506;
}
.details{
font-size: 14px;
}
.attr{
display: inline-block;
margin: 2px;
margin-bottom: 5px;
}
.value{
display: inline-block;
margin-bottom: 5px;
}
</style>
</asp:Content>
<asp:Content ID="HomeContentBody" ContentPlaceHolderID="GameAddictBody" runat="server">
<div id="content">
<div class="block">
<asp:SqlDataSource ID="wishlist" runat="server" ConnectionString='<%$ ConnectionStrings:GameAddictConnectionString %>' SelectCommand="SELECT Wishlist.WishListID, Wishlist.GameID, Game.Name, Game.Image, Game.ReleasedDate, Game.Rating, Game.Review, Game.isActive AS g_active FROM Wishlist INNER JOIN Game ON Game.GameID = Wishlist.GameID WHERE (Wishlist.UserID = @UserID)">
<SelectParameters>
<asp:SessionParameter SessionField="userid" Name="UserID"></asp:SessionParameter>
</SelectParameters>
</asp:SqlDataSource>
<div class="block-bot">
<div class="head">
<div class="filter" style="padding: 10px;">
<h3>My Wishlist</h3>
<div class="cl"> </div>
</div>
</div>
<asp:DataList ID="ddl_list" OnItemCommand="ddl_list_ItemCommand" runat="server" DataSourceID="wishlist">
<ItemTemplate>
<asp:TextBox ID="tb_IDBox" Visible="false" Text='<%# Eval("GameID") %>' runat="server"></asp:TextBox>
<div class="row-articles articles">
<div class="cl"> </div>
<div class="article last-article">
<div class="cl"> </div>
<div class="image">
<a href="#">
<img src='Images/Game/<%# Eval("Image") %>' alt="" /></a>
</div>
<div class="cnt">
<h4 style="display: inline-block; margin-left: 20px;"><a href="#"><%# Eval("Name") %></a></h4>
<div class="rating" style="margin: 10px 10px 10px 20px;">
<div class="stars" style="display: inline-block;">
<%#DataBinder.Eval(Container.DataItem, "Rating") %> <span class="star-rating fa fa-star"></span>
</div>
<div style="display: inline-block; margin-left: 10px;">
<span>
<asp:Label ID="comment" runat="server" Text='<%# Eval("Review") %>'></asp:Label>
<span class="fa fa-comment"></span></span>
</div>
</div>
<div class="details" style="display: inline-block; float: right;">
</div>
<div class="buttons-div" style="float: right; margin-left: 180px;">
<asp:Button ID="btn_wishlist" ForeColor="Gray" CssClass="my-button" CommandArgument='<%# Eval("WishlistID") %>' CommandName="wid" runat="server" Text="Delete" />
</div>
</div>
<br />
<div class="divider" > </div>
<br />
<div class="cl"> </div>
</div>
<div class="cl"> </div>
</div>
</ItemTemplate>
</asp:DataList>
</div>
<div class="buttons-div" style="display: inline-block; float: right;">
<asp:Button CssClass="my-button pad-more" ID="btn_empty" runat="server" OnClick="btn_empty_Click" Text="Empty" ForeColor="#999999" CausesValidation="False" />
<asp:Button CssClass="my-button pad-more" OnClick="btn_continue_Click" ID="btn_continue" runat="server" Text="Continue" ForeColor="#999999" CausesValidation="False" />
</div>
</div>
<p visible="false" class="message" style="color:red; font-size: 16px;" runat="server" id="WishListEmpty">
Wishlist is Empty!
</p>
</div>
</asp:Content>