<?php
	include("../M0/AQCM_get_parameters.php");
	include("../M0/dirs_and_files.php") ;

	$CIBLE_2 = $aqcm_SERVER_URL . $GRAPHIQUES_SONDES_DIR . $GRAPHIQUES_SONDE_FILE ;
?>

<?php include("../M0/communs_en_tete_HTML.html") ?>
<?php include('../M0/communs_en_tete_clock_no_linked.html'); ?>
<?php include('../M0/titre_jaune.php'); ?>

<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
		
			$sous_menu_titre = "-&nbsp;&nbsp;historiques&nbsp;&nbsp;-";
			$help_folder  = $DokuWiki_URL ;
			$help_filename = "start";
			
			affiche_titre_jaune($sous_menu_titre, $help_folder . "?id=" . $help_filename);
		?>
	</table>

	<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>

	<form name="form1" method="post" action="../graphiques/graphiques.php">

	<table width="<?php echo($tables_width); ?>" border="2" cellspacing="2" cellpadding="2" bordercolor="#999999" bgcolor="#000033">	
		<tr valign="middle" bordercolor="#666666">
			<td>
				<table width="99%" align="center">
					<tr align="center" valign="middle" bordercolor="#666666">
					
						<td align="left">
							
							<input type="hidden" name="aqcm_SERVER_PWD" value="<?php echo $aqcm_SERVER_PWD ?>" />
							<input type="hidden" name="aqcm_SITE_ID"    value="<?php echo $aqcm_SITE_ID ?>" />
							<input type="hidden" name="aqcm_MAC"        value="<?php echo $aqcm_MAC ?>" />

							<div align="left">
								<label class="txtField_10" >
									&nbsp;
									début :
								</label>
							
								<select name="jour" size="1" class="txtField_6" >
								<?php
									$debut_periode  = mktime(0, 0, 0, date("m")  , date("d")-1, date("Y"));
									$jour_debut_periode = date("d", $debut_periode);
									include ("selection_jour_0.php");
								?>
								</select>
								<select name="mois" size="1" class="txtField_6" >
								<?php
									$debut_periode  = mktime(0, 0, 0, date("m")  , date("d")-1, date("Y"));
									$mois_debut_periode = date("m", $debut_periode);
									include ("selection_mois_0.php");
								?>
								</select>
								<select name="annee" size="1" class="txtField_6" >
								<?php
									$debut_periode  = mktime(0, 0, 0, date("m")  , date("d")-1, date("Y"));
									$annee_debut_periode = date("Y", $debut_periode);
									include ("selection_annee_0.php");
								?>
								</select>
								
							</div>
						</td>
									
						<td align="left">
							<div align="left">
								<label  class="text_checkbox" >
									<input type="checkbox" name="show_mini_maxi"  >
									&nbsp;minis/maxis
								</label>
							</div>
						</td>
					</tr>
						
						
					<tr align="center" valign="middle" bordercolor="#666666">
						<td align="left">
						
							<div align="left">
								<label class="txtField_10" >
									&nbsp;
									durée :
									
								</label>
								
									<select name="echelle_temps" size="1" class="txtField_6" >
									  <option>1 jour </option>
									  <option selected>2 jours </option>
									  <option>1 semaine </option>
									  <option>2 semaines </option>
									  <option>1 mois </option>
									  <option>2 mois </option>
									  <option>6 mois </option>
									  <option>1 an </option>
									</select>
								

							</div>
						</td>

						<td align="left">
								<div align="left">
									<label  class="text_checkbox" >
										<input type="checkbox" name="show_tooltip_status"  >
										&nbsp;info-bulles
									</label>


								</div>
						</td>
					</tr>
					

					<tr align="center" valign="middle" bordercolor="#666666">
						<td align="left" colspan="2">
							<div align="left">
								<label  class="text_checkbox" >
									&nbsp;<input type="checkbox" name="scheduled_status"  >
									&nbsp;bilan quotidien&nbsp;&nbsp;
									<font size="2" face="Arial, Helvetica, sans-serif">
									(en fonction des plages horaires de présence)
									</font>
								</label>
							</div>
						</td>
					</tr>
					

					<tr align="center" valign="middle" bordercolor="#666666">
						<td align="left" colspan="2">
						<hr>					
										
							<?php 
								if ( $aqcm_UPLOAD == "ON" ) {
									$cible =  $CIBLE_2 ;
									$target_mode = '_blank';
								} else {
									$cible =  'AQCM_upload_disabled.php' ;
									$target_mode = '_self';
								}
							?>
							
							<div align="center">
								<input type="submit" value="&nbsp;&nbsp;&nbsp;mesures du serveur local&nbsp;&nbsp;&nbsp;&nbsp;" class="button" >
							</div>
							<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
							<div align="center">
								<input type="submit" formaction="<?php echo $cible ?>" formtarget="<?php echo $target_mode ?>" value="&nbsp;&nbsp;mesures du serveur distant&nbsp;&nbsp;" class="button" >
							</div>

						</td>
					</tr>
				</table>
				
			</td>
		</tr>
	</table>
		
	</form>
</div>

<?php include('../M0/communs_bouton_retour_dashboard.html'); ?>

    </body>
</html>


