-
Notifications
You must be signed in to change notification settings - Fork 1
/
sch_match.php
150 lines (121 loc) · 3.81 KB
/
sch_match.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
<?php
require 'steamauth/steamauth.php';
include_once 'db_connect.php';
include_once 'session_details.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/sch_match.css" rel="stylesheet">
<link href="css/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/pace.css" rel="stylesheet">
<script src="bootstrap/js/pace.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="bootstrap/js/jquery.min.js" type="text/javascript"></script>
<title>Home - GIC </title>
<script>
$(document).ready(function() {
var num = 80;
$(window).scroll(function() {
//if you hard code, then use console
//.log to determine when you want the
//nav bar to stick.
console.log($(window).scrollTop())
if ($(window).scrollTop() > num) {
$('#header-inner').addClass('navbar-fixed');
}
if ($(window).scrollTop() < num) {
$('#header-inner').removeClass('navbar-fixed');
}
});
});
</script>
</head>
<body>
<header>
<div id="header-inner">
<a href="index.php" id="logo"></a>
<nav>
<a href="#" id="menu-icon"></a>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="servers.php">Servers</a></li>
<li><a href="download.php">Downloads</a></li>
<li><a href="bans/">Sourcebans</a></li>
<li><a href="about.php">About us</a></li><br>
<div id="login">
<?php
if(!isset($_SESSION['steamid'])) {
header("location:index.php");//login button
} else {
include ('steamauth/userInfo.php'); //To access the $steamprofile array
//Protected content
?>
<div class="dropdown">
<?php echo "<img src='".$_SESSION['steam_avatar']."'>"; ?>
<div class="dropdown-content">
<a href="profile.php" class="drop">Dashboard</a>
<a href="clans.php" class="drop">Clans</a>
<a href="#" class="drop">
<?php logoutbutton(); } ?>
</a>
</div>
</div>
</div>
</ul>
</nav>
</div>
</header>
<div id="title_quote">
<h1>[ Be So Good They Can't Ignore You ]</h1>
<h3>GIC</h3>
<h4>Presents</h4>
</div>
<div id="title_div">
<img src="images/fight.png" id="title_image">
</div>
<div id="title_form">
<form method="post">
<input type="text" placeholder="<?php echo $_SESSION['clanid']; echo " -- ";echo $_SESSION['clan_name']; ?>" disabled><br>
<h3>vs</h3>
<select name="clanid">
<?php
include 'db_connect.php';
$qu="select clan_name from clans";
$result=mysqli_query($db,$qu);
while($row=mysqli_fetch_array($result)){
?>
<option><?php echo $row[0];?></option>
<?php } ?>
</select>
<br><br>
<h4>Choose Date: (dd/mm/yyyy)</h4><br>
<input type="date"><br>
<br> Select time: <br>
<select name="time">
<option value="1">1</option>
<option value="1">2</option>
<option value="1">3</option>
<option value="1">4</option>
<option value="1">5</option>
<option value="1">6</option>
<option value="1">7</option>
<option value="1">8</option>
<option value="1">9</option>
<option value="1">10</option>
<option value="1">11</option>
<option value="1">12</option>
</select>
<select name="ampm">
<option value="1">am</option>
<option value="1">pm</option>
</select><br><br>
<input type="submit" value="Submit" name="sub">
<br><br>
</form>
</form>
</div>
</body>
</html>