Thursday release
This commit is contained in:
parent
bbec08ac4f
commit
505f3bcd63
7 changed files with 20 additions and 12 deletions
|
|
@ -121,6 +121,10 @@ class Team
|
|||
return $this->team_name;
|
||||
}
|
||||
|
||||
function get_name_url() {
|
||||
return urlencode($this->team_name);
|
||||
}
|
||||
|
||||
function get_auth_level() {
|
||||
return $this->auth_level;
|
||||
}
|
||||
|
|
@ -195,10 +199,10 @@ class Team
|
|||
function get_rank()
|
||||
{
|
||||
$teams = Team::get_top();
|
||||
for ($i = 0; $i < 10; $i++){
|
||||
$tid = $teams[$i]->get_id();
|
||||
if ($tid == $this->id)
|
||||
return $i;
|
||||
foreach($teams as $k => $t)
|
||||
{
|
||||
if ($t->get_id() == $this->id)
|
||||
return $k + 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -232,9 +236,8 @@ class Team
|
|||
$i = 0;
|
||||
if ($ids)
|
||||
{
|
||||
foreach ($ids as $id){
|
||||
foreach ($ids as $id)
|
||||
$array[] = new Exercice($id['id_exercice']);
|
||||
}
|
||||
}
|
||||
|
||||
return $array;
|
||||
|
|
|
|||
|
|
@ -60,6 +60,11 @@ class Theme
|
|||
return $this->name;
|
||||
}
|
||||
|
||||
function get_name_url()
|
||||
{
|
||||
return urlencode($this->name);
|
||||
}
|
||||
|
||||
function get_id()
|
||||
{
|
||||
return $this->id;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
$(document).ready(function() {
|
||||
update_end();
|
||||
$('#carousel-team').carousel({
|
||||
interval: 2000 });
|
||||
interval: 5000 });
|
||||
|
||||
setInterval( function() {
|
||||
update_end();
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
{$total=0}
|
||||
{foreach from=$themes item=theme}
|
||||
<tr>
|
||||
<th>{$theme->get_name()}</th>
|
||||
<th style="padding: 0px">{$theme->get_name()}</th>
|
||||
{$sum=0}
|
||||
{$cpt=0}
|
||||
{$themeID=$theme->get_id()}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
{if not empty($members)}
|
||||
<table class="table">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
<th>Prénom</th>
|
||||
<th>Nom</th>
|
||||
<th>Pseudonyme</th>
|
||||
|
|
|
|||
Reference in a new issue