-
Notifications
You must be signed in to change notification settings - Fork 2
/
hxvit.php
151 lines (120 loc) · 6.36 KB
/
hxvit.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
<!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>
<?php
include 'funcs.php';
include 'navbar.php';
///backend code to Help/Volunteer
if (isset($_POST['name'])) {
# code...
$name = $_POST['name'];
$contact = $_POST['contact'];
$description = $_POST['description'];
addHelpline($_POST['name'],$_POST['description'], $_POST['contact']);
echo ' <div class="row">
<div class="grid-example col s12 l12 m12 center-align"><span class="flow-text">Thankyou for your support. Your response is recorded and would be shown in our database. <a href = "index.php" >Go Back</a></span></div></div>';
}
else {
?>
<body>
<?php
include 'analyticstracking.php';
?><title>ReliefChennai-An initiative by VIT'ains</title>
<br><br>
<div class="row ">
<div class="col s12 m4 l3 hide-on-med-and-down"> <!-- Note that "m4 l3" was added -->
<!-- Grey navigation panel
This content will be:
3-columns-wide on large screens,
4-columns-wide on medium screens,
12-columns-wide on small screens -->
<div class="collection">
<a href="find-ngo.php" class="collection-item">Locate NGO/Help<span class="badge">'; echo NumberOfPeopleWhoAreHelping(); echo '</span></a>
<a href="help-needed.php" class="collection-item">Help Needed<span class="badge">'; echo NumberOfPeopleWhoWantHelp(); echo '</span></a>
<a href="need-help.php"class="collection-item" >Request Help</a>
<a href="livestatus.php"class="collection-item" >Live Status</a>
<a href="safe.php" class="collection-item">Find Safe Place</a>
<a href="raillines.php" class="collection-item">Petrol and Train Services</a>
<a href="add-ngo.php" class="collection-item">Help/Volunteer</a>
<a href="donate.php"class="collection-item" >Donate</a>
<a href="news.php"class="collection-item" >Follow the news</a>s
<a href="helpline.php" class="collection-item">Helpline</a> <!-- Dropdown Trigger -->
<a class="collection-item" data-beloworigin="true" href="#!" ><span>Emergency<i class="material-icons right">arrow_drop_down</i></span></a>
<ul>
<li><a href="#!">Fire & rescue : <p>101</p></a></li>
<li class="divider"></li>
<li><a href="#!">Electricity : <p>1912</p></a></li>
<li class="divider"></li>
<li><a href="#!">District Emergency: <p>1077</p></a></li>
<li class="divider"></li>
<li><a href="#!">State Emergency:<p> 1070 </p></a></li>
</ul>
</div>
</div>
<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 -->
<div class="row">
<div class="grid-example col s12"><span class="flow-text">If you want to help, please fill up the form</span></div>
</div>
<div class="row">
<form class="col s12" id = "addNGO" method = "POST" action = "hxvit.php">
<div class="row">
<div class="input-field col s6">
<input name = "name" placeholder="Please enter your name or NGO name" id="first_name" type="text" class="validate" required>
<label for="first_name">HelpLine Title</label>
</div>
<div class="row">
<div class="input-field col s6">
<input name = "contact" placeholder="Please enter your Contact Number" id="first_name" type="text" class="validate" required>
<label for="first_name">Contact</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<textarea name = "description" id="textarea1" class="materialize-textarea"></textarea>
<label for="textarea1">Description</label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn" id= "submitForm">Submit</a>
</form>
</div>
</div>
</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>
<script type="text/javascript">
document.getElementById("submitForm").onclick = function() {
document.getElementById("addNGO").submit();
}
</script>
</body>
</html>
<?php
}
?>