diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 15:32:44 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 15:32:44 +0000 |
| commit | 4daa575e05da08bf9b21adaf5be7f43b6c2d9805 (patch) | |
| tree | 0ecf41249f4acf6f54ab07f69f21c293198062d2 /src | |
| parent | e39c1320354cc7dee00071726f7d93b5acf58e1d (diff) | |
| download | boca-4daa575e05da08bf9b21adaf5be7f43b6c2d9805.tar.gz boca-4daa575e05da08bf9b21adaf5be7f43b6c2d9805.zip | |
short institution in score
Diffstat (limited to 'src')
| -rw-r--r-- | src/fscore.php | 1 | ||||
| -rw-r--r-- | src/scoretable.php | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/fscore.php b/src/fscore.php index bd803b3..4cadd7d 100644 --- a/src/fscore.php +++ b/src/fscore.php @@ -264,6 +264,7 @@ function DBScoreSite($contest, $site, $verifylastmile, $hor=-1, $data=null) { $resp[$a["usernumber"]]["username"]=$a["username"]; $resp[$a["usernumber"]]["usertype"]=$a["usertype"]; $resp[$a["usernumber"]]["userfullname"]=$a["userfullname"]; + $resp[$a["usernumber"]]["usershortinstitution"]=$a["usershortinstitution"]; $resp[$a["usernumber"]]["userflag"]=$a["userflag"]; $resp[$a["usernumber"]]["totaltime"]=0; $resp[$a["usernumber"]]["totalcount"]=0; diff --git a/src/scoretable.php b/src/scoretable.php index 6ed81af..690d5c1 100644 --- a/src/scoretable.php +++ b/src/scoretable.php @@ -319,7 +319,10 @@ if($redo) { $score[$e]["userflag"] . ".png\"> " . $score[$e]["username"]."/".$score[$e]["site"] . " </td>"; else $strtmp .= " <td nowrap>" . $score[$e]["username"]."/".$score[$e]["site"] . " </td>"; - $strtmp .= "<td>" . $score[$e]["userfullname"]; + if($score[$e]['usershortinstitution'] != '') + $strtmp .= "<td>[" . $score[$e]['usershortinstitution'] . '] ' . $score[$e]["userfullname"]; + else + $strtmp .= "<td>" . $score[$e]["userfullname"]; // } $_SESSION["scorepos"][$score[$e]["username"]."-".$score[$e]["site"]] = $cg2; |