-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphic.php
376 lines (332 loc) · 16.9 KB
/
graphic.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
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<?php
session_start();
$Islogged=false;
if (isset($_SESSION['email'])){
$Islogged=true;
$type=$_SESSION['userType'];
$username=$_SESSION['username'];
}
require_once ('class.Database.php');
?>
<?php
$db = Database::getInstance();
$connection = $db->getConnection();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="uza - Model Agency HTML5 Template">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title -->
<title>Web-X project</title>
<!-- Favicon -->
<link rel="icon" href="./img/core-img/favicon.ico">
<!-- Core Stylesheet -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Preloader -->
<div id="preloader">
<div class="wrapper">
<div class="cssload-loader"></div>
</div>
</div>
<!-- ***** Top Search Area Start ***** -->
<div class="top-search-area">
<!-- Search Modal -->
<div class="modal fade" id="searchModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<!-- Close Button -->
<button type="button" class="btn close-btn" data-dismiss="modal"><i class="fa fa-times"></i></button>
<!-- Form -->
<form action="index.php" method="post">
<input type="search" name="top-search-bar" class="form-control" placeholder="Search and hit enter...">
<button type="submit">Search</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- ***** Top Search Area End ***** -->
<!-- ***** Header Area Start ***** -->
<header class="header-area">
<!-- Main Header Start -->
<div class="main-header-area">
<div class="classy-nav-container breakpoint-off">
<!-- Classy Menu -->
<nav class="classy-navbar justify-content-between" id="uzaNav">
<!-- Logo -->
<a class="nav-brand" href="index.php"><img src="./img/core-img/logo.png" alt=""></a>
<!-- Navbar Toggler -->
<div class="classy-navbar-toggler">
<span class="navbarToggler"><span></span><span></span><span></span></span>
</div>
<!-- Menu -->
<div class="classy-menu">
<!-- Menu Close Button -->
<div class="classycloseIcon">
<div class="cross-wrap"><span class="top"></span><span class="bottom"></span></div>
</div>
<!-- Nav Start -->
<div class="classynav">
<ul id="nav">
<li><a href="./index.php">Home</a></li>
<li><a href="#">Pages</a>
<ul class="dropdown">
<li><a href="./index.php">- Home</a></li>
<li><a href="./start-exploring.php">- Start Exploring</a></li>
<li><a href="./about.php">- About</a></li>
<li><a href="./services.php">- Services</a></li>
<li><a href="#">- Developer List</a>
<ul class="dropdown">
<li><a href="./allDevelopers.php">- All Developers</a>
<ul class="dropdown">
<li><a href="./android.php">- Android Developing</a></li>
<li class="current-item"><a href="./graphic.php">- Graphic Designing</a></li>
<li><a href="./ios.php">- iOS Developing</a></li>
<li><a href="./website.php">- Website Developing</a></li>
<li><a href="./video.php">- Video Editing</a></li>
</ul>
</li>
<!--li><a href="#">- Dropdown Item</a></li>
<li><a href="#">- Dropdown Item</a></li-->
</ul>
</li>
<li><a href="./portfolio.php">- Portfolio</a></li>
</ul>
</li>
<!--li><a href="./portfolio.php">Portfolio</a></li-->
<li><a href="./about.php">About</a></li>
<li><a href="#">DeveloperList</a>
<ul class="dropdown">
<li><a href="./allDevelopers.php">- All Developers</a></li>
<li><a href="./android.php">- Android Developing</a></li>
<li class="current-item"><a href="./graphic.php">- Graphic Designing</a></li>
<li><a href="./ios.php">- iOS Developing</a></li>
<li><a href="./website.php">- Website Developing</a></li>
<li><a href="./video.php">- Video Editing</a></li>
</ul>
</li>
</ul>
<!-- Profile -->
<div class="get-a-quote" <?php if(!$Islogged){
echo"style='display:none'";
}?>>
<a href="./<?php echo $type?>-profile.php" class="btn uza-btn">Profile </a>
</div>
<!-- Login / Register -->
<div class="login-register-btn mx-3" <?php if($Islogged){
echo "style='display:none'";
}?>>
<a href="login.php">Login<i class="icon_lock-open_alt"></i></a>
</div>
<div class="login-register-btn mx-3" <?php if($Islogged){
echo"style='display:none'";
}?>>
<a href="register.php">Register<i class="icon_gift_alt"></i></a>
</div>
<div class="login-register-btn mx-3" <?php if(!$Islogged){
echo"style='display:none'";
}?>>
<a href="logout.php">LogOut<i class="icon_lock_alt"></i></a>
</div>
<!-- Search Icon -->
<div class="search-icon" data-toggle="modal" data-target="#searchModal">
<i class="icon_search"></i>
</div>
</div>
<!-- Nav End -->
</div>
</nav>
</div>
<?php
if($Islogged){
echo "<p style='text-align:right'>";
echo "<font size='4' color='#6666ff'>";
echo "you logged in as : ";
echo "<b>";
echo $username;
echo "</b></p>";
}
?>
</div>
</header>
<!-- ***** Header Area End ***** -->
<!-- ***** Breadcrumb Area Start ***** -->
<div class="breadcrumb-area">
<div class="container h-100">
<div class="row h-100 align-items-end">
<div class="col-12">
<div class="breadcumb--con">
<h2 class="title">Graphic Designing</h2>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php"><i class="fa fa-home"></i> Home</a></li>
<li class="breadcrumb-item"><a href="#"> DeveloperList</a></li>
<li class="breadcrumb-item active" aria-current="page">Graphic Designing</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<!-- Background Curve -->
<div class="breadcrumb-bg-curve">
<img src="./img/core-img/curve-5.png" alt="">
</div>
</div>
<!-- ***** Breadcrumb Area End ***** -->
<!-- ***** Developer list Area Start ***** -->
<div class="post-content text-center mb-50">
<h2>Our skillful Graphic Designers' List</h2>
</div>
<?php
$query = "SELECT * FROM developer WHERE developer_type='GraphicDesigner'";
$db = Database::getInstance();
$connection = $db->getConnection();
$result_set = mysqli_query($connection,$query);
echo "<div class='uza-blog-area section-padding-80'>";
echo "<div class='container'>";
echo "<div class='row'>";
while ($row=mysqli_fetch_array($result_set,MYSQLI_ASSOC)){
//$query0="SELECT * FROM users WHERE email='{$row['email']}' LIMIT 1";
//$result_set0 = mysqli_query($connection,$query0);
//$user = mysqli_fetch_assoc($result_set0);
$d_email=$row['email'];
echo "<div class='col-12 col-lg-4'>";
echo "<div class='single-blog-post bg-img mb-80' style='background-image: url(./img/bg-img/Graphic_design.jpg);'>";
echo "<div class='post-content'>";
echo "<span class='post-date'><span>";
echo $row['username'];
echo "</span>";
echo "<br>";
echo "Graphic Designer";
echo "</span>";
echo "<a href='#' class='post-title'>";
echo $row['email'];
echo "</a>";
echo "<p>";
echo "Lorem ipsum dolor sit amet, consetetur sadipscing esed diam nonumy eirmod tempor invidunt ut";
echo "</p>";
if(isset($_SESSION['email'])){
echo "<a href='view_developer_profile.php?email=$d_email' class='read-more-btn'>View developer profile <i class='arrow_carrot-2right'></i></a>";
}else{
echo "<a href='login.php' class='read-more-btn'>login to view developers' profiles<i class='arrow_carrot-2right'></i></a>";
}
echo "</div>";
echo "</div>";
echo "</div>";
}
echo "</div>";
echo "</div>";
echo "</div>";
?>
<!-- ***** Developer list Area End ***** -->
<div class="row">
<div class="col-12 text-center">
<a href="#" class="btn uza-btn btn-3">Load More</a>
</div>
</div>
<!-- ***** Footer Area Start ***** -->
<footer class="footer-area section-padding-80-0">
<div class="container">
<div class="row justify-content-between">
<!-- Single Footer Widget -->
<div class="col-12 col-sm-6 col-lg-3">
<div class="single-footer-widget mb-80">
<!-- Widget Title -->
<h4 class="widget-title">Contact Us</h4>
<!-- Footer Content -->
<div class="footer-content mb-15">
<h3>2 729 729</h3>
<p>University of Moratuwa <br> connectin@gmail.com</p>
</div>
<p class="mb-0">Mon - Fri: 9:00 - 19:00 <br>
Closed on Weekends</p>
</div>
</div>
<!-- Single Footer Widget -->
<div class="col-12 col-sm-6 col-lg-3">
<div class="single-footer-widget mb-80">
<!-- Widget Title -->
<h4 class="widget-title">Quick Link</h4>
<!-- Nav -->
<nav>
<ul class="our-link">
<li><a href="about.php">About Us</a></li>
<li <?php if($Islogged){
echo "style='display:none'";
}?>><a href="register.php">Forum Registeration</a></li>
<li <?php if($Islogged){
echo "style='display:none'";
}?>><a href="login.php">Forum LogIn</a></li>
<li <?php if(!$Islogged){
echo"style='display:none'";
}?>><a href="logout.php">LogOut</a></li>
</ul>
</nav>
</div>
</div>
<!-- Single Footer Widget -->
<div class="col-12 col-sm-6 col-lg-3">
<div class="single-footer-widget mb-80">
<!-- Widget Title -->
<h4 class="widget-title">Resources</h4>
<!-- Nav -->
<nav>
<ul class="our-link">
<li><a href="#">Customer Support</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Media & Press</a></li>
<li><a href="#">Our Team</a></li>
</ul>
</nav>
</div>
</div>
<!-- Single Footer Widget -->
<div class="col-12 col-sm-6 col-lg-3">
<div class="single-footer-widget mb-80">
<!-- Widget Title -->
<h4 class="widget-title">About Us</h4>
<p>We are a resourcefull team who interested to working with teams.</p>
<!-- Copywrite Text -->
<div class="copywrite-text mb-30">
<p>© Copyright 2019 <a href="#">Web-X team</a>.</p>
</div>
<!-- Social Info -->
<div class="footer-social-info">
<a href="#" class="facebook" data-toggle="tooltip" data-placement="top" title="Facebook"><i class="fa fa-facebook"></i></a>
<a href="#" class="twitter" data-toggle="tooltip" data-placement="top" title="Twitter"><i class="fa fa-twitter"></i></a>
<a href="#" class="pinterest" data-toggle="tooltip" data-placement="top" title="Pinterest"><i class="fa fa-pinterest"></i></a>
<a href="#" class="instagram" data-toggle="tooltip" data-placement="top" title="Instagram"><i class="fa fa-instagram"></i></a>
<a href="#" class="youtube" data-toggle="tooltip" data-placement="top" title="YouTube"><i class="fa fa-youtube-play"></i></a>
</div>
</div>
</div>
</div>
<div class="row" style="margin-bottom: 30px;">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved<i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://Web-X.com" target="_blank">Web-X</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</div>
</div>
</footer>
<!-- ***** Footer Area End ***** -->
<!-- ******* All JS Files ******* -->
<!-- jQuery js -->
<script src="js/jquery.min.js"></script>
<!-- Popper js -->
<script src="js/popper.min.js"></script>
<!-- Bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- All js -->
<script src="js/uza.bundle.js"></script>
<!-- Active js -->
<script src="js/default-assets/active.js"></script>
</body>
</html>