
Untitled
By: a guest on
Jul 18th, 2012 | syntax:
None | size: 1.12 KB | hits: 9 | expires: Never
$sort_order = array();
foreach ($total_data as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
array_multisort($sort_order, SORT_ASC, $total_data);
$output .= '<table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">';
foreach ($total_data as $total) {
$output .= '<tr>';
$output .= '<td align="right"><span class="cart_module_total"><b>' . $total['title'] . '</b></span></td>';
$output .= '<td align="right"><span class="cart_module_total">' . $total['text'] . '</span></td>';
$output .= '</tr>';
}
$output .= '</table>';
$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>';
} else {
$output .= '<div style="text-align: center;">' . $this->language->get('text_empty') . '</div>';
}
$this->response->setOutput($output, $this->config->get('config_compression'));
}
}
?>