-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtution.php
More file actions
245 lines (207 loc) · 8.09 KB
/
tution.php
File metadata and controls
245 lines (207 loc) · 8.09 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<?php
include('./config/connectiondb.php');
include("./logincheck_tutor.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trust Tution</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;1,100;1,300;1,400;1,500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<section class="Section-1">
<div class="header">
<nav
class="navbar sticky-lg-top navbar-expand-lg navbar-light bg-transparent"
>
<div class="container-fluid">
<a class="navbar-brand" href="#">
<div class="d-flex">
<img src="./image/brand.png" alt="Trust Tution" />
<span>
<p class="first_title text-decoration-underline">
<span class="first_title1">Trust</span> Tution BD
</p>
<p class="second_title">
Simply Search for Tutors and tutions
</p>
</span>
</div>
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<div class="ms-auto"></div>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="./index.php"
>Home</a
>
</li>
<?php
if(isset($_SESSION['login_user_success']))
{
?>
<?php
}
else{
?>
<li class="nav-item">
<a class="nav-link" href="./search.php">Search Tutor</a>
</li>
<?php
}
?>
<li class="nav-item active">
<a class="nav-link" href="./tution.php">Tutions</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./contact.php">Contact</a>
</li>
<?php
if (isset($_SESSION['login_user_success']))
{
?>
<li class="nav-item">
<div class="nav-link ms-5">
<div class="d-flex flex-column">
<a href="./dashboard_tutor.php" class="fs-bold">
<?php
echo $_SESSION['username_Tutor'];
?>
</a>
<a href="./config/logout.php" class="text-danger"
>Logout</a
>
</div>
</div>
</li>
<?php
}
else
{
?>
<li class="nav-item active">
<div class="nav-link ms-5" href="#">
<a href="./tutor/signin.php">Login</a> OR
<a href="./tutor/signup.php">Registration</a>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
</nav>
</div>
</section>
<section class="Section-2">
<div class="container">
<div class="row">
<div class="col-lg-12 d-flex justify-content-center headlighter mb-3">
Tutions
</div>
<div
class="col-lg-12 mb-5"
style="background: #09b7ec; height: 5px"
></div>
</div>
<div class="container">
<div class="row d-flex justify-content-around">
<?php
$sql= "SELECT * from tution;";
$res= mysqli_query($con,$sql);
if ($res==TRUE)
{
$count= mysqli_num_rows($res);
if ($count>0)
{
while($rows=mysqli_fetch_assoc($res))
{
$id= $rows['id'];
$Class= $rows['class'];
$Subject= $rows['subj'];
$Day= $rows['days'];
$Salary=$rows['salary'];
$Address=$rows['Location'];
?>
<div class="col-lg-5 p-3 mb-3" id="glass">
<div class="row">
<div class="col-sm-12 text-center"><?php echo $Address ?></div>
</div>
<div
class="col-sm-12 mb-3"
style="background: #09b7ec; height: 5px"
></div>
<div class="row m-3">
<div class="col-sm-6 text-start">Tution id:</div>
<div class="col-sm-6 text-center"><?php echo $id ?></div>
</div>
<div class="row m-3">
<div class="col-sm-6 text-start">Class:</div>
<div class="col-sm-6 text-center"><?php echo $Class ?></div>
</div>
<div class="row m-3">
<div class="col-sm-6 text-start">Subject:</div>
<div class="col-sm-6 text-center"><?php echo $Subject ?></div>
</div>
<div class="row m-3">
<div class="col-sm-6 text-start">Days:</div>
<div class="col-sm-6 text-center"><?php echo $Day ?></div>
</div>
<div class="row m-3">
<div class="col-sm-6 text-start">Salary:</div>
<div class="col-sm-6 text-center"><?php echo $Salary ?> TK</div>
</div>
<div class="row m-3">
<div class="col-sm-6 text-start">Location:</div>
<div class="col-sm-6 text-center"><?php echo $Address ?></div>
</div>
</div>
<?php
}
}
}
?>
</div>
</div>
</div>
</section>
<?php
include('./footer.php')
?>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script
src="https://kit.fontawesome.com/a3324cfcf7.js"
crossorigin="anonymous"
></script>
</body>
</html>