<html>

	<head>
	
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=0.8">
		<title>AQCM05</title>
		<link rel="stylesheet" type="text/css" href="../styles/AQCM05_tableaux.css" />
		<style type="text/css">
		
			table, th, td {
				padding: 5px 0px 5px 10px;
				margin-top: 10px;
				margin-bottom: 10px;
				margin-left: auto;
				margin-right: auto;
				border: 1px solid white;
				border-collapse: collapse;
				text-align: left;
				font-family: arial;
				font-size: 18;
			}

			header {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				background-color: #000033;
				color: #ffffff;
			} 

			main {
				top: 0;
				left: 0;
				width: 100%;
				margin-top: 220px;
				background-color: #000033;
			}
			
		</style>
		
	</head>

	<?php include("../M0/get_parameters.php") ; ?>

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

		<header>

			<table align="center" width="<?php echo($tables_width); ?>" bgcolor="#000033">	
			
				<tr>

					<td>
						<div align="center">
						<font size="5" color="lightblue" face="Arial, Helvetica, sans-serif">
							- sondes AQCM05 -
						</font>
						</div>
					</td>
				</tr>
				
			</table>				
		
			<table align="center" width="<?php echo($tables_width); ?>" bgcolor="#000000">	
				<tr>
					<td colspan="2" >

						<?php
							if ( $_SESSION['user_type'] == "super_user" ) {
								echo("admin");
							}
							elseif ( $_SESSION['user_type'] == "normal_user" ) {
								echo("user");
							}
							else {
								echo("?????");
							}
						?>
						&nbsp;:&nbsp;&nbsp;<font color="Lime"><?php echo( $_SESSION['login'] ) ; ?></font>

					</td>
				</tr>
				<tr>
					<td align="left">
						site (nom) :<font color="Lime"> <?php echo( $_SESSION['SITE_NAME'] ); ?> </font>
					</td>
					<td align="left" width="130px" >
						bâtiment :<font color="Lime"> <?php echo( $Batiments[$_SESSION['aqcm_BAT']] ); ?> </font>
					</td>
				</tr>
				<tr>
					<td align="left">
						site (code) : <font color="Lime"> <?php echo( $_SESSION['SITE_ID'] ); ?> </font>
					</td>
					<td align="left">
						niveau :<font color="Lime"> <?php echo( $Niveaux[$_SESSION['aqcm_NIVEAU']] ); ?> </font>
					</td>
				</tr>
				<tr>
					<td align="left" colspan="2" >
						période = ( début : <font color="Lime"> <?php echo( $texte_start ); ?> </font>&nbsp;&nbsp;;&nbsp;&nbsp;
						durée : <font color="Lime"> <?php echo( $p_echelle_temps ); ?> </font> )
					</td>
				</tr>
			</table>

		</header>
		
		<main>
					
				<table align="center" width="480" bgcolor="#000033">	
					<tr>
						<td colspan="4">
							<p align="center">
								<font size="3" color="Salmon" face="Arial">
									<?php 
										for($i=0; $i < sizeof($messages_list); $i++ ) {
											echo( $messages_list[$i] . "</br>" ); 
										}
									?>
								</font>
							</p>
						</td>
					</tr>
					
					
				</table>

		</main>
		
	</body>
	
</html>
		
