예제 #1
0
 public function run($results = '')
 {
     if (!empty($this->parameters)) {
         $results = $this->doSearch();
     }
     $v = new ProductsView();
     $v->setMessages($this->messages);
     $v->run($results);
 }
예제 #2
0
파일: index.php 프로젝트: Stuskoski/appDev
include "includer.php";
$url = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
//echo "URL: $url <br>";
$urlPieces = explode("/", $url);
//print_r($urlPieces);
echo "<br>";
if (count($urlPieces) < 2) {
    $control = "none";
} else {
    $control = $urlPieces[2];
}
//echo "Control: $control <br>";
switch ($control) {
    case "products":
        MasterView::showHeader();
        ProductsView::show();
        MasterView::showFooter();
        break;
    case "specials":
        MasterView::showHeader();
        SpecialsView::show();
        MasterView::showFooter();
        break;
    case "myaccount":
        MasterView::showHeader();
        AccountView::show();
        MasterView::showFooter();
        break;
    case "signup":
        MasterView::showHeader();
        SignUpView::show();
<?php 
//TODO:
/**
 * Build Filter Panel
 * Get Category Info
 */
require 'includes/classes/products.php';
require DIR_WS_MODULES . zen_get_module_directory("productsHome.php");
if (!isset($thisparams['cid'])) {
    ?>
invalid request<?php 
}
$prodsObj = new ProductsView(false);
?>
    <script type="text/javascript">
       ProductWinL[<?php 
echo $thisparams['cid'];
?>
].items[1].progressOff();
    </script>
<?php 
echo "<link type='text/css' rel='Stylesheet' href='includes/templates/EZTennisReloaded/css/listing.css' />";
$cust_template_directory = DIR_WS_TEMPLATE;
echo "\n    <!--[if IE]>\n        <link type='text/css' rel='Stylesheet' href='includes/templates/EZTennisReloaded/css/ielisting.css' />\n    <![endif]-->";
$prodsObj->GetProductContent($thisparams['cid']);
echo $prodsObj->content;
<?php 
//TODO:
/**
 * Build Filter Panel
 * Get Category Info
 */
require 'includes/classes/products.php';
require DIR_WS_MODULES . zen_get_module_directory("productsHome.php");
if (!isset($thisparams['cid'])) {
    ?>
invalid request<?php 
}
$prodsObj = new ProductsView(false);
?>
<div id="prodFilterPanel">
    <div class="lblProdSearchTitle">Search</div>
</div>
<?php 
$mode = "list";
$sortby = "price";
$prodsObj->GetProductsListing($thisparams['cid'], $mode, $sortby);
echo $prodsObj->content;