forked from akanksha-raghav/SIH-NEW-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
136 lines (118 loc) · 2.98 KB
/
index.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
<?php
session_start();
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first";
header('location: login.php');
}
if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['username']);
header("location: login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="name">
<img src="8.jpg" style="width:270px;height=200px;" align="left">
</div>
<div class="content" align="right">
<!-- notification message -->
<?php if (isset($_SESSION['success'])) : ?>
<div class="error success" >
<h3>
<?php
echo $_SESSION['success'];
unset($_SESSION['success']);
?>
</h3>
</div>
<?php endif ?>
<!-- logged in user information -->
<?php if (isset($_SESSION['username'])) : ?>
<p>Welcome <strong><?php echo $_SESSION['username']; ?></strong></p>
<p > <a href="health.html" style="color: red;">logout</a> </p>
<?php endif ?>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="a" style="max-width:300px">
<img class="mySlides" src="2.jpg" style="width:1350px;height=500px;">
<img class="mySlides" src="2.jpg" style="width:1350px;height=500px;">
</div>
<script>
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 2000); // Change image every 2 seconds
}
</script>
<br>
<br>
<br>
<div onclick="window.open('search.html','mywindow');" style="cursor: pointer;">
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="aa.jpg" alt="Avatar" style="width:300px;height:250px;">
</div>
<div class="flip-card-back">
<h1>BLOOD</h1>
<p>MANAGEMENT</p>
<p>CORNER</p>
</div>
</div>
</div>
</div>
<div onclick="window.open('medicine.html','mywindow');" style="cursor: pointer;">
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="ab.jpg" alt="Avatar" style="width:300px;height:250px;">
</div>
<div class="flip-card-back">
<h1>MEDICINE</h1>
<p>MANAGEMENT</p>
<p>CORNER</p>
</div>
</div>
</div>
</div>
<div onclick="window.open('search1.html','mywindow');" style="cursor: pointer;">
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="ac.jpg" alt="Avatar" style="width:300px;height:250px;">
</div>
<div class="flip-card-back">
<h1>BLOOD</h1>
<p>DONATION</p>
<p>CORNER</p>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<br>
</body>
</html>