-
Notifications
You must be signed in to change notification settings - Fork 0
/
score.php
146 lines (128 loc) · 3.92 KB
/
score.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
<?php
session_start();
if ($_SESSION['login']==1)
{echo "Welcome ";
echo $_SESSION['username']; }?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="table1.css" rel="stylesheet" />
<link href="menu.css" rel="stylesheet" />
<script src="menu.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?
if(isset($_SESSION['login']))
if ($_SESSION['login']==1)
{ ?> <h6 align="right"> <a href="index.php?t=1" <u>Log Out </u></a></h6> <?php } ?>
<p align="center" >
<img src="image.png" align="top" width="589" height="169">
</p>
<p align="center">
<ul id="sddm">
<li><a href="compete.php"
onmouseover="mopen('m1')"
onmouseout="mclosetime()">Compete</a>
<div id="m1"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<?
$query12="select * from active_competitions";
$red=mysql_query($query12);
if(!$red)
echo "Error";
while($row=mysql_fetch_array($red))
{
echo '<a href="compete.php?competition='.$row['id'].'">'.$row['name'].' </a>';
}
?>
</div>
</li>
<li><a href="home.php"
onmouseover="mopen('m2')"
onmouseout="mclosetime()">Practice</a>
<div id="m2"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<?
$query12="select * from category";
$red=mysql_query($query12);
while($row=mysql_fetch_array($red))
{
echo '<a href="home.php?section='.$row['name'].'">'.$row['name'].' </a>';
}
?>
</div>
</li>
<li><a href="home.php"
onmouseover="mopen('m3')"
onmouseout="mclosetime()">Forum</a>
<li>
<div align="center"><a href="leaderboard.php"
onmouseover="mopen('m4')"
onmouseout="mclosetime()">LeaderBoard</a>
</div>
<div id="m4"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
</div>
</li>
<li><a href="#"
onmouseover="mopen('m5')"
onmouseout="mclosetime()">Score
</a>
<div id="m5"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="myscore.php">My Score</a>
</div>
</li>
<li><a href="credits.php"
onmouseover="mopen('m6')"
onmouseout="mclosetime()">Credits</a>
<div id="m6"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="credits.php">Developers</a>
<a href="sponsors.php">Sponsors</a>
</div>
</li>
<li>
<a href="contacts.php">Contact</a>
</li>
<? if ( isset($_SESSION['login']) && $_SESSION['login']==1 )
{
?>
<li><a href="#"
onmouseover="mopen('m7')"
onmouseout="mclosetime()">Account</a>
<div id="m7"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="change_password.php">Change Password</a>
<a href="View_scorecard.php">View ScoreCard</a>
</div>
</li>
<? if (isset($_SESSION['login']) && $_SESSION['type']=='admin')
{
?><li><a href="#"
onmouseover="mopen('m8')"
onmouseout="mclosetime()">Admin Panel</a>
<div id="m7"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="view_all_users.php">View All users</a>
<a href="Manage_Problem_Sets.php">Manage Problem Sets</a>
<a href="manage_judges">Manage Judges</a>
</div></li>
<?}
?>
<li><a href="index.php?t=1">Log Out</a></li>
<? }?>
</ul>
</p>
<h1>Please solve some problem to increase your Score.<br />Current Score:0</h1>
</body>
</html>