а не чисто номер
<input type="checkbox" name="order_id[]" value="1">
<input type="checkbox" name="order_id[]" value="2">
if (isset($_POST['order_id'])) {
$order_id = $_POST['order_id'];
$order_info = $this->model_sale_order->Exsel($order_id);
}
$sql = "и так далее
SELECT
p.*,
o.*,
c.iso_code_2 AS c_iso_code_2, c.iso_code_3 AS c_iso_code_2,
c2.iso_code_2 AS c2_iso_code_2, c2.iso_code_3 AS c2_iso_code_2,
z.`code` AS z_code,
z2.`code` AS z2_code
FROM
`" . DB_PREFIX . "order_product` p
LEFT JOIN
`" . DB_PREFIX . "order` o ON o.id = p.order_id
LEFT JOIN
`" . DB_PREFIX . "country` c ON c.country_id = o.payment_country_id
LEFT JOIN
`" . DB_PREFIX . "country` c2 ON c2.country_id = o.shipping_country_id
LEFT JOIN
`" . DB_PREFIX . "zone` z ON z.zone_id = o.payment_zone_id
LEFT JOIN
`" . DB_PREFIX . "zone` z2 ON z2.zone_id = o.shipping_zone_id
WHERE
p.order_id IN (" . implode(',', $order_id) . ")
";
<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>
<a onclick="$('#form').attr('action', '<?php echo $exsel; ?>'); $('#form').attr('target', '_self'); $('#form').submit();" class="button"><?php echo $btn_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);
}