Quick Search:

View

Revision:

Diff

Diff from 1764 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/frank/osc_trunk/admin/templates/pages/orders/packaging_slip.php

Annotated File View

hpdl
1
1 <?php
2 /*
hpdl
153
3   $Id: packaging_slip.php 1764 2007-12-27 21:54:07Z frank $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1410
8   Copyright (c) 2007 osCommerce
hpdl
1
9
hpdl
1498
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
hpdl
1
13 */
14
15   $osC_Order = new osC_Order($_GET['oID']);
16 ?>
hpdl
653
17
hpdl
1
18 <table border="0" width="100%" cellspacing="0" cellpadding="2">
19   <tr>
20     <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
21       <tr>
22         <td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
frank
1764
23         <td class="pageHeading" align="right"><?php echo osc_image('../images/store_logo' . STORE_LOGO_TYPE, STORE_NAME); ?></td>
hpdl
1
24       </tr>
25     </table></td>
26   </tr>
27   <tr>
28     <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
29       <tr>
hpdl
702
30         <td colspan="2">&nbsp;</td>
hpdl
1
31       </tr>
32       <tr>
33         <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
34           <tr>
hpdl
1524
35             <td><b><?php echo $osC_Language->get('subsection_billing_address'); ?></b></td>
hpdl
1
36           </tr>
37           <tr>
hpdl
1524
38             <td><?php echo osC_Address::format($osC_Order->getBilling(), '<br />'); ?></td>
hpdl
1
39           </tr>
40           <tr>
hpdl
702
41             <td>&nbsp;</td>
hpdl
1
42           </tr>
43           <tr>
hpdl
1524
44             <td><?php echo $osC_Order->getCustomer('telephone'); ?></td>
hpdl
1
45           </tr>
46           <tr>
hpdl
1524
47             <td><?php echo '<a href="mailto:' . $osC_Order->getCustomer('email_address') . '"><u>' . $osC_Order->getCustomer('email_address') . '</u></a>'; ?></td>
hpdl
1
48           </tr>
49         </table></td>
50         <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
51           <tr>
hpdl
1524
52             <td><b><?php echo $osC_Language->get('subsection_shipping_address'); ?></b></td>
hpdl
1
53           </tr>
54           <tr>
hpdl
1524
55             <td><?php echo osC_Address::format($osC_Order->getDelivery(), '<br />'); ?></td>
hpdl
1
56           </tr>
57         </table></td>
58       </tr>
59     </table></td>
60   </tr>
61   <tr>
hpdl
702
62     <td>&nbsp;</td>
hpdl
1
63   </tr>
64   <tr>
65     <td><table border="0" cellspacing="0" cellpadding="2">
66       <tr>
hpdl
1524
67         <td><b><?php echo $osC_Language->get('subsection_payment_method'); ?></b></td>
68         <td><?php echo $osC_Order->getPaymentMethod(); ?></td>
hpdl
1
69       </tr>
70     </table></td>
71   </tr>
72   <tr>
hpdl
702
73     <td>&nbsp;</td>
hpdl
1
74   </tr>
75   <tr>
hpdl
1492
76     <td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">
77       <thead>
78         <tr>
79           <th colspan="2"><?php echo $osC_Language->get('table_heading_products'); ?></th>
80           <th><?php echo $osC_Language->get('table_heading_product_model'); ?></th>
81         </tr>
82       </thead>
83       <tbody>
hpdl
1
84 <?php
85     foreach ($osC_Order->getProducts() as $product) {
hpdl
1492
86       echo '        <tr>' . "\n" .
87            '          <td valign="top" align="right">' . $product['quantity'] . '&nbsp;x</td>' . "\n" .
88            '          <td valign="top">' . $product['name'];
hpdl
1
89
90       if (isset($product['attributes']) && (sizeof($product['attributes']) > 0)) {
91         foreach ($product['attributes'] as $attribute) {
hpdl
1492
92           echo '<br /><nobr>&nbsp;&nbsp;&nbsp;' . $attribute['option'] . ': ' . $attribute['value'] . '</nobr>';
hpdl
1
93         }
94       }
95
hpdl
1492
96       echo '          </td>' . "\n" .
97            '          <td valign="top">' . $product['model'] . '</td>' . "\n";
98            '        </tr>' . "\n";
hpdl
1
99     }
100 ?>
hpdl
1492
101       </tbody>
hpdl
1
102     </table></td>
103   </tr>
104 </table>