add a guide page for users

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-04-29 05:42:36 +00:00
parent d640ea45e8
commit 88b2d89608
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,15 @@
function loadManualPage(){
// Create monitor tab
var tab = new Tab();
tab.init();
$('#content').append(tab.object());
//add the help content
var helpForm = $('<div class="form"></div>');
helpForm.append('<fieldset><legend>Quick Start</legend><ol>' +
'<li><a href="configure.php">1. Discover hardwares</a><br/>Discover all hardwares in the cluster. Define them into xCAT database. Initialize your cluster fast and easily. It is in the Discover tab.</li>' +
'<li><a href="index.php">2. Verify defined nodes</a><br/>See nodes definition by groups in table style and graphical layout style.</li>' +
'<li><a href="#" onclick="showProvisionHelp()">3. Install compute nodes</a><br/>Copy useful files from DVD into harddisk. Create Linux image. Install compute nodesin stateful, stateless and statelite style. It\'s all here.</li>' +
'<li><a href="monitor.php">4. Monitor Cluster</a><br/>Allows you to plug-in one or more third party monitoring software such as Ganglia, RMC etc. to monitor the xCAT cluster. </li></ol></fieldset>' +
'<fieldset><legend>Advanced</legend><ol><li><a href="configure.php">a. Edit the xCAT database tables directly</a></li><li><a href="configure.php">b. Update the xCAT RPM on Management node automatically</a></li></ol></fieldset>');
tab.add('monitorTab', 'Guide', helpForm, false);
}

View File

@ -511,7 +511,12 @@ function initPage() {
includeJs("js/monitor/gangliamon.js");
headers.eq(3).css('background-color', '#A9D0F5');
loadMonitorPage();
} else {
} else if (page == 'manual.php') {
includeJs("js/manual/manual.js");
headers.eq(4).css('background-color', '#A9D0F5');
loadManualPage();
}
else {
includeJs("js/jquery/jquery.topzindex.min.js");
includeJs("js/nodes/nodeset.js");
includeJs("js/nodes/rnetboot.js");

17
xCAT-UI/manual.php Normal file
View File

@ -0,0 +1,17 @@
<?php
/**
* Main xCAT page
*/
require_once "lib/functions.php";
require_once "lib/ui.php";
/* Load page */
loadPage();
/* Login user */
if (!isAuthenticated()) {
login();
} else {
loadContent();
}
?>