codeReview

This commit is contained in:
sunjun
2022-06-17 05:05:44 +00:00
parent 2ee46ee784
commit fec9f4f1dd
2 changed files with 6 additions and 20 deletions
+3 -10
View File
@@ -185,19 +185,12 @@
<?php if($execution->projectInfo->grade > 1):?>
<i class='icon icon-program text-muted'></i>
<?php
$end = end($programList);
reset($programList);
$names = '';
foreach($programList as $id => $name)
{
if($name != $end)
{
echo common::hasPriv('program', 'product')? html::a($this->createLink('program', 'product', "programID=$id"), $name) . '/ ' : $name . '/ ';
}
else
{
echo common::hasPriv('program', 'product') ? html::a($this->createLink('program', 'product', "programID=$id"), $name) : $name;
}
$names .= common::hasPriv('program', 'product')? html::a($this->createLink('program', 'product', "programID=$id"), $name) . '/ ' : $name . '/ ';
}
echo rtrim($names, '/ ');
?>
<?php endif;?>
</div>