mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-15 15:58:40 +00:00
minor html fix / still horrible
This commit is contained in:
parent
0fb7e7821a
commit
4a407f777d
|
|
@ -61,7 +61,7 @@ $unitRoot = $unitTree[null][0]['children'];
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php $c = 0; $toClosePos = 0; while (!empty($posEle)) { $toClosePos = 0; ?>
|
<?php $c = 0; $toClosePos = 0; while (!empty($posEle)) { ?>
|
||||||
<li><ul>
|
<li><ul>
|
||||||
<li><?= $posEle['obj']->getName(); ?>
|
<li><?= $posEle['obj']->getName(); ?>
|
||||||
<li><ul>
|
<li><ul>
|
||||||
|
|
@ -71,7 +71,7 @@ $unitRoot = $unitTree[null][0]['children'];
|
||||||
$parentPos = $posEle['obj'];
|
$parentPos = $posEle['obj'];
|
||||||
|
|
||||||
do {
|
do {
|
||||||
++$toClosePos;
|
|
||||||
$parentPos = $parentPos->getParent();
|
$parentPos = $parentPos->getParent();
|
||||||
$parentPosId = $parentPos->getId();
|
$parentPosId = $parentPos->getId();
|
||||||
} while ($parentPosId !== \array_keys($posTree[$depId])[0]
|
} while ($parentPosId !== \array_keys($posTree[$depId])[0]
|
||||||
|
|
@ -83,7 +83,7 @@ $unitRoot = $unitTree[null][0]['children'];
|
||||||
|
|
||||||
$posEle = [];
|
$posEle = [];
|
||||||
} // if no more children go back to parrent?>
|
} // if no more children go back to parrent?>
|
||||||
<?= \str_repeat('</ul>', $toClosePos); ?>
|
<?= \str_repeat('</ul>', $toClosePos*2); ?>
|
||||||
<?php
|
<?php
|
||||||
if (isset($posTree[$depId][$parentPosId ?? 0])) {
|
if (isset($posTree[$depId][$parentPosId ?? 0])) {
|
||||||
$posEle = $posTree[$depId][$parentPosId]['children'][$posTree[$depId][$parentPosId]['index'] + $c + 1] ?? [];
|
$posEle = $posTree[$depId][$parentPosId]['children'][$posTree[$depId][$parentPosId]['index'] + $c + 1] ?? [];
|
||||||
|
|
@ -93,7 +93,7 @@ $unitRoot = $unitTree[null][0]['children'];
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" class="childdepartment">
|
||||||
<?php
|
<?php
|
||||||
// find the closest parent who has un-rendered children
|
// find the closest parent who has un-rendered children
|
||||||
$toCloseDep = 0;
|
$toCloseDep = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user