-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
124 lines (110 loc) · 2.63 KB
/
home.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
<?php
session_start();
include('initial/config.php');
if(isset($_SESSION['username'])){
$user = $_SESSION["username"];
$query = "SELECT id FROM user WHERE username='$user'";
$get = mysqli_query($con,$query);
$row = $get->fetch_assoc();
$_SESSION['userLoggedIn'] = $row['id'];
}
else {
header("location: register.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<style type="text/css">
body {
background-color: #000000;
color: white;
}
#result img {
width: 100%;
}
#search {
width: 40%;
margin: 0 auto;
background-color: rgba(0, 0, 0, 0.7);
margin-top: 30px;
text-align: center;
}
.btn {
border: 1px solid white;
border-radius: 10px;
background-color: rgb(0, 0, 0);
color: white;
}
.btn:hover {
background-color: rgba(0, 0, 0, 0.7);
}
.image {
border: 1px solid white;
border-radius: 7px;
padding: 10px;
width: 100%;
height: 420px;
margin-top: 10px;
}
img {
height: 280px;
margin-bottom: 2px;
width: 100%;
}
.more {
margin-top: 10px;
}
hr {
background: #FFFF00;
width: 80%;
}
.dropdown{
margin-top: 100px;
margin-left: 20px;
}
</style>
</head>
<body>
<?php include('navbar.php') ?>
<div class="dropdown" id='activity'>
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Activity
</button>
<div class="dropdown-menu" id="list" aria-labelledby="dropdownMenuButton">
</div>
</div>
<div class="container">
<div id="popularShows" class="row">
</div>
</div>
<hr>
<div class="container" id="search">
<form>
<div class="form-group">
<input type="text" name="title" id="title" class="form-control" placeholder="Search by title">
</div>
<div class="form-group">
<input type="text" name="imdbid" id="imdbid" class="form-control" placeholder="Search by ID">
</div>
<input type="button" class="btn btn-primary" name="submit" value="Search">
</form>
</div>
<div class="container">
<div id="result" class="row">
</div>
</div>
<hr>
<div class="container" style="margin-top:10px;">
<h2>FAVOURITES:</h2>
<div id="favourites" class="row">
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="home.js"></script>
</body>
</html>