root / src / cl_passages.MVC.php @ 08b9c951
Historique | Voir | Annoter | Télécharger (1,01 ko)
1 |
<?php
|
---|---|
2 |
function pre_print_r($obj) { |
3 |
echo "<PRE>"; |
4 |
print_r($obj); |
5 |
echo "</PRE>"; |
6 |
} |
7 |
|
8 |
$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 |
|
10 |
|
11 |
$table_of_passages = "<table class=\"pme-main\"><tr class=\"pme-navigation\"> |
12 |
<th class=\"pme-header\">Storage</th>
|
13 |
</tr>";
|
14 |
|
15 |
while ($row = mysql_fetch_array($results)) { |
16 |
// pre_print_r($row);
|
17 |
$table_of_passages .= "<tr class=\"pme-row-0\"> |
18 |
<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 |
</tr>";
|
20 |
|
21 |
} |
22 |
|
23 |
$table_of_passages .= "</table>"; |
24 |
|
25 |
// pre_print_r($ids);
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
$to_be_post_list_content .= <<<EOD |
31 |
<div class="sheet">
|
32 |
$table_of_passages
|
33 |
</div>
|
34 |
EOD;
|
35 |
|
36 |
?>
|