-
Notifications
You must be signed in to change notification settings - Fork 0
/
phonehome.php
executable file
·94 lines (65 loc) · 3.82 KB
/
phonehome.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
<?php session_start(); ?>
<html>
<head>
<title>HOME </title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="ur motto is: life changer, nation changer and world changer." />
<?php include("include/bootstrap/bootstraplinks.php");?>
</head>
<?php
require("include/db.php");
$adimg = $mysqli->query("SELECT * FROM images");
$count=0;
while($imgdetails = $adimg->fetch_array()){$count++;}
if($count==0){
echo '<body Style="background:red; padding:8px; ">';
}else{
echo '<body Style="background:red; padding:8px; padding-top:52px;">';
}
?>
<?php include("mybanner.php");?>
<div class="container" style=" border:solid white 2px; border-radius:10px; background:rgba(255,255,255,0.7); padding:8px;">
<!-- ############################################################################################################### -->
<!--My Profile-->
<div class="col-sm-offset-4 col-sm-4 " >
<?php
require("include/db.php");
$games = $mysqli->query("SELECT * FROM games ORDER BY date desc,time desc limit 30 ");
while($gamedetails = $games->fetch_array()){
//if status is pending , lost, or won
if($gamedetails['status'] == "upcoming"){
echo '
<table border=0 width=100% style="font-size:10px;font-weight:bold;">
<tr> <td width=25% style="padding:5px;"> '.$gamedetails['time'].' </td> <td width=50%> '.$gamedetails['teamA'].' </td> <td width=25% align="right"> '.$gamedetails['teamAscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['date'].' </td> <td> '.$gamedetails['teamB'].' </td> <td align="right"> '.$gamedetails['teamBscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['league'].' </td> <td style="color:blue;"> '.$gamedetails['tip'].' </td> <td align="right" style="color:blue;"> <span class="pull-left">@ '.$gamedetails['odds'].'</span> <img width=10px height=10px src=img/ajax-loader.gif> </td> </tr>
</table>
<hr />
';
}else if($gamedetails['status'] == "won"){
echo '
<table border=0 width=100% style="font-size:10px;font-weight:bold;">
<tr> <td width=25% style="padding:5px;"> '.$gamedetails['time'].' </td> <td width=50%> '.$gamedetails['teamA'].' </td> <td width=25% align="right"> '.$gamedetails['teamAscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['date'].' </td> <td> '.$gamedetails['teamB'].' </td> <td align="right"> '.$gamedetails['teamBscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['league'].' </td> <td style="color:green;"> '.$gamedetails['tip'].' </td> <td align="right" style="color:green;"> <span class="pull-left">@ '.$gamedetails['odds'].'</span> <span class="glyphicon glyphicon-ok"></span> </td> </tr>
</table>
<hr />
';
}if($gamedetails['status'] == "lost"){
echo '
<table border=0 width=100% style="font-size:10px;font-weight:bold;">
<tr> <td width=25% style="padding:5px;"> '.$gamedetails['time'].' </td> <td width=50%> '.$gamedetails['teamA'].' </td> <td width=25% align="right"> '.$gamedetails['teamAscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['date'].' </td> <td> '.$gamedetails['teamB'].' </td> <td align="right"> '.$gamedetails['teamBscore'].' </td> </tr>
<tr> <td style="padding:5px;"> '.$gamedetails['league'].' </td> <td style="color:red;"> '.$gamedetails['tip'].' </td> <td align="right" style="color:red;"> <span class="pull-left">@ '.$gamedetails['odds'].'</span> <span class="glyphicon glyphicon-remove-sign"></span> </td> </tr>
</table>
<hr />
';
}
}
?>
</div>
<!--end of My Profile-->
<!-- ############################################################################################################### -->
</div>
</body>
</html>