示例#1
0
文件: MHome.php 项目: kingsj/zeuscart
 /**
  * This function is used to display the Home Page
  *
  * @return string
  */
 function homePage()
 {
     $output = array();
     include 'classes/Core/CHome.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['skinname'] = Core_CHome::skinName();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['currentDate'] = date('D,M d,Y - h:i A');
     $output['banner'] = Core_CHome::getBanner();
     $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     Bin_Template::createTemplate('header.html', $output);
 }
示例#2
0
 /**
  * This function is used to Display the Payment Method Page
  *
  * @return string
  */
 function dispGetDetails()
 {
     include 'classes/Core/CHome.php';
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['currentDate'] = date('Y-m-d , H:M:s');
     $output['skinname'] = Core_CHome::skinName();
     $output['bannerimage'] = Core_CHome::getBanner();
     $output['bannerurl'] = Core_CHome::getBannerUrl();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     include 'classes/Core/CHsbcPayment.php';
     include 'classes/Display/DHsbcPayment.php';
     $output['hsbcpayment'] = Display_DHsbcPayment::dispGetDetails();
     Bin_Template::createTemplate('HsbcPayment.html', $output);
 }
示例#3
0
 /**
  * This function is used to Display the Featured Items
  *
  * @return string
  */
 function showFeaturedItems()
 {
     include_once 'classes/Core/CFeaturedItems.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CKeywordSearch.php';
     include_once 'classes/Display/DKeywordSearch.php';
     include_once 'classes/Core/CHome.php';
     include 'classes/Lib/TagClouds.php';
     include 'classes/Core/CTagClouds.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['currentDate'] = date('D,M d,Y - h:i A');
     $output['skinname'] = Core_CHome::skinName();
     $output['banner'] = Core_CHome::getBanner();
     $output['signup'] = Display_DUserRegistration::signUp();
     $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['categories'] = Display_DUserRegistration::showMainCat();
     $output['tagClouds'] = Core_CTagClouds::displayTagClouds();
     $output['showBestSellingProducts'] = Core_CFeaturedItems::showBestSellingProducts();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $default = new Core_CFeaturedItems();
     $output['featured'] = $default->featuredProducts();
     Bin_Template::createTemplate('featureditems.html', $output);
 }
示例#4
0
 /**
  * This function is used to Display the Extended Search Page
  *
  * @return HTML data
  */
 function extendedSearch()
 {
     include_once 'classes/Core/CFeaturedItems.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CWishList.php';
     include 'classes/Display/DWishList.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include_once 'classes/Core/CNewProducts.php';
     include_once 'classes/Display/DNewProducts.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     $default = new Core_CNewProducts();
     $output['newproducts'] = $default->newProducts();
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings();
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Core/CHome.php';
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['currentDate'] = date('D,M d,Y - h:i A');
     $output['skinname'] = Core_CHome::skinName();
     $output['banner'] = Core_CHome::getBanner();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $sort = $_POST['selsort'];
     $mode = $_POST['selmode'];
     $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory();
     $output['extendedsearch'] = Core_CKeywordSearch::extendedSearch($sort, $mode);
     $cou = $_SESSION['countsearch'];
     $output['countrecords'] = Core_CKeywordSearch::countSearch($cou);
     $output['disppagesize'] = Display_DKeywordSearch::displayPageSize();
     $output['searchsession'] = Display_DKeywordSearch::searchSession($search);
     $output['disppricerange'] = Core_CKeywordSearch::priceRange();
     if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") {
         $output['features'] = Core_CKeywordSearch::featureList();
     }
     if ((int) $_SESSION['countsearch'] > 0) {
         $output['dispselection'] = Display_DKeywordSearch::displaySelection();
     }
     $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['mylink'] = Core_CKeywordSearch::linkMode();
     $output['sortby'] = Display_DKeywordSearch::sortBy();
     Bin_Template::createTemplate('searchpage.html', $output);
 }
示例#5
0
 /**
  * This function is used to delete  Product
  *
  * @return string
  */
 function deleteProduct()
 {
     include 'classes/Core/CWishList.php';
     include 'classes/Display/DWishList.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include_once 'classes/Core/CNewProducts.php';
     include_once 'classes/Display/DNewProducts.php';
     include_once 'classes/Core/CFeaturedItems.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include 'classes/Core/CHome.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['signup'] = Display_DUserRegistration::signUp();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['currentDate'] = date('D,M d,Y - h:i A');
     $output['skinname'] = Core_CHome::skinName();
     $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['banner'] = Core_CHome::getBanner();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $default = new Core_CWishList();
     $output['viewCompareProducts'] = $default->deleteProduct();
     $default = new Core_CFeaturedItems();
     $output['maincatimage'] = $default->showMainCategory();
     $output['allfeaturedproducts'] = $default->featuredProducts();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $default = new Core_CNewProducts();
     $output['newproducts'] = $default->newProducts();
     if ($_SESSION['user_id'] != '') {
         $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     }
     Bin_Template::createTemplate('index.html', $output);
 }