-
Notifications
You must be signed in to change notification settings - Fork 2
/
departments.php
88 lines (81 loc) · 3.02 KB
/
departments.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
<?php
include 'includes/connection.php';
$sql = "select distinct(dept_name),image_url from Doctor_department";
$result = $conn->query($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href='https://fonts.googleapis.com/css?family=Balthazar' rel='stylesheet'>
<link rel="stylesheet" type="text/css" href="css/JiSlider.css">
<link href='https://fonts.googleapis.com/css?family=Stalinist One' rel='stylesheet'>
<script src = "js/JiSlider.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Autour One' rel='stylesheet'>
<script src = "js/jquery.min.js"></script>
</head>
<body>
<div class = "mynav">
<nav class="navbar navbar-inverse navbar-fix navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" style = "color:black; font-size:1.5em" href="#">WebSiteName</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>
<div class="banner1 jarallax">
<div class="container">
</div>
</div>
<div class="services-breadcrumb" style="padding-top: 1%">
<div class="container">
<ul>
<li><a href="index.html" style="font-family: Balthazar; font-size: 1.4em">Home</a><i>|</i></li>
<li style="font-family: Balthazar; font-size: 1.4em">Departments</li>
</ul>
</div>
</div>
</div>
<div class = "container-fluid">
<!-- dep name card -->
<?php if($result && $result->num_rows > 0){
while(($row = $result->fetch_assoc())){
?>
<div class="col-sm-3">
<div class = "card card-1">
<div style="margin-right: 4%; margin-left: 4%; padding-top: 4%">
<img width="100%" src="<?php echo $row['image_url']; ?>">
<div style="text-align: center;"><h4><a href="#"><?php echo $row['dept_name']; ?></a></h4></div>
</div>
</div>
<?php }
}
?>
</div>
<!-- end -->
</div>
</body>
</html>