mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-12 10:58:40 +00:00
Fix increment to pre-increment
This commit is contained in:
parent
6d2a99063a
commit
2ae0bc8826
|
|
@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="4">
|
<tr><td colspan="4">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($departments as $key => $value) : $c++;
|
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}hr/department/single?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}hr/department/single?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="5">
|
<tr><td colspan="5">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($employees as $key => $value) : $c++;
|
<?php $c = 0; foreach ($employees as $key => $value) : ++$c;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}hr/staff/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}hr/staff/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user