-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.php
152 lines (134 loc) · 5.94 KB
/
history.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
151
152
<?php
require('config/connect.php');
require('config/auth.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UIT.bet</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<nav class="grey darken-4 " role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" href="#" class="brand-logo">UIT.bet</a>
<ul class="right hide-on-med-and-down">
<?php
if (isset($_SESSION['auth_key']) or isset($_SESSION['admin_key'])) {
if (isset($_SESSION['auth_key'])) {
$userid = $_SESSION['uid'] ;
}else{$adminid = $_SESSION['aid'];}
$username = $_SESSION['username'] ;
echo "<li><a class='orange-text' href='userinformation.php'>" ;
echo "Username:".$username;
echo "</a></li>";
echo "<li><a class='orange-text' href='logout.php'>Logout" ;
echo "</a></li><li><i class='material-icons'>language</i></li>";
}else{
echo "<li><a href='dist/registerform.php'>Register</a></li><li><a href='dist2/loginform.php'>Login</a></li><li><i class='material-icons'>language</i></li>" ;
}
?>
</ul>
<ul id="nav-mobile" class="sidenav">
<?php
if (isset($_SESSION['auth_key']) or isset($_SESSION['admin_key'])) {
if (isset($_SESSION['auth_key'])) {
$userid = $_SESSION['uid'] ;
}else{$adminid = $_SESSION['aid'];}
$username = $_SESSION['username'] ;
echo "<li><a class='orange-text' href='userinformation.php'>" ;
echo "Username:".$username;
echo "</a></li>";
echo "<li><a class='orange-text' href='logout.php'>Logout" ;
echo "</a></li><li><i class='material-icons'>language</i></li>";
}else{
echo "<li><a href='dist/registerform.php'>Register</a></li><li><a href='dist2/loginform.php'>Login</a></li><li><i class='material-icons'>language</i></li>" ;
}
?>
</ul>
<a href="" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
</div>
</nav>
<br><br><br>
<center>
<div style='width:90%;margin:0 auto;'>
<div class="row">
<form class="centered">
<h4 class="header center teal-text">Notification Box</h4>
<br><br>
<table>
<thead>
<tr>
<th class="waves-light amber darken-4" font-style="Verdana"></th>
<th class="waves-light amber darken-4" font-style="Verdana">Time</th>
<th class="waves-light amber darken-4" font-style="Verdana">PreferSide</th>
<th class="waves-light amber darken-4" font-style="Verdana">Betted Odd</th>
<th class="waves-light amber darken-4" font-style="Verdana">Amount</th>
<th class="waves-light amber darken-4" font-style="Verdana">Team1</th>
<th class="waves-light amber darken-4" font-style="Verdana">Team2</th>
<th class="waves-light amber darken-4" font-style="Verdana">Result</th>
</tr>
</thead>
<tbody>
<?php
$uid = $_SESSION['uid'] ;
$query = "SELECT * from matches as m left join bet as b on `m`.`MID`=`b`.`MID` where uid='$uid' UNION SELECT * from matches as m right join bet as b on `b`.`MID`=`m`.`MID` where uid='$uid'" ;
$result = mysqli_query($conn,$query) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($result,true)) {
echo "
<tr class='grey darken-4'>
<td ></td>
<td class='white-text'>".$row['time']."</td>
<td class='orange-text'>".$row['prefer_side']."</td>
<td class='orange-text'>".$row['odd']."</td>
<td class='blue-text'>".$row['amount']."</td>
<td class='white-text'>".$row['team_1']."</td>
<td class='white-text'>".$row['team_2']."</td>
<td class='orange-text'>".$row['result']."</td>
</tr>
" ;
}
?>
</tbody>
</table>
</form>
</div>
</div>
</center>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
<br><br><br><br><br><br>
</body>
<footer class="page-footer grey darken-4">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Get the BEST Sports Betting Odds</h5>
<p class="grey-text text-lighten-4">With a dedicated team of experienced professionals from the online sports betting industry, UIT.bet sport has given its customers not only the ability to participate in online football betting and horse racing betting, but also provides the format for online sports betting for practically any market imaginable, from rugby to swimming or even special bets on the winner of the us presidential election to the oscars.</p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="#!">Link 1</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Link 2</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Link 3</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Link 4</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2019 Copyright bar nyr
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
</div>
</div>
</footer>
</html>