/** * Function is displays the site statistics for the site at the admin side * * * @return array */ function homePage() { $output = array(); include 'classes/Core/CAdminHome.php'; include 'classes/Display/DAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('Y-m-d , H:m:s'); $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = (int) Core_CAdminHome::lowStock(); $output['totalproducts'] = (int) Core_CAdminHome::totalProducts(); $output['enabledproducts'] = (int) Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = (int) Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); Bin_Template::createTemplate('left.html', $output); }
/** * Function displays a template for exporting the Admin Activity Report * * * */ function showTemplate() { include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/CAdminActivityDataExport.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); Bin_Template::createTemplate('adminactivitydataexport.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the error page at the admin side when an unauthorised access take place * * * @return array */ function showError() { $output['sample'] = "sample"; include 'classes/Core/CAdminHome.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); Bin_Template::createTemplate('error.html', $output); }
/** * Function updates the status for the list of shipment trackers available * * * @return array */ function updateShippingTrackerSetting() { include 'classes/Core/CShippingTracker.php'; include 'classes/Display/DShippingTracker.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['updatedshippingtrackersetting'] = Core_CShippingTracker::updateShippingTrackerSetting(); }
/** * Function displays a the list of orders available * @param string $msg * @return array */ function showOrder($msg = '') { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Lib/HandleErrors.php"; if (count($Err->messages) > 0) { $output['val'] = $Err->values; $output['msg'] = $Err->messages; } include_once 'classes/Core/CUserOrder.php'; include_once 'classes/Display/DUserOrder.php'; $default = new Core_CUserOrder(); $output['message'] = $msg; $output['customer'] = $default->showCustomer($Err); $output['payment'] = $default->showPayment(); $output['category1'] = $default->showCategory(); //$output['subcategory'] = $default->showSubCategory(); //$output['subundercategory'] = $default->showSubUnderCat(); $output['products'] = $default->showProducts(); $output['qty'] = $default->showQty(); $output['orderlist'] = $default->listOrder(); $output['showShippingDetails'] = $default->showShippingDetails($Err, $output['multibilladdress'], $output['multishipaddress']); Bin_Template::createTemplate('userorder.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function is displays the php information * * * @return array */ function displayPHPInfo() { include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); Bin_Template::createTemplate('siteinfo.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the existing HTML Pages created by the admin * * * @return array */ function displaySocialLinks() { include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); include_once 'classes/Core/Settings/CSocialLinks.php'; include 'classes/Display/DSocialLinks.php'; include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Lib/FileOperations.php'; $output['showpage'] = Core_Settings_SocialLinks::showSocialLinks(); $output['deleteMsg'] = $_SESSION['msgSociallinkdelete']; $output['insertMsg'] = $_SESSION['msgSociallinkadd']; $output['updateMsg'] = $_SESSION['msgUpdatesociallink']; Bin_Template::createTemplate('social_links.html', $output); unset($_SESSION['msgSociallinkdelete']); unset($_SESSION['msgSociallinkadd']); unset($_SESSION['msgUpdatesociallink']); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays a template for modifiying the Home Page Banner * * * @return array */ function homePageBanner() { include "classes/Lib/HandleErrors.php"; $output['val'] = $Err->values; $output['msg'] = $Err->messages; include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/Settings/CHomePageBanner.php'; include 'classes/Display/DHomePageBanner.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $output['banner'] = Core_Settings_CHomePageBanner::homePageBanner($Err); $output['slide_parameter'] = Core_Settings_CHomePageBanner::getSlideParameter(); /* $output['bannerurl'] = Core_Settings_CHomePageBanner::homePageBannerUrl();*/ Bin_Template::createTemplate('homepagebanner.html', $output); unset($_SESSION['bannermsg']); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the add menu page * * * @return array */ function showMenuManagament() { include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); include_once 'classes/Core/Settings/CCreatePage.php'; //include('classes/Display/DMenuManagement.php'); include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $output['insmsg'] = $_SESSION['rtsinsmsg']; unset($_SESSION['rtsinsmsg']); include 'classes/Core/CMenuManagement.php'; include 'classes/Display/DMenuManagement.php'; $output['menutitlelist'] = Core_CMenuManagement::showMenutitleList(); $output['menutype'] = Core_CMenuManagement::showMenuTypeList(); $output['menuname'] = Core_CMenuManagement::getMenuName(); $output['category'] = Core_CMenuManagement::selectedMenuTypeList(); Bin_Template::createTemplate('menus.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the list of categories available * at the admin side * * @return array */ function showCategory() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/Category/CCategorySelection.php'; $default = new Core_Category_CCategorySelection(); $default->displayCategory($Err); if (isset($_GET['id'])) { $default->displaySubCategory(); } include_once 'classes/Core/Category/CCategory.php'; $cat = new Core_Category_CCategory(); $cat->showCat(); include 'templates/addcrossprdct.php'; } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function used to add a New Attribute from * admin side * * @return array */ function showAddAttributes() { include 'classes/Core/CRoleChecking.php'; include "classes/Lib/HandleErrors.php"; $output['val'] = $Err->values; $output['msg'] = $Err->messages; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Core/Settings/CAddAttributes.php"; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $default = new Core_Settings_CAddAttributes(); $output['showattributes'] = $default->showAttributes($Err); Bin_Template::createTemplate('addAttributename.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays a templates for updating the site moto * * * @return array */ function siteSettings() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Lib/HandleErrors.php"; $output['msg'] = $Err->messages; $output['val'] = $Err->values; include "classes/Core/Settings/CSiteSettings.php"; include "classes/Display/DSiteSettings.php"; $output['sitesittings'] = Core_Settings_CSiteSettings::siteSittings($Err); $output['sitemotomsg'] = $_SESSION['msgSitemoto']; Bin_Template::createTemplate('sitesettings.html', $output); unset($_SESSION['msgSitemoto']); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the Categories avaliable in the site * * * @return array */ function showMainCategory() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['category'] = Core_CAdminHome::getCategory(); $output['products'] = Core_CAdminHome::getProducts(); $output['ordercount'] = Core_CAdminHome::getOrderCount(); $output['customers'] = Core_CAdminHome::getCustomers(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Core/Settings/CAddMainCategory.php"; $default = new Core_Settings_CAddMainCategory(); $default->showMainCategory($Err); //$template = "createcategory.php"; include "templates/addmaincategory.php"; } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function updates the new category * from the admin side * * @return array */ function addMainCategory() { include 'classes/Lib/CheckInputs.php'; $obj = new Lib_CheckInputs('category'); include "classes/Lib/HandleErrors.php"; include_once 'classes/Core/Category/CCategory.php'; include_once 'classes/Display/DCategoryManagement.php'; include "classes/Core/Settings/CCategoryManagement.php"; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $content = new Core_Settings_CCategoryManagement(); $_SESSION['updatemiancatmsg'] = $content->addCategory(); header('Location:?do=showmain'); }
/** * Function displays a search list for the existing products * * * @return array */ function searchProductDetails() { include_once 'classes/Core/Settings/CManageProducts.php'; include_once 'classes/Display/DManageProducts.php'; include 'classes/Core/CAdminHome.php'; $default = new Core_Settings_CManageProducts(); $output['searchproduct'] = $default->searchProductDetails(); $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); Bin_Template::createTemplate('manageproducts.html', $output); }
/** * Function updates the changes in the privacy policy * * * @return array */ function updatePrivacyPolicy() { include "classes/Core/CPrivacyPolicy.php"; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $default = new Core_CPrivacyPolicy(); $_SESSION['messagePrivacy'] = $default->updatePrivacyPolicy(); $output['privacypolicy'] = $default->selectPrivacyPolicy(); // Bin_Template::createTemplate('privacypolicy.html',$output); header('Location:?do=adminprivacypolicy'); exit; }
/** * Function is used to add a new Sub Category From the admin side * * * @return array */ function addSubCategory() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['category'] = Core_CAdminHome::getCategory(); $output['products'] = Core_CAdminHome::getProducts(); $output['ordercount'] = Core_CAdminHome::getOrderCount(); $output['customers'] = Core_CAdminHome::getCustomers(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Core/Settings/CAddSubCategory.php"; //new Lib_CheckInputs('createcategory'); $default = new Core_Settings_CAddSubCategory(); $default->addSubCategory(); header("Location:?do=addsubcategory"); exit; } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays a template for updating the existing content * * * @return array */ function showContentsDetail() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Core/Settings/CShowContents.php"; include "classes/Display/DShowContents.php"; //new Lib_CheckInputs('createcategory'); $default = new Core_Settings_CShowContents(); $output['showcontents'] = $default->showContentsDetail(); Bin_Template::createTemplate('editcontents.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function is used to change the status of the news * * * @return array */ function statusNews() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('Y-m-d , h:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); include "classes/Core/Settings/CNewsSettings.php"; $default = new Core_Settings_CNewsSettings(); $_SESSION['msgStatusUpdate'] = $default->statusNews(); $output['shownews'] = $default->showNews(); header("Location:?do=news&action=show"); exit; }
/** * Function adds a new promotional code from the admin side * * * @return array */ function insertPromotionalCodes() { include "classes/Lib/CheckInputs.php"; include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CPromotionalCodes.php'; include 'classes/Display/DPromotionalCodes.php'; //$obj = new Lib_CheckInputs('productreg'); $output['val'] = $Err->values; $output['msg'] = $Err->messages; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Lib/FileOperations.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $output['insertmsg'] = Core_CPromotionalCodes::insertPromotionalCode(); $output['display'] = Core_CPromotionalCodes::displayPromotionalCodes(); Bin_Template::createTemplate('createpromocodes.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays a template for edit currency * * * @return array */ function showEditCurrency() { $output = array(); include "classes/Lib/HandleErrors.php"; include 'classes/Core/CRoleChecking.php'; include 'classes/Core/Settings/CCurrencySettings.php'; include 'classes/Display/DCurrencySettings.php'; include 'classes/Core/CAdminHome.php'; include 'classes/Display/DAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('Y-m-d , H:m:s'); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $output['msg'] = $Err->messages; $output['values'] = $Err->values; $output['currencysettings'] = Core_Settings_CCurrencySettings::showEditCurrency($Err); Bin_Template::createTemplate('addcurrencysetting.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function adds a new sub admin role * * * @return array */ function insertSubAdmin() { // echo "<pre>"; // print_r($_POST); // echo "adf";exit; include 'classes/Lib/CheckInputs.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['category'] = Core_CAdminHome::getCategory(); $output['products'] = Core_CAdminHome::getProducts(); $output['ordercount'] = Core_CAdminHome::getOrderCount(); $output['customers'] = Core_CAdminHome::getCustomers(); $obj = new Lib_CheckInputs('subadminmail'); include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CSubAdminManagement.php'; $chkuser = Core_CRoleChecking::checkRoles(); $checkUserExists = Core_CSubadminmanagement::checkSubadminExists(); if ($chkuser) { if ($checkUserExists) { header("Location:?do=subadminmgt&errmsg=User%20Already%20Exists"); } else { $_SESSION['msgSubadmininsert'] = Core_CSubadminmanagement::insertSubAdmin(); header("Location:?do=subadminmgt"); } exit; } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function is used to update the content for about us page * at the admin side * * @return array */ function updateAboutUs() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['currentDate'] = date('l, M d, Y H:i:s'); $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); include "classes/Core/CAboutUs.php"; $_SESSION['messageAbutus'] = Core_CAboutUs::updateAboutUs(); $output['aboutus'] = Core_CAboutUs::showAboutUs(); header('Location:?do=aboutus'); exit; }
/** * Function updates the mail messages * * * @return array */ function editMessage() { include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; include "classes/Core/Settings/CMailMessageSettings.php"; include 'classes/Lib/CheckInputs.php'; new Lib_CheckInputs('editmailmessage'); $default = new Core_Settings_CMailMessageSettings(); $default->editMessage(); //Bin_Template::createTemplate('editcontents.php',$output); header("Location:?do=mailmessages"); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function validates and updates a new account from the admin side for light box register page * * * @return array */ function showValidateRegPageLight() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Lib/CheckInputs.php'; include 'classes/Core/CAdminUserRegistration.php'; $obj = new Lib_CheckInputs('useraccregisterlight'); //include_once('classes/Core/CAdminUserRegistration.php'); $output['account'] = Core_CAdminUserRegistration::addAccount(); Bin_Template::createTemplate('signup_light.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays a template for products image bulk uploading * * * @return array */ function productImagesBulkUpload() { include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/CAdminHome.php'; include 'classes/Core/CProductBulkUpload.php'; include 'classes/Lib/ThumbImage.php'; include 'classes/Lib/FileOperations.php'; //$default=new Core_CProductBulkUpload(); //$default->productImagesBulkUpload(); $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $output['messages'] = Core_CProductBulkUpload::productImagesBulkUpload(); Bin_Template::createTemplate('imagebulkupload.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the details of the products available * * * @return array */ function productDetail() { include_once 'classes/Core/CProductDetail.php'; include_once 'classes/Display/DProductDetail.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['username'] = Core_CAdminHome::userName(); $default = new Core_CProductDetail(); $output['product'] = $default->productDetail(); $output['attributes'] = $default->attributeList(); $output['rating'] = $default->reviewRating(); $output['review'] = $default->reviewCount(); $output['relprod'] = $default->relatedProducts(); Bin_Template::createTemplate('productdetail.html', $output); }
/** * Function displays the details of customer for updation * * * @return array */ function editCustomerGroup() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; include 'classes/Display/DAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['category'] = Core_CAdminHome::getCategory(); $output['products'] = Core_CAdminHome::getProducts(); $output['ordercount'] = Core_CAdminHome::getOrderCount(); $output['customers'] = Core_CAdminHome::getCustomers(); /*$default = new Core_CAdminHome(); $arr=$default->dashSettings(); */ /*$output['controlpanel']=$default->getControlPanel($arr);*/ // $output['zeusnews']=$default->showHomeZeuscartNews(); $chkuser = Core_CRoleChecking::checkRoles(); include 'classes/Core/CCustomerGroup.php'; include 'classes/Display/DCustomerGroup.php'; if ($chkuser) { include "classes/Lib/HandleErrors.php"; $output['msg'] = $Err->messages; $output['val'] = $Err->values; $output['editcustgroup'] = Core_CCustomerGroup::displaySelectedGroup($Err->messages, $Err->values); Bin_Template::createTemplate('editcustomergroup.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function adds or inserts a new giftproduct * * * @return array */ function insertGiftProduct() { include "classes/Lib/CheckInputs.php"; include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CProductEntry.php'; include 'classes/Core/CAdminHome.php'; include 'classes/Display/DProductEntry.php'; //$obj = new Lib_CheckInputs('giftproductreg'); $output['val'] = $Err->values; $output['msg'] = $Err->messages; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $output['message'] = Core_CProductEntry::insertGiftProduct(); $output['dispbrand'] = Core_CProductEntry::dispBrand(); $output['dropcategory'] = Core_CProductEntry::displayCategory(); $output['addmoremsrp'] = Core_CProductEntry::addMoreMsrpLink(); $output['allproducts'] = Core_CProductEntry::showProducts(); Bin_Template::createTemplate('giftproductentry.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function displays the search results for the entered keywords * * * @return array */ function searchMainCategory() { include 'classes/Core/CRoleChecking.php'; include 'classes/Core/CAdminHome.php'; $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['currency_type'] = $_SESSION['currency']['currency_tocken']; $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders(); $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders(); $output['totalorders'] = (int) Core_CAdminHome::totalOrders(); $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser(); $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser(); $output['totalusers'] = (int) Core_CAdminHome::totalUsers(); $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome(); $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome(); $output['totalincome'] = Core_CAdminHome::totalIncome(); $output['currentmonthproudctquantity'] = (int) Core_CAdminHome::currentMonthProudctQuantity(); $output['previousmonthproudctquantity'] = (int) Core_CAdminHome::previousMonthProudctQuantity(); $output['totalproudctquantity'] = (int) Core_CAdminHome::totalProudctQuantity(); $output['lowstock'] = Core_CAdminHome::lowStock(); $output['totalproducts'] = Core_CAdminHome::totalProducts(); $output['enabledproducts'] = Core_CAdminHome::enabledProducts(); $output['disabledproducts'] = Core_CAdminHome::disabledProducts(); $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders(); $output['processingorders'] = (int) Core_CAdminHome::processingOrders(); $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders(); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include "classes/Core/Category/CShowMainCategory.php"; $default = new Core_Category_CShowMainCategory(); //$output['showmaincat']=$default->showMainCategory(); $output['search'] = $default->searchMainCategory(); Bin_Template::createTemplate('showmaincategory.html', $output); //header("location:?do=showmain"); //exit; } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }