示例#1
0
 /**
  * This function is used to display  delete wishlist  page
  *
  * @return string
  */
 function deletefromWishList()
 {
     if (!isset($_SESSION['user_id'])) {
         $prodid = $_GET['prodid'];
         $_SESSION['RequestUrl'] = '?do=wishlist&action=viewwishlist&prodid=' . $prodid;
         header("Location:?do=login");
     } else {
         include 'classes/Display/DWishList.php';
         include 'classes/Core/CWishList.php';
         include 'classes/Core/CKeywordSearch.php';
         include 'classes/Display/DKeywordSearch.php';
         include 'classes/Core/CUserRegistration.php';
         include 'classes/Display/DUserRegistration.php';
         include_once 'classes/Core/CUserWishList.php';
         include_once 'classes/Core/CHome.php';
         include "classes/Lib/HandleErrors.php";
         include_once 'classes/Core/CLastViewedProducts.php';
         include_once 'classes/Display/DLastViewedProducts.php';
         include_once 'classes/Core/CAddCart.php';
         include_once 'classes/Core/CUserWishList.php';
         include_once 'classes/Core/CCurrencySettings.php';
         Core_CCurrencySettings::getDefaultCurrency();
         Core_CUserWishList::Ulogin($Err);
         $output['val'] = $Err->values;
         $output['msg'] = $Err->messages;
         $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['footer'] = Core_CHome::footer();
         $output['footerconnect'] = Core_CHome::getfooterconnect();
         $output['sociallink'] = Core_CHome::showSocialLinks();
         $output['result'] = $result;
         $output['loginStatus'] = Core_CUserRegistration::loginStatus();
         $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
         $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
         $output['headertext'] = Core_CUserRegistration::showHeaderText();
         $output['divStat'] = Core_CUserWishList::getStatus();
         $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu();
         $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
         $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu();
         $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts();
         $output['userRight'] = "userWishlist.html";
         $default = new Core_CWishList();
         $output['message'] = $default->deletefromWishList();
         $output['rows'] = Core_CUserWishList::showWishList();
         $output['cartcount'] = Core_CAddCart::countCart();
         Bin_Template::createTemplate('userIndex.html', $output);
     }
 }
示例#2
0
 /**
  * This function is used to show  product wishlist  after login
  * @param  string $result
  * @return string
  */
 function showWishList($result = '')
 {
     //language
     include_once 'classes/Core/CLanguage.php';
     Core_CLanguage::setLanguage('MY_WISHLIST');
     $this->checkLogin();
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include_once 'classes/Core/CUserWishList.php';
     include_once 'classes/Core/CHome.php';
     include "classes/Lib/HandleErrors.php";
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CAddCart.php';
     include_once 'classes/Core/CUserWishList.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     Core_CUserWishList::Ulogin($Err);
     $output['val'] = $Err->values;
     $output['msg'] = $Err->messages;
     $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['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['divStat'] = Core_CUserWishList::getStatus();
     $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu();
     $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings();
     $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts();
     $output['cartcount'] = Core_CAddCart::countCart();
     $output['userRight'] = "userWishlist.html";
     $output['rows'] = Core_CUserWishList::showWishList($result);
     Bin_Template::createTemplate('userIndex.html', $output);
 }