/
howitworks.php
184 lines (152 loc) · 4.52 KB
/
howitworks.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
$con=new mysqli('localhost','octo','w3b7ysX6','octo');
if($con->connect_error){
die("Connection failed");
}
session_start();
$isLoggedIn = false;
if(isset($_SESSION['user'])){
$isLoggedIn =true;
$u = $_SESSION['user'];
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width = device-width, initial-scale = 1">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<style>
.jumbotron{
text-align: center;
margin-left: 30%;
margin-right: 30%;
background-color: #282828;
color: white;
}
.page-header,h3{
text-align: center;
}
.logo{
height: 4em;
}
h1{
font-size: 50pt;
}
body{
background-color: #C0C0C0;
}
.nav-item{
padding: 3px 3px;
background-color: #282828;
}
.navbar{
background-color: #282828;
}
footer{
background-color: #282828;
}
.footer_copyright,h5{
color: white;
}
.reviews{
margin-left: 10%;
margin-right: 10%;
text-align: center;
margin-bottom: 5%;
}
.aline{
padding-bottom: 5%;
}
h5{
color: black;
}
</style>
<div class="container">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="homepage.php"><img src="images/mc_logo.png" width="100" height="50" alt="logo">
</a>
</div>
<div id="navbar1" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="howitworks.php">How it Works</a></li>
<li><a href="about.php">About Us</a></li>
<?php
if(!$isLoggedIn){
echo ' <li><a href="regi_form.php">SIGN UP</a></li> ';
echo ' <li><a href="login.php">LOG IN</a></li>';
}
else{
echo '<li><a href = "UserPage.php">'.$u.' Profile</a></li>';
}
?>
</ul>
</div>]
<!--/.nav-collapse -->
</div>
<!--/.container-fluid -->
</nav>
</div>
<div class= page-header>
<h1>How It Works</h1>
</div>
<footer class="page-footer font-small stylish-color-dark pt-4 mt-4">
<div class="container-fluid text-center text-md-left">
<div class="row">
<div class="col-lg-3 col-md-3 col-xs-3 col-sm-3">
<p></p>
<a href="homepage.php"><img src="images/mc_logo.png" width="100" height="50" alt="logo"></a>
</div>
<div class="col-lg-3 col-md-3 col-xs-3 col-sm-3">
<h5 class="text-uppercase mb-4 mt-3 font-weight-bold">Moola Control</h5>
<ul class="list-unstyled">
<li><a href="#!">About Us</a></li>
<li><a href="#!">The Team</a></li>
<li><a href="#!">Partners</a></li>
<li><a href="#!">Careers</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-3 col-xs-3 col-sm-3">
<h5 class="text-uppercase mb-4 mt-3 font-weight-bold">Contact</h5>
<ul class="list-unstyled">
<li><a href="#!">The University of British Columbia Okanagan</a></li>
<li><a href="#!">info@moolacontrol.ca</a></li>
\
</ul>
</div>
<div class="col-lg-3 col-md-3 col-xs-3 col-sm-3">
<h5 class="text-uppercase mb-4 mt-3 font-weight-bold">Connect</h5>
<ul class="list-unstyled">
<li><a href="#!">Facebook</a></li>
<li><a href="#!">Twitter</a></li>
<li><a href="#!">Google Plus</a></li>
</ul>
</div>
</div>
<hr>
<div class="text-center py-3">
<ul class="list-unstyled list-inline mb-0">
<li class="list-inline-item">
<h5 class="mb-1">Register for free</h5>
</li>
<li class="list-inline-item"><a href="regi_form.php" class="btn btn-danger btn-rounded">Sign up!</a></li>
</ul>
</div>
<div class="footer-copyright py-3 text-center" class="footer_copyright" >
<div class="container-fluid">
<p class="footer_copyright" >© 2018 Copyright: COSC 310 Team Octothorpe</p>
</div>
</div>
</div>
</footer>
</html>