[ Index ] |
|
Code source de osCommerce 2.2ms2-060817 |
1 <?php 2 /* 3 $Id: stats_products_purchased.php,v 1.29 2003/06/29 22:50:52 hpdl Exp $ 4 5 osCommerce, Open Source E-Commerce Solutions 6 http://www.oscommerce.com 7 8 Copyright (c) 2003 osCommerce 9 10 Released under the GNU General Public License 11 */ 12 13 require ('includes/application_top.php'); 14 ?> 15 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 16 <html <?php echo HTML_PARAMS; ?>> 17 <head> 18 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 19 <title><?php echo TITLE; ?></title> 20 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 21 <script language="javascript" src="includes/general.js"></script> 22 </head> 23 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> 24 <!-- header //--> 25 <?php require(DIR_WS_INCLUDES . 'header.php'); ?> 26 <!-- header_eof //--> 27 28 <!-- body //--> 29 <table border="0" width="100%" cellspacing="2" cellpadding="2"> 30 <tr> 31 <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> 32 <!-- left_navigation //--> 33 <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> 34 <!-- left_navigation_eof //--> 35 </table></td> 36 <!-- body_text //--> 37 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 38 <tr> 39 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 40 <tr> 41 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 42 <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 43 </tr> 44 </table></td> 45 </tr> 46 <tr> 47 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 48 <tr> 49 <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 50 <tr class="dataTableHeadingRow"> 51 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NUMBER; ?></td> 52 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS; ?></td> 53 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_PURCHASED; ?> </td> 54 </tr> 55 <?php 56 if (isset($HTTP_GET_VARS['page']) && ($HTTP_GET_VARS['page'] > 1)) $rows = $HTTP_GET_VARS['page'] * MAX_DISPLAY_SEARCH_RESULTS - MAX_DISPLAY_SEARCH_RESULTS; 57 $products_query_raw = "select p.products_id, p.products_ordered, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id. "' and p.products_ordered > 0 group by pd.products_id order by p.products_ordered DESC, pd.products_name"; 58 $products_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $products_query_raw, $products_query_numrows); 59 60 $rows = 0; 61 $products_query = tep_db_query($products_query_raw); 62 while ($products = tep_db_fetch_array($products_query)) { 63 $rows++; 64 65 if (strlen($rows) < 2) { 66 $rows = '0' . $rows; 67 } 68 ?> 69 <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<?php echo tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_STATS_PRODUCTS_PURCHASED . '?page=' . $HTTP_GET_VARS['page'], 'NONSSL'); ?>'"> 70 <td class="dataTableContent"><?php echo $rows; ?>.</td> 71 <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_STATS_PRODUCTS_PURCHASED . '?page=' . $HTTP_GET_VARS['page'], 'NONSSL') . '">' . $products['products_name'] . '</a>'; ?></td> 72 <td class="dataTableContent" align="center"><?php echo $products['products_ordered']; ?> </td> 73 </tr> 74 <?php 75 } 76 ?> 77 </table></td> 78 </tr> 79 <tr> 80 <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 81 <tr> 82 <td class="smallText" valign="top"><?php echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> 83 <td class="smallText" align="right"><?php echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?> </td> 84 </tr> 85 </table></td> 86 </tr> 87 </table></td> 88 </tr> 89 </table></td> 90 <!-- body_text_eof //--> 91 </tr> 92 </table> 93 <!-- body_eof //--> 94 95 <!-- footer //--> 96 <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 97 <!-- footer_eof //--> 98 </body> 99 </html> 100 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 19:48:25 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |