mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3634 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?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";
 | 
						|
		}
 | 
						|
	}
 | 
						|
?>
 |