c99d72a179
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
89 lines
3.2 KiB
PHP
89 lines
3.2 KiB
PHP
|
|
<?php
|
|
/*------------------------------------------------------------------------------
|
|
Create the navigation area on the left.
|
|
$currentlink is the key of the link to the page
|
|
that is currently being displayed.
|
|
------------------------------------------------------------------------------*/
|
|
|
|
function insertNav($currentLink, $TOPDIR) {
|
|
// A few constants
|
|
global $imagedir;
|
|
global $colTxt;
|
|
global $bulgif;
|
|
global $minusgif;
|
|
global $plusgif;
|
|
?>
|
|
|
|
<script type="text/javascript" src="functions.js"></script>
|
|
<div id=nav>
|
|
<table border="0" cellpadding="0" cellspacing="1" width="110">
|
|
|
|
<?php
|
|
//Console section
|
|
insertInner('open', 1,'Console', 'constab', $currentLink, $TOPDIR, array(
|
|
'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')
|
|
));
|
|
?>
|
|
<?php
|
|
// xCAT Cluster section
|
|
?>
|
|
<TR><TD id="menu_level1" width="110">
|
|
<P title=<?php echo $colTxt; ?> onclick="toggleSection(this,'clustab')" ondblclick="toggleSection(this,'clustab')">
|
|
<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>
|
|
|
|
<?php
|
|
insertInner('open', 2,'Installation', 'installtab', $currentLink, $TOPDIR, array(
|
|
'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')
|
|
));
|
|
insertInner('open', 2,'Administration', 'admintab', $currentLink, $TOPDIR, array(
|
|
'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'),
|
|
));
|
|
insertInner('open', 2,'Monitor', 'montab', $currentLink, $TOPDIR, array(
|
|
'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'),
|
|
|
|
));
|
|
insertInner('open', 2,'Diagnostics', 'diagtab', $currentLink, $TOPDIR, array(
|
|
'diagms' => array("$TOPDIR/diagms", 'MS Diags'),
|
|
));
|
|
?>
|
|
|
|
</TABLE>
|
|
</TD></TR>
|
|
|
|
<?php
|
|
insertInner('open', 1,'Documentation', 'doctab', $currentLink, $TOPDIR, array(
|
|
'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'),
|
|
));
|
|
?>
|
|
|
|
</table></div>
|
|
<?php }//end function ?>
|
|
|
|
|