-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
168 lines (150 loc) · 6.71 KB
/
home.php
File metadata and controls
168 lines (150 loc) · 6.71 KB
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
<?php
include('functions.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>HACK UMASS VI</title>
<link rel="stylesheet" href="cover.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style-detail.css">
<link rel="stylesheet" type="text/css" href="modal.css">
</head>
<body>
<div class = "wrapper" style="padding-bottom: 50px">
<?php if (isset($_SESSION['user'])) { ?>
<div class="header">
<a href="home.php"><img src="let's%20see.png" class="logo"></a>
<p class="login">
Welcome <strong><?php echo $_SESSION['user']['first']; ?> <?php echo $_SESSION['user']['last']; ?></strong> |
<a href="logout.php">Logout</a>
</p>
</div>
<?php
}
else{
?>
<div class="header">
<a href="home.php"><img src="let's%20see.png" class="logo"></a>
<button type="submit" class="button view_data">Login</button>
</div>
<?php
}
?>
<br>
<div class="flyer"><h1>Let's See</h1>
<p>
We at Let's See are dedicated to provide you with the best experience whenever you visit a place
<br>
Wherever you visit, check Let's See to see the attractions around you
<br>
Be it looking for a restaurant, a hotel, or a convinence store, check Let's See to get the best options
<br>
Let's See has reviews from millions of people who have visited the locations.
<br>
At the same time, Let's See gives you the opportunity to connect to people going to the event at the same time and network.
<br>
<a href="" style="color: black">Join</a> our community and feel the change.
<br>
<br>
Explore
<br>
</p>
</div>
<div>
<a href="restaurants.php"><div style="float: left" class="contentBox">Restaurants<br>
<img src="Dining-512.png" >
</div></a>
<a href="attractions.php"><div style="float: left;" class="contentBox">Attractions
<img src="tent_86208.png">
</div></a>
<a href="events.php"><div style="float: left" class="contentBox">Events<br>
<img src="amusement-1298959_960_720.png">
</div></a>
<a href=""><div style="float: left;" class="contentBox">Hotels
<br>
<img src="hotel1.png">
</div></a>
<br>
<a href=""><div style="float: left" class="contentBox">Schools<br>
<img src="school.jpg">
</div></a>
<a href=""><div style="float: left" class="contentBox">Convenience Stores
<img src="cart-148964__340.png">
</div></a>
<br>
<a href=""><div style="float: left" class="contentBox">Hospitals<br>
<img src="hospital2.png">
</div></a>
<a href=""><div style="float: left;" class="contentBox">Personal Care
<img src="480260044-612x612.jpg">
</div></a>
<a href=""><div style="float: left" class="contentBox">Leisure<br>
<img src="book.png">
</div></a>
</div>
<div class="push"></div>
</div>
<div class="foot">
Created With Love By:
Anushree Jana;
Shreya Sawant;
Akash Munjial<br>
<a href="about.php"><div style="float: left;margin-left: 600px;"><strong>About</strong></div></a>
<a href=""><div style="float: left; margin-left: 50px;"><strong>Contact</strong></div></a>
<a href="Readme.txt"><div style="float: left; margin-left: 200 px">   <strong>Legal</strong></div></a>
</div>
<!--ajax for modal -->
<script>
$(document).ready(function(){
$('.view_data').click(function(){
$.ajax({
method:"post",
success:function(data){
$('#dataModal').modal("show");
}
});
});
});
</script>
<!-- Modal for login -->
<div id="dataModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" align="center">Login:</h4>
</div>
<div class="modal-body" id="success-fail">
<form method="post">
<p> <?php echo display_error(); ?></p>
<div class="input-group">
<label>Username</label>
<input type="text" name="susername">
</div>
<div class="input-group">
<label>Password</label>
<input type="password" name="spassword">
</div>
<div class="input-group">
<button type="submit" class="btn" name="login_btn">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!--<footer>
<div style="height: 80px">
<a href=""><div class="foot button" style="float: left">About</div></a>
<a href=""><div class="foot button" style="float: left">Contact</div></a>
<a href="Readme.txt"><div class="foot button" style="float: right">Legal</div></a>
</div>
</footer>-->
</body>
</html>
<?php
?>