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
|
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetreModifier()
{
valeurCheckDansLien=""
TabChecks=document.getElementsByName('check');
TCL=TabChecks.length();
for(i=0;i<TCL;i++){ // ici on parcourre les elements pour savoir lequel est coché
if(TabChecks[i].checked){
valeurCheckDansLien="Modif_form.php?check="+TabChecks[i].value;
}
if(valeurCheckDansLien.length>0){// si un radio est coché
window.open(valeurCheckDansLien,"","");
}
else {alert("pas de checks selectionné !")} //si pas de radio coché
}
function ouvreFenetreSupprimer()
{
valeurCheck=document.getElementById('check').value;
valeurCheckDansLien="Del_arret.php?check="+valeurCheck;
window.open(valeurCheckDansLien,"",config='width=600, height=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');
}
</script>
</head>
<!################################################################################################################################>
<body onload="runClock()">
<form method="post" name="form">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
<input type="button" name="lien2" value="Modifier" onClick="ouvreFenetreModifier();">
<input type="button" name="lien3" value="Supprimer" onClick="ouvreFenetreSupprimer();">
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture      Cadence: $cadence      Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" id=\"check_" .$i++. "\" name=\"check\" value='".$CHOIX."' /> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</form>
</body>
</html> |
Partager