-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainpageloggedin.php
141 lines (115 loc) · 7.88 KB
/
mainpageloggedin.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
<?php
session_start();
if(!isset($_SESSION['user_id'])){
header("location: index.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Title of the page -->
<title>Flixathon - Main</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"/>
<!-- Linking external stylesheets -->
<link rel="stylesheet" href="style.css">
<!-- Linking google fonts -->
<link href="https://fonts.googleapis.com/css?family=Arvo&display=swap" rel="stylesheet">
<!-- Linking icons -->
<link rel="icon" href="company-logo.png">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="#"><img src="company-logo.png" class="logo"></a>
<ul class="nav navbar-nav ml-auto">
<!-- <li class="nav-item navbar-right"><button class="btn-info"></button></li> -->
<li class="nav-item dropdown navbar-left">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="https://s3.eu-central-1.amazonaws.com/bootstrapbaymisc/blog/24_days_bootstrap/fox.jpg" width="40" height="40" class="rounded-circle">
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="./mainpageloggedin.php">Dashboard</a>
<a class="dropdown-item" href="./profile-page.php">Edit Profile</a>
</div>
</li>
<li class="nav-item navbar-right"><a class="btn btn-logout" href="./index.php?logout=1">LOGOUT</a></li>
</ul>
</nav>
<div style="margin-top: 100px;" class="container">
<h1 class="welcome-user" style="text-align: center; color: white;">
<span style="background-color: red; padding: 5px; border-radius: 10px;"><?php echo $_SESSION['username']?></span></h1>
</div>
<button onclick="topFunction()" id="myBtn" title="Go to top"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>
<div style="margin-top: 50px; text-align: center;" id="mainpagecontainer" class="container">
<div style="margin-bottom: 50px; text-align: center;">
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" style='border: 1px solid white;' class="btn lists" onclick="window.open('./favorites-page.php', '_self')">FAVORITES</button>
<button type="button" style="border: 1px solid white; margin-left: 10px;" class="btn lists" onclick="window.open('./watched-page.php', '_self')">WATCHED</button>
<button type="button" style="border: 1px solid white; margin-left: 10px;" class="btn lists" onclick="window.open('./bucketlist-page.php', '_self')">BUCKET</button>
</div>
</div>
<!-- <form method="POST" action="searchMovie.php" id="searchform"> -->
<div style="margin-bottom: 30px;" class="input-group">
<span style="background-color: #dedede; border-top-left-radius: 10px; border-bottom-left-radius: 10px;" class="input-group-btn">
<button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
</span>
<input type="text" id="searchquery" class="form-control" name="search" placeholder="Search for movies">
<span style="background-color: #dedede; border-top-right-radius: 10px; border-bottom-right-radius: 10px;" class="input-group-btn">
<button id="search" class="btn btn-default">Search</button>
</span>
</div>
<!-- </form> -->
<div style='min-height: 600px; margin-bottom: 100px;'> <div id='show'></div>
</div>
</div>
<!-- Footer -->
<div style="margin-top: 200px; height: auto; text-align: center;" class="container-fluid">
<div id="footerself">
© Copyright. All rights reserved.
</div>
<div style='margin-top: 5px;' class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="footerbtn"><img id='selfimage' src='./self-image-circle.png'></img></button></button>
<button type="button" style="margin-top: 2px;" class="footerbtn"><span class='foottext' style='color: white;'>Developed by<br></span><span class='foottext' style='color: white;'>Subham Das</span></button>
</div>
<br>
<div style='margin-top: 25px; margin-bottom: 15px;' class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="footerbtn" onclick="window.open('https://github.com/das-jishu')"><img class='footimage' id='github' title='Github' src='./GitHub-Mark-Light-120px-plus.png'></img></button>
<button type="button" class="footerbtn" onclick="window.open('https://www.facebook.com/subham.das.39948')"><img class='footimage' id='facebook' title='Facebook' src='./facebook_logos_PNG19754.png'></img></button>
<button type="button" class="footerbtn" onclick="window.open('https://www.linkedin.com/in/subham-das-51b5bb171/')"><img class='footimage' id='linkedin' title='Linkedin' src='./linkedIn_PNG37.png'></img></button>
<button type="button" class="footerbtn" onclick="window.open('https://twitter.com/lord_danton')"><img class='footimage' id='twitter' title='Twitter' src='./twitter_PNG34.png'></img></button>
</div>
</div>
<!-- Scripts -->
<script>
var mybutton = document.getElementById("myBtn");
//console.log('Active');
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {
scrollFunction();
};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js">
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="./indexscript.js"></script>
<script src="./search.js"></script>
</body>
</html>