// (*) you need to tune the image size, which is wrong, as the image should rather be bottom-aligned
function plekit_linetabs ($tabs, $id=NULL) {
+ // do not output anything if $tabs has no entry (unpleasant rendering)
+ if (empty ($tabs)) return;
$active_line_tab=$_GET['active_line_tab'];
// need id to pass to the onclick function attached to the input buttons
$id="linetabs";
if ( ! $values) $values = array();
if ($url_values) $values = array_merge($values,$url_values);
if ( $values ) foreach ($values as $key=>$value) {
- print "<input type='hidden' name='$key' value='$value' />";
+ if ($key != "active_line_tab")
+ print "<input type='hidden' name='$key' value='$value' />";
}
print "<input type='hidden' name='active_line_tab' value='$label' />";
if ($label == $active_line_tab) $tracer = "class='linetabs-submit active'";