// add images css sprites for icon page stats
This commit is contained in:
@@ -109,7 +109,7 @@ class StatsBestCategories extends ModuleGrid
|
||||
$this->csvExport($engineParams);
|
||||
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
'.$this->engine($engineParams).'
|
||||
<br /><a class="button export-csv" href="'.htmlentities($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a>
|
||||
</div>';
|
||||
|
||||
@@ -109,11 +109,11 @@ class StatsBestCustomers extends ModuleGrid
|
||||
if (Tools::getValue('export'))
|
||||
$this->csvExport($engineParams);
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
'.$this->engine($engineParams).'
|
||||
<p><a href="'.htmlentities($_SERVER['REQUEST_URI']).'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a></p>
|
||||
<p><a class="button export-csv" href="'.htmlentities($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a></p>
|
||||
</div><br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Guide').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-guide"><span></span>'.$this->l('Guide').'</h2>
|
||||
<h2 >'.$this->l('Develop clients\' loyalty').'</h2>
|
||||
<p class="space">
|
||||
'.$this->l('Keeping a client is more profitable than gaining a new one. Thus, it is necessary to develop their loyalty, in other words to make them want to come back to your webshop.').' <br />
|
||||
|
||||
@@ -137,9 +137,9 @@ class StatsBestProducts extends ModuleGrid
|
||||
$this->csvExport($engineParams);
|
||||
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
'.$this->engine($engineParams).'
|
||||
<p><a href="'.htmlentities($_SERVER['REQUEST_URI']).'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a></p>
|
||||
<p><a class="button export-csv" href="'.htmlentities($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a></p>
|
||||
</fieldset>';
|
||||
return $this->_html;
|
||||
}
|
||||
|
||||
@@ -101,9 +101,9 @@ class StatsBestSuppliers extends ModuleGrid
|
||||
if (Tools::getValue('export') == 1)
|
||||
$this->csvExport($engineParams);
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
'.$this->engine($engineParams).'
|
||||
<p><a href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a></p>
|
||||
<p><a class="button export-csv" href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a></p>
|
||||
</div>';
|
||||
return $this->_html;
|
||||
}
|
||||
|
||||
@@ -102,9 +102,9 @@ class StatsBestVouchers extends ModuleGrid
|
||||
$this->csvExport($engineParams);
|
||||
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
'.$this->engine($engineParams).'
|
||||
<br /><a href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a>
|
||||
<br /><a class="button export-csv" href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a>
|
||||
</div>';
|
||||
return $this->_html;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class StatsCarrier extends ModuleGraph
|
||||
if (Tools::getValue('export'))
|
||||
$this->csvExport(array('type' => 'pie', 'option' => Tools::getValue('id_order_state')));
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post" style="float: right;">
|
||||
<select name="id_order_state">
|
||||
<option value="0"'.((!Tools::getValue('id_order_state')) ? ' selected="selected"' : '').'>'.$this->l('All').'</option>';
|
||||
|
||||
@@ -169,7 +169,7 @@ class StatsCatalog extends Module
|
||||
|
||||
$html = '
|
||||
<script type="text/javascript" language="javascript">$(\'#calendar\').slideToggle();</script>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
<div class="margin-form">
|
||||
<form action="" method="post" id="categoriesForm">
|
||||
<label>
|
||||
@@ -207,7 +207,7 @@ class StatsCatalog extends Module
|
||||
if (count($productsNB) && count($productsNB) < 50)
|
||||
{
|
||||
$html .= '<br />
|
||||
<div class="blocStats"><h2 class="icon-basket_delete.png"> '.$this->l('Products never purchased').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-basket-delete"><span></span>'.$this->l('Products never purchased').'</h2>
|
||||
<table cellpadding="0" cellspacing="0" class="table">
|
||||
<tr><th>'.$this->l('ID').'</th><th>'.$this->l('Name').'</th><th>'.$this->l('Edit / View').'</th></tr>';
|
||||
foreach ($productsNB as $product)
|
||||
|
||||
@@ -304,7 +304,7 @@ class StatsForecast extends Module
|
||||
$orders = Db::getInstance()->getValue($sql);
|
||||
|
||||
$this->_html .= '<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Conversion').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-conversion"><span></span>'.$this->l('Conversion').'</h2>
|
||||
<span style="float:left;text-align:center;margin-right:10px;padding-top:15px">'.$this->l('Visitors').'<br />'.$visitors.'</span>
|
||||
<span style="float:left;text-align:center;margin-right:10px">
|
||||
<img src="../modules/'.$this->name.'/next.png"><br />'.round(100 * $customers / max(1, $visitors)).' %<br />
|
||||
@@ -346,7 +346,7 @@ class StatsForecast extends Module
|
||||
|
||||
$this->_html .= '
|
||||
<br />';
|
||||
$this->_html .= '<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Payment distibution').'</h2>
|
||||
$this->_html .= '<div class="blocStats"><h2 class="icon-payment"><span></span>'.$this->l('Payment distibution').'</h2>
|
||||
<form id="cat" action="'.$ru.'#payment" method="post" >
|
||||
<input type="hidden" name="submitIdZone" value="1" />
|
||||
'.$this->l('Zone:').' <select name="stats_id_zone" onchange="this.form.submit();">
|
||||
@@ -369,7 +369,7 @@ class StatsForecast extends Module
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Category distribution').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-category"><span></span>'.$this->l('Category distribution').'</h2>
|
||||
<form id="cat" action="'.$ru.'#cat" method="post" >
|
||||
<input type="hidden" name="submitIdZone" value="1" />
|
||||
'.$this->l('Zone:').' <select name="stats_id_zone" onchange="this.form.submit();">
|
||||
@@ -394,7 +394,7 @@ class StatsForecast extends Module
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Language distribution').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-language"><span></span>'.$this->l('Language distribution').'</h2>
|
||||
<table class="table" border="0" cellspacing="0" cellspacing="0">
|
||||
<tr><th>'.$this->l('Customers').'</th><th>'.$this->l('Sales').'</th><th>'.$this->l('%').'</th><th colspan="2">'.$this->l('Growth').'</th></tr>';
|
||||
foreach ($ca['lang'] as $ophone => $amount)
|
||||
@@ -413,7 +413,7 @@ class StatsForecast extends Module
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Zone distribution').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->l('Zone distribution').'</h2>
|
||||
<table class="table" border="0" cellspacing="0" cellspacing="0">
|
||||
<tr><th>'.$this->l('Zone').'</th><th>'.$this->l('Count').'</th><th>'.$this->l('Total').'</th><th>'.$this->l('% Count').'</th><th>'.$this->l('% Sales').'</th></tr>';
|
||||
foreach ($ca['zones'] as $zone)
|
||||
@@ -429,7 +429,7 @@ class StatsForecast extends Module
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Currency distribution').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-currency"><span></span>'.$this->l('Currency distribution').'</h2>
|
||||
<form id="cat" action="'.$ru.'#currencies" method="post" >
|
||||
<input type="hidden" name="submitIdZone" value="1" />
|
||||
'.$this->l('Zone:').' <select name="stats_id_zone" onchange="this.form.submit();">
|
||||
@@ -453,7 +453,7 @@ class StatsForecast extends Module
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Attribute distribution').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-attribute"><span></span>'.$this->l('Attribute distribution').'</h2>
|
||||
<table class="table" border="0" cellspacing="0" cellspacing="0">
|
||||
<tr><th>'.$this->l('Group').'</th><th>'.$this->l('Attribute').'</th><th>'.$this->l('Count').'</th></tr>';
|
||||
foreach ($ca['attributes'] as $attribut)
|
||||
|
||||
@@ -84,7 +84,7 @@ class StatsOrigin extends ModuleGraph
|
||||
if (Tools::getValue('export'))
|
||||
if (Tools::getValue('exportType') == 'top')
|
||||
$this->csvExport(array('type' => 'pie'));
|
||||
$this->_html = '<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Origin').'</h2>';
|
||||
$this->_html = '<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->l('Origin').'</h2>';
|
||||
if (count($websites))
|
||||
{
|
||||
$this->_html .= '
|
||||
|
||||
@@ -55,7 +55,7 @@ class StatsPersonalInfos extends ModuleGraph
|
||||
|
||||
public function hookAdminStatsModules($params)
|
||||
{
|
||||
$this->html = '<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>';
|
||||
$this->html = '<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>';
|
||||
if (count(Customer::getCustomers()))
|
||||
{
|
||||
if (Tools::getValue('export'))
|
||||
@@ -93,7 +93,7 @@ class StatsPersonalInfos extends ModuleGraph
|
||||
$this->html .= '<p>'.$this->l('No customers registered yet.').'</p>';
|
||||
$this->html .= '
|
||||
</div><br />
|
||||
<div class="blocStats"><h2 class="icon-guide">'.$this->l('Guide').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-guide"><span></span>'.$this->l('Guide').'</h2>
|
||||
<h2>'.$this->l('Target your audience').'</h2>
|
||||
<p>
|
||||
'.$this->l('In order for each message to have an impact, you need to know to whom it should be addressed.').'
|
||||
|
||||
@@ -67,7 +67,7 @@ class StatsSales extends ModuleGraph
|
||||
$this->csvExport(array('type' => 'pie', 'option' => '3-'.(int)Tools::getValue('id_country')));
|
||||
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
|
||||
<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post" style="float: right; margin-left: 10px;">
|
||||
<select name="id_country">
|
||||
<option value="0"'.((!Tools::getValue('id_order_state')) ? ' selected="selected"' : '').'>'.$this->l('All').'</option>';
|
||||
|
||||
@@ -98,7 +98,7 @@ class StatsSearch extends ModuleGraph
|
||||
|
||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.ModuleGraph::getDateBetween().$this->_query2);
|
||||
$this->_html = '
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->displayName.'</h2>';
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>';
|
||||
$table = '<div style="overflow-y: scroll; height: 600px;">
|
||||
<table class="table" border="0" cellspacing="0" cellspacing="0">
|
||||
<thead>
|
||||
|
||||
@@ -84,7 +84,7 @@ class StatsStock extends Module
|
||||
|
||||
$this->html .= '
|
||||
<script type="text/javascript">$(\'#calendar\').slideToggle();</script>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'">'.$this->l('Stock value').'</h2>
|
||||
<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->l('Stock value').'</h2>
|
||||
<form action="'.$ru.'" method="post">
|
||||
<input type="hidden" name="submitCategory" value="1" />
|
||||
'.$this->l('Category').' : <select name="statsstock_id_category" onchange="this.form.submit();">
|
||||
|
||||
Reference in New Issue
Block a user