[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 // 3 // +----------------------------------------------------------------------+ 4 // |zen-cart Open Source E-commerce | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 2003 The zen-cart developers | 7 // | | 8 // | http://www.zen-cart.com/index.php | 9 // | | 10 // | Portions Copyright (c) 2003 osCommerce | 11 // +----------------------------------------------------------------------+ 12 // | This source file is subject to version 2.0 of the GPL license, | 13 // | that is bundled with this package in the file LICENSE, and is | 14 // | available through the world-wide-web at the following url: | 15 // | http://www.zen-cart.com/license/2_0.txt. | 16 // | If you did not receive a copy of the zen-cart license and are unable | 17 // | to obtain it through the world-wide-web, please send a note to | 18 // | license@zen-cart.com so we can mail you a copy immediately. | 19 // +----------------------------------------------------------------------+ 20 // $Id: stats_products_lowstock.php 1969 2005-09-13 06:57:21Z drbyte $ 21 // 22 require ('includes/application_top.php'); 23 24 ?> 25 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 26 <html <?php echo HTML_PARAMS; ?>> 27 <head> 28 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 29 <title><?php echo TITLE; ?></title> 30 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 31 <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS"> 32 <script language="javascript" src="includes/menu.js"></script> 33 <script language="javascript" src="includes/general.js"></script> 34 <script type="text/javascript"> 35 <!-- 36 function init() 37 { 38 cssjsmenu('navbar'); 39 if (document.getElementById) 40 { 41 var kill = document.getElementById('hoverJS'); 42 kill.disabled = true; 43 } 44 } 45 // --> 46 </script> 47 </head> 48 <body onload="init()"> 49 <!-- header //--> 50 <?php require(DIR_WS_INCLUDES . 'header.php'); ?> 51 <!-- header_eof //--> 52 53 <!-- body //--> 54 <table border="0" width="100%" cellspacing="2" cellpadding="2"> 55 <tr> 56 <!-- body_text //--> 57 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> 58 <tr> 59 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 60 <tr> 61 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 62 <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 63 </tr> 64 </table></td> 65 </tr> 66 <tr> 67 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 68 <tr> 69 <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 70 <tr class="dataTableHeadingRow"> 71 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NUMBER; ?></td> 72 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS; ?></td> 73 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_VIEWED; ?> </td> 74 </tr> 75 <?php 76 if (isset($_GET['page']) && ($_GET['page'] > 1)) $rows = $_GET['page'] * MAX_DISPLAY_SEARCH_RESULTS_REPORTS - MAX_DISPLAY_SEARCH_RESULTS_REPORTS; 77 $rows = 0; 78 $products_query_raw = "select p.products_id, pd.products_name, p.products_quantity, p.products_type from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id='" . $_SESSION['languages_id'] . "' order by p.products_quantity, pd.products_name"; 79 $products_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS_REPORTS, $products_query_raw, $products_query_numrows); 80 $products = $db->Execute($products_query_raw); 81 while (!$products->EOF) { 82 83 // only show low stock on products that can be added to the cart 84 if ($zc_products->get_allow_add_to_cart($products->fields['products_id']) == 'Y') { 85 86 $rows++; 87 88 if (strlen($rows) < 2) { 89 $rows = '0' . $rows; 90 } 91 92 $type_handler = $zc_products->get_admin_handler($products->fields['products_type']); 93 94 $cPath = zen_get_product_path($products->fields['products_id']); 95 ?> 96 <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<?php echo zen_href_link($type_handler, '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product'); ?>'"> 97 <td class="dataTableContent" align="right"><?php echo $products->fields['products_id']; ?> </td> 98 <td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id']) . '">' . $products->fields['products_name'] . '</a>'; ?></td> 99 <td class="dataTableContent" align="center"><?php echo $products->fields['products_quantity']; ?> </td> 100 </tr> 101 <?php 102 } 103 $products->MoveNext(); 104 } 105 ?> 106 </table></td> 107 </tr> 108 <tr> 109 <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 110 <tr> 111 <td class="smallText" valign="top"><?php echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_REPORTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> 112 <td class="smallText" align="right"><?php echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_REPORTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td> 113 </tr> 114 </table></td> 115 </tr> 116 </table></td> 117 </tr> 118 </table></td> 119 <!-- body_text_eof //--> 120 </tr> 121 </table> 122 <!-- body_eof //--> 123 124 <!-- footer //--> 125 <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 126 <!-- footer_eof //--> 127 </body> 128 </html> 129 <?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 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |