Bonjour,
J'ai besoin d' avoir une ligne par transfert de stock (Magasin central vers une réserve ou d'une réserve vers une autre réserve) mais je n'y arrive pas car je ne vois pas comment indiquer à au "Row" de passer à la ligne suivante ....
Voici la requête :
elle me renvoie :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 $query = "SELECT `trans`.*,`team`.*,`local`.*,`stock`.*,`products`.*,`user`.* FROM trans LEFT JOIN `deux`.`user` ON `trans`.`customer` = `user`.`id` LEFT JOIN `deux`.`stock` ON (`trans`.`tr_IDproduct` = `stock`.`ID` OR `trans`.`tr_IDproduct2` = `stock`.`ID`) LEFT JOIN `deux`.`products` ON `stock`.`id_product` = `products`.`id` LEFT JOIN `deux`.`team` ON `stock`.`id_team` = `team`.`id` LEFT JOIN `deux`.`local` ON `stock`.`id_local` = `local`.`id`et je voudrais :Date N° Trans Equipe A Local A -> Equipe B Local B Produit Quantité Préleveur
23/12/2017 123456789 EA1155 IRS 2 -> EA1155 IRS 2 Combitips biopur stérile 0,1ml 30 Stephane
23/12/2017 123456789 test3 magasin -> test3 magasin Combitips biopur stérile 0,1ml 30 StephaneVoici le code:Date N° Trans Equipe A Local A -> Equipe B Local B Produit Quantité Préleveur
23/12/2017 123456789 EA1155 IRS 2 -> test3 magasin Combitips biopur stérile 0,1ml 30 StephaneC'est à partir de echo '<td class="txtCenter">' . "->" . '</td>'; que je voudrais lui faire lire la deuxième ligne .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 </script> <p class="introText"> <?php echo '<table id="fileData" width="100%" cellpadding="3" cellspacing="0">'; echo '<thead>'; // echo '<th style="width: 19px;" class="ui-state-default"></th>'; echo '<th class="ui-state-default" style="width: 40px; text-align: center;">'. $LANG['date'] .'</th>'; echo '<th style="width: 60px; text-align: center;" class="ui-state-default">'. $LANG['trans_no'] .'</th>'; echo '<th style="width: 40px; text-align: center;" class="ui-state-default">'. $LANG['trans_team1'] .'</th>'; echo '<th style="width: 40px; text-align: center;" class="ui-state-default">'. $LANG['trans_local1'] .'</th>'; echo '<th style="width: 10px; text-align: center;" class="ui-state-default">'. "->" .'</th>'; echo '<th style="width: 40px; text-align: center;" class="ui-state-default">'. $LANG['trans_team2'] .'</th>'; echo '<th style="width: 40px; text-align: center;" class="ui-state-default">'. $LANG['trans_local2'] .'</th>'; //echo '<th style="width: 90px; text-align: center;" class="ui-state-default">'. $LANG['product_code'] .'</th>'; echo '<th class="ui-state-default" style="width: 150px; text-align: left;">'. $LANG['product_description'] .'</th>'; echo '<th style="width: 65px; text-align: center;" class="ui-state-default">'. $LANG['quantity'] .'</th>'; echo '<th style="width: 80px; text-align: center;" class="ui-state-default">'. $LANG['customer'] .'</th>'; //echo '<th style="width: 80px; text-align: center;" class="ui-state-default">'. $LANG['reference'] .'</th>'; echo '<th style="width: 40px; padding-right: 5px; padding-left: 5px; text-align: center;" class="ui-state-default" id="task">'. $LANG['actions'] .'</th>'; echo '</thead>'; echo '<tbody>'; while ($row = mysql_fetch_assoc($results)) { $orderdate = strtotime($row['tr_date']); $fdate = strftime("%d/%m/%Y", $orderdate); echo '<tr>'; echo '<td class="txtCenter">' . $fdate . '</td>'; echo '<td class="txtCenter">' . $row['tr_no'] . '</td>'; echo '<td class="txtCenter">' . $row['team'] . '</td>'; echo '<td class="txtCenter">' . $row['local_name'] . '</td>'; echo '<td class="txtCenter">' . "->" . '</td>'; echo '<td class="txtCenter">' . $row['team'] . '</td>'; echo '<td class="txtCenter">' . $row['local_name'] . '</td>'; echo '<td class="txtLeft">' . $row['pr_name'] . '</td>'; echo '<td class="txtCenter">' . $row['tr_quantity'] . '</td>'; echo '<td class="txtCenter">' . $row['name'] . '</td>'; echo '<td class="txtCenter" id="task1"> <a href="edit_trans.php?trans_id=' . $row['id'] . '"> <img src="images/edit.png" width="16" height="16" title="edit sale" style="margin:1px;"/> </a> <a href="view_trans.php?trans_id=' . $row['id'] . '" onClick="return confirm(\''. $LANG['alert_trans_del'] .'\');"> <img src="images/delete.png" width="16" height="16" title="delete trans" style="margin:1px;"/> </a> </td>'; echo '</tr>';
Partager