-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-select.php
147 lines (130 loc) · 6 KB
/
admin-select.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
<?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: admin_login.php");
exit;
}
include 'config.php';
error_reporting(0);
$id = $_POST['title_id'];
?>
<!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 | SIH</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="active nodeHover" href="admin.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="admin-final-part.php">Final-Participants</a></li>
<li><a class="nodeHover" href="lab-students.php">Lab-wise Participants</a></li>
<li><a class="btn login-button nodeHover" href="admin_logout.php">Logout</a></li>
</ul>
</nav>
<section class="prob-home" id="home">
<h1>REVIEW PARTICIPANT<span>'</span>S</h1>
<ul class="responsive-table">
<li class="table-header">
<div class="col col-1">Team</div>
<div class="col col-2">Leader Email</div>
<div class="col col-3">Problem Code</div>
<div class="col col-4">Abstract Link</div>
<div class="col col-5">Status</div>
</li>
</ul>
<?php
$sql = "SELECT * FROM final_participants WHERE problem = $id and status = 'Initiated'";
$result = mysqli_query($link, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) { ?>
<ul class="responsive-table">
<li class="table-row">
<div class="col col-1" data-label="Team: "><?php echo $row['team'] ?></div>
<div class="col col-2" data-label="Leader Email: "><?php echo $row['email'] ?></div>
<div class="col col-3" data-label="Problem Code: "><?php echo $row['problem'] ?></div>
<div class="col col-4" data-label="Abstract Link: "><a href="<?php echo $row['link'] ?>" target="_blank" rel="noreferrer noopener">Click Here! </a></div>
<div class="col col-5 accept-reject" data-label="Status: ">
<form action="review-final.php" method="POST">
<input type="hidden" name="team" value="<?php echo $row['team'] ?>" />
<input type="hidden" name="id" value="<?php echo $id ?>" />
<button class="accept" name="accept" onclick="return confirm('Are you sure you want to Accept?')"><i class="fa fa-check accept" aria-hidden="true"></i></button>
</form>
<form action="review-final.php" method="POST">
<input type="hidden" name="team" value="<?php echo $row['team'] ?>" />
<button class="reject" name="reject" onclick="return confirm('Are you sure you want to Reject?')"><i class=" fa fa-close reject" aria-hidden="true"></i></button>
</form>
</div>
</li>
</ul>
<?php }
} else {
?>
<center>
<h3 class="no-record"><?php echo "No records found."; ?></h3>
</center>
<?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>