Skip to content

Commit

Permalink
Students: tweaked the font sizes in Student ID Cards
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Aug 17, 2023
1 parent 6463f74 commit 32be090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/Students/report_students_IDCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@
echo "<div style='padding: 5px; background-color: rgba(255,255,255,0.3); min-height: 200px'>";
$nameLength = strlen($row['officialName']);
switch ($nameLength) {
case $nameLength > 40: $size = 18; break;
case $nameLength > 30: $size = 22; break;
case $nameLength > 20: $size = 26; break;
case $nameLength >= 30: $size = 16; break;
case $nameLength >= 25: $size = 20; break;
case $nameLength >= 20: $size = 24; break;
default: $size = 26;
}

echo "<div style='font-weight: bold; font-size: ".$size."px'>".$row['officialName'].'</div><br/>';
echo "<div style='font-weight: bold; font-size: ".$size."px !important;'>".$row['officialName'].'</div><br/>';
echo '<b>'.__('DOB')."</b>: <span style='float: right'><i>".Format::date($row['dob']).'</span><br/>';
echo '<b>'.$session->get('organisationNameShort').' '.__('ID')."</b>: <span style='float: right'><i>".$row['studentID'].'</span><br/>';
echo '<b>'.__('Year/Form')."</b>: <span style='float: right'><i>".__($row['year']).' / '.$row['form'].'</span><br/>';
Expand Down

0 comments on commit 32be090

Please sign in to comment.