mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-23 00:37:56 -05:00
64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
<table id="suspended_sales_table" class="table table-striped table-hover">
|
|
<thead>
|
|
<tr bgcolor="#CCC">
|
|
<th><?php echo $this->lang->line('sales_suspended_doc_id'); ?></th>
|
|
<th><?php echo $this->lang->line('sales_date'); ?></th>
|
|
<?php
|
|
if($this->config->item('dinner_table_enable') == TRUE)
|
|
{
|
|
?>
|
|
<th><?php echo $this->lang->line('sales_table'); ?></th>
|
|
<?php
|
|
}
|
|
?>
|
|
<th><?php echo $this->lang->line('sales_customer'); ?></th>
|
|
<th><?php echo $this->lang->line('sales_comments'); ?></th>
|
|
<th><?php echo $this->lang->line('sales_unsuspend_and_delete'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($suspended_sales as $suspended_sale)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><?php echo $suspended_sale['doc_id'];?></td>
|
|
<td><?php echo date($this->config->item('dateformat'), strtotime($suspended_sale['sale_time']));?></td>
|
|
<?php
|
|
if($this->config->item('dinner_table_enable') == TRUE)
|
|
{
|
|
?>
|
|
<td><?php echo $this->Dinner_table->get_name($suspended_sale['dinner_table_id']);?></td>
|
|
<?php
|
|
}
|
|
?>
|
|
<td>
|
|
<?php
|
|
if (isset($suspended_sale['customer_id']))
|
|
{
|
|
$customer = $this->Customer->get_info($suspended_sale['customer_id']);
|
|
echo $customer->first_name . ' ' . $customer->last_name;
|
|
}
|
|
else
|
|
{
|
|
?>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
<td><?php echo $suspended_sale['comment'];?></td>
|
|
<td>
|
|
<?php echo form_open('sales/unsuspend');
|
|
echo form_hidden('suspended_sale_id', $suspended_sale['sale_id']);
|
|
?>
|
|
<input type="submit" name="submit" value="<?php echo $this->lang->line('sales_unsuspend'); ?>" id="submit" class="btn btn-primary btn-xs pull-right">
|
|
<?php echo form_close(); ?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|