diff options
| -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; |