-
Notifications
You must be signed in to change notification settings - Fork 0
/
prob-state.php
156 lines (142 loc) · 5.63 KB
/
prob-state.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
<?php
session_start();
// Check if the user is already logged in, if yes then redirect him to welcome page
if (!isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] !== true) {
header("location: login.php");
exit;
}
include 'config.php';
$sql = "SELECT * FROM problems";
$result = mysqli_query($link, $sql);
?>
<style>
@media screen and (min-width: 640px) {
#mouse-scroll {
display: none;
}
.circle {
display: none;
}
}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/style.css" />
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>BIT'S HACK'22</title>
</head>
<body>
<div class="node" id="node"></div>
<div class="cursor" id="cursor"></div>
<nav>
<div class="logo">
<img src="./assets/logo.png" alt="Logo Image">
<h3>Bannari Amman Institute of Technology</h3>
</div>
<div class="hamburger">
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
</div>
<ul class="nav-links">
<li><a class="nodeHover" href="main.php">Home</a></li>
<li><a class="nodeHover" href="main.php#about">About</a></li>
<li><a class="nodeHover" href="main.php#guidelines">Guidelines</a></li>
<li><a class="active nodeHover" href="prob-state.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="#footer">Contact Us</a></li>
<li><a class="nodeHover" href="profile.php">Profile</a></li>
<li><a class="btn login-button nodeHover" href="logout.php">Logout</a></li>
</ul>
</nav>
<section class="prob-home" id="home">
<h1>PROBLEM STATEMENT<span>'</span>S</h1>
<div id="mouse-scroll">
<div class="mouse" id="about">
<div class="mouse-in"></div>
</div>
<div>
<span class="down-arrow-1"></span>
<span class="down-arrow-2"></span>
<span class="down-arrow-3"></span>
</div>
</div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<?php
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
?>
<div class="container-01">
<div class="neumorphic-card">
<div class="contentBox">
<h4>Problem Code: <?php echo $row['id'] ?></h4>
<h3><?php echo $row['title'] ?></h3>
<p></p>
<div class="title-btn">
<form action="brief.php" method="POST" class="form">
<input type="hidden" name='title_id' value='<?php echo $row['id']; ?>'>
<button href="brief.php"><span>Read More!</span></button>
</form>
<a><span><?php echo $row['count'] ?> / 15 Registered</span></a>
</div>
</div>
</div>
</div>
<?php
}
}
?>
</section>
<footer>
<div id="footer" class="footer-content">
<h3>BIT'S HACK'22</h3>
<p style="width: 50vw;">
<bold style="font-weight: 600;">Hackathon Coordinators:<br></bold> Dr.E.L.Pradeesh/Dr.P.Purusothaman<br>
<bold style="font-weight: 600;">Email: </bold>pradeeshel@bitsathy.ac.in/purusothaman@bitsathy.ac.in<br>
<bold style="font-weight: 600;">Phone: <br></bold> +91 9944820144 / +91 9952013214
</p>
<ul class="socials">
<li></li>
</ul>
<div class="footer-menu">
<ul class="f-menu">
<li><a class="nodeHover" href="main.php#home">Home</a></li>
<li><a class="nodeHover" href="main.php#about">About</a></li>
<li><a class="nodeHover" href="main.php#guidelines">Guidelines</a></li>
<li><a class="nodeHover" href="prob-state.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="profile.php">Profile</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>Created with ❤ by <a class="nodeHover" href="#">Kavinkumar B</a> & <a class="nodeHover" href="#">Monish kumar B</a> </p>
</div>
</footer>
</body>
<!-- partial -->
<script src="./js/script.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.1/TweenMax.min.js'></script>
<script src='https://cdn.jsdelivr.net/gh/hmongouachon/NodeCursor/src/nodecursor-tween.js'></script>
</html>
<script type="text/javascript">
var initCursor = new NodeCursor({
cursor: true,
node: true,
cursor_velocity: 0,
node_velocity: 0.75,
native_cursor: 'none',
element_to_hover: '.nodeHover',
cursor_class_hover: 'disable',
node_class_hover: 'expand',
hide_mode: true,
hide_timing: 2000,
});
</script>