-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmember.page.php
More file actions
173 lines (145 loc) · 4.97 KB
/
member.page.php
File metadata and controls
173 lines (145 loc) · 4.97 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php
session_start();
include_once 'includes/functions.inc.php';
include_once 'includes/dbh.inc.php';
?>
<html>
<head>
<!--boostrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<title>Welcome</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Audiowide|Sofia|Trirong">
<style>
/*--------------------search bar----------------------*/
#search {
/*position: fixed;
z-index: 1;*/
}
input[type="text"] {
width: 250px;
transition: width .35s ease-in-out, .35s ease-in-out;
box-sizing: border-box;
box-shadow: 0 0 3px black;
}
input[type="text"]:focus {
width: 410px;
margin-left: -160px;
box-shadow: 0 0 6px orange;
}
#table {
background-color: black;
border-radius: 6px;
color: white;
width: 325px;
line: white;
box-shadow: 0 0px 16px orange;
}
/*--------------------pagination---------------------*/
.pagination-container {
text-align: center;
}
.pagination {
display: inline-block;
}
.pagination a {
color: black;
float: left;
padding: 8px 16px;
margin: 0 8px;
text-decoration: none;
border: 2px solid #ddd;
border-radius: 5px;
transition: background-color .3s;
}
.pagination a.active {
color: white;
background-color: #4CAF50;
border: 2px solid #4CAF50;
}
.pagination a:hover:not(.active) {
background-color: #ddd;
}
</style>
</head>
<body>
<!--...................................................................
............................Navigation Bar.............................
....................................................................-->
<?php
include_once 'navigation.bar.php';
?>
<!--...................................................................
.............................User Details..............................
....................................................................-->
<div class="row m-4">
<div class="col-9">
<h1 style="font-family: Audiowide, sans-serif;">Hello
<?php
if (isset($_SESSION["username"])) {
$fname = get_user_fname($conn, $_SESSION['username']);
echo $fname.'....!';
}
else {
echo 'User....!';
}
?>
</h1>
<p>Welcome to deep reservoir of knowledge...</p>
</div>
<!--...................................................................
..............................Search Bar...............................
....................................................................-->
<div class="col-3 mt-2">
<div id="search">
<form class="d-flex" type="search" method="post">
<input class="form-control me-2" type="text" name="search" placeholder="Search Books">
<button class="btn btn btn-dark" type="submit" name="submit">Search</button>
</form>
<table id="table" cellpadding="12">
<?php
include_once 'includes/search.php';
?>
</table>
</div>
</div>
</div>
</div>
<!--...................................................................
..............................Categories...............................
....................................................................-->
<?php
include_once 'categories.php'
?>
<!--...................................................................
..............................Pagination...............................
....................................................................-->
<!--<div class="pagination-container">
<div class="pagination">
<a href="#">«</a>
<a href="#">1</a>
<a href="#" class="active">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
<a href="#">6</a>
<a href="#">7</a>
<a href="#">8</a>
<a href="#">9</a>
<a href="#">»</a>
</div>
</div>
<br><br></div>-->
<!--...................................................................
..................................Footer...............................
....................................................................-->
<?php
include_once 'Footer/footer.php';
?>
</body>
</html>