-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathiAmNowSafe.php
107 lines (85 loc) · 3.91 KB
/
iAmNowSafe.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
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<meta charset="utf-8">
<meta name="language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="description" content="Team Relief Chennai | We are a small group of people who took up an initiative to help and rescue people stuck up in floods in Chennai.
" />
<meta name="keywords" content="Chennai, Rains, Floods, pray for chennai, chennai rains, rescue, help, ngo, chennai support, chennai sos, chennai emergency" />
<meta name="distribution" content="Global" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="1 days"/>
<meta name="copyright" content="Relief Chennai"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<?php
include 'analyticstracking.php';
?><title>ReliefChennai-An initiative by VIT'ains</title>
<?php
include 'funcs.php';
include 'navbar.php';
include 'side-bar1.php';
if (isset($_GET['name'])) {
# code...
$nameOfThePerson = $_GET['name'];
$contactNumber = $_GET['contact'];
?>
<div class="col s12 m12 l9"> <!-- Note that "m8 l9" was added -->
<!-- Teal page content
This content will be:
9-columns-wide on large screens,
8-columns-wide on medium screens,
12-columns-wide on small screens -->
<br><br>
<div class="row">
<div class="grid-example col s12 m12 center-align"><span class="flow-text">Mark yourself Safe</span>
</div>
<form action = "iAmNowSafe.php" method = "GET">
<div class="row">
<div class="col s12 l12 m12">
<div class="card white">
<div class="card-content black-text">
<span class="card-title">Name : <?php echo $nameOfThePerson; ?></span>
<p>Contact Number : <?php echo $contactNumber; ?></p>
<div class="row">
<div class="input-field col s12 l6 m12 ">
<input name = "nameWhoSavedYou" placeholder="Please name the person who saved you" id="first_name" type="text" class="validate" >
<label for="first_name">Name who saved you</label>
</div>
</div>
<input type= "hidden" name = "nameWhoIsSafe" value = "<?php echo $nameOfThePerson; ?> ">
<input type= "hidden" name = "numberOfThePersonWhoIsSafe" value = "<?php echo $contactNumber; ?>">
<div class="card-action">
<center><input type = "submit" class="waves-effect waves-light btn"></center>
</div>
</div>
</div>
</div>
</form>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
<?php
}
else if (isset($_GET['numberOfThePersonWhoIsSafe'])) {
iAmSafe($_GET['numberOfThePersonWhoIsSafe']);
if (isset($_GET['nameWhoSavedYou'])) {
# code...
superHero($_GET['nameWhoSavedYou'],$_GET['nameWhoIsSafe']);
# code...
}
}
?>
</html>