mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-25 01:37:59 -05:00
Update deploy instructions in Readme (#616) Add partial views to load CI translations in javascript (#439)
49 lines
1.6 KiB
PHP
49 lines
1.6 KiB
PHP
<?php $this->load->view("partial/header"); ?>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function()
|
|
{
|
|
<?php $this->load->view('partial/bootstrap_tables_locale'); ?>
|
|
|
|
table_support.init({
|
|
resource: '<?php echo site_url($controller_name);?>',
|
|
headers: <?php echo $table_headers; ?>,
|
|
pageSize: <?php echo $this->config->item('lines_per_page'); ?>,
|
|
uniqueId: 'item_kit_id'
|
|
});
|
|
|
|
$('#generate_barcodes').click(function()
|
|
{
|
|
window.open(
|
|
'index.php/item_kits/generate_barcodes/'+table_support.selected_ids().join(':'),
|
|
'_blank' // <- This is what makes it open in a new window.
|
|
);
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
<div id="title_bar" class="btn-toolbar">
|
|
<button class='btn btn-info btn-sm pull-right modal-dlg' data-btn-submit='<?php echo $this->lang->line('common_submit') ?>' data-href='<?php echo site_url($controller_name."/view"); ?>'
|
|
title='<?php echo $this->lang->line($controller_name. '_new'); ?>'>
|
|
<span class="glyphicon glyphicon-tags"> </span><?php echo $this->lang->line($controller_name. '_new'); ?>
|
|
</button>
|
|
</div>
|
|
|
|
<div id="toolbar">
|
|
<div class="pull-left btn-toolbar">
|
|
<button id="delete" class="btn btn-default btn-sm">
|
|
<span class="glyphicon glyphicon-trash"> </span><?php echo $this->lang->line("common_delete"); ?>
|
|
</button>
|
|
|
|
<button id="generate_barcodes" class="btn btn-default btn-sm" data-href='<?php echo site_url($controller_name."/generate_barcodes"); ?>'>
|
|
<span class="glyphicon glyphicon-barcode"> </span><?php echo $this->lang->line("items_generate_barcodes");?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="table_holder">
|
|
<table id="table"></table>
|
|
</div>
|
|
|
|
<?php $this->load->view("partial/footer"); ?>
|