Example #1
0
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td><h1><?php 
echo HEADING_TITLE;
?>
</h1></td>
    <td class="smallText" align="right"><?php 
echo '<input type="button" value="' . IMAGE_BACK . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $_GET['oID']) . '\';" class="operationButton">';
?>
</td>
  </tr>
</table>

<?php 
if ($osC_Order->isValid() === false) {
    $osC_MessageStack->add('orders_edit', sprintf(ERROR_ORDER_DOES_NOT_EXIST, $_GET['oID']), 'error');
    echo $osC_MessageStack->output('orders_edit');
} else {
    ?>

<p>
  <input type="button" value="Summary" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionSummary');"> <input type="button" value="Products" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionProducts');"> <input type="button" value="Status History" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionStatusHistory');">
  <input type="button" value="<?php 
    echo IMAGE_ORDERS_INVOICE;
    ?>
" onClick="window.open('<?php 
    echo tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']);
    ?>
');" class="infoBoxButton"> <input type="button" value="<?php 
    echo IMAGE_ORDERS_PACKINGSLIP;
Example #2
0
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
require 'includes/classes/tax.php';
$osC_Tax = new osC_Tax_Admin();
$osC_Order = new osC_Order($_GET['oID']);
if (!$osC_Order->isValid()) {
    $osC_MessageStack->add($osC_Template->getModule(), sprintf(ERROR_ORDER_DOES_NOT_EXIST, $_GET['oID']), 'error');
}
$tabIndex = 0;
if (isset($_GET['tabIndex']) && !empty($_GET['tabIndex'])) {
    switch ($_GET['tabIndex']) {
        case 'tabProducts':
            $tabIndex = 1;
            break;
        case 'tabTransactionHistory':
            $tabIndex = 2;
            break;
        case 'tabStatusHistory':
            $tabIndex = 3;
            break;
    }