<div class="facturen-navigation"> <a href="<?php echo tep_href_link(FILENAME_INFOPAGE, 'page=25'); ?> " class="button-a"><?php echo Translate('Lijst facturen'); ?> </a> <a href="<?php echo tep_href_link(FILENAME_INFOPAGE, 'page=25'); ?> ?details=J" class="button-a"><?php echo Translate('Lijst gefactureerde artikelen'); ?> </a> </div> <?php if (isset($_GET['order_id'])) { echo ViewDocRequest($_GET['order_id'], 'F'); } else { if ($_GET['details'] == 'J') { echo ListDocRequest('F', 'J'); } else { echo ListDocRequest('F', 'N'); } }
<td><h1><?php echo Translate('Bestelgeschiedenis'); ?> </h1></td> </tr> <tr> <td height="10"></td> </tr> <?php if (SOAP_STATUS == 'true' && SOAP_ACCOUNT_HISTORY == 'true') { ?> <tr> <td> <div class="box order-list"> <?php echo ListDocRequest(); ?> </div> </td> </tr> <?php } else { $orders_total = tep_count_customer_orders(); if ($orders_total > 0) { ////////////////////////////////////////////////////////////////// #1178 - 29-05-2013 $history_query_raw = "select o.orders_id, o.date_purchased, o.delivery_name, o.billing_name, ot.class, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int) $customer_id . "' and o.orders_id = ot.orders_id and (ot.class = 'ot_total' or ot.class = 'order_total') and o.orders_status = s.orders_status_id and s.language_id = '" . (int) $languages_id . "' order by orders_id DESC"; ////////////////////////////////////////////////////////////////// #1178 - 29-05-2013 $history_split = new splitPageResults($history_query_raw, MAX_DISPLAY_ORDER_HISTORY); $history_query = tep_db_query($history_split->sql_query); $i = 0; while ($history = tep_db_fetch_array($history_query)) {
<div class="orders-navigation"> <a href="<?php echo tep_href_link(FILENAME_INFOPAGE, 'page=8'); ?> " class="button-a"><?php echo Translate('Lijst bestellingen'); ?> </a> <a href="<?php echo tep_href_link(FILENAME_INFOPAGE, 'page=8'); ?> ?details=J" class="button-a"><?php echo Translate('Lijst bestelde artikelen'); ?> </a> </div> <?php if (isset($_GET['order_id'])) { echo ViewDocRequest($_GET['order_id'], 'B'); } else { if ($_GET['details'] == 'J') { echo ListDocRequest('B', 'J'); } else { echo ListDocRequest('B', 'N'); } }