// Fix #PSFV-30 + context part 24

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7792 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-28 14:12:17 +00:00
parent 31ed17058c
commit a1a32714ab
22 changed files with 47 additions and 55 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ class StatsProduct extends ModuleGraph
public function hookAdminStatsModules($params)
{
global $cookie, $currentIndex;
global $cookie;
$id_category = (int)(Tools::getValue('id_category'));
$currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
@@ -265,7 +265,7 @@ class StatsProduct extends ModuleGraph
</tr>
</thead><tbody>';
foreach ($this->getProducts($cookie->id_lang) AS $product)
$this->_html .= '<tr><td>'.$product['reference'].'</td><td><a href="'.$currentIndex.'&token='.Tools::getValue('token').'&module='.$this->name.'&id_product='.$product['id_product'].'">'.$product['name'].'</a></td><td>'.$product['quantity'].'</td></tr>';
$this->_html .= '<tr><td>'.$product['reference'].'</td><td><a href="'.AdminTab::$currentIndex.'&token='.Tools::getValue('token').'&module='.$this->name.'&id_product='.$product['id_product'].'">'.$product['name'].'</a></td><td>'.$product['quantity'].'</td></tr>';
$this->_html .= '</tbody></table><br /></div><br />
<a href="'.$_SERVER['REQUEST_URI'].'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a><br />';
}