AAAAview.html.php000066600000006557151372174540007224 0ustar00getTotalCustomers(); $this->assignRef('nbrCustomers', $nbrCustomers); $nbrActiveProducts = $model->getTotalActiveProducts(); $this->assignRef('nbrActiveProducts', $nbrActiveProducts); $nbrInActiveProducts = $model->getTotalInActiveProducts(); $this->assignRef('nbrInActiveProducts', $nbrInActiveProducts); $nbrFeaturedProducts = $model->getTotalFeaturedProducts(); $this->assignRef('nbrFeaturedProducts', $nbrFeaturedProducts); $ordersByStatus = $model->getTotalOrdersByStatus(); $this->assignRef('ordersByStatus', $ordersByStatus); $recentOrders = $model->getRecentOrders(); if(!class_exists('CurrencyDisplay'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'currencydisplay.php'); /* Apply currency This must be done per order since it's vendor specific */ $_currencies = array(); // Save the currency data during this loop for performance reasons foreach ($recentOrders as $virtuemart_order_id => $order) { //This is really interesting for multi-X, but I avoid to support it now already, lets stay it in the code if (!array_key_exists('v'.$order->virtuemart_vendor_id, $_currencies)) { $_currencies['v'.$order->virtuemart_vendor_id] = CurrencyDisplay::getInstance('',$order->virtuemart_vendor_id); } $order->order_total = $_currencies['v'.$order->virtuemart_vendor_id]->priceDisplay($order->order_total); } $this->assignRef('recentOrders', $recentOrders); $recentCustomers = $model->getRecentCustomers(); $this->assignRef('recentCustomers', $recentCustomers); if (!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR.'/helpers/shopfunctions.php'); $extensionsFeed = ShopFunctions::getExtensionsRssFeed(); $this->assignRef('extensionsFeed', $extensionsFeed); $virtuemartFeed = ShopFunctions::getVirtueMartRssFeed(); $this->assignRef('virtuemartFeed', $virtuemartFeed); // Options button. // if ( !JVM_VERSION===1) { // if (JFactory::getUser()->authorise('core.admin', 'com_virtuemart')) { // JToolBarHelper::preferences('com_virtuemart'); // } // } parent::display($tpl); } } //pure php no tag.htaccess000066600000000177151372174540006364 0ustar00 Order allow,deny Deny from all index.html000066600000000054151372174540006555 0ustar00tmpl/.htaccess000066600000000177151372174540007340 0ustar00 Order allow,deny Deny from all tmpl/default_statisticspage.php000066600000007511151372174540013005 0ustar00 ordersByStatus ); $i < $n; $i++) { $row = $this->ordersByStatus[$i]; $link = JROUTE::_('index.php?option=com_virtuemart&view=orders&show='.$row->order_status_code); ?> order_count; } ?> recentOrders); $i < $n; $i++) { $row = $this->recentOrders[$i]; $link = JROUTE::_('index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id='.$row->virtuemart_order_id); ?> recentCustomers); $i < $n; $i++) { $row = $this->recentCustomers[$i]; $link = JROUTE::_('index.php?option=com_virtuemart&view=user&virtuemart_user_id='.$row->virtuemart_user_id); ?>
nbrCustomers ?>
nbrActiveProducts ?>
: nbrInActiveProducts ?>
nbrFeaturedProducts ?>
order_status_name); ?> order_count; ?>
:
order_number; ?> order_total ?>
first_name . ' ' . $row->last_name. ' (' . $row->order_number . ') '; ?>
tmpl/default.php000066600000002142151372174540007671 0ustar00 'COM_VIRTUEMART_CONTROL_PANEL', 'statisticspage'=> 'COM_VIRTUEMART_STATISTIC_STATISTICS' ) ); AdminUIHelper::endAdminArea (); tmpl/index.html000066600000000054151372174540007531 0ustar00tmpl/default_controlpanel.php000066600000013556151372174540012464 0ustar00
canDo->get('core.admin') || $this->canDo->get('vm.product')) { ?>
canDo->get('core.admin') || $this->canDo->get('vm.category')) { ?>
canDo->get('core.admin') || $this->canDo->get('vm.orders')) { ?>
canDo->get('core.admin') || $this->canDo->get('vm.paymentmethod')) { ?>
canDo->get('core.admin') || $this->canDo->get('vm.user')) { ?>
canDo->get('core.admin')) { ?>
canDo->get('core.admin') || $this->canDo->get('vm.user.editshop')) { ?>
virtuemartFeed) { ?>

extensionsFeed ) { $j=0; foreach ($this->extensionsFeed as $item){ // This is directly related to extensions.virtuemart.net if (($j / 5) == 0) { ?>

link)) { $description = $item->description; preg_match('/]+>/i',$description, $result); if (is_array($result) and isset($result[0])){ $image=$result[0]; $description=str_replace($image,"",$description); $description=strip_tags($description); $description=str_replace(JText::_ ('COM_VIRTUEMART_FEED_READMORE') ,"",$description); } else { $description=""; } ?>