* Hide the entry to manage product lines when exists product lines

This commit is contained in:
wumo
2018-04-03 15:30:02 +08:00
parent 88a06cc0e0
commit d3b4f05f70
+8 -5
View File
@@ -36,11 +36,14 @@
<div class='input-group' id='lineIdBox'>
<?php
echo html::select('line', $lines, '', "class='form-control chosen'");
echo "<span class='input-group-addon'>";
echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line"), $lang->tree->manageLine, '_blank');
echo '&nbsp; ';
echo html::a("javascript:loadProductLines({$rootID})", $lang->refresh);
echo '</span>';
if(count($lines) == 1)
{
echo "<span class='input-group-addon'>";
echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line"), $lang->tree->manageLine, '_blank');
echo '&nbsp; ';
echo html::a("javascript:loadProductLines({$rootID})", $lang->refresh, "class='refresh'");
echo '</span>';
}
?>
</div>
</td>