<?php

	include("../M0/session_start.php") ;

	include("../M0/communs_en_tete_HTML.html") ;
	
	$back_link = "../M6/dexin.php";
	include('../M0/communs_en_tete_home_back.html');

	include('../M0/display_user_only.php'); 

?>


<table align="center" width="<?php echo $tables_width ; ?>"  border="2" cellspacing="2" cellpadding="2" bordercolor="#ffffff" bgcolor="#000033"><form name="form2" id="form2" method="post" action="">
	

	<tr align="center">
		<td colspan="2">
		
			<table width="98%">
			
				<tr align="center">
					<td align="center" colspan="2">
					
						<font size="4" color="white" face="Arial, Helvetica, sans-serif">
								gestion du serveur VNC
						</font>	
						
					</td>
				</tr>

			</table>
			
		</td>
	</tr>
			
	<tr align="center">
		<td colspan="2">
		
			<table width="98%" align="center">
			
				<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
				
				<tr>
					<td align="center" colspan="2">
					
						<div><p>
						<input type="radio" id="VNC_STATUS" name="VNC_ACTION" value="status" checked >
						<label for="VNC_STATUS">status</label>
						&nbsp;&nbsp;
						<input type="radio" id="VNC_START" name="VNC_ACTION" value="start">
						<label for="VNC_START">start</label>
						&nbsp;&nbsp;
						<input type="radio" id="VNC_RESTART" name="VNC_ACTION" value="restart">
						<label for="VNC_RESTART">restart</label>
						&nbsp;&nbsp;
						<input type="radio" id="VNC_RELOAD" name="VNC_ACTION" value="reload">
						<label for="VNC_RELOAD">reload</label>
						&nbsp;&nbsp;
						<input type="radio" id="VNC_STOP" name="VNC_ACTION" value="stop">
						<label for="VNC_STOP">stop</label>
						</p></div>
						
					</td>
				</tr>
				
				<tr>
					<td align="center" colspan="2">
					
						<?php
							echo( '<input type="submit" onclick="my_confirm_function()" value="appliquer" class="button_A" >' ) ;
						?>
							
					</td>
				</tr>
				
			</table>
			
			<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
			
		</td>
	</tr>
	
</form>
</table>

<script>

function my_confirm_function() {
	var msg="confirmez-vous cette action sur le serveur VNC ?";
	var txt;

	if (document.getElementById("VNC_STATUS").checked) {
		txt = "./VNC_target_execute.php";
	}
	else {
		var r = confirm(msg);
		if (r == true) {
			txt = "./VNC_target_execute.php";
		} else {
			txt = "./VNC_target.php";
		}
	}
	document.getElementById("form2").action = txt;
}

</script>


 </body>
</html>