-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.jsp
149 lines (123 loc) · 5.83 KB
/
user.jsp
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
<%@ page import="project.Dao.SellerDao" %>
<%@ page import="project.Helper.FactoryProvider" %>
<%@ page import="project.Dao.AddressDao" %>
<%@ page import="project.Model.Address" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User DashBoard-Supreme Clothing</title>
<%@include file="common_css_js.jsp"%>
</head>
<body>
<%@include file="navbar.jsp"%>
<%
User user=(User) session.getAttribute("current-user");
if(user==null){
session.setAttribute("message","You are not logged in");
response.sendRedirect("login1.jsp");
return;
}
Address add = new AddressDao(FactoryProvider.getFactory()).getAddressByUserId(user.getUserId());
%>
<div style="margin-top:1.5rem ; margin-left: 0rem; margin-right: 1.5rem; flex-direction: column" class="section">
<div style="width:25%; background-color:white; border-top-right-radius: 5rem; margin-right:2rem; border-top:2px solid #E110E9; border-right:1px solid #E110E9;">
<div class="verticalnav" >
<div style="border-top-right-radius: 1.1rem;" class="verticalnavele">
<img style="width: 2.5rem; margin-right: 1rem;" src="img/dashboard.png" alt="" srcset="">
<h4 style="font-size: 1.2rem;"><a style="text-decoration: none;" href="#">Dashboard</a></h4>
</div>
<div class="verticalnavele" >
<img style="width: 2.5rem; margin-right: 1rem;" src="img/orders.png" alt="" srcset="">
<h4 style="font-size: 1.2rem;"><a style="text-decoration: none;" href="">My Orders</a></h4>
</div>
<div class="verticalnavele">
<img style="width: 2.5rem; margin-right: 1rem;" src="img/supermarket.png" alt="" srcset="">
<h4 style="font-size: 1.2rem;"><a style="text-decoration: none;" href="AddAddress.jsp">Add Address</a></h4>
</div>
<div class="verticalnavele">
<img style="width: 2.5rem; margin-right: 1rem;" src="img/product (1).png" alt="" srcset="">
<h4 style="font-size: 1.2rem;"><a style="text-decoration: none;" href="">My Address</a></h4>
</div>
</div>
</div>
<div style="width:75%; ">
<div style="margin-bottom: 1.5rem; display: flex; justify-content: center;">
<h1 style="margin-right:1rem; font-size: 2.2rem; font-style: italic; font-family: cursive;">My Profile </h1>
<img style="width: 3rem;" src="./img/swirly-scribbled-arrow.png" alt="" srcset="">
</div>
<div style="top:14rem; padding: 4rem 0rem; border-top: 1px solid white;" class="">
<div style="width:30%; justify-content: center; display: flex;" class="container">
<img style="width: 10rem" src="./img/profile.png">
</div>
<div style="width:70%; flex-direction: column" class="container">
<div class="servicecard">
<h4 style="margin-right: 20rem" ><strong>Name:</strong> <%=user.getUserName()%></h4>
<h4><strong>Email Id:</strong> <%=user.getUserEmail()%></h4>
</div>
<%
if(add!=null)
{
%>
<div class="servicecard">
<h4><strong>Phone Number:</strong> <%=add.getUserPhone()%> </h4>
</div>
<div class="servicecard">
<h4><strong>Home Address:</strong> <%=add.getAddress()%></h4>
</div>
<div class="servicecard">
<h4><strong>City:</strong> <%=add.getCity()%></h4>
</div>
<div class="servicecard">
<h4><strong>Country:</strong> <%=add.getCountry()%></h4>
</div>
<%
}
else
{
%>
<h1>You have Added Your Address Detail Till Now Please Add Now</h1>
<%
}
%>
</div>
</div>
</div>
<hr>
<div style="margin-bottom: 4rem; flex-flow: row wrap; justify-content: center;" class="section">
<div class="cardfooter">
<img style="width: 4.5rem; margin: 0.4rem;" src="./img/truck.png" alt="" srcset="">
<div class="footerhead">
<h3 style="font-size: 1.1rem;">FREE SHIPPING</h3>
<p style="font-size: 0.9rem; margin-top: 0.3rem;">Order Above ₹499</p>
</div>
</div>
<div class="cardfooter">
<img style="width: 4.5rem; margin: 0.4rem;" src="img/return-delivery-box.png" alt="" srcset="">
<div class="footerhead">
<h3 style="font-size: 1.1rem;">EASY RETURNS</h3>
<p style="font-size: 0.9rem; margin-top: 0.3rem;">15 Days Return and Replacement</p>
</div>
</div>
<div class="cardfooter">
<img style="width: 4.5rem;" src="img/24-hour-call-service.png" alt="" srcset="">
<div class="footerhead">
<h3 style="font-size: 1.1rem;">24/7 SERVICE</h3>
<p style="font-size: 0.9rem; margin-top: 0.3rem;">24/7 Service Availiable</p>
</div>
</div>
<div class="cardfooter">
<img style="width:4.5rem;" src="img/premium (1).png" alt="" srcset="">
<div class="footerhead">
<h3 style="font-size: 1.1rem;">QUALITY PRODUCT</h3>
<p style="font-size: 0.9rem; margin-top: 0.3rem;">Authorised Brand and Quality Product</p>
</div>
</div>
</div>
<div class="sectionfooter">
<p style="text-align: center; font-size: 1rem; padding-top: 0.6rem;">© 2022 Superior Clothing Brand All
Right Reserved</p>
</div>
</div>
</body>
</html>