<td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td><?php echo smn_draw_separator(); ?> </td> </tr> <tr> <td valign="top"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo TEXT_AFFILIATE; ?> </b></td> <td class="main"><?php echo smn_address_format($payments['affiliate_address_format_id'], $affiliate_address, 1, ' ', '<br>'); ?> </td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '5'); ?> </td> </tr> <tr> <td class="main"><b><?php echo TEXT_AFFILIATE_PAYMENT; ?> </b></td> <td class="main"> <?php
?> </td> </tr> <tr> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main"><?php echo smn_address_format($format_id, $addresses, true, ' ', ', '); ?> </td> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> </table></td> <td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> </table></td> <td><?php
</tr> </table></td> </tr> </table></td> <td align="center" valign="top"><table align="center" width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor=#000000> <tr> <td align="center" valign="top"><table align="center" width="100%" border="0" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><b><?php echo ENTRY_SHIP_TO; ?> </b></td> </tr> <tr class="dataTableRow"> <td class="dataTableContent"><?php echo smn_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr>
</tr> <tr> <td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td> <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_SHIPPING_ADDRESS; ?></b></td> <td class="main"><?php echo smn_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_BILLING_ADDRESS; ?></b></td> <td class="main"><?php echo smn_address_format($order->billing['format_id'], $order->billing, 1, '', '<br>'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> <?php
</td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <!--Added the store id in the FILENAME_CHECKOUT_PAYMENT_ADDRESS by Cimi on June 12,2007 --> <td class="main"><?php echo '<b>' . HEADING_BILLING_ADDRESS . '</b> <a href="' . smn_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, 'ID=' . $_REQUEST['ID'], 'NONSSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?> </td> </tr> <tr> <td class="main"><?php echo smn_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'); ?> </td> </tr> <tr> <!--Added the store id in the FILENAME_CHECKOUT_PAYMENT by Cimi on June 12,2007 --> <td class="main"><?php echo '<b>' . HEADING_PAYMENT_METHOD . '</b> <a href="' . smn_href_link(FILENAME_CHECKOUT_PAYMENT, 'ID=' . $_REQUEST['ID'], 'NONSSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?> </td> </tr> <tr> <td class="main"><?php echo $order->info['payment_method']; ?> </td>
function smn_address_label($customers_id, $address_id = 1, $html = false, $boln = '', $eoln = "\n") { if (is_array($address_id) && !empty($address_id)) { return smn_address_format($address_id['address_format_id'], $address_id, $html, $boln, $eoln); } $address_query = smn_db_query("select entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int) $customers_id . "' and address_book_id = '" . (int) $address_id . "'"); $address = smn_db_fetch_array($address_query); $format_id = smn_get_address_format_id($address['country_id']); return smn_address_format($format_id, $address, $html, $boln, $eoln); }
} } if ($_POST['payment_status'] == 'Completed') { // START STATUS == Completed LOOP $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $invoice_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . smn_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $invoice_id, 'NONSSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= smn_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . smn_address_format($order->delivery['format_id'], $order->delivery, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . smn_address_format($order->billing['format_id'], $order->billing, 0, '', "\n") . "\n\n"; if (is_object(${$payment})) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = ${$payment}; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } smn_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } if ($_POST['payment_status'] == 'Pending') { // START STATUS == Pending LOOP $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $invoice_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . smn_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $invoice_id, 'NONSSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n" . EMAIL_SEPARATOR . "\n" . EMAIL_PAYPAL_PENDING_NOTICE . "\n\n"; smn_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); }