* * Optimize code for create waterfallplus execution.

This commit is contained in:
liumengyi
2023-02-24 05:06:14 +00:00
parent eef6386ad9
commit 137dcf1e9a
2 changed files with 11 additions and 4 deletions
+10 -3
View File
@@ -48,10 +48,17 @@
<div class='methodTitle'><strong><?php echo $lang->programplan->subPlanManage . ':'?></strong></div>
<div class='type-list-radio'>
<?php
foreach($lang->programplan->typeList as $key => $value)
if(count($lang->programplan->typeList) > 1)
{
$label = "<label class='radio-inline'><input type='radio' name='executionType' value='{$key}'" . ($key == $executionType ? " checked='checked'" : '') . ">{$value}</label>";
echo html::a($this->createLink('programplan', 'create', "projectID=$project->id&productID=$productID&planID=$planID&type=$key"), $label);
foreach($lang->programplan->typeList as $key => $value)
{
$label = "<label class='radio-inline'><input type='radio' name='executionType' value='{$key}'" . ($key == $executionType ? " checked='checked'" : '') . ">{$value}</label>";
echo html::a($this->createLink('programplan', 'create', "projectID=$project->id&productID=$productID&planID=$planID&type=$key"), $label);
}
}
else
{
echo zget($lang->programplan->typeList, $executionType);
}
?>
</div>