From b5ede7f50a8c0719ea1b9fc554dc45d112c937e6 Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Thu, 5 Nov 2020 14:35:38 -0300 Subject: scoretable.php: Fixes from 2018 Signed-off-by: Bruno Ribas --- src/scoretable.php | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'src/scoretable.php') diff --git a/src/scoretable.php b/src/scoretable.php index 2010bc1..c56225a 100644 --- a/src/scoretable.php +++ b/src/scoretable.php @@ -78,11 +78,11 @@ if(!ValidSession()) { $loc = $_SESSION["loc"]; if(!isset($detail)) $detail=true; if(!isset($final)) $final=false; -$scoredelay["admin"] = 10; -$scoredelay["score"] = 60; -$scoredelay["team"] = 30; -$scoredelay["judge"] = 20; -$scoredelay["staff"] = 30; +$scoredelay["admin"] = 2; +$scoredelay["score"] = 30; +$scoredelay["team"] = 10; +$scoredelay["judge"] = 3; +$scoredelay["staff"] = 2; $actualdelay = 30; if(isset($scoredelay[$_SESSION["usertable"]["usertype"]])) $actualdelay = $scoredelay[$_SESSION["usertable"]["usertype"]]; $ds = DIRECTORY_SEPARATOR; @@ -227,7 +227,8 @@ if($redo) { $strtmp .= "
As of $hor minutes. Next: "; for($h=-30; $h<40; $h+=10) { if($hor+$h>=0 && $h!=0) { - $strtmp .= ""; + $strtmp .= ""; +// $strtmp .= ""; if($h>0) $strtmp .= "+"; $strtmp .= "$h "; } @@ -247,7 +248,7 @@ if($redo) { } $lin = trim($lin[0]); if($lin=='') continue; - if($fta) { $fta=false; $strtmp .= "
\"\" Available scores: \n"; } + //if($fta) { $fta=false; $strtmp .= "
\"\" Available scores: \n"; } $grname=explode(' ',$lin); $class=1; reset($score); @@ -270,8 +271,15 @@ if($redo) { } } + + if($class>1) { + if($fta) { $fta=false; $strtmp .= "
\"\" Available scores: \n"; } + $strtmp .= "" . $grname[0] . " "; + } +/* if($class>1) $strtmp .= "" . $grname[0] . " "; +*/ } $strtmp .= "
\n"; } else { @@ -324,9 +332,9 @@ if($redo) { else $strtmp .= " " . $score[$e]["username"]."/".$score[$e]["usersitename"] . " "; - if($score[$e]['usershortinstitution'] != '') - $strtmp .= "[" . $score[$e]['usershortinstitution'] . '] ' . $score[$e]["userfullname"]; - else + // if($score[$e]['usershortinstitution'] != '') + // $strtmp .= "[" . $score[$e]['usershortinstitution'] . '] ' . $score[$e]["userfullname"]; + // else $strtmp .= "" . $score[$e]["userfullname"]; // } $_SESSION["scorepos"][$score[$e]["username"]."-".$score[$e]["site"]] = $cg2; -- cgit v1.2.3