<td class="main" width="50%" valign="top"><?php 
    echo TEXT_SELECTED_SHIPPING_DESTINATION;
    ?>
</td>
                <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main" align="center" valign="top"><?php 
    echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . smn_image(DIR_WS_IMAGES . 'arrow_south_east.gif');
    ?>
</td>
                    <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                    <td class="main" valign="top"><?php 
    echo smn_address_label($customer_id, $sendto, true, ' ', '<br>');
    ?>
</td>
                    <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
if ($set_member_product == 'true') {
    $email_order .= EMAIL_TEXT_MEMBER_PRODUCT . ' ' . $product_end_date . "\n\n";
}
// lets start with the email confirmation
$email_order .= $store->get_store_name() . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . smn_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_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_label($customer_id, $sendto, 0, '', "\n") . "\n";
}
$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . smn_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
if (is_object(${$payment})) {
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n";
    $payment_class = ${$payment};
    $email_order .= $order->info['payment_method'] . "\n\n";
    if ($payment_class->email_footer) {
        $email_order .= $payment_class->email_footer . "\n\n";
    }
}
smn_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, $store->get_store_owner(), $store->get_store_owner_email_address());
// load the after_process function from the payment modules
$payment_modules->after_process();
// unregister session variables used during checkout
smn_session_unregister('sendto');
smn_session_unregister('billto');
smn_session_unregister('shipping');
</td>
                <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main" align="center" valign="top"><b><?php 
    echo SELECTED_ADDRESS;
    ?>
</b><br><?php 
    echo smn_image(DIR_WS_IMAGES . 'arrow_south_east.gif');
    ?>
</td>
                    <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                    <td class="main" valign="top"><?php 
    echo smn_address_label($customer_id, $_GET['delete'], true, ' ', '<br>');
    ?>
</td>
                    <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
Exemplo n.º 4
0
</td>
                <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main" align="center" valign="top"><b><?php 
echo PRIMARY_ADDRESS_TITLE;
?>
</b><br><?php 
echo smn_image(DIR_WS_IMAGES . 'arrow_south_east.gif');
?>
</td>
                    <td><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                    <td class="main" valign="top"><?php 
echo smn_address_label($customer_id, $customer_default_address_id, true, ' ', '<br>');
?>
</td>
                    <td><?php 
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
            <td class="smallText"><?php 
    echo TEXT_ADDRESS_BOOK_NO_ENTRIES;
    ?>
</td>
          </tr>
<?php 
} else {
    ?>
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php 
    while ($address_book_values = smn_db_fetch_array($address_book)) {
        $row++;
        echo '              <tr class="shippingOptions-' . ($row / 2 == floor($row / 2) ? 'odd' : 'even') . '">' . "\n";
        echo '                <td align="right" valign="top" class="smallText">' . number_format($row - 1) . '.</td>' . "\n";
        echo '                <td class="smallText">' . smn_address_label($customer_id, $address_book_values['address_book_id'], true) . '</td>' . "\n";
        echo '                <td align="right" class="smallText"><input type="radio" name="sendto" value="' . $address_book_values['address_book_id'] . '"' . ($address_book_values['address_book_id'] == $sendto ? ' checked' : '') . '></td>' . "\n";
        echo '              </tr>' . "\n";
    }
    ?>
            </table></td>
          </tr>
<?php 
}
?>
          <tr>
            <td class="main"><br><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
<?php 
if ($row <= MAX_ADDRESS_BOOK_ENTRIES) {
    echo '                <td class="main"><a href="' . smn_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'entry_id=' . ($row + 1), 'NONSSL') . '">' . smn_image_button('button_add_address.gif', IMAGE_BUTTON_ADD_ADDRESS) . '</a></td>' . "\n";