-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.php
69 lines (60 loc) · 2.73 KB
/
data.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
<?php
include("countries.php");
?>
<!doctype html>
<html>
<head>
<title>How long can I stay?</title>
<meta charset = "UTF-8">
<link rel="icon" href="media/logo.png" type="image/png">
<meta name="viewport" content="width = device-width, initial-scale = 1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Roboto|Roboto+Mono" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<a href = "index.php" class = "headerTitle"><i class = "material-icons icon logo">pin_drop</i>how long can i stay here?</a>
<nav>
<a class = "navA" href = "data.php">Data</a>
<a class = "navA" href = "https://johnsarbak.com">About</a>
</nav>
</header>
<form class = "choose" action = "country.php" method = "GET">
<div class = "cSearch">
<div>
<select name = "destination" class = "search" required>
<option value = "" disabled selected>Choose a country</option>
<?php
foreach ($countries as $key => $value) {
if($key == $destination){
// For selected option.
$temp_str .= '<option value="'.$key.'" selected>'.$value.'</option>';
}
else {
$temp_str .= '<option value="'.$key.'">'.$value.'</option>';
}
}
echo $temp_str;
?>
</select>
<input id = "subSearch" type = "submit" value = "Search" style = "display: none">
</div>
<label for = "subSearch"><i class = "material-icons sIcon">search</i></label>
</div>
</form>
<main>
<h1>Our data</h1>
<p>You can contribute your knowledge about a specific country to our growing database on GitHub. We currently store if a given country is in the Schengen Area, ISO country codes, and visa requirements for US citizens. We believe in keeping things simple, so our database is simply a giant PHP array, so it's easy to jump right in, even if you've never coded before.</p>
<div class = "cols cols2" style = "margin-bottom: 50px;">
<p class = "btn" style = "margin: 0"><i class = "material-icons icon">launch</i>Contribute country data</p>
<p class = "btn" style = "margin: 0"><i class = "material-icons icon">code</i>Contribute code</p>
</div>
<h1>Third-party APIs</h1>
<p>In addition to our database, we use several third-party APIs to provide accurate and up-to-date data.</p>
<h1>Other external resources</h1>
<p>We use several external resources to enhance your experience: Google Fonts, Google's Jquery CDN, and JSDelivr's MomentJS CDN.</p>
<h1>Disclaimer</h1>
<p>This resource is not guaranteed to be acurate, and the information provided is for educational purposes only and without any warranty, or expectation thereof.</p>
</main>
</body>
</html>