// Context part 19

This commit is contained in:
tDidierjean
2011-07-25 16:42:48 +00:00
parent 2c4f27f1be
commit a96064b13d
4 changed files with 38 additions and 41 deletions
+1 -2
View File
@@ -264,7 +264,6 @@ class AdminCustomers extends AdminTab
$context = Context::getContext();
$irow = 0;
$defaultLanguage = $context->language->id;
$defaultCurrency = $context->currency->id;
if (!($customer = $this->loadObject()))
return;
$customerStats = $customer->getStats();
@@ -440,7 +439,7 @@ class AdminCustomers extends AdminTab
$orderFoot = '</table>';
if ($countOK = sizeof($ordersOK))
{
echo '<div style="float:left;margin-right:20px"><h3 style="color:green;font-weight:700">'.$this->l('Valid orders:').' '.$countOK.' '.$this->l('for').' '.Tools::displayPrice($totalOK, new Currency($defaultCurrency)).'</h3>'.$orderHead;
echo '<div style="float:left;margin-right:20px"><h3 style="color:green;font-weight:700">'.$this->l('Valid orders:').' '.$countOK.' '.$this->l('for').' '.Tools::displayPrice($totalOK, $context->currency->id).'</h3>'.$orderHead;
foreach ($ordersOK AS $order)
echo '<tr '.($irow++ % 2 ? 'class="alt_row"' : '').' style="cursor: pointer" onclick="document.location = \'?tab=AdminOrders&id_order='.$order['id_order'].'&vieworder&token='.$tokenOrders.'\'">
<td class="center">'.$order['id_order'].'</td>