-
Notifications
You must be signed in to change notification settings - Fork 0
/
eval_dash.php
156 lines (134 loc) · 5.01 KB
/
eval_dash.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["eval_loggedin"]) && $_SESSION["eval_loggedin"] !== true) {
header("location: evaluators_login.php");
exit;
}
include 'config.php';
error_reporting(0);
$username = $_SESSION["username"];
?>
<!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 | EVALUATE</title>
</head>
<style type="text/css">
.responsive-table .col-1 {
flex-basis: 25%;
}
.responsive-table .col-2 {
flex-basis: 25%;
}
.responsive-table .col-3 {
flex-basis: 25%;
}
.responsive-table .col-4 {
flex-basis: 25%;
}
input {
width: 2vw;
height: 3vh;
border: solid 1px #ccc;
border-radius: 3px;
}
</style>
<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="btn login-button nodeHover" href="admin_logout.php">Logout</a></li>
</ul>
</nav>
<section class="prob-home" id="home">
<h1>EVALUATE PARTICIPANT<span>'</span>S</h1>
<?php
$sql = "SELECT * FROM eval_filter WHERE user = '$username'";
$result = mysqli_query($link, $sql);
if (mysqli_num_rows($result) > 0) {
while ($roww = mysqli_fetch_assoc($result)) {
$prob_id = $roww['prob_id'];
$sqll = "SELECT * FROM problems WHERE id = $prob_id";
$resultt = mysqli_query($link, $sqll);
$row = mysqli_fetch_assoc($resultt);
?>
<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="eval_part.php" method="POST" class="form">
<input type="hidden" name='prob_id' value='<?php echo $row['id']; ?>'>
<button><span>View Participants!</span></button>
</form>
</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="prob-state.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="final-part.php">Final-Participants</a></li>
<li><a class="nodeHover" href="lab-students.php">Lab-Wise-Participants</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>