new tabs
This commit is contained in:
parent
9c66ff5a9f
commit
e852bd0194
|
@ -677,6 +677,10 @@ class lamList {
|
|||
*/
|
||||
protected function listPrintHeader() {
|
||||
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>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="center">
|
||||
<br>
|
||||
<div id="headerTabs" class="ui-tabs">
|
||||
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix">
|
||||
<?php
|
||||
$linkList = array();
|
||||
if ($_SESSION['config']->get_Suffix('tree') != "") {
|
||||
$linkList[] = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png"> <big>' . _("Tree view") . '</big></a>' . "\n";
|
||||
$link = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png"> <big>' . _("Tree view") . '</big></a>' . "\n";
|
||||
echo '<li id="tab_tree" class="ui-state-default ui-corner-top">';
|
||||
echo $link;
|
||||
echo "</li>\n";
|
||||
}
|
||||
for ($i = 0; $i < sizeof($types); $i++) {
|
||||
$linkList[] = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' .
|
||||
$link = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' .
|
||||
'<img alt="' . $types[$i] . '" src="' . $headerPrefix . '../graphics/' . $types[$i] . '.png"> ' .
|
||||
'<big>' . getTypeAlias($types[$i]) . '</big></a>';
|
||||
getTypeAlias($types[$i]) . '</a>';
|
||||
echo '<li id="tab_' . $types[$i] . '" class="ui-state-default ui-corner-top">';
|
||||
echo $link;
|
||||
echo "</li>\n";
|
||||
}
|
||||
echo implode(" \n", $linkList);
|
||||
?>
|
||||
</p><hr><br>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
|
|
@ -53,6 +53,9 @@ function resizeIframe() {
|
|||
};
|
||||
document.getElementById('treeframe').onload = resizeIframe;
|
||||
window.onresize = resizeIframe;
|
||||
|
||||
jQuery('#tab_tree').addClass('ui-tabs-selected');
|
||||
jQuery('#tab_tree').addClass('ui-state-active');
|
||||
</script>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue