1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="suivi_general_omt.css" />
<title>Le suivi des OMT en Basse-Normandie</title>
</head>
<body>
<div style="width:100%;">
<center>
<p class="menu"><font color="#2C75FF">Bienvenue sur la Page d'accueil du Suivi des OMT</font></p>
</center>
<table>
<tr>
<td><a href="http://xxxx/xxx/index.htm">Retour sur INDEX ACR</a></td>
</tr>
<tr>
<td><a href="http://xxx/xxxx/suivi_omt/Manuel_d'utilisation_utilisateur.pdf" target="_blank"><font color="#CC5500">Téléchargez le Manuel d'utilisation ici</font></a></td>
</tr>
</table>
<center>
<table>
<tr>
<td>
<table>
<img src="http://xxxx/xxx/suivi_omt/image_erdf.jpg">
</table>
</td>
<td>
<table border="1" rules=none bordercolor="silver">
<tr>
<th bgcolor="#FFD700">Tableaux de suivi des OMT:</th>
</tr>
<tr>
<td><a href="http://xxxx/xxx/suivi_omt/suivi_omt_calvados.php">Calvados</a></td>
</tr>
<tr>
<td><a href="http://xxxx/xxx/suivi_omt/suivi_omt_manche.php">Manche</a></td>
</tr>
<tr>
<td><a href="http://xxxx/xxx/suivi_omt/suivi_omt_orne.php">Orne</a></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<center>
<table>
<tr>
<td>
<table border="1" rules=cols bordercolor="silver">
<tr>
<th align=center colspan="3" bgcolor="#FFD700">Modifier/Supprimer/Créer un OMT:</th>
</tr>
<tr>
<td bgcolor="#DCDCDC" width="150"><b>dans le Calvados</b></td><td bgcolor="#DCDCDC" width="150"><b>dans la Manche</b></td><td bgcolor="#DCDCDC" width="150"><b>dans l'Orne</b></td>
</tr>
<tr>
<td height="25"><a href="http://xxxx/xxx/suivi_omt/insertion1_calvados.html">Créer un OMT</a></td><td><a href="http://xxx/xxx/suivi_omt/insertion1_manche.html">Créer un OMT</a></td><td><a href="http://xxxx/xxx/suivi_omt/insertion1_orne.html">Créer un OMT</a></td>
</tr>
<tr>
<td height="25"><a href="http://xxxx/xxx/suivi_omt/modification1_calvados.php">Modifier un OMT</a></td><td><a href="http://xxxx/xxxx/suivi_omt/modification1_manche.php">Modifier un OMT</a></td><td><a href="http://xxxx/xxx/suivi_omt/modification1_orne.php">Modifier un OMT</a></td>
</tr>
<tr>
<td height="25"><a href="http://xxxx/xxxx/suivi_omt/suppression1_calvados.php">Supprimer un OMT</a></td><td><a href="http://xxxx/xxxx/suivi_omt/suppression1_manche.php">Supprimer un OMT</a></td><td><a href="http://xxxx/xxxx/suivi_omt/suppression1_orne.php">Supprimer un OMT</a></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<?php include "connexion_database.php";?>
<?php
//===========================
//déclaration des variables
//===========================
//Année:
$annee = $_POST["annee"] ;
?>
if(empty($annee))
{
<center>
<table border="1" rules=rows bordercolor="silver">
<tr>
<th align=center colspan="5" bgcolor="#FFD700">Avancement programme OMT BN '.$annee.'</th>
</tr>
<tr>
<th align=center><font color="red">Aucune <u><b>Année</b></u> n\'a été prise en compte !</font></th>
</tr>
</table>
<form action="suivi_general_omt_bis.php" method="POST">
<tr>
<th align="center" bgcolor="#DCDCDC">Entrez une année:<input type="text" name="annee" size="10"><input type="submit" value="OK"></th>
</tr>
</form>
}
//=====================================================================
// Le champ Année n'est pas vide, on peut faire les calculs et afficher
//=====================================================================
else
{
<?php
//=============================================================================
// requête SQL qui compte le nombre d enregistrement voulu dans la table et qui
//récupère tous les enregistrements
//=============================================================================
$selectcalvados = 'SELECT mise_en_service_date FROM suivi_omt_calvados WHERE mise_en_service_date >= "' . $annee . '-01-01" AND mise_en_service_date <= "' . $annee . '-12-31" ';
$resultcalvados = mysql_query($selectcalvados,$link) or die ('Erreur : '.mysql_error() );
$totalcalvados = mysql_num_rows($resultcalvados);
$selectmanche = 'SELECT mise_en_service_date FROM suivi_omt_manche WHERE mise_en_service_date >= "' . $annee . '-01-01" AND mise_en_service_date <= "' . $annee . '-12-31" ';
$resultmanche = mysql_query($selectmanche,$link) or die ('Erreur : '.mysql_error() );
$totalmanche = mysql_num_rows($resultmanche);
$selectorne = 'SELECT mise_en_service_date FROM suivi_omt_orne WHERE mise_en_service_date >= "' . $annee . '-01-01" AND mise_en_service_date <= "' . $annee . '-12-31" ';
$resultorne = mysql_query($selectorne,$link) or die ('Erreur : '.mysql_error() );
$totalorne = mysql_num_rows($resultorne);
$selectmexpcalvados = 'SELECT mex_prevue_date FROM suivi_omt_calvados WHERE mex_prevue_date >= "' . $annee . '-01-01" AND mex_prevue_date <= "' . $annee . '-12-31" AND (mex_reelle_date >= "' . $annee . '-01-01" OR mex_reelle_date IS NULL) ';
$resultmexpcalvados = mysql_query($selectmexpcalvados,$link) or die ('Erreur : '.mysql_error() );
$totalmexpcalvados = mysql_num_rows($resultmexpcalvados);
$selectmexpmanche = 'SELECT mex_prevue_date FROM suivi_omt_manche WHERE mex_prevue_date >= "' . $annee . '-01-01" AND mex_prevue_date <= "' . $annee . '-12-31" AND (mex_reelle_date >= "' . $annee . '-01-01" OR mex_reelle_date IS NULL) ';
$resultmexpmanche = mysql_query($selectmexpmanche,$link) or die ('Erreur : '.mysql_error() );
$totalmexpmanche = mysql_num_rows($resultmexpmanche);
$selectmexporne = 'SELECT mex_prevue_date FROM suivi_omt_orne WHERE mex_prevue_date >= "' . $annee . '-01-01" AND mex_prevue_date <= "' . $annee . '-12-31" AND (mex_reelle_date >= "' . $annee . '-01-01" OR mex_reelle_date IS NULL) ';
$resultmexporne = mysql_query($selectmexporne,$link) or die ('Erreur : '.mysql_error() );
$totalmexporne = mysql_num_rows($resultmexporne);
$selectmexrcalvados = 'SELECT mex_reelle_date FROM suivi_omt_calvados WHERE mex_reelle_date >= "' . $annee . '-01-01" AND mex_reelle_date <= "' . $annee . '-12-31" ';
$resultmexrcalvados = mysql_query($selectmexrcalvados,$link) or die ('Erreur : '.mysql_error() );
$totalmexrcalvados = mysql_num_rows($resultmexrcalvados);
$selectmexrmanche = 'SELECT mex_reelle_date FROM suivi_omt_manche WHERE mex_reelle_date >= "' . $annee . '-01-01" AND mex_reelle_date <= "' . $annee . '-12-31" ';
$resultmexrmanche = mysql_query($selectmexrmanche,$link) or die ('Erreur : '.mysql_error() );
$totalmexrmanche = mysql_num_rows($resultmexrmanche);
$selectmexrorne = 'SELECT mex_reelle_date FROM suivi_omt_orne WHERE mex_reelle_date >= "' . $annee . '-01-01" AND mex_reelle_date <= "' . $annee . '-12-31" ';
$resultmexrorne = mysql_query($selectmexrorne,$link) or die ('Erreur : '.mysql_error() );
$totalmexrorne = mysql_num_rows($resultmexrorne);
//=============================================================================
// requête SQL qui compte le nombre d enregistrement voulu dans la table et qui
//récupère tous les enregistrements
//=============================================================================
echo '<center>'."\n";
echo '<table>'."\n";
echo '<tr>'."\n";
echo '<td>'."\n";
echo '<table border="1" rules=rows bordercolor="silver">'."\n";
echo '<tr>';
echo '<th align=center colspan="5" bgcolor="#FFD700">Avancement programme OMT BN '.$annee.'</th>';
echo '</tr>'."\n";
?>
<form action="suivi_general_omt_bis.php" method="POST">
<tr>
<th bgcolor="#DCDCDC">Entrez une année:<input type="text" name="annee" size="10"><input type="submit" value="OK"></th>
<th bgcolor="#DCDCDC" width="150">Calvados 024</th>
<th bgcolor="#DCDCDC" width="150">Manche 025</th>
<th bgcolor="#DCDCDC" width="150">Orne 026</th>
<th bgcolor="#DCDCDC" width="150">Basse Normandie</th>
</tr>
</form>
<?php
echo '<tr>';
echo '<th bgcolor="#DCDCDC">Objectif minimum</th>';
$objmini024=40;
$objmini025=34;
$objmini026=26;
$objminibn = $objmini024 + $objmini025+ $objmini026;
echo '<td align=center>'.$objmini024.'</td>';
echo '<td align=center>'.$objmini025.'</td>';
echo '<td align=center>'.$objmini026.'</td>';
echo '<td align=center>'.$objminibn.'</td>';
echo '</tr>'."\n";
$omtprgcalvados = $totalmexpcalvados - $totalmexrcalvados;
$omtprgmanche = $totalmexpmanche - $totalmexrmanche;
$omtprgorne = $totalmexporne - $totalmexrorne;
$omtprgbn = $omtprgcalvados + $omtprgmanche + $omtprgorne;
echo '<tr>';
echo '<th bgcolor="#DCDCDC">OMT programmés</th>';
echo '<td align=center><font color="dodgerblue">'.$omtprgcalvados.'</font></td>';
echo '<td align=center><font color="dodgerblue">'.$omtprgmanche.'</font></td>';
echo '<td align=center><font color="dodgerblue">'.$omtprgorne.'</font></td>';
echo '<td align=center><font color="dodgerblue">'.$omtprgbn.'</font></td>';
echo '</tr>'."\n";
echo '<tr class="bordure1">';
echo '<th bgcolor="#DCDCDC" rowspan="2">OMT réalisés ingénierie</th>';
echo '<td align=center class="bordure1">'.$totalmexrcalvados.'</td>';
echo '<td align=center class="bordure1">'.$totalmexrmanche.'</td>';
echo '<td align=center class="bordure1">'.$totalmexrorne.'</td>';
$omtingenierie = $totalmexrcalvados + $totalmexrmanche + $totalmexrorne;
echo '<td align=center class="bordure1">'.$omtingenierie.'</td>';
echo '</tr>'."\n";
echo '<tr class="bordure2">';
$pourcentmexr024 = ($totalmexrcalvados / $objmini024) *100;
$pourcentmexr025 = ($totalmexrmanche / $objmini025) *100;
$pourcentmexr026 = ($totalmexrorne / $objmini026) *100;
$pourcentmexrBN = ($omtingenierie / $objminibn) *100;
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcentmexr024).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcentmexr025).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcentmexr026).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcentmexrBN).'%</font></td>';
echo '</tr>'."\n";
echo '<tr class="bordure1">';
echo '<th bgcolor="#DCDCDC" rowspan="2">OMT en service AMEPS</th>';
echo '<td align=center class="bordure1">'.$totalcalvados.'</td>';
echo '<td align=center class="bordure1">'.$totalmanche.'</td>';
echo '<td align=center class="bordure1">'.$totalorne.'</td>';
$omtameps = $totalcalvados + $totalmanche + $totalorne;
echo '<td align=center class="bordure1">'.$omtameps.'</td>';
echo '</tr>'."\n";
echo '<tr class="bordure2">';
$pourcent024 = ($totalcalvados / $objmini024) *100;
$pourcent025 = ($totalmanche / $objmini025) *100;
$pourcent026 = ($totalorne / $objmini026) *100;
$pourcentBN = ($omtameps / $objminibn) *100;
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcent024).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcent025).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcent026).'%</font></td>';
echo '<td align=center class="bordure2"><font color="#CC5500">'.round($pourcentBN).'%</font></td>';
echo '</tr>'."\n";
echo '</table>'."\n";
echo '</td>'."\n";
echo '</tr>'."\n";
echo '</table>'."\n";
echo '</center>'."\n";
?>
}
</div>
</body>
</html> |