diff --git a/admin-dev/themes/default/img/dashboard_loading.gif b/admin-dev/themes/default/img/dashboard_loading.gif new file mode 100644 index 000000000..09d621ede Binary files /dev/null and b/admin-dev/themes/default/img/dashboard_loading.gif differ diff --git a/controllers/admin/AdminDashboardController.php b/controllers/admin/AdminDashboardController.php index 91c94841b..7d5ef4e17 100644 --- a/controllers/admin/AdminDashboardController.php +++ b/controllers/admin/AdminDashboardController.php @@ -40,10 +40,11 @@ class AdminDashboardControllerCore extends AdminController parent::setMedia(); $this->addJS(array( __PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/d3.js', - __PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/nv.d3.js' + __PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/nv.d3.js', + _PS_JS_DIR_.'/admin-dashboard.js', )); $this->addCSS(array( - __PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/nv.d3.css' + __PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/nv.d3.css', )); } diff --git a/js/admin-dashboard.js b/js/admin-dashboard.js new file mode 100644 index 000000000..ada0abf9d --- /dev/null +++ b/js/admin-dashboard.js @@ -0,0 +1,23 @@ +/* +* +* NOTICE OF LICENSE +* +* This source file is subject to the Open Software License (OSL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/osl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ diff --git a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl index 5f01bf973..43b6668a7 100644 --- a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl +++ b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl @@ -27,15 +27,15 @@
{l s='Recent Activity'} - + - +
-
+
  • @@ -43,60 +43,60 @@ {l s='Within the last seven days'} - 365
    - 0.66% +
    + %
-
+
{l s='Pending'}
  • {l s='Pending Orders'} - 120 +
  • {l s='Return/Exchanges'} - 35 +
  • - {l s='Abandonned Carts'} - 12 + {l s='Abandoned Carts'} +
  • {l s='Products Out of Stock'} - 4 +
-
+
{l s='Notification'}
  • {l s='New Messages'} - 42 +
  • {l s='Order Inquires'} - 13 +
  • {l s='Product Reviews'} - 56 +
-
+
{l s='Customers'}
  • {l s='New Customers'} - 42 +
  • {l s='Online Visitor'} - 200 +
  • @@ -105,33 +105,33 @@ {l s='In the last 30 minutes'} - 36 +
-
+
{l s='Newsletter'}
  • {l s='New Registrations'} - 125 +
  • {l s='Total Subscribers'} - 13,500 +
-
+
{l s='Traffic'}
  • {l s='Visits'} - 10,000 +
  • {l s='Unique Visitors'} - 3,500 +
  • {l s='Traffic Sources'}