-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
102 lines (78 loc) · 3.33 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
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
<?php include "inc/header.php"; ?>
<?php
if(isset($_REQUEST['unsubcribe'])){
$id= $_REQUEST['unsubcribe'];
$ex = $db->delete("DELETE FROM newsletter WHERE uid='$id'");
if($ex){
Format::goto("index.php?msg=Unsubscibed");
}
}
?>
<div class="container-fluid">
<div id="section1" class="container-fluid bg-dark text-white rounded" style="padding-top:70px;padding-bottom:70px">
<center><h1>Welcome to The <?php echo web("web_title");?></h1></center>
<p>Hello welcome to the math contest. Here you find many math challanges!.</p>
<div class="alert alert-dark">
<center>
<!--
<div class="m-dropdown">
<span>Mouse over me</span>
<div class="m-dropdown-content">
<p>Hello World!</p>
</div>
</div>
-->
<h2>Solve Problems</h2>
<?php
if(($GetDatawCon) || ($GetDataCon) )
{
?>
<a href="problem.php?CategoryID=Daily Math Challenge&LinkID=<?php echo $GetData['problem']; ?>"><span class ="m-btn waves-effect"><strong>Daily Math Challange</strong></span></a>
<a href="problem.php?CategoryID=Weekly Math Challenge&LinkID=<?php echo $GetDataw['problem']; ?>"><span class ="m-btn waves-effect"><strong>Weekly Math Challange</strong></span></a>
<!--
<a href="problem.php?CategoryID=Daily Math Challenge&LinkID=<?php echo $GetData['problem']; ?>"><span class="border border-secondary"><strong>Daily Math Challange</strong></span></a>
<a href="problem.php?CategoryID=Weekly Math Challenge&LinkID=<?php echo $GetDataw['problem']; ?>"><span class="border border-secondary"><strong>Weekly Math Challange</strong></span></a>
-->
</center>
<?php
}
else{
echo "Currently no problem have submitted";
}
?>
</div>
<ul>
<li><strong>Daily Math Challange</strong>: New problem will apear everyday 10pm Central</li>
<li><strong>Weekly Math Challange</strong>: New problem will apear every thursday 10pm Central</li>
</ul>
<h3>How it works!</h3>
<ul>
<li>To submit an answere to a problem, you must <a href="register.php"><strong>register a account</strong></a></li>
<li>You can earn daily & weekly points. </li>
</ul>
<h3>Rules! (You need to know)</h3>
<ul>
<li>You need to have a account </li>
<li>If you play Daily Math Category you will get 2 points</li>
<li>If you play Weekly Math Category you will get 5 points</li>
</ul>
</div>
<br>
<div id="section1" class="container-fluid bg-dark text-white rounded" style="padding-top:70px;padding-bottom:70px">
<center><h1>Are you an Instructor!</h1></center>
<p>If you are a teacher or a math nerd then you can create math contest from here!.</p>
<div class="alert alert-dark">
<center>
<h2>Begin from here</h2>
<a href="instructor.php"><span class="m-btn waves-effect"><strong>Login as a instructor</strong></span></a>
<a href="instructor-register.php"><span class ="m-btn waves-effect"><strong>Register as a instructor</strong></span></a>
</center>
</div>
<h3>How it works!</h3>
<ul>
<li>To create math contest problem , you must <a href="instructor-register.php"><strong>register a account as a instructor</strong></a></li>
<li>Your created contest problem will be live after you submit your contest problem from <a href="instructor-panel.php"><strong>Instructor Panel</strong></a></li>
</ul>
</div>
</div>
<?php include "inc/footer.php"; ?>