
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
None | size: 1.05 KB | hits: 20 | expires: Never
$ajax_html = '<ul class="neo_list_order">';
$html_li = '';
foreach($allOrders as $id_order){
$tmp_order = new OrderCore((int)$id_order);
$tmp_customer = new CustomerCore((int)$tmp_order->id_customer);
$invoice_type = getInvoice($tmp_order->invoice_number);
foreach($neo_invoice_type as $neo_invoice){
$ajax_html .= '<li> <a href="pdf.php?is_compte='.$invoice_type ['type'].'&id_order='.$id_order.'&pdf"> <img src="../../img/admin/pdf.gif" alt="Télècharger la facture"></a> '.($neo_invoice['type'] == 0 ? 'FA' : 'FD').' <a href="index.php?tab=AdminOrders&id_order='.(int)$id_order.'&vieworder&token='.Tools::getAdminToken("AdminOrders").'" target="_blank" > Commande n° ' . $id_order . '</a> - Panier n° ' . $tmp_order->id_cart . ' - Client : <a href="index.php?tab=AdminCustomers&id_customer='.(int)$tmp_order->id_customer.'&viewcustomer&token='.Tools::getAdminToken("AdminCustomers").'" target="_blank">' . $tmp_customer->firstname . ' ' . $tmp_customer->lastname . '</a></li>';
}
}
$ajax_html .= '</ul>';