mirror of
https://github.com/brmlab/brmsklad.git
synced 2025-08-01 22:13:34 +02:00
leading zeros
This commit is contained in:
parent
856717989a
commit
c009154c99
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ foreach (${$pluralVar} as ${$singularVar}):
|
|||
}
|
||||
}
|
||||
if ($isKey !== true) {
|
||||
echo '<td>' . h(${$singularVar}[$modelClass][$_field]) . '</td>';
|
||||
$value = h(${$singularVar}[$modelClass][$_field]);
|
||||
if(is_numeric($value)) $value = sprintf("%02d", $value);
|
||||
echo '<td>' . $value . '</td>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue