Example #1
0
 /**
  * This function is used to Display the Validation Result of Cotact Us Page
  *
  * @return string
  */
 function showValidateContactUs()
 {
     //language
     include_once 'classes/Core/CLanguage.php';
     Core_CLanguage::setLanguage('CMS');
     include 'classes/Lib/CheckInputs.php';
     $obj = new Lib_CheckInputs('contactus');
     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();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $output['categories'] = Display_DUserRegistration::showMainCat();
     $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['message'] = Core_CFooterLinks::validateContactUs();
     $output['contactus'] = Display_DFooterLinks::showContactUs('');
     $output['newstitle'] = Core_CNews::showNewsMenu();
     $output['cartcount'] = Core_CAddCart::countCart();
     $output['categorytree'] = Core_CProductDetail::showCategoryTree();
     Bin_Template::createTemplate('contactus.html', $output);
 }
Example #2
0
 /**
  * This function is used to get the content from about us
  * 
  * 
  * @return string
  */
 function aboutUs()
 {
     $sql = "SELECT * from aboutus_table ";
     $obj = new Bin_Query();
     $obj->executeQuery($sql);
     $output = Display_DFooterLinks::aboutUs($obj->records);
     return $output;
 }