This commit is contained in:
Roland Gruber 2010-06-13 15:11:01 +00:00
parent 9c66ff5a9f
commit e852bd0194
3 changed files with 31 additions and 14 deletions

View File

@ -677,6 +677,10 @@ class lamList {
*/ */
protected function listPrintHeader() { protected function listPrintHeader() {
include '../main_header.php'; include '../main_header.php';
echo '<script type="text/javascript">';
echo "jQuery('#tab_$this->type').addClass('ui-tabs-selected');";
echo "jQuery('#tab_$this->type').addClass('ui-state-active');";
echo '</script>';
} }
/** /**

View File

@ -70,17 +70,27 @@ while ($jsEntry = $jsDir->read()) {
<td width="200" align="right" height=20><a href="<?php echo $headerPrefix; ?>logout.php" target="_top"><img alt="logout" src="<?php echo $headerPrefix; ?>../graphics/exit.png">&nbsp;<big><b><?php echo _("Logout") ?></b></big></a></td> <td width="200" align="right" height=20><a href="<?php echo $headerPrefix; ?>logout.php" target="_top"><img alt="logout" src="<?php echo $headerPrefix; ?>../graphics/exit.png">&nbsp;<big><b><?php echo _("Logout") ?></b></big></a></td>
</tr> </tr>
</table> </table>
<p align="center"> <br>
<?php <div id="headerTabs" class="ui-tabs">
$linkList = array(); <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix">
if ($_SESSION['config']->get_Suffix('tree') != "") { <?php
$linkList[] = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png">&nbsp;<big>' . _("Tree view") . '</big></a>' . "\n"; $linkList = array();
} if ($_SESSION['config']->get_Suffix('tree') != "") {
for ($i = 0; $i < sizeof($types); $i++) { $link = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png">&nbsp;<big>' . _("Tree view") . '</big></a>' . "\n";
$linkList[] = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' . echo '<li id="tab_tree" class="ui-state-default ui-corner-top">';
'<img alt="' . $types[$i] . '" src="' . $headerPrefix . '../graphics/' . $types[$i] . '.png">&nbsp;' . echo $link;
'<big>' . getTypeAlias($types[$i]) . '</big></a>'; echo "</li>\n";
} }
echo implode("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n", $linkList); for ($i = 0; $i < sizeof($types); $i++) {
?> $link = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' .
</p><hr><br> '<img alt="' . $types[$i] . '" src="' . $headerPrefix . '../graphics/' . $types[$i] . '.png">&nbsp;' .
getTypeAlias($types[$i]) . '</a>';
echo '<li id="tab_' . $types[$i] . '" class="ui-state-default ui-corner-top">';
echo $link;
echo "</li>\n";
}
?>
</ul>
</div>
<br>

View File

@ -53,6 +53,9 @@ function resizeIframe() {
}; };
document.getElementById('treeframe').onload = resizeIframe; document.getElementById('treeframe').onload = resizeIframe;
window.onresize = resizeIframe; window.onresize = resizeIframe;
jQuery('#tab_tree').addClass('ui-tabs-selected');
jQuery('#tab_tree').addClass('ui-state-active');
</script> </script>