Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 1.05 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  $ajax_html = '<ul class="neo_list_order">';
  2.     $html_li = '';
  3.     foreach($allOrders as $id_order){
  4.       $tmp_order = new OrderCore((int)$id_order);
  5.       $tmp_customer = new CustomerCore((int)$tmp_order->id_customer);
  6.       $invoice_type = getInvoice($tmp_order->invoice_number);
  7.       foreach($neo_invoice_type as $neo_invoice){
  8.          $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>';
  9.       }
  10.     }
  11.     $ajax_html .= '</ul>';