hpdl
|
1
|
1
|
<?php
|
|
2
|
/*
|
mattice
|
151
|
3
|
$Id: packingslip.php 1180 2006-12-24 22:37:00Z frank $
|
hpdl
|
1
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
hpdl
|
410
|
8
|
Copyright (c) 2006 osCommerce
|
hpdl
|
1
|
9
|
|
|
10
|
Released under the GNU General Public License
|
|
11
|
*/
|
|
12
|
|
|
13
|
require('includes/application_top.php');
|
|
14
|
|
|
15
|
require('../includes/classes/currencies.php');
|
|
16
|
$osC_Currencies = new osC_Currencies();
|
|
17
|
|
|
18
|
include('includes/classes/order.php');
|
|
19
|
$osC_Order = new osC_Order($_GET['oID']);
|
frank
|
1180
|
20
|
|
|
21
|
$osC_Language->loadConstants('packingslip.php');
|
hpdl
|
1
|
22
|
?>
|
hpdl
|
654
|
23
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
24
|
|
|
25
|
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $osC_Language->getTextDirection(); ?>" xml:lang="<?php echo $osC_Language->getCode(); ?>" lang="<?php echo $osC_Language->getCode(); ?>">
|
|
26
|
|
hpdl
|
1
|
27
|
<head>
|
hpdl
|
654
|
28
|
|
|
29
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $osC_Language->getCharacterSet(); ?>" />
|
|
30
|
|
hpdl
|
1
|
31
|
<title><?php echo TITLE; ?></title>
|
hpdl
|
654
|
32
|
|
hpdl
|
1
|
33
|
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
|
hpdl
|
654
|
34
|
|
hpdl
|
1
|
35
|
</head>
|
hpdl
|
654
|
36
|
|
hpdl
|
1
|
37
|
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
|
hpdl
|
654
|
38
|
|
hpdl
|
1
|
39
|
|
|
40
|
<table border="0" width="100%" cellspacing="0" cellpadding="2">
|
|
41
|
<tr>
|
|
42
|
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
43
|
<tr>
|
|
44
|
<td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
|
frank
|
1180
|
45
|
<td class="pageHeading" align="right"><?php echo osc_image('images/oscommerce.jpg', 'osCommerce'); ?></td>
|
hpdl
|
1
|
46
|
</tr>
|
|
47
|
</table></td>
|
|
48
|
</tr>
|
|
49
|
<tr>
|
|
50
|
<td><table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
51
|
<tr>
|
hpdl
|
755
|
52
|
<td colspan="2"> </td>
|
hpdl
|
1
|
53
|
</tr>
|
|
54
|
<tr>
|
|
55
|
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
56
|
<tr>
|
|
57
|
<td class="main"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
|
|
58
|
</tr>
|
|
59
|
<tr>
|
hpdl
|
757
|
60
|
<td class="main"><?php echo osC_Address::format($osC_Order->getBilling(), '<br />'); ?></td>
|
hpdl
|
1
|
61
|
</tr>
|
|
62
|
<tr>
|
hpdl
|
755
|
63
|
<td> </td>
|
hpdl
|
1
|
64
|
</tr>
|
|
65
|
<tr>
|
|
66
|
<td class="main"><?php echo $osC_Order->getCustomer('telephone'); ?></td>
|
|
67
|
</tr>
|
|
68
|
<tr>
|
|
69
|
<td class="main"><?php echo '<a href="mailto:' . $osC_Order->getCustomer('email_address') . '"><u>' . $osC_Order->getCustomer('email_address') . '</u></a>'; ?></td>
|
|
70
|
</tr>
|
|
71
|
</table></td>
|
|
72
|
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
73
|
<tr>
|
|
74
|
<td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
|
|
75
|
</tr>
|
|
76
|
<tr>
|
hpdl
|
757
|
77
|
<td class="main"><?php echo osC_Address::format($osC_Order->getDelivery(), '<br />'); ?></td>
|
hpdl
|
1
|
78
|
</tr>
|
|
79
|
</table></td>
|
|
80
|
</tr>
|
|
81
|
</table></td>
|
|
82
|
</tr>
|
|
83
|
<tr>
|
hpdl
|
755
|
84
|
<td> </td>
|
hpdl
|
1
|
85
|
</tr>
|
|
86
|
<tr>
|
|
87
|
<td><table border="0" cellspacing="0" cellpadding="2">
|
|
88
|
<tr>
|
|
89
|
<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
|
|
90
|
<td class="main"><?php echo $osC_Order->getPaymentMethod(); ?></td>
|
|
91
|
</tr>
|
|
92
|
</table></td>
|
|
93
|
</tr>
|
|
94
|
<tr>
|
hpdl
|
755
|
95
|
<td> </td>
|
hpdl
|
1
|
96
|
</tr>
|
|
97
|
<tr>
|
|
98
|
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
|
|
99
|
<tr class="dataTableHeadingRow">
|
|
100
|
<td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
|
|
101
|
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
|
|
102
|
</tr>
|
|
103
|
<?php
|
|
104
|
foreach ($osC_Order->getProducts() as $product) {
|
|
105
|
echo ' <tr class="dataTableRow">' . "\n" .
|
|
106
|
' <td class="dataTableContent" valign="top" align="right">' . $product['quantity'] . ' x</td>' . "\n" .
|
|
107
|
' <td class="dataTableContent" valign="top">' . $product['name'];
|
|
108
|
|
|
109
|
if (isset($product['attributes']) && (sizeof($product['attributes']) > 0)) {
|
|
110
|
foreach ($product['attributes'] as $attribute) {
|
hpdl
|
365
|
111
|
echo '<br /><nobr><small> <i> - ' . $attribute['option'] . ': ' . $attribute['value'];
|
frank
|
1178
|
112
|
if ($attribute['price'] != '0') echo ' (' . $attribute['prefix'] . $osC_Currencies->format($attribute['price'], $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . ')';
|
hpdl
|
1
|
113
|
echo '</i></small></nobr>';
|
|
114
|
}
|
|
115
|
}
|
|
116
|
|
|
117
|
echo ' </td>' . "\n" .
|
|
118
|
' <td class="dataTableContent" valign="top">' . $product['model'] . '</td>' . "\n";
|
|
119
|
' </tr>' . "\n";
|
|
120
|
}
|
|
121
|
?>
|
|
122
|
</table></td>
|
|
123
|
</tr>
|
|
124
|
</table>
|
|
125
|
|
hpdl
|
365
|
126
|
<br />
|
hpdl
|
1
|
127
|
</body>
|
|
128
|
</html>
|
|
129
|
<?php require('includes/application_bottom.php'); ?>
|