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