예제 #1
0
 function _process()
 {
     global $current_category_id, $osC_Products;
     include 'includes/classes/products.php';
     $osC_Products = new osC_Products($current_category_id);
     if (isset($_GET['filter']) && is_numeric($_GET['filter']) && $_GET['filter'] > 0) {
         $osC_Products->setManufacturer($_GET['filter']);
     }
     if (isset($_GET['sort']) && !empty($_GET['sort'])) {
         if (strpos($_GET['sort'], '|d') !== false) {
             $osC_Products->setSortBy(substr($_GET['sort'], 0, -2), '-');
         } else {
             $osC_Products->setSortBy($_GET['sort']);
         }
     }
 }
예제 #2
0
 function _process()
 {
     global $osC_Manufacturer, $osC_Products;
     include 'includes/classes/products.php';
     $osC_Products = new osC_Products();
     $osC_Products->setManufacturer($osC_Manufacturer->getID());
     if (isset($_GET['filter']) && is_numeric($_GET['filter']) && $_GET['filter'] > 0) {
         $osC_Products->setCategory($_GET['filter']);
     }
     if (isset($_GET['products_attributes']) && is_array($_GET['products_attributes'])) {
         $osC_Products->setProductAttributesFilter($_GET['products_attributes']);
     }
     if (isset($_GET['sort']) && !empty($_GET['sort'])) {
         if (strpos($_GET['sort'], '|d') !== false) {
             $osC_Products->setSortBy(substr($_GET['sort'], 0, -2), '-');
         } else {
             $osC_Products->setSortBy($_GET['sort']);
         }
     }
 }
예제 #3
0
파일: new.php 프로젝트: heshuai64/gamestore
*/
?>

<?php 
echo osc_image(DIR_WS_IMAGES . $osC_Template->getPageImage(), $osC_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"');
?>

<h1><?php 
echo $osC_Template->getPageTitle();
?>
</h1>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php 
$osC_Products = new osC_Products();
$osC_Products->setSortBy('date_added', '-');
$Qproducts = $osC_Products->execute();
if ($Qproducts->numberOfRows() > 0) {
    while ($Qproducts->next()) {
        $osC_Product = new osC_Product($Qproducts->valueInt('products_id'));
        ?>

  <tr>
    <td width="<?php 
        echo $osC_Image->getWidth('thumbnails') + 10;
        ?>
" valign="top" align="center">

<?php 
        if ($osC_Product->hasImage()) {