Вот код
<td style="text-align: center;"><?php if ($order['selected']) { ?>
<input type="checkbox" name="selected[]" value="<?php echo $order['order_id']; ?>" checked="checked" />
<?php } else { ?>
<input type="checkbox" name="selected[]" value="<?php echo $order['order_id']; ?>" />
<?php } ?></td>
код php
public function Exsel() {
$this->load->language('sale/order');
$this->data['title'] = $this->language->get('heading_title');
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$this->data['base'] = HTTPS_SERVER;
} else {
$this->data['base'] = HTTP_SERVER;
}
$this->load->model('sale/order');
$this->load->model('setting/setting');
$this->data['orders'] = array();
$orders = array();
if (isset($this->request->post['selected'])) {
$orders = $this->request->post['selected'];
} elseif (isset($this->request->get['order_id'])) {
$orders[] = $this->request->get['order_id'];
}
foreach ($orders as $order_id) {
$order_info = $this->model_sale_order->Exsel($order_id);
}
}
иии
public function Exsel($order_id) {
$order_query = $this->db->query("SELECT *, (SELECT CONCAT(c.firstname, ' ', c.lastname) FROM " . DB_PREFIX . "customer c WHERE c.customer_id = o.customer_id) AS customer FROM `" . DB_PREFIX . "order` o WHERE o.order_id = '" . (int)$order_id . "'");
foreach($order_query->rows as $as){
echo $i.")".$as['telephone'].'</br>';
echo $i.")".$as['firstname'].'</br>';
echo $i.")".$as['lastname'].'</br>';
$i++;}