<?
if (!defined('LEGAL')) return;
echo '<h2>' . TITLE . '</h2>';
?>

<form name="buildphp" method="post">
<input type="hidden" name="step" value="1">

<table width="100%" class="xtbl" border="0" cellpadding="5" cellspacing="1">
	<tr class="xtbl_header">
		<td colspan="3" class="xtbl_title">
		 Step 1 : Select a PHP version
		</td>
	</tr>

<?

$basevers = array_keys($PHP_VER);
rsort($basevers);

$buf = '';
foreach($basevers as $base_ver) {

	$versions = $PHP_VER[$base_ver];
	
	$buf .= '<tr class="xtbl_value"><td class="xtbl_label">PHP ' . $base_ver . '</td><td class="icon"></td><td>';
		
	$buf .= '<select name="php_version'. $base_ver . '">';
	foreach( $versions as $o ) {
		$buf .= "<option value=\"$o\">$o</option>";
	}
	$buf .= '</select>&nbsp;&nbsp;&nbsp;&nbsp;';
	
	$buf .=	'<input type="submit" name="build' . $base_ver . '" value="Next">'
			. "</td></tr>\n";
	
}
		
echo $buf;
		
?>
</table>
</form>
