Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * 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);
     }
 }
Пример #4
0
 /**
  * Function displays a detailed site statistics report 
  * at the admin side   
  * 
  * @return array
  */
 function siteStatistics()
 {
     include 'classes/Core/CAdminLogin.php';
     include 'classes/Core/CAdminHome.php';
     $output['currentDate'] = date('l, M d, Y H:i:s');
     $output['currency_type'] = $_SESSION['currency']['currency_tocken'];
     $output['username'] = Core_CAdminLogin::loginStatus();
     // Orders Statistics
     $output['monthlyorders'] = (int) Core_CAdminHome::monthlyOrders();
     $output['previousmonthorders'] = (int) Core_CAdminHome::previousMonthOrders();
     $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders();
     $output['processingorders'] = (int) Core_CAdminHome::processingOrders();
     $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders();
     $output['totalorders'] = (int) Core_CAdminHome::totalOrders();
     $output['currency_type'] = $_SESSION['currency']['currency_tocken'];
     // Sales Statistics
     $output['currentmonthincome'] = Core_CAdminHome::currentMonthIncome();
     $output['previousmonthincome'] = Core_CAdminHome::previoustMonthIncome();
     $output['totalincome'] = Core_CAdminHome::totalIncome();
     // Products Statistics
     $output['enabledproducts'] = (int) Core_CAdminHome::enabledProducts();
     $output['disabledproducts'] = (int) Core_CAdminHome::disabledProducts();
     $output['totalproducts'] = (int) Core_CAdminHome::totalProducts();
     // Products Inventory Statistics
     $output['lowstock'] = (int) Core_CAdminHome::lowStock();
     // Customers Statistics
     $output['currentmonthuser'] = (int) Core_CAdminHome::currentMonthUser();
     $output['previousmonthuser'] = (int) Core_CAdminHome::previousMonthUser();
     $output['totalusers'] = (int) Core_CAdminHome::totalUsers();
     /*$output['currentmonthproudctquantity']=(int)Core_CAdminHome::currentMonthProudctQuantity();
     		$output['previousmonthproudctquantity']=(int)Core_CAdminHome::previousMonthProudctQuantity();
     		$output['totalproudctquantity']=(int)Core_CAdminHome::totalProudctQuantity();*/
     return $output;
 }
Пример #5
0
 /**
  * Function displays the list of features available for a product 
  * 
  * 
  * @return array
  */
 function dispProductFeatures()
 {
     include 'classes/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         include 'classes/Core/CProductFeatures.php';
         include 'classes/Display/DProductFeatures.php';
         include 'classes/Core/CAdminHome.php';
         $output['productfeatures'] = Core_CProductFeatures::dispProductFeatures();
         $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('ProductFeatures.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);
     }
 }
Пример #6
0
 /**
  * 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();
 }
Пример #7
0
 /**
  * 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);
     }
 }
Пример #8
0
 /**
  * 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);
     }
 }
Пример #9
0
 /**
  * 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);
     }
 }
Пример #10
0
 /**
  * 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);
     }
 }
Пример #11
0
 /**
  * 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);
     }
 }
Пример #12
0
 /**
  * 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);
     }
 }
Пример #13
0
 /**
  * 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);
     }
 }
Пример #14
0
 /**
  * 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);
     }
 }
Пример #15
0
 /**
  * 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);
     }
 }
Пример #16
0
 /**
  * Function display the update the social link 
  *    
  * 
  * @return array
  */
 function updateSocialLink()
 {
     include 'classes/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         include 'classes/Lib/CheckInputs.php';
         $obj = new Lib_CheckInputs('updatesociallink');
         include 'classes/Core/CAdminHome.php';
         $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 'classes/Display/DCreatePage.php';
         include_once 'classes/Core/Settings/CSocialLinks.php';
         include 'classes/Display/DSocialLinks.php';
         $_SESSION['msgUpdatesociallink'] = Core_Settings_SocialLinks::updateSocialLink();
         header('Location:?do=sociallink');
         exit;
     } else {
         $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';
         Bin_Template::createTemplate('Errors.html', $output);
     }
 }
Пример #17
0
 /**
  * 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);
     }
 }
Пример #18
0
 /**
  * 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);
 }
Пример #19
0
 /**
  * Function updates the Cross Products in the particular category and subcategory        
  * selected by the admin
  * 
  * @return array
  */
 function updateProducts()
 {
     include 'classes/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         include_once 'classes/Core/Settings/CAddCrossProducts.php';
         include_once 'classes/Display/DAddCrossProducts.php';
         include 'classes/Core/CAdminHome.php';
         $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_Settings_CAddCrossProducts();
         //$default = new Core_Settings_CAddCrossProducts();
         $output['maincategory'] = $default->displayCategory();
         $output['subcategory'] = $default->displaySubCategory();
         $output['disptitle'] = $default->dispProductTitle();
         $output['msg'] = $default->updateProducts();
         Bin_Template::createTemplate('addcrossproduct.html', $output);
         //header('Location:?do=addcrossproduct');
     } else {
         $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';
         Bin_Template::createTemplate('Errors.html', $output);
     }
 }
Пример #20
0
 /**
  * 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;
 }
Пример #21
0
 /**
  * Function updates the changes made in an payment gateway at the admin side 
  * 
  * 
  * @return array
  */
 function updateSelection()
 {
     include 'classes/Core/CRoleChecking.php';
     include 'classes/Core/CAdminpaymentgateway.php';
     include 'classes/Display/DAdminpaymentgateway.php';
     include 'classes/Core/CAdminHome.php';
     include_once 'classes/Core/CRoleChecking.php';
     $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) {
         $output['updatepaymentmessage'] = Core_CAdminpaymentgateway::updatePayment();
         //header("Location:?do=adminpayment");
         $output['adminpaymentgateways'] = Core_CAdminpaymentgateway::getPayments();
         Bin_Template::createTemplate('Adminpaymentgateway.html', $output);
         //exit;
     } else {
         $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';
         Bin_Template::createTemplate('Errors.html', $output);
     }
 }
Пример #22
0
 /**
  * Function is used to validate the username and password supplied by the admin while login. 
  * 
  * 
  * @return array
  */
 function showValidateLoginPage()
 {
     include 'classes/Lib/CheckInputs.php';
     include 'classes/Core/CRoleChecking.php';
     include 'classes/Model/MSiteStatistics.php';
     include 'classes/Display/DAdminHome.php';
     new Lib_CheckInputs('validatelogin');
     $output = Model_MSiteStatistics::siteStatistics();
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         $output['users_chart'] = Core_CAdminHome::getUserschart();
         $output['sales_chart'] = Core_CAdminHome::getSaleschart();
         $output['latestcustomers'] = Core_CAdminHome::getLatestCustomers();
         $output['latestorders'] = Core_CAdminHome::latestOrders();
         // echo "<pre>";
         // print_r($output['users_chart']);exit;
         Bin_Template::createTemplate('index.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);
     }
 }
Пример #23
0
 /**
  * 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');
 }
Пример #24
0
 /**
  * Function updates the changes made in the contact us content from the admin side  
  * 
  * 
  * @return array
  */
 function updateContactUs()
 {
     include "classes/Core/CContactUs.php";
     include 'classes/Core/CAdminHome.php';
     $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_CContactUs();
     $output['updatecontactusmsg'] = $default->updateContactUs();
     $output['contactus'] = $default->displayContactUs();
     Bin_Template::createTemplate('contactus.html', $output);
 }
Пример #25
0
 /**
  * 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);
     }
 }
Пример #26
0
 /**
  * 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);
     }
 }
Пример #27
0
 /**
  * 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);
 }
Пример #28
0
 /**
  * Function updates the changes made in the existing footer links
  *   
  * 
  * @return array
  */
 function updateFooterLinks()
 {
     include 'classes/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         include 'classes/Core/Settings/CFooterSettings.php';
         include 'classes/Display/DFooterSettings.php';
         include 'classes/Core/CAdminHome.php';
         $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['showfooter'] = Core_Settings_CFooterSettings::showFooterLink();
         $output['showpage'] = Core_Settings_CFooterSettings::showCustomPage();
         $output['editfooter'] = Core_Settings_CFooterSettings::EditFooterLinks();
         $output['updatefooter'] = Core_Settings_CFooterSettings::updateFooterLinks();
         $output['viewfooter'] = Core_Settings_CFooterSettings::viewFooterLink();
         $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders();
         $output['processingorders'] = (int) Core_CAdminHome::processingOrders();
         $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders();
         Bin_Template::createTemplate('viewfooterlink.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);
     }
 }
Пример #29
0
 /**
  * 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);
     }
 }
Пример #30
0
 /**
  * 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);
     }
 }