/** * This function is used to show the dynamic cms * * @return string */ function showDynamicContent() { include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserAddressBook.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.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['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['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['result'] = $result; $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['showpages'] = Core_CHome::showDynamicContent(); Bin_Template::createTemplate('cms.html', $output); }
/** * This function is used to Display the News Page * * @return string */ function showNewsPage() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.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['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['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); } $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['newscontent'] = Core_CNews::showNewsPage(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } Bin_Template::createTemplate('news.html', $output); }
/** * This function is used to Display the Keyword Search Page * * @return string */ function keywordsearch() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('COMMON'); include 'classes/Core/CFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Core/CWishList.php'; include 'classes/Core/CNewProducts.php'; include 'classes/Core/CAddCart.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Display/DFeaturedItems.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Display/DWishList.php'; include 'classes/Display/DNewProducts.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); if ($_POST['catsel'] != "") { session_unregister('subcategory'); } if ($_POST['catsel'] != "") { // store selected main category for search $_SESSION['category'] = $_POST['catsel']; } if ($_POST['subcatsel'] != "") { // store selected sub category for search $_SESSION['subcategory'] = $_POST['subcatsel']; } $default = new Core_CFeaturedItems(); $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); 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(); if (isset($_GET['search'])) { $search = $_GET['search']; } else { $search = $_POST['search']; } $sort = $_POST['selsort']; $txtsearch = $_POST['searchtxt']; if ($txtsearch . length > 0) { $search = $txtsearch; } $mode = $_POST['selmode']; $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['keywordsearch'] = Core_CKeywordSearch::searchKeyWord($search, $sort, $mode); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $cou = $_SESSION['countsearch']; $output['countrecords'] = Core_CKeywordSearch::countSearch($cou); $output['disppagesize'] = Display_DKeywordSearch::displayPageSize(); $output['searchresultfor'] = Display_DKeywordSearch::searchResultFor($search); $output['searchsession'] = Display_DKeywordSearch::searchSession($search); $output['disppricerange'] = Core_CKeywordSearch::priceRange(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") { // store selected sub category for search $output['features'] = Core_CKeywordSearch::featureList(); } $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount(); $output['dispselection'] = Display_DKeywordSearch::displaySelection(); $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['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['mylink'] = Core_CKeywordSearch::linkMode(); $output['sortby'] = Display_DKeywordSearch::sortBy(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('searchpage.html', $output); }
/** * This function is used to display the retrieveforget password page * * @return string */ function retrivePwdPage() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('FORGOT_PASSWORD'); include 'classes/Lib/CheckInputs.php'; $obj = new Lib_CheckInputs('validatemail'); include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CWishList.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['cartcount'] = Core_CAddCart::countCart(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['result'] = Core_CUserRegistration::getPassword(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['newstitle'] = Core_CNews::showNewsMenu(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); Bin_Template::createTemplate('forgotpassword.html', $output); }
/** * This function is used to Display the pop up of image of product * * @return string */ function showPopupProducts() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('PRODUCT_DETAILS'); include_once 'classes/Core/CProductDetail.php'; include_once 'classes/Display/DProductDetail.php'; echo $output['popproduct'] = Core_CProductDetail::showPopupProducts(); }
/** * Function displays the list of last viewed products * * @return array */ function lastViewedProducts() { include_once 'classes/Core/CProductDetail.php'; include_once 'classes/Display/DProductDetail.php'; $default = new Core_CProductDetail(); $output['product'] = $default->productDetail(); $output['attributes'] = $default->attributeList(); $output['relprod'] = $default->relatedProducts(); $output['lastviewprod'] = $default->lastViewedProducts(); Bin_Template::createTemplate('productdetail.html', $output); }
/** * This function is used to Display the about us Page * * @return string */ function aboutUs() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include 'classes/Core/CFooterLinks.php'; include 'classes/Display/DFooterLinks.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['categories'] = Display_DUserRegistration::showMainCat(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['terms'] = Core_CFooterLinks::termsCondition(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['aboutus'] = Core_CFooterLinks::aboutUs(); $output['newstitle'] = Core_CNews::showNewsMenu(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('aboutus.html', $output); }
/** * This function is used to get the pop up of image of product * * @return string */ function showPopupProducts() { $sql = "SELECT * FROM product_inventory_table a INNER JOIN products_table b ON a.product_id = b.product_id WHERE b.product_id =" . (int) $_GET['prodid'] . " AND b.status=1"; $obj = new Bin_Query(); $obj->executeQuery($sql); $rating = Core_CProductDetail::reviewRating(); return Display_DProductDetail::showPopupProducts($obj->records, $rating); }
function gridGiftProducts() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('COMMON'); include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $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['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $default = new Core_CNewProducts(); $output['gridviewproducts'] = $default->viewGiftProducts(); $output['categorybreadcrumb'] = $default->categoryBreadCrumb(); $output['title'] = $default->getTitle(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('gift_grid_products.html', $output); }
/** * Function gets the releated products from the cross products table * * * @return string */ function relatedProducts() { $sql = "SELECT * from cross_products_table where product_id=" . (int) $_GET['prodid']; $query = new Bin_Query(); if ($query->executeQuery($sql)) { $resultproduct = $query->records; $arr = explode(',', $resultproduct[0]['cross_product_ids']); $output1 = ' <table width="20%" border="0" cellpadding="0" cellspacing="0"><tr>'; if (count($arr) > 0) { for ($i = 0; $i < count($arr); $i++) { $sql = "SELECT * from products_table where product_id=" . $arr[$i]; $query = new Bin_Query(); $query->executeQuery($sql); if ($query->totrows > 0) { foreach ($query->records as $row) { $r[$j] = $row; $prid = $row['product_id']; $obj1 = new Core_CProductDetail(); $minval = $obj1->disRates($prid); if ($minval > 0 or $minval != '') { $r[$j]['msrp'] = $_SESSION['currency']['currency_tocken'] . $row['msrp'] . ' - ' . $_SESSION['currency']['currency_tocken'] . $minval; } else { $r[$j]['msrp'] = $_SESSION['currency']['currency_tocken'] . $row['msrp']; } //$j++; //print_r($r); $output .= Display_DProductDetail::relatedProducts($r); } } } } return $output1 . $output; } else { //return '<div class="exc_msgbox">Related Products Not Found</div>'; $output1 = '<div id="middle_details"><div id=""> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'; return $output1; } }