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

Untitled

By: a guest on Jul 18th, 2012  |  syntax: None  |  size: 1.12 KB  |  hits: 9  |  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. $sort_order = array();
  2.                  
  3.                         foreach ($total_data as $key => $value) {
  4.                         $sort_order[$key] = $value['sort_order'];
  5.                 }
  6.  
  7.                 array_multisort($sort_order, SORT_ASC, $total_data);
  8.                        
  9.                 $output .= '<table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">';
  10.                 foreach ($total_data as $total) {
  11.                         $output .= '<tr>';
  12.                         $output .= '<td align="right"><span class="cart_module_total"><b>' . $total['title'] . '</b></span></td>';
  13.                         $output .= '<td align="right"><span class="cart_module_total">' . $total['text'] . '</span></td>';
  14.                         $output .= '</tr>';
  15.                 }
  16.                 $output .= '</table>';
  17.                 $output .= '<div style="padding-top:5px;text-align:center;clear:both;"><a href="' . $view . '">' . $this->language->get('text_view') . '</a> | <a href="' . $checkout . '">' . $this->language->get('text_checkout') . '</a></div>';
  18.                 } else {
  19.                         $output .= '<div style="text-align: center;">' . $this->language->get('text_empty') . '</div>';
  20.                 }
  21.                
  22.                 $this->response->setOutput($output, $this->config->get('config_compression'));
  23.         }      
  24. }
  25. ?>