-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
115 lines (86 loc) · 3.62 KB
/
Copy pathindex.php
File metadata and controls
115 lines (86 loc) · 3.62 KB
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
<?php
include('header.php');
$round;
$competition;
$seconds=$config["seconds_to_closing_time"];
$players = null;
$round = $config['current_round'];
$json = $apiAccess->accessApi("/users/$userId/teams/$round","GET");
if($json["error"]==false){
$players = $json["data"]["players"];
}
$json = $apiAccess->accessApi("/rounds/last","GET");
$points = null;
$id = null;
if($json["error"]==false){
if($userId!=null){
$points = $json["data"]["results"][$userId]["points"];
}
$id = $json["data"]["id"];
}
$id_user_stand = -1;
if($userId!=null){
$id_user_stand = $userId;
}
include('error-box.php');
?>
<div class="home_page container-fluid">
<div class="row">
<div class="first_row_home">
<div class="col-md-8">
<?php if($userId!=null){ ?>
<div class="box_home">
<div class="welcome three_quarter" <?php if($players==null) echo "onclick=\"javascript:location.href='maketeam.php'\""; ?> >
Benvenuto <?php echo $username; ?><br>
<?php
if($config["last-round"] != 0){ ?>
<span class="minor">Hai totalizzato <span class="punti_highlight"><?php echo $points; ?></span> punti nella <?php echo $id; ?>° Giornata<br>
<?php
}
if($players!=null){ ?>
Hai già inserito la Formazione per la <?php echo $config['current_round'] ?>° Giornata
<?php }else{ ?>
Devi inserire la Formazione per la <?php echo $config['current_round'] ?>° Giornata
<?php } ?>
</span>
</div>
</div>
<?php }else{ //if non loggato ?>
<div class="welcome not_logged three_quarter box_home" > <!-- onclick="javascript:location.href='signup.php'" -->
Benvenuto sul sito del Fanta Zenit<!--<br><span class="click_to_reg">Clicca qui per farlo!</span>-->
</div>
<?php } ?>
</div>
<div class="col-md-4 margin-10-when-resize">
<div class="box_home">
<div class="count_closing_time one_quarter">
<div class="name_market">Termine Inserimento Formazioni</div>
<div id="clock"></div>
</div>
</div>
</div>
</div>
</div>
<?php if($id!=null && $id!=0){ ?>
<div class="row">
<div class="third_row_home row_home">
<div class="col-md-6">
<div class="standings_last_round box_home">
<div class="name_market">Classifica della <?php echo $id; ?>° Giornata</div>
<?php echo getStandingsRoundByIdUser($id_competition,$id,$id_user_stand); ?>
</div>
</div>
<div class="col-md-6">
<div class="standings_general box_home">
<div class="name_market">Classifica Generale del Fanta Zenit</div>
<?php echo getStandingsByIdUser($id_competition,$id_user_stand); ?>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<script>
<?php echo "countTo(\"".$seconds."\");"; ?>
</script>
<?php include('footer.php'); ?>