/
index.php
118 lines (103 loc) · 3.56 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
<?php
//Use output buffer mode
ob_start();
//Start session
session_start();
//Include database config
require_once("php/config.php");
//Include components;
require_once("php/components.php");
//Include functions;
require_once("php/functions.php");
if($_SERVER["REQUEST_METHOD"] == "POST"){
$userName = sanitizeInput($_POST['userName']);
$password = sanitizeInput($_POST['password']);
if (validateLoginParam($userName, $password)){
login($userName, $password);
} else {
$loginPaneVisibility = "visible";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vancouver Guide</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style/homepage.css" rel="stylesheet" type="text/css">
<link href="style/base.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Petit+Formal+Script' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="scripts/addheaderfooter_jquery.js"></script>
<script src="scripts/popupForms.js"></script>
<script src="scripts/slidepicture.js"></script>
</head>
<!--content-->
<body>
<!--header with logo, navigation-->
<div id="header">
</div>
<div id="slide">
<div id="switchPicture">
<ul id="pictureContainner">
<li>
<img src="images/v51.jpg" alt="slider1">
</li>
<li>
<img src="images/v61.jpg" alt="slider2">
</li>
<li>
<img src="images/v7.jpg" alt="slider3">
</li>
</ul>
</div>
<div id="switchLeft">
</div>
<div id="switchRight">
</div>
</div>
<div id="content">
<div id="galleriesarea">
<div id="studygallery" class="galleries1">
<h2>School Information</h2>
<a href="html/schools.html" title="Study information section">
<img id="schoolPhotos" title="schools" src="images/BCIT/bcit.jpg" alt="study information picture">
</a>
</div>
<div id="galleryText">
<h1><span id="gquout">“</span>Make better choice!</h1>
<div id="bt1"><a href="html/schools.html" title="school Info"><button type="button" class="bt1">Get Start</button></a></div>
</div>
</div>
<div id="livingpart">
<div id="livinggallery" class="galleries">
<h2>Living Information</h2>
<a href="html/livingHomepage.html" title="Living information section">
<img id="livingPhotos" title="living info" src="images/g1.jpg" alt="living information picture">
</a>
</div>
<div id="livingpartText">
<h1><span id="lquote">“</span>Find the most intresting things in this city!</h1>
<div id="bt2">
<a href="html/livingHomepage.html" title="living Info">
<button type="button" class="bt2">Get Start</button>
</a>
</div>
</div>
</div>
</div>
<script src="scripts/switchphotos.js"></script>
<div class="hidden">
<?php
loadLoginForm($mask, $loginPaneVisibility);
?>
</div>
<div id="footer">
</div>
</body>
</html>
<?php
// end output buffering and send our HTML to the browser as a whole
ob_end_flush();
?>