<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
	<head>
		<title>AQCM05</title>
		<meta name="Description" content="">
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<style type="text/css">
		   a:link {color: white;text-decoration: none;}      /* unvisited link */
		   a:visited {color: white;text-decoration: none;}   /* visited link */
		   a:hover {color: white;text-decoration: none;}     /* mouse over link */
		   a:active {color: white;text-decoration: none;}    /* selected link */
		</style>
	</head>

<body bgcolor="#000033" text="#CCCCCC" link="#00CCFF" vlink="#9966FF" alink="#CC0000">


<?php

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

	$aqcm_SITE_ID  		= $_GET[ 'aqcm_SITE_ID' ] ;
	$aqcm_MAC      		= $_GET[ 'aqcm_MAC' ] ;
	$aqcm_NAME     		= $_GET[ 'aqcm_NAME' ] ;
	$aqcm_BAT      		= $_GET[ 'aqcm_BAT' ] ;
	$aqcm_NIVEAU   		= $_GET[ 'aqcm_NIVEAU' ] ;
	$aqcm_QNH   			= $_GET[ 'aqcm_QNH' ] ;
	$aqcm_TYPE     		= $_GET[ 'aqcm_TYPE' ] ;
	$aqcm_HW       		= $_GET[ 'aqcm_HW' ] ;
	$aqcm_MESURES  		= $_GET[ 'aqcm_MESURES' ] ;
	$aqcm_SPL_TRIG_MODE	= $_GET[ 'aqcm_SPL_TRIG_MODE' ] ;
	$aqcm_SPL_TRIG_MOY	= $_GET[ 'aqcm_SPL_TRIG_MOY' ] ;
	$aqcm_SPL_TRIG_MAX	= $_GET[ 'aqcm_SPL_TRIG_MAX' ] ;
	$aqcm_SCHEDULER		= $_GET[ 'aqcm_SCHEDULER' ] ;
	$aqcm_CO2_TRIG_LOW	= $_GET[ 'aqcm_CO2_TRIG_LOW' ] ;
	$aqcm_CO2_TRIG_HIGH	= $_GET[ 'aqcm_CO2_TRIG_HIGH' ] ;
	
?>
   
<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>

<div align="center">
	<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
	<table width="<?php echo($tables_width); ?>" border="2" cellspacing="2" cellpadding="2" bordercolor="#999999" bgcolor="#000033">	
		
		<?php
			include('../M0/titre_jaune.php');
			$sous_menu_titre = "- AQCM05 : inscription (serveur de mesures) -";
			affiche_titre_jaune_simple($sous_menu_titre);
		?>
		
	</table>
</div>

<div align="center">
						
<p>
	<table width="<?php echo($tables_width); ?>" border="2" cellspacing="2" cellpadding="2" bordercolor="#999999" bgcolor="#000033">	
		
		<form name="form1" id="cible_php" method="post" action="">
		
					
			<tr align="center" bordercolor="#666666">
				<td>

					<table width="100%" align="center">
					
						<tr>
							<td align="right" width="30%">
								<label>
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									site :
								</font>
								</label>
							</td>
							<td align="left">
								<label>
								<font size="4" color="Lime" face="Arial, Helvetica, sans-serif">
									<?php echo( $aqcm_SITE_ID );?>
								</font>
								</label>
							</td>
						</tr>
					
						<tr>
							<td align="right">
								<label>
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									sonde :
								</font>
								</label>
							</td>
							<td align="left" colspan="2">
								<label>
								<font size="4" color="Lime" face="Arial, Helvetica, sans-serif">
									<?php echo( $aqcm_NAME );?>
								</font>
								</label>
							</td>
						</tr>
					
						<tr>
							<td align="right">
								<label>
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									mac :
								</font>
								</label>
							</td>
							<td align="left">
								<label>
								<font size="4" color="Lime" face="Arial, Helvetica, sans-serif">
									<?php echo( $aqcm_MAC );?>
								</font>
								</label>
							</td>
						</tr>
									
						<input type="hidden" type="text" name="aqcm_MAC"     		value="<?php echo($aqcm_MAC); ?>" />
						<input type="hidden" type="text" name="aqcm_NAME"    		value="<?php echo($aqcm_NAME); ?>" />
						<input type="hidden" type="text" name="aqcm_BAT"     		value="<?php echo($aqcm_BAT); ?>" />
						<input type="hidden" type="text" name="aqcm_NIVEAU"  		value="<?php echo($aqcm_NIVEAU); ?>" />
						<input type="hidden" type="text" name="aqcm_QNH"  			value="<?php echo($aqcm_QNH); ?>" />
						<input type="hidden" type="text" name="aqcm_SITE_ID" 		value="<?php echo($aqcm_SITE_ID); ?>" />
						<input type="hidden" type="text" name="aqcm_TYPE"    		value="<?php echo($aqcm_TYPE); ?>" />
						<input type="hidden" type="text" name="aqcm_HW"      		value="<?php echo($aqcm_HW); ?>" />
						<input type="hidden" type="text" name="aqcm_MESURES" 		value="<?php echo($aqcm_MESURES); ?>" />
						<input type="hidden" type="text" name="aqcm_SPL_TRIG_MODE"	value="<?php echo($aqcm_SPL_TRIG_MODE); ?>" />
						<input type="hidden" type="text" name="aqcm_SPL_TRIG_MOY"	value="<?php echo($aqcm_SPL_TRIG_MOY); ?>" />
						<input type="hidden" type="text" name="aqcm_SPL_TRIG_MAX"	value="<?php echo($aqcm_SPL_TRIG_MAX); ?>" />
						<input type="hidden" type="text" name="aqcm_SCHEDULER"		value="<?php echo($aqcm_SCHEDULER); ?>" />
						<input type="hidden" type="text" name="aqcm_CO2_TRIG_LOW"	value="<?php echo($aqcm_CO2_TRIG_LOW); ?>" />
						<input type="hidden" type="text" name="aqcm_CO2_TRIG_HIGH"	value="<?php echo($aqcm_CO2_TRIG_HIGH); ?>" />

					</table>
					
					<hr>
					
					<table width="100%" align="center">
						
						<tr>
							<td align="right" width="30%" >
								<label>
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									adresse mail :
								</font>
								</label>
							</td>
							<td align="left">
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									<input id="aqcm_MAIL" name="aqcm_MAIL" type="text" size="40">
								</font>
							</td>
						</tr>

						<tr>
							<td align="right">
								<label>
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									mot de passe :
								</font>
								</label>
							</td>
							<td align="left">
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									<input type="password" name="aqcm_PASSWORD" id="aqcm_PASSWORD" size="40">
								</font>
							</td>
						</tr>

						<tr>
							<td align="right">
								<font size="4" color="white" face="Arial, Helvetica, sans-serif">
									<br>réinitialisation :
								</font>
							</td>
							<td align="left" colspan="2">
								<br><input id="aqcm_FORCE_INIT_MESURES" name="aqcm_FORCE_INIT_MESURES" type="checkbox" value="OFF" id="aqcm_FORCE_INIT_MESURES" >
								<label style="font-size:16px;color:Salmon;font-family: Arial, Helvetica, sans-serif;" >
									( NB : <u>les mesures seront détruites !!!</u> )
								</label>
							</td>
						</tr>
						
					</table>

					<br>
					<div align="center">
						<input type="submit" onclick="myFunction()" style="font-family: sans-serif; font-size: 16px; name="lancer" value="&nbsp;&nbsp;obtenir un mot de passe&nbsp;&nbsp;">
					</div>
					
					
					<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
				</td>
			</tr>
			
		</form>
	</table>
</p>
				
								
</div>



<script>
function myFunction() {
	var msg="!!!  confirmez l'inscription de cette sonde  !!!\r\n\r\nNB : si la case \"réinitialisation totale\" est cochée, les anciennes mesures seront effacées...";
	var txt;
	var r = confirm(msg);
	if (r == true) {
		txt = "one_sonde_inscription_hash_1.php";
	} else {
		txt = "one_sonde_inscription_hash.php?aqcm_MAC=<?php echo $aqcm_MAC;?>&aqcm_NAME=<?php echo $aqcm_NAME;?>&aqcm_BAT=<?php echo $aqcm_BAT;?>&aqcm_NIVEAU=<?php echo $aqcm_NIVEAU;?>&aqcm_SITE_ID=<?php echo $aqcm_SITE_ID;?>&aqcm_TYPE=<?php echo $aqcm_TYPE;?>&aqcm_HW=<?php echo $aqcm_HW;?>&aqcm_MESURES=<?php echo $aqcm_MESURES;?>&aqcm_SPL_TRIG_MODE=<?php echo $aqcm_SPL_TRIG_MODE;?>&aqcm_SPL_TRIG_MOY=<?php echo $aqcm_SPL_TRIG_MOY;?>&aqcm_SPL_TRIG_MAX=<?php echo $aqcm_SPL_TRIG_MAX;?>&aqcm_SCHEDULER=<?php echo $aqcm_SCHEDULER;?>&aqcm_CO2_TRIG_LOW=<?php echo $aqcm_CO2_TRIG_LOW;?>&aqcm_CO2_TRIG_HIGH=<?php echo $aqcm_CO2_TRIG_HIGH;?>" 
		;
	}
	document.getElementById("cible_php").action = txt;

}
</script>

        
    </body>
</html>