So I have replaced the table/td Tab Widget with a more useful code based on <div>.
In file data_templates.php replace with the following code after the 485 line
Code: Select all
$i = 0;
if (isset($template_data_rrds)) {
if (sizeof($template_data_rrds) > 1) {
/* draw the data source tabs on the top of the page */
foreach ($template_data_rrds as $template_data_rrd) {
$i++;
print '
<div
style="
float: left;
border: 1px solid #999;
margin: 0 4px 4px 0;
padding: 2px 4px;
background: ' . (($template_data_rrd['id'] == $_GET['view_rrd']) ? 'silver' : '#DFDFDF') . ';
">
<span class="textHeader">
<a href="' . htmlspecialchars('data_templates.php?action=template_edit&id=' . $_GET['id'] . '&view_rrd=' . $template_data_rrd['id']) . '">' .
$i . ': ' . htmlspecialchars($template_data_rrd['data_source_name']) . '
</a>
<a href="' . htmlspecialchars('data_templates.php?action=rrd_remove&id=' . $template_data_rrd['id'] . '&data_template_id=' . $_GET['id']) . '">
<img src="images/delete_icon.gif" border="0" alt="Delete">
</a>
</span>
</div>' . "\n";
}
} elseif (sizeof($template_data_rrds) == 1) {
$_GET["view_rrd"] = $template_data_rrds[0]["id"];
}
}