diff --git a/admin-dev/themes/template/stats/calendar.tpl b/admin-dev/themes/template/stats/calendar.tpl
new file mode 100644
index 000000000..f3060b9ef
--- /dev/null
+++ b/admin-dev/themes/template/stats/calendar.tpl
@@ -0,0 +1,53 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 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/afl-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-2011 PrestaShop SA
+* @version Release: $Revision: 8971 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin-dev/themes/template/stats/engines.tpl b/admin-dev/themes/template/stats/engines.tpl
new file mode 100644
index 000000000..2b4e6b195
--- /dev/null
+++ b/admin-dev/themes/template/stats/engines.tpl
@@ -0,0 +1,60 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 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/afl-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-2011 PrestaShop SA
+* @version Release: $Revision: 8971 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
\ No newline at end of file
diff --git a/admin-dev/themes/template/stats/menu.tpl b/admin-dev/themes/template/stats/menu.tpl
new file mode 100644
index 000000000..a62d61fe4
--- /dev/null
+++ b/admin-dev/themes/template/stats/menu.tpl
@@ -0,0 +1,47 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 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/afl-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-2011 PrestaShop SA
+* @version Release: $Revision: 8971 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
+
+
+
diff --git a/admin-dev/themes/template/stats/stats.tpl b/admin-dev/themes/template/stats/stats.tpl
new file mode 100644
index 000000000..67bb11ef2
--- /dev/null
+++ b/admin-dev/themes/template/stats/stats.tpl
@@ -0,0 +1,39 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 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/afl-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-2011 PrestaShop SA
+* @version Release: $Revision: 8897 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
'.$this->l('The visitors\' evolution graph strongly resembles the visits\' graph, but provides additional information:').'
@@ -106,7 +106,7 @@ class StatsVisits extends ModuleGraph
'.$this->l('This information is mostly qualitative: you have to determine the interest of a disjointed visit.').'
';
- return $this->_html;
+ return $this->html;
}
public function setOption($option, $layers = 1)
@@ -141,8 +141,8 @@ class StatsVisits extends ModuleGraph
for ($i = 0; $i < $layers; $i++)
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query[$i].$this->getDate().' GROUP BY LEFT(date_add, 4)');
- foreach ($result AS $row)
- $this->_values[$i][(int)(substr($row['date_add'], 0, 4))] = (int)($row['total']);
+ foreach ($result as $row)
+ $this->_values[$i][(int)substr($row['date_add'], 0, 4)] = (int)$row['total'];
}
}
@@ -151,8 +151,8 @@ class StatsVisits extends ModuleGraph
for ($i = 0; $i < $layers; $i++)
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query[$i].$this->getDate().' GROUP BY LEFT(date_add, 7)');
- foreach ($result AS $row)
- $this->_values[$i][(int)(substr($row['date_add'], 5, 2))] = (int)($row['total']);
+ foreach ($result as $row)
+ $this->_values[$i][(int)substr($row['date_add'], 5, 2)] = (int)$row['total'];
}
}
@@ -161,8 +161,8 @@ class StatsVisits extends ModuleGraph
for ($i = 0; $i < $layers; $i++)
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query[$i].$this->getDate().' GROUP BY LEFT(date_add, 10)');
- foreach ($result AS $row)
- $this->_values[$i][(int)(substr($row['date_add'], 8, 2))] = (int)($row['total']);
+ foreach ($result as $row)
+ $this->_values[$i][(int)substr($row['date_add'], 8, 2)] = (int)$row['total'];
}
}
@@ -171,8 +171,8 @@ class StatsVisits extends ModuleGraph
for ($i = 0; $i < $layers; $i++)
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query[$i].$this->getDate().' GROUP BY LEFT(date_add, 13)');
- foreach ($result AS $row)
- $this->_values[$i][(int)(substr($row['date_add'], 11, 2))] = (int)($row['total']);
+ foreach ($result as $row)
+ $this->_values[$i][(int)substr($row['date_add'], 11, 2)] = (int)$row['total'];
}
}
}