root / src / cl_passages.MVC.php @ 08b9c951
Historique | Voir | Annoter | Télécharger (1,01 ko)
1 | e45ece5c | Florent Chuffart | <?php
|
---|---|---|---|
2 | e45ece5c | Florent Chuffart | function pre_print_r($obj) { |
3 | e45ece5c | Florent Chuffart | echo "<PRE>"; |
4 | e45ece5c | Florent Chuffart | print_r($obj); |
5 | e45ece5c | Florent Chuffart | echo "</PRE>"; |
6 | e45ece5c | Florent Chuffart | } |
7 | e45ece5c | Florent Chuffart | |
8 | e45ece5c | Florent Chuffart | $results = $this->myQuery("SELECT cl_storage.ID, cl_storage.container, cl_storage.rack, cl_storage.box, cl_storage.field_y, cl_storage.field_x FROM `cl_storage` WHERE cl_storage.cl_passages='" . $this->rec . "'"); |
9 | e45ece5c | Florent Chuffart | |
10 | e45ece5c | Florent Chuffart | |
11 | e45ece5c | Florent Chuffart | $table_of_passages = "<table class=\"pme-main\"><tr class=\"pme-navigation\"> |
12 | e45ece5c | Florent Chuffart | <th class=\"pme-header\">Storage</th>
|
13 | e45ece5c | Florent Chuffart | </tr>";
|
14 | e45ece5c | Florent Chuffart | |
15 | e45ece5c | Florent Chuffart | while ($row = mysql_fetch_array($results)) { |
16 | e45ece5c | Florent Chuffart | // pre_print_r($row);
|
17 | e45ece5c | Florent Chuffart | $table_of_passages .= "<tr class=\"pme-row-0\"> |
18 | 08b9c951 | Florent Chuffart | <td class=\"pme-cell-0\"><a href=\"rack.php?action=update_view&passage=" . $this->rec . "&container=" . $row["container"] . "&rack=" . $row["rack"] . "&box=" . $row["box"] . "\">c" . $row["container"] . " r" . $row["rack"] . " b" . $row["box"] . "</a> " . $row["field_y"] . "" . $row["field_x"] . "</td> |
19 | e45ece5c | Florent Chuffart | </tr>";
|
20 | e45ece5c | Florent Chuffart | |
21 | e45ece5c | Florent Chuffart | } |
22 | e45ece5c | Florent Chuffart | |
23 | e45ece5c | Florent Chuffart | $table_of_passages .= "</table>"; |
24 | e45ece5c | Florent Chuffart | |
25 | e45ece5c | Florent Chuffart | // pre_print_r($ids);
|
26 | e45ece5c | Florent Chuffart | |
27 | e45ece5c | Florent Chuffart | |
28 | e45ece5c | Florent Chuffart | |
29 | e45ece5c | Florent Chuffart | |
30 | e45ece5c | Florent Chuffart | $to_be_post_list_content .= <<<EOD |
31 | e45ece5c | Florent Chuffart | <div class="sheet">
|
32 | e45ece5c | Florent Chuffart | $table_of_passages
|
33 | e45ece5c | Florent Chuffart | </div>
|
34 | e45ece5c | Florent Chuffart | EOD;
|
35 | e45ece5c | Florent Chuffart | |
36 | e45ece5c | Florent Chuffart | ?> |