-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser_page.php
147 lines (119 loc) · 4.9 KB
/
User_page.php
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
<?php
//Tell PHP to log errors
ini_set('log_errors', 'On');
//Tell PHP to not display errors
ini_set('display_errors', 'Off');
//Set error_reporting to E_ALL
ini_set('error_reporting', E_ALL );
include '_dbConnect.php';
// Start the session
session_start();
$uid = $_SESSION['uid'];
$sql = "SELECT * FROM `orderhistory` WHERE `uid`='$uid'";
$result = mysqli_query($conn, $sql);
$rowww = mysqli_fetch_assoc($result);
$sql2 = "SELECT * FROM `users` WHERE `uid`='$uid'";
$result2 = mysqli_query($conn, $sql2);
$row = mysqli_fetch_assoc($result2);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>User page</title>
<link rel="User page stylesheet" href="User_Style.css">
<style>
.title
{
font-size:30px;
font-weight:bold;
background-size: auto auto;
background-size: 200% auto;
color: white !important;
.feedform{
margin: auto !important;
color: rgb(85,150,162)
}
}
</style>
</head>
<body >
<br><br>
<div class="container">
<center><div class="title" style="color:black;">USER DETAILS<br></div> </center>
<div class="details">
<table style="padding-left:10px; border-radius:8px;">
<tr>
<th >Name</th>
<td><?= $_SESSION['uname']?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<th>Address</th>
<td><?php echo $row['address']; ?></td>
</tr>
</table>
</div>
<!--------------------- Order_history 주문내역 박스 ------------------------>
<div class="Order_history">
<br><br>
<table class="Order_details_table" style=" box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 12px 0 rgba(0, 0, 0, 0.19);">
<div class="container">
<center><div class="title" style="color:black;">ORDER DETAILS<br></div> </center>
<colgroup>
<col width="16%">
<col width="14%">
<col width="68">
<col>
<col width="16%">
<col width="13%">
</colgroup>
<tbody>
<tr>
<th scope="col">Order number</th>
<th colspan="2">Title</th>
<th scope="col">Price</th>
<th scope="col">Order date</th>
<th scope="col">Email</th>
</tr>
<tr style="text-align:center;">
<td ><?php echo $rowww["oid"]; ?></td>
<td colspan="2" style="text-align:center;"><?php echo $rowww["products"]; ?></td>
<td style="text-align:center;"><?php echo $rowww["amount_paid"]; ?></td>
<td style="text-align:center;"><?php echo $rowww["date"]; ?></td>
<td style="text-align:center;"><?php echo $rowww["email"]; ?></td>
</tr>
</tbody>
</table>
</div>
<!----------------- MY wishlist 나의 관심도서 박스 ---------------
<div class="wishlist">
<p style="font-size: 22px;"><img src="images/color_bookmark.png" alt="" width="20" height='20'><img>My wishlist books</p>
<div class="mytabs" style=" box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 12px 0 rgba(0, 0, 0, 0.19);">
<input type="radio" id="Wishlist01" name="mytabs" checked="checked">
<label for="Wishlist01">Wishlist</label>
<div class="tab">
<div class="wrap">
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
</div>
</div>
<input type="radio" id="Viewed Products" name="mytabs">
<label for="Viewed Products">Viewed Products</label>
<div class="tab">
<div class="wrap">
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
<div><center><img class="membershipImg" src="images/plant.jpg" alt=""><P> a plant consultation cente</P></center></img></div>
</div>
</div>
</div>
</div>-->
</div>
</div>
</body>