c99d72a179
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
40 lines
825 B
PHP
40 lines
825 B
PHP
<?php
|
|
include "globals.inc";
|
|
|
|
function printMenu(){
|
|
global $menuArray;
|
|
echo "<ul id='menubeans'>";
|
|
$p = 1;
|
|
foreach ($menuArray as $key => $value){
|
|
if($p == 1){
|
|
echo "<li class='active' id='$p' ><span>$key</span>\n";
|
|
$p++;
|
|
|
|
}else{
|
|
echo "<li id='$p'><span>$key</span>\n";
|
|
$p++;
|
|
}
|
|
echo "<ul>";
|
|
$q = 0;
|
|
foreach($value as $k => $u){
|
|
if($p == 2){
|
|
#echo "<li><a href=\"$u\" class='active'>$k</a></li>";
|
|
echo "<li><a href='#' id='$p-li-$q' class='active' onClick=\"newBack('$u', 'content','$k', '$p-li-$q')\">$k</a></li>";
|
|
}else{
|
|
#echo "<li><a href=\"$u\">$k</a></li>";
|
|
echo "<li><a href='#' id='$p-li-$q' onClick=\"newPane('$u', 'content', '$k', '$p-li-$q')\">$k</a></li>";
|
|
}
|
|
$q++;
|
|
}
|
|
echo "</ul>";
|
|
echo "</li>";
|
|
}
|
|
echo "</ul>";
|
|
}
|
|
|
|
function printNodeList(){
|
|
system("bin/getattrs --web");
|
|
}
|
|
|
|
?>
|