This commit is contained in:
liuhong
2022-08-04 01:10:28 +00:00
parent 4c52cdadb3
commit 868ee2d3fe
+3 -1
View File
@@ -30,7 +30,9 @@
<?php
foreach($productList as $key => $product)
{
echo "<li>" . html::a($this->createLink('programplan', 'create', "projectID=$project->id&productID=$key"), $product) . "</li>";
$class = '';
$class = $productID == $key ? 'class="active"' : '';
echo "<li $class>" . html::a($this->createLink('programplan', 'create', "projectID=$project->id&productID=$key"), $product) . "</li>";
}
?>
</ul>