<?php

?>
	<form name="form1" method="post" <?php if ($reinstall) echo "action=\"index.php?stage=1&lid=$lid\""; else echo "action=\"index.php?stage=0&lid=$lid\""; ?>>
	<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
		<tr>
			<td width="25%"><img src="./images/T-dah.png" width="156" alt=""></td>
			<td width="75%" valign="top">
				<p><strong><?php echo _STG_PRECHECK_WELCOME; ?></strong></p>
				<p><?php if ($reinstall) {
					echo _STG_REINSTALL; 
				} else { 
					echo _STG_PRECHECK_STG."</p>";
					echo "<p align=\"right\">[ <a href=\""._STG_LINK."\" class=\"slink\">"._STG_PRECHECK_TEAM."</a> ]";
				} ?></p>
				<?php
				// Check for 1st install
				if ($reinstall) {
				echo "
					<table class=\"login_table\">
					<tr><td align=\"right\" width=\"50%\">"._STG_USERNAME."</td><td> <input class=\"textboxgray\" name=\"install_username\" value='' type=\"text\" size=\"15\"></td></tr>
					<tr><td align=\"right\">"._STG_PASSWORD."</td><td> <input class=\"textboxgray\" name=\"install_password\" value='' type=\"password\" size=\"15\"></td></tr>
					<tr><td align=\"right\">"._STG_MOD."</td><td> <input class=\"\" name=\"install_mode\" type=\"radio\" value=\"modify\" checked></td></tr>
					<tr><td align=\"right\">"._STG_RESTORE."</td><td> <input class=\"\" name=\"install_mode\" type=\"radio\" value=\"restore\"></td></tr>
					<tr><td align=\"right\">"._STG_RESET."</td><td> <input class=\"\" name=\"install_mode\" type=\"radio\" value=\"reset\"></td></tr>
					</table>";
				} 
				echo "<p align=\"center\"><font color=\"#FF0000\"><b>&nbsp;$admin_logmsg</b></font></p>"; ?>
			</td>
		</tr>
	</table>

	<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
		<tr>
			<td>
				<?php if (!$reinstall) echo "<p>"._STG_PRECHECK_STEPS."</p>"; 
				echo "<p align=\"right\">";
				if ($reinstall) {
				?> 
					<a href="<?php echo RPATH_ROOT."index.php?lid=$lid"; ?>" class="menulink"><?php echo _STG5_FRONT;?></a> &nbsp; &nbsp; &nbsp;
					<a href="<?php echo RPATH_ROOT.PATH_ADMIN."index.php?lid=$lid"; ?>" class="menulink"><?php echo _STG5_ADMIN;?></a> &nbsp; &nbsp;
				<?php } ?>
				<a href="javascript:document.form1.submit();" class="menulink"><?php echo _STG_CONTINUE;?></a></p>
			</td>
		</tr>
	</table>
	</form>