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@4075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/* 
 | 
						|
 * To change this template, choose Tools | Templates
 | 
						|
 * and open the template in the editor.
 | 
						|
 */
 | 
						|
 | 
						|
if(!isset($TOPDIR)) { $TOPDIR="..";}
 | 
						|
 | 
						|
require_once "$TOPDIR/lib/security.php";
 | 
						|
require_once "$TOPDIR/lib/functions.php";
 | 
						|
require_once "$TOPDIR/lib/display.php";
 | 
						|
require_once "$TOPDIR/lib/monitor_display.php";
 | 
						|
 | 
						|
$class = $_REQUEST['name'];
 | 
						|
 | 
						|
if(!isset($class)) {
 | 
						|
    exit;
 | 
						|
}
 | 
						|
 | 
						|
$xml = docmd("webrun", "", array("lsrsrcdef-api -r $class | cut -d':' -f1"));
 | 
						|
if(getXmlErrors($xml,$errors)) {
 | 
						|
    echo "<p class=Error>",implode(' ', $errors), "</p>";
 | 
						|
    exit;
 | 
						|
}
 | 
						|
 | 
						|
foreach($xml->children() as $response) foreach($response->children() as $data) {
 | 
						|
    $attrs = explode("=", $data);
 | 
						|
}
 | 
						|
 | 
						|
$ooe = 0;
 | 
						|
$line = 0;
 | 
						|
echo<<<EOS0
 | 
						|
<b>Available Attributes for $class</b>
 | 
						|
<table id="tabTable" class="tabTable" cellspacing="1">
 | 
						|
<thead>
 | 
						|
    <tr class="colHeaders">
 | 
						|
    <td>Class Name</td>
 | 
						|
    </tr>
 | 
						|
</thead>
 | 
						|
<tbody>
 | 
						|
EOS0;
 | 
						|
 | 
						|
foreach($attrs as $attr) {
 | 
						|
    $ooe = $ooe%2;
 | 
						|
    echo "<tr class='ListLine$ooe' id='row$line'>";
 | 
						|
    echo "<td>$attr</td>";
 | 
						|
    echo "</tr>";
 | 
						|
    $ooe++;
 | 
						|
    $line++;
 | 
						|
}
 | 
						|
 | 
						|
echo "</tbody></table>";
 | 
						|
?>
 |