Пример #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 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);
     }
 }
Пример #3
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);
 }
Пример #4
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);
     }
 }
Пример #5
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;
 }
Пример #6
0
 /**
  * Function displays the list of sub admin available 
  * at the admin side   
  * 
  * @return array
  */
 function dispSubAdmin()
 {
     include "classes/Lib/HandleErrors.php";
     //$output['val']=$Err->values;
     //$output['msg']=$Err->messages;
     include 'classes/Core/CSubAdminManagement.php';
     include 'classes/Display/DSubadminmanagement.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();
     //include('classes/Core/CAdminHome.php');
     $output['username'] = Core_CAdminHome::userName();
     //$output['currentDate']=date('Y-m-d , H:m:s');
     /*<!--		$output['category']= (int) Core_CAdminHome::getCategory();
     		$output['products']= (int) Core_CAdminHome::getProducts();
     		$output['ordercount']= (int) Core_CAdminHome::getOrderCount();
     		$output['customers']= (int) Core_CAdminHome::getCustomers();-->*/
     $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/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         $output['subadmin'] = Core_CSubadminmanagement::displaySubAdmin($Err);
         $output['updateMsg'] = $_SESSION['msgSubadminupdate'];
         $output['deleteMsg'] = $_SESSION['msgSubadmindelete'];
         $output['insertMsg'] = $_SESSION['msgSubadmininsert'];
         Bin_Template::createTemplate('Subadminmanagement.html', $output);
         unset($_SESSION['msgSubadminupdate']);
         unset($_SESSION['msgSubadmindelete']);
         unset($_SESSION['msgSubadmininsert']);
     } else {
         $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';
         Bin_Template::createTemplate('Errors.html', $output);
     }
 }
Пример #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 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);
     }
 }
Пример #9
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);
     }
 }
Пример #10
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);
     }
 }
Пример #11
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);
     }
 }
Пример #12
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');
 }
Пример #13
0
 /**
  * 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);
     }
 }
Пример #14
0
 /**
  * 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;
 }
Пример #15
0
 /**
  * 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;
 }
Пример #16
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);
 }
Пример #17
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);
     }
 }
Пример #18
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);
     }
 }
Пример #19
0
 /**
  * Function updates the affiliate ID for CSE 
  * at the admin side
  * 
  * @return array
  */
 function saveCse()
 {
     $output = array();
     include 'classes/Core/CCse.php';
     include 'classes/Core/CAdminHome.php';
     include 'classes/Lib/CheckInputs.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();
     $obj = new Lib_CheckInputs('csevalidation');
     $_SESSION['msgCse'] = Core_CCse::saveCse();
     header('Location:?do=cse');
     exit;
 }
Пример #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 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);
     }
 }
Пример #22
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);
     }
 }
Пример #23
0
 /**
  * Function updates the Google Adsense script 
  * at the admin side   
  * 
  * @return array
  */
 function updateGoogleAdSenseCode()
 {
     include 'classes/Core/CRoleChecking.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         include 'classes/Core/Settings/CGoogleAdSense.php';
         include 'classes/Display/DGoogleAdSense.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['gadsense'] = Core_Settings_CGoogleAdSense::googleAdSenseCode();
         $output['pendingorders'] = (int) Core_CAdminHome::pendingOrders();
         $output['processingorders'] = (int) Core_CAdminHome::processingOrders();
         $output['deliveredorders'] = (int) Core_CAdminHome::deliveredOrders();
         $_SESSION['messageGooglesense'] = Core_Settings_CGoogleAdSense::updateGoogleAdSenseCode();
         $output['gadsense'] = Core_Settings_CGoogleAdSense::googleAdSenseCode();
         header('Location:?do=gadsense');
         exit;
         // 	Bin_Template::createTemplate('googleadsense.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);
     // }
 }
Пример #24
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);
     }
 }
Пример #25
0
 /**
  * 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);
     }
 }
Пример #26
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);
     }
 }
Пример #27
0
 /**
  * Function updates the changes made in the terms and conditions content 
  *   
  * 
  * @return array
  */
 function updateTerms()
 {
     include "classes/Core/CTermsCondition.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_CTermsCondition();
     $_SESSION['messageTerms'] = $default->updateTerms();
     $output['termscontent'] = $default->selectTerms();
     header('Location:?do=terms');
     exit;
 }