-
Notifications
You must be signed in to change notification settings - Fork 0
/
Giohang.aspx
160 lines (133 loc) · 4.86 KB
/
Giohang.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
156
157
158
159
160
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Giohang.aspx.cs" Inherits="oragnic.Giohang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
#giohangmain a i{
color: #98bd68;
}
#text_giohang {
width: 90%;
text-align: center;
margin: 0 auto;
margin-top: 125px;
margin-bottom: 60px;
}
#text_giohang h2 {
text-transform: uppercase;
font-size: 25pt;
}
#text_giohang h2:hover {
text-transform: uppercase;
font-size: 25pt;
color: #98bd68;
transition: 0.3s;
}
#text_giohang hr {
width: 10%;
margin: 0 auto;
height: 2px;
/* border: none; */
margin-top: 10px;
/* color: black; */
background: #98bd68;
}
.giohang {
margin-top: 100px;
display: flex;
flex-wrap: wrap;
flex-direction: row;
width: 90%;
margin: 0 auto;
justify-content: center;
}
.giohang_min_sp {
display: flex;
/*width: 600px;*/
align-items: center;
/*border-right: solid 1px;*/
padding: 10px;
border-radius: 10px;
}
.giohang_min_sp_img img {
width: 200px;
border-radius: 30px;
}
.giohang_min_sp_text {
padding: 60px 40px;
}
.giohang_min_sp_text h2:hover {
color: #98bd68;
transition: 0.3s;
}
.giohang_min_sp_text h2, .giohang_min_sp_text h3 {
margin-bottom: 10px;
}
.giohang_min_sp input {
background: none;
border: solid 1.5px;
padding: 10px;
color: #98bd68;
}
.giohang_min_sp input:hover {
background: #98bd68;
border: solid 1.5px;
padding: 10px;
color: #fff;
}
.tongtien_min_chitiet {
width: 90%;
margin: 0 auto;
}
.tongtien_min_chitiet hr, .tongtien_min_chitiet h2, .tongtien_min_chitiet h3, .tongtien_min_chitiet h4 {
margin-bottom: 20px;
}
.tongtien_min_chitiet p {
text-align: end;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<div runat="server">
<div id="text_giohang" >
<h2>Giỏ Hàng của bạn</h2>
<hr />
</div>
<div class="giohang">
<%--<div class="giohang_min" id="giohang" runat="server">
</div>--%>
<asp:ListView id="ListViewgh" runat="server">
<ItemTemplate>
<div class='giohang_min_sp' >
<div class='giohang_min_sp_img'>
<a href='Chitietsanpham.aspx?id=<%# Eval("masp")%>'>
<img src='<%# Eval("imgsp")%>' /></a>
</div>
<div class='giohang_min_sp_text'>
<p>Mã: <%# Eval("id")%></p>
<h2>Tên sản phẩm: <%# Eval("tensp")%></h2>
<h3>Đơn giá (kg): <%# Eval("gia")%></h3>
<span>
<p>Số Lượng: <%# Eval("sl")%></p>
</span>
</div>
<!-- xoá sp lấy id từ listview -->
<asp:Button ID="Button1" runat="server" Text="Xoá" OnCommand="Button_Click" CommandArgument=<%# Eval("id")%>/>
</div>
</ItemTemplate>
</asp:ListView>
</div>
</div>
<%-- <div>
<p>Mã :</p>
<input id="masp_giohang" min="0" value="0" runat="server" />
<p>Số lượng: </p>
<input id="masp_giohang_sl" min="0" value="0" runat="server" type="number"/>
<asp:Button ID="Buttongh" runat="server" Text="Cap nhat" OnClick="Delete_sp" />
<p>Nếu số lượng = 0 thì có nghĩa bạn sẽ xoá sản phẩm</p>
</div>--%>
<div id="tongtien">
<div id="tongtien_min" class="tongtien_min" runat="server">
</div>
</div>
</div>
</asp:Content>