[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tep-commits
Subject:    [TEP-COMMIT] CVS: catalog/catalog account_history.php,1.59,1.60
From:       Harald Ponce de Leon <hpdl () users ! sourceforge ! net>
Date:       2003-05-27 17:13:13
[Download RAW message or body]

Update of /cvsroot/tep/catalog/catalog
In directory sc8-pr-cvs1:/tmp/cvs-serv32029

Modified Files:
	account_history.php 
Log Message:
use the updated splitPageResults class


Index: account_history.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/account_history.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- account_history.php	19 May 2003 20:17:49 -0000	1.59
+++ account_history.php	27 May 2003 17:13:10 -0000	1.60
@@ -61,8 +61,8 @@
 <?php
   if (($orders_total = tep_count_customer_orders()) > 0) {
     $history_query_raw = "select o.orders_id, o.date_purchased, o.delivery_name, \
o.billing_name, 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' and o.orders_status = s.orders_status_id and s.language_id = '" \
                . (int)$languages_id . "' order by orders_id DESC";
-    $history_split = new splitPageResults($HTTP_GET_VARS['page'], \
                MAX_DISPLAY_ORDER_HISTORY, $history_query_raw, $history_numrows);
-    $history_query = tep_db_query($history_query_raw);
+    $history_split = new splitPageResults($history_query_raw, \
$HTTP_GET_VARS['page'], MAX_DISPLAY_ORDER_HISTORY); +    $history_query = \
tep_db_query($history_split->sql_query);  
     while ($history = tep_db_fetch_array($history_query)) {
       $products_query = tep_db_query("select count(*) as count from " . \
TABLE_ORDERS_PRODUCTS . " where orders_id = '" . $history['orders_id'] . "'"); @@ \
-108,8 +108,8 @@  if ($orders_total > 0) {
 ?>
           <tr>
-            <td class="smallText" valign="top"><?php echo \
$history_split->display_count($history_numrows, MAX_DISPLAY_ORDER_HISTORY, \
                $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td>
-            <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE; echo \
$history_split->display_links($history_numrows, MAX_DISPLAY_ORDER_HISTORY, \
MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', \
'info', 'x', 'y'))); ?></td> +            <td class="smallText" valign="top"><?php \
echo $history_split->display_count(TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td> +          \
<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . \
$history_split->display_links(MAX_DISPLAY_PAGE_LINKS, \
tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>  </tr>
 <?php
   }



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic