xcat-core/xCAT-UI/rangeDisplay.php

64 lines
1.5 KiB
PHP
Raw Normal View History

<?php
# This function is called by the javascript function printtree as a
# result of someone clicking the node range tree. This will display
# the node range
require_once "lib/security.php";
require_once "lib/functions.php";
require_once "lib/display.php";
?>
<!-- <script type="text/javascript" src="js/jquery.tablesorter.js"></script>
<script type="text/javascript" type"utf-8">
$(document).ready(function() {
$("table").tablesorter({
sortList: [[0,0]]
});
});
</script>
The above script didn't work here, so I placed it in the controlRunCmd
function in the lib/display.php file.
-->
<?php
if(isset($_REQUEST['t'])){
$t = $_REQUEST['t'];
}else{
echo "please enter a t='type' of page to load with this noderange";
exit;
}
if($t == 'control'){
$cmd = '';
if(isset($_REQUEST['nr'])){
$nr = $_REQUEST['nr'];
if(isset($_REQUEST['cmd'])){
$cmd = $_REQUEST['cmd'];
}
displayRangeList($nr,$cmd);
}else{
echo "Please select machines";
}
}elseif($t == 'provision'){
$method = '';
$os = '';
$arch = '';
$profile = '';
if(isset($_REQUEST['nr'])){
$nr = $_REQUEST['nr'];
if(isset($_REQUEST['m']) &&
isset($_REQUEST['o']) &&
isset($_REQUEST['a']) &&
isset($_REQUEST['p'])
){
$method = $_REQUEST['m'];
$os = $_REQUEST['o'];
$arch = $_REQUEST['a'];
$profile = $_REQUEST['p'];
}
displayInstallList($nr,$method,$os,$arch,$profile);
}else{
echo "Please select machines";
}
}
?>