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
| <?php $requete=$db->query('SELECT dispo_table FROM table_preparation where numero_table_preparation2 = "2" ');
while ($donnees = $requete->fetch())
{
if ($donnees['dispo_table']=="0")
{?>
<div id="table2">
<center style="background-color: lightgrey"><h4 style="color: #E4002B">CHARIOT 2</h4>
<?php
$requete=$db->query('SELECT Sum(PE) as total_PE FROM table_ordre_fabrication WHERE numero_table_preparation = 2');
$donnees1=$requete->fetch();
$requete->closeCursor();?>
<a><h5>PE chariot : <?php echo $donnees1['total_PE'];?>
</a></h5>
</center>
<?php $requete=$db->query('SELECT * FROM table_ordre_fabrication where numero_table_preparation = 2'); ?>
<table border="1" width="100%">
<tr style="background-color: #003594" >
<b>
<td style="background-color: white" >OF</td>
<td style="background-color: white" >PE</td>
<td style="background-color: white" >date et heure</td>
</b>
</tr>
<?php while ($donnees = $requete->fetch()) { ?>
<tr>
<td style="color: white"><?php echo $donnees['ordre_fabrication2']; ?></td>
<td style="color: white"><?php echo $donnees['PE']; ?></td>
<td style="color: white"><?php echo $donnees['date_lotissage_pret']; ?></td>
</tr>
<?php } $requete->closeCursor(); ?>
</table>
<form action="action/lotissage_pret.php" method="POST" enctype="multipart/form-data" >
<input type="submit" name="numero" value="2" height="30px" width="60px" >
</form>
</div>
<?php }
else{}
}
$requete->closeCursor();
?>
<?php $requete=$db->query('SELECT dispo_table FROM table_preparation where numero_table_preparation2 = "3" ');
while ($donnees = $requete->fetch())
{
if ($donnees['dispo_table']=="0")
{?>
<div id="table3">
<center style="background-color: lightgrey"><h4 style="color: #E4002B">CHARIOT 3</h4>
<?php
$requete=$db->query('SELECT Sum(PE) as total_PE FROM table_ordre_fabrication WHERE numero_table_preparation = 3');
$donnees1=$requete->fetch();
$requete->closeCursor();?>
<a><h5>PE chariot : <?php echo $donnees1['total_PE'];?>
</a></h5>
</center>
<?php $requete=$db->query('SELECT * FROM table_ordre_fabrication where numero_table_preparation = 3'); ?>
<table border="1" width="100%">
<tr style="background-color: #003594" >
<b>
<td style="background-color: white" style="color: black" >OF</td>
<td style="background-color: white" >PE</td>
<td style="background-color: white" >date et heure</td>
</b>
</tr>
<?php while ($donnees = $requete->fetch()) { ?>
<tr>
<td style="color: white" ><?php echo $donnees['ordre_fabrication2']; ?></td>
<td style="color: white" ><?php echo $donnees['PE']; ?></td>
<td style="color: white" ><?php echo $donnees['date_lotissage_pret']; ?></td>
</tr>
<?php } $requete->closeCursor(); ?>
</table>
<form action="action/lotissage_pret.php" method="POST" enctype="multipart/form-data" >
<input type="submit" name="numero" value="3" height="30px" width="60px" >
</form>
</div>
<?php }
else{}
}
$requete->closeCursor();
?>
<?php $requete=$db->query('SELECT dispo_table FROM table_preparation where numero_table_preparation2 = "4" ');
while ($donnees = $requete->fetch())
{
if ($donnees['dispo_table']=="0")
{?>
<div id="table4">
<center style="background-color: lightgrey"><h4 style="color: #E4002B">CHARIOT 4</h4>
<?php
$requete=$db->query('SELECT Sum(PE) as total_PE FROM table_ordre_fabrication WHERE numero_table_preparation = 4');
$donnees1=$requete->fetch();
$requete->closeCursor();?>
<a><h5>PE chariot : <?php echo $donnees1['total_PE'];?>
</a></h5>
</center>
<?php $requete=$db->query('SELECT * FROM table_ordre_fabrication where numero_table_preparation = 4'); ?>
<table border="1" width="100%">
<tr style="background-color: #003594" >
<b>
<td style="background-color: white" >OF</td>
<td style="background-color: white" >PE</td>
<td style="background-color: white" >date et heure</td>
</b>
</tr>
<?php while ($donnees = $requete->fetch()) { ?>
<tr>
<td style="color: white" ><?php echo $donnees['ordre_fabrication2']; ?></td>
<td style="color: white" ><?php echo $donnees['PE']; ?></td>
<td style="color: white" ><?php echo $donnees['date_lotissage_pret']; ?></td>
</tr>
<?php } $requete->closeCursor(); ?>
</table>
<form action="action/lotissage_pret.php" method="POST" enctype="multipart/form-data" >
<input type="submit" name="numero" value="4" height="30px" width="60px" >
</form>
</div>
<?php }
else{}
}
$requete->closeCursor();
?>
<?php $requete=$db->query('SELECT dispo_table FROM table_preparation where numero_table_preparation2 = "5" ');
while ($donnees = $requete->fetch())
{
if ($donnees['dispo_table']=="0")
{?>
<div id="table5">
<center style="background-color: lightgrey"><h4 style="color: #E4002B">CHARIOT 5</h4>
<?php
$requete=$db->query('SELECT Sum(PE) as total_PE FROM table_ordre_fabrication WHERE numero_table_preparation = 5');
$donnees1=$requete->fetch();
$requete->closeCursor();?>
<a><h5>PE chariot : <?php echo $donnees1['total_PE'];?>
</a></h5>
</center>
<?php $requete=$db->query('SELECT * FROM table_ordre_fabrication where numero_table_preparation = 5'); ?>
<table border="1" width="100%">
<tr style="background-color: #003594" >
<b>
<td style="background-color: white" >OF</td>
<td style="background-color: white" >PE</td>
<td style="background-color: white" >date et heure</td>
</b>
</tr>
<?php while ($donnees = $requete->fetch()) { ?>
<tr>
<td style="color: white" ><?php echo $donnees['ordre_fabrication2']; ?></td>
<td style="color: white" ><?php echo $donnees['PE']; ?></td>
<td style="color: white" ><?php echo $donnees['date_lotissage_pret']; ?></td>
</tr>
<?php } $requete->closeCursor(); ?>
</table>
<form action="action/lotissage_pret.php" method="POST" enctype="multipart/form-data" >
<input type="submit" name="numero" value="5" height="30px" width="60px" >
</form>
</div>
<?php }
else{}
}
$requete->closeCursor();
?> |
Partager