2007-10-26 22:44:33 +00:00
|
|
|
<?php
|
2007-10-30 13:05:36 +00:00
|
|
|
|
|
|
|
// This file is no longer used...
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
/*------------------------------------------------------------------------------
|
|
|
|
Create the navigation area on the left.
|
|
|
|
$currentlink is the key of the link to the page
|
|
|
|
that is currently being displayed.
|
|
|
|
------------------------------------------------------------------------------*/
|
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
function insertNav($currentLink) {
|
|
|
|
// A few constants
|
|
|
|
global $TOPDIR; // or could use $GLOBALS['TOPDIR']
|
|
|
|
$colTxt = "Click to collapse section";
|
|
|
|
$exTxt = "Click to expand section";
|
|
|
|
$bulgif = "$TOPDIR/images/h3bg_new.gif";
|
|
|
|
$minusgif = "$TOPDIR/images/minus-sign.gif";
|
|
|
|
$plusgif = "$TOPDIR/images/plus-sign.gif";
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
echo '<div id=nav><table border="0" cellpadding="0" cellspacing="1" width="110">';
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
//Console section
|
2007-10-30 13:05:36 +00:00
|
|
|
insertInner('open', 1,'Console', 'constab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'prefs' => array("$TOPDIR/prefs.php", 'Preferences'),
|
|
|
|
'updategui' => array("$TOPDIR/softmaint/updategui.php", 'Update'),
|
|
|
|
'suggestions' => array("$TOPDIR/suggestions.html", 'Suggestions'),
|
|
|
|
'logout' => array("$TOPDIR/logout.php", 'Logout')
|
|
|
|
));
|
2007-10-30 13:05:36 +00:00
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
// xCAT Cluster section
|
|
|
|
?>
|
|
|
|
<TR><TD id="menu_level1" width="110">
|
2007-10-30 13:05:36 +00:00
|
|
|
<P title="<?php echo $colTxt; ?>" onclick="toggleSection(this,'clustab')" ondblclick="toggleSection(this,'clustab')">
|
2007-10-26 22:44:33 +00:00
|
|
|
<IMG src=<?php echo $minusgif ?> id='clustab-im'> xCAT Cluster
|
|
|
|
</P></TD></TR>
|
|
|
|
<TR><TD>
|
|
|
|
<TABLE id='clustab' cellpadding=0 cellspacing=0 width="110"><TBODY>
|
|
|
|
<TR><TD id="menu_level2"><A href="csmconfig">Settings</A></TD></TR>
|
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
<?php
|
|
|
|
insertInner('open', 2,'Installation', 'installtab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'softmaint' => array("$TOPDIR/softmaint", 'MS Software'),
|
|
|
|
'addnodes' => array("$TOPDIR/addnodes.php", 'Add Nodes'),
|
|
|
|
'definenode' => array("$TOPDIR/definenode.php", 'Define Nodes'),
|
|
|
|
'hwctrl' => array("$TOPDIR/hwctrl/index.php", 'HW Control')
|
|
|
|
));
|
2007-10-30 13:05:36 +00:00
|
|
|
insertInner('open', 2,'Administration', 'admintab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'nodes' => array("$TOPDIR/index.php", 'Nodes'),
|
|
|
|
'layout' => array("$TOPDIR/hwctrl/layout.php", 'Layout'),
|
|
|
|
'dsh' => array("$TOPDIR/dsh.php", 'Run Cmds'),
|
|
|
|
'dcp' => array("$TOPDIR/dcp.php", 'Copy Files'),
|
|
|
|
'cfm' => array("$TOPDIR/cfm.php", 'Sync Files'),
|
|
|
|
'shell' => array("$TOPDIR/shell.php", 'Cmd on MS'),
|
|
|
|
'import' => array("$TOPDIR/import.php", 'Import/Export'),
|
|
|
|
));
|
2007-10-30 13:05:36 +00:00
|
|
|
insertInner('open', 2,'Monitor', 'montab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'conditions' => array("$TOPDIR/mon", 'Conditions'),
|
|
|
|
'responses' => array("$TOPDIR/mon/resp.php", 'Responses'),
|
|
|
|
'sensors' => array("$TOPDIR/mon/sensor.php", 'Sensors'),
|
|
|
|
'rmcclass' => array("$TOPDIR/mon/rmcclass.php", 'RMC Classes'),
|
|
|
|
'auditlog' => array("$TOPDIR/mon/auditlog.php", 'Event Log'),
|
|
|
|
'perfmon' => array("$TOPDIR/perfmon/index.php", 'Performance'),
|
|
|
|
|
|
|
|
));
|
2007-10-30 13:05:36 +00:00
|
|
|
insertInner('open', 2,'Diagnostics', 'diagtab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'diagms' => array("$TOPDIR/diagms", 'MS Diags'),
|
|
|
|
));
|
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
echo '</TABLE></TD></TR>';
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
insertInner('open', 1,'Documentation', 'doctab', $currentLink, array(
|
2007-10-26 22:44:33 +00:00
|
|
|
'xcatdocs' => array(getDocURL('web','docs'), 'xCAT Docs'),
|
|
|
|
'forum' => array(getDocURL('web','forum'), 'Mailing List'),
|
|
|
|
'codeupdates' => array(getDocURL('web','updates'), 'Code Updates'),
|
|
|
|
'opensrc' => array(getDocURL('web','opensrc'), 'Open Src Reqs'),
|
|
|
|
'wiki' => array(getDocURL('web','wiki'), 'xCAT Wiki'),
|
|
|
|
));
|
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
echo '</table></div>';
|
|
|
|
} //end insertNav
|
|
|
|
?>
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
|