new tabs
This commit is contained in:
parent
9c66ff5a9f
commit
e852bd0194
|
@ -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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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"> <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"> <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"> <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"> <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"> ' .
|
echo $link;
|
||||||
'<big>' . getTypeAlias($types[$i]) . '</big></a>';
|
echo "</li>\n";
|
||||||
}
|
}
|
||||||
echo implode(" \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"> ' .
|
||||||
|
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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue