* Optimize code for radio button.

This commit is contained in:
liumengyi
2023-02-24 04:28:51 +00:00
parent b9e400b4a0
commit eef6386ad9
+1 -1
View File
@@ -50,7 +50,7 @@
<?php
foreach($lang->programplan->typeList as $key => $value)
{
$label = "<label class='radio-inline'><input type='radio' name='executionType' value='{$key}'" . ($key == $executionType ? " checked='checked'" : '') . "id='product{$key}'>{$value}</label>";
$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);
}
?>