/** * 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 validate the contact us * * * @return string */ function validateContactUs() { $name = $_POST['txtname']; $from_mail = $_POST['email']; $mail_content = $_POST['comment']; $sql = "SELECT * from admin_settings_table where set_id =1"; $obj = new Bin_Query(); if ($obj->executeQuery($sql)) { $to_mail = $obj->records[0]['admin_email']; Core_CFooterLinks::sendingMail($from_mail, $to_mail, $mail_content); $output = '<div class="alert alert-success"> <button data-dismiss="alert" class="close" type="button">×</button> ' . Core_CLanguage::_(YOUR_COMMENTS_HAVE_BEEN_SUBMITTED) . ' </div>'; } else { $output = '<div class="alert alert-error"> <button data-dismiss="alert" class="close" type="button">×</button> ' . Core_CLanguage::_(YOUR_COMMENTS_HAVE_NOT_BEEN_SUBMITTED) . ' </div>'; } return $output; }