-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
executable file
·56 lines (47 loc) · 1.02 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<title>Sockmonkey</title>
<?php
include 'source.php';
include 'src/database.php';
echo $header;
?>
</head>
<body>
<div id='topbar'></div>
<div id='container'>
<?php
echo $topBar;
?>
<?php
session_start();
$sql="SELECT count(*) from participant where pc_college NOT like 'NIT Calicut' AND pc_confirm='Y'";
$arr=dbquery($sql);
$row=pg_fetch_row($arr);
echo "<span style='font-size:40px'>Confirmed Non NITC : ".$row[0]."</span>";
if(!isset($_SESSION['user'])){
echo "
<div class='g'>
<h2>Sign in <strong></strong></h2>
<form method='post' action='login.php'>
<label>
<strong class='email-label'>Username</strong>
<input type='text' value='' id='Email' name='email'>
</label>
<label>
<strong class='passwd-label'>Password</strong>
<input type='password' id='Passwd' name='password'>
</label>
<input type='submit' value='Sign in' name='signIn' class='g-button'>
</form>
</div>";
}
?>
</div><!-- /container -->
<?php
echo $bottomBar;
echo $scripts;
?>
</body>
</html>