Change to bootstrap notification bars, cleanup old css files, moved styles to ospos.css, fixed ospos_print.css (#116)

This commit is contained in:
FrancescoUK
2016-02-08 19:30:26 +00:00
parent f6356dd9e6
commit 7e269f1256
50 changed files with 2606 additions and 2750 deletions

View File

@@ -476,7 +476,7 @@ class Items extends Secure_area implements iData_controller
{
$success_message = $this->lang->line('items_successful_' . ($new_item ? 'adding' : 'updating')) .' '. $item_data['name'];
echo json_encode(array('success'=>true,'message'=>$success_message,'item_id'=>$item_id));
echo json_encode(array('success'=>true, 'message'=>$success_message, 'item_id'=>$item_id));
}
else
{
@@ -484,16 +484,13 @@ class Items extends Secure_area implements iData_controller
$this->lang->line('items_error_adding_updating') .' '. $item_data['name'] :
$this->upload->display_errors();
echo json_encode(array('success'=>false,
'message'=>$error_message,'item_id'=>$item_id));
echo json_encode(array('success'=>false, 'message'=>$error_message, 'item_id'=>$item_id));
}
}
else//failure
{
echo json_encode(array('success'=>false,
'message'=>$this->lang->line('items_error_adding_updating').' '
.$item_data['name'],'item_id'=>-1));
echo json_encode(array('success'=>false, 'message'=>$this->lang->line('items_error_adding_updating').' '.$item_data['name'], 'item_id'=>-1));
}
}

View File

@@ -50,7 +50,7 @@ function get_sales_manage_table_data_rows($sales, $controller)
if($table_data_rows == '')
{
$table_data_rows .= "<tr><td colspan='10'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('sales_no_sales_to_display')."</div></td></tr>";
$table_data_rows .= "<tr><td colspan='10'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('sales_no_sales_to_display')."</div></td></tr>";
}
else
{
@@ -157,7 +157,7 @@ function get_people_manage_table_data_rows($people,$controller)
if($people->num_rows()==0)
{
$table_data_rows.="<tr><td colspan='6'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('common_no_persons_to_display')."</div></td></tr>";
$table_data_rows.="<tr><td colspan='6'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('common_no_persons_to_display')."</div></td></tr>";
}
return $table_data_rows;
@@ -241,7 +241,7 @@ function get_supplier_manage_table_data_rows($suppliers,$controller)
if($suppliers->num_rows()==0)
{
$table_data_rows.="<tr><td colspan='9'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('common_no_persons_to_display')."</div></td></tr>";
$table_data_rows.="<tr><td colspan='9'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('common_no_persons_to_display')."</div></td></tr>";
}
return $table_data_rows;
@@ -317,7 +317,7 @@ function get_items_manage_table_data_rows($items,$controller)
if($items->num_rows()==0)
{
$table_data_rows.="<tr><td colspan='12'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('items_no_items_to_display')."</div></td></tr>";
$table_data_rows.="<tr><td colspan='12'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('items_no_items_to_display')."</div></td></tr>";
}
return $table_data_rows;
@@ -411,7 +411,7 @@ function get_giftcards_manage_table_data_rows( $giftcards, $controller )
if($giftcards->num_rows()==0)
{
$table_data_rows.="<tr><td colspan='11'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('giftcards_no_giftcards_to_display')."</div></td></tr>";
$table_data_rows.="<tr><td colspan='11'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('giftcards_no_giftcards_to_display')."</div></td></tr>";
}
return $table_data_rows;
@@ -479,7 +479,7 @@ function get_item_kits_manage_table_data_rows($item_kits, $controller)
if($item_kits->num_rows()==0)
{
$table_data_rows .= "<tr><td colspan='11'><div class='warning_message' style='padding:7px;'>".$CI->lang->line('item_kits_no_item_kits_to_display')."</div></td></tr>";
$table_data_rows .= "<tr><td colspan='11'><div class='alert alert-dismissible alert-warning'>".$CI->lang->line('item_kits_no_item_kits_to_display')."</div></td></tr>";
}
return $table_data_rows;

View File

@@ -1,7 +1,6 @@
<div id="page_title"><?php echo $this->lang->line('config_barcode_configuration'); ?></div>
<?php
echo form_open('config/save_barcode/',array('id'=>'barcode_config_form'));
?>
<?php echo form_open('config/save_barcode/',array('id'=>'barcode_config_form')); ?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
@@ -177,9 +176,7 @@ echo form_open('config/save_barcode/',array('id'=>'barcode_config_form'));
?>
</fieldset>
</div>
<?php
echo form_close();
?>
<?php echo form_close(); ?>
<script type='text/javascript'>
@@ -195,11 +192,11 @@ $(document).ready(function()
{
if(response.success)
{
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
},
dataType:'json'

View File

@@ -1,317 +1,314 @@
<div id="page_title"><?php echo $this->lang->line('config_general_configuration'); ?></div>
<?php
echo form_open('config/save/',array('id'=>'config_form','enctype'=>'multipart/form-data'));
?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_company').':', 'company',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company',
'id'=>'company',
'value'=>$this->config->item('company')));?>
<?php echo form_open('config/save/',array('id'=>'config_form','enctype'=>'multipart/form-data')); ?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_company').':', 'company',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company',
'id'=>'company',
'value'=>$this->config->item('company')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_company_logo').':', 'company_logo',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload('company_logo');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_address').':', 'address',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'address',
'id'=>'address',
'rows'=>4,
'cols'=>17,
'value'=>$this->config->item('address')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_website').':', 'website',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'website',
'id'=>'website',
'value'=>$this->config->item('website')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_email').':', 'email',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'email',
'id'=>'email',
'value'=>$this->config->item('email')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_phone').':', 'phone',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'phone',
'id'=>'phone',
'value'=>$this->config->item('phone')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_fax').':', 'fax',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'fax',
'id'=>'fax',
'value'=>$this->config->item('fax')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_return_policy').':', 'return_policy',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'return_policy',
'id'=>'return_policy',
'rows'=>'4',
'cols'=>'17',
'value'=>$this->config->item('return_policy')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_tax_rate_1').':', 'default_tax_1_rate',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_tax_1_name',
'id'=>'default_tax_1_name',
'size'=>'10',
'value'=>$this->config->item('default_tax_1_name')!==FALSE ? $this->config->item('default_tax_1_name') : $this->lang->line('items_sales_tax_1')));?>
<?php echo form_input(array(
'name'=>'default_tax_1_rate',
'id'=>'default_tax_1_rate',
'size'=>'4',
'value'=>$this->config->item('default_tax_1_rate')));?>%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_tax_rate_2').':', 'default_tax_1_rate',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_tax_2_name',
'id'=>'default_tax_2_name',
'size'=>'10',
'value'=>$this->config->item('default_tax_2_name')!==FALSE ? $this->config->item('default_tax_2_name') : $this->lang->line('items_sales_tax_2')));?>
<?php echo form_input(array(
'name'=>'default_tax_2_rate',
'id'=>'default_tax_2_rate',
'size'=>'4',
'value'=>$this->config->item('default_tax_2_rate')));?>%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_tax_included').':', 'tax_included',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'tax_included',
'id'=>'tax_included',
'value'=>'tax_included',
'checked'=>$this->config->item('tax_included')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_sales_discount').':', 'default_sales_discount',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_sales_discount',
'id'=>'default_sales_discount',
'type'=>'number',
'min'=>0,
'max'=>100,
'value'=>$this->config->item('default_sales_discount')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_sales_invoice_format').':', 'sales_invoice_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'sales_invoice_format',
'id'=>'sales_invoice_format',
'value'=>$this->config->item('sales_invoice_format'))); ?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_recv_invoice_format').':', 'recv_invoice_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'recv_invoice_format',
'id'=>'recv_invoice_format',
'value'=>$this->config->item('recv_invoice_format'))); ?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receiving_calculate_average_price').':', 'receiving_calculate_average_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'receiving_calculate_average_price',
'id'=>'receiving_calculate_average_price',
'value'=>'receiving_calculate_average_price',
'checked'=>$this->config->item('receiving_calculate_average_price')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_lines_per_page').':', 'lines_per_page',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'lines_per_page',
'id'=>'lines_per_page',
'type'=>'number',
'min'=>10,
'max'=>1000,
'value'=>$this->config->item('lines_per_page')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom1').':', 'config_custom1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom1_name',
'id'=>'custom1_name',
'value'=>$this->config->item('custom1_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom2').':', 'config_custom2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom2_name',
'id'=>'custom2_name',
'value'=>$this->config->item('custom2_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom3').':', 'config_custom3',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom3_name',
'id'=>'custom3_name',
'value'=>$this->config->item('custom3_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom4').':', 'config_custom4',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom4_name',
'id'=>'custom4_name',
'value'=>$this->config->item('custom4_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom5').':', 'config_custom5',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom5_name',
'id'=>'custom5_name',
'value'=>$this->config->item('custom5_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom6').':', 'config_custom6',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom6_name',
'id'=>'custom6_name',
'value'=>$this->config->item('custom6_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom7').':', 'config_custom7',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom7_name',
'id'=>'custom7_name',
'value'=>$this->config->item('custom7_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom8').':', 'config_custom8',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom8_name',
'id'=>'custom8_name',
'value'=>$this->config->item('custom8_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom9').':', 'config_custom9',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom9_name',
'id'=>'custom9_name',
'value'=>$this->config->item('custom9_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom10').':', 'config_custom10',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom10_name',
'id'=>'custom10_name',
'value'=>$this->config->item('custom10_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_backup_database').':', 'config_backup_database',array('class'=>'wide')); ?>
<div id="backup_db" class="btn btn-primary btn-sm">
<span style="top:22%;"><?php echo $this->lang->line('config_backup_button'); ?></span>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_company_logo').':', 'company_logo',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload('company_logo');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_address').':', 'address',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'address',
'id'=>'address',
'rows'=>4,
'cols'=>17,
'value'=>$this->config->item('address')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_website').':', 'website',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'website',
'id'=>'website',
'value'=>$this->config->item('website')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_email').':', 'email',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'email',
'id'=>'email',
'value'=>$this->config->item('email')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_phone').':', 'phone',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'phone',
'id'=>'phone',
'value'=>$this->config->item('phone')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_fax').':', 'fax',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'fax',
'id'=>'fax',
'value'=>$this->config->item('fax')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_return_policy').':', 'return_policy',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'return_policy',
'id'=>'return_policy',
'rows'=>'4',
'cols'=>'17',
'value'=>$this->config->item('return_policy')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_tax_rate_1').':', 'default_tax_1_rate',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_tax_1_name',
'id'=>'default_tax_1_name',
'size'=>'10',
'value'=>$this->config->item('default_tax_1_name')!==FALSE ? $this->config->item('default_tax_1_name') : $this->lang->line('items_sales_tax_1')));?>
<?php echo form_input(array(
'name'=>'default_tax_1_rate',
'id'=>'default_tax_1_rate',
'size'=>'4',
'value'=>$this->config->item('default_tax_1_rate')));?>%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_tax_rate_2').':', 'default_tax_1_rate',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_tax_2_name',
'id'=>'default_tax_2_name',
'size'=>'10',
'value'=>$this->config->item('default_tax_2_name')!==FALSE ? $this->config->item('default_tax_2_name') : $this->lang->line('items_sales_tax_2')));?>
<?php echo form_input(array(
'name'=>'default_tax_2_rate',
'id'=>'default_tax_2_rate',
'size'=>'4',
'value'=>$this->config->item('default_tax_2_rate')));?>%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_tax_included').':', 'tax_included',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'tax_included',
'id'=>'tax_included',
'value'=>'tax_included',
'checked'=>$this->config->item('tax_included')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_default_sales_discount').':', 'default_sales_discount',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'default_sales_discount',
'id'=>'default_sales_discount',
'type'=>'number',
'min'=>0,
'max'=>100,
'value'=>$this->config->item('default_sales_discount')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_sales_invoice_format').':', 'sales_invoice_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'sales_invoice_format',
'id'=>'sales_invoice_format',
'value'=>$this->config->item('sales_invoice_format'))); ?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_recv_invoice_format').':', 'recv_invoice_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'recv_invoice_format',
'id'=>'recv_invoice_format',
'value'=>$this->config->item('recv_invoice_format'))); ?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receiving_calculate_average_price').':', 'receiving_calculate_average_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'receiving_calculate_average_price',
'id'=>'receiving_calculate_average_price',
'value'=>'receiving_calculate_average_price',
'checked'=>$this->config->item('receiving_calculate_average_price')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_lines_per_page').':', 'lines_per_page',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'lines_per_page',
'id'=>'lines_per_page',
'type'=>'number',
'min'=>10,
'max'=>1000,
'value'=>$this->config->item('lines_per_page')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom1').':', 'config_custom1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom1_name',
'id'=>'custom1_name',
'value'=>$this->config->item('custom1_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom2').':', 'config_custom2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom2_name',
'id'=>'custom2_name',
'value'=>$this->config->item('custom2_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom3').':', 'config_custom3',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom3_name',
'id'=>'custom3_name',
'value'=>$this->config->item('custom3_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom4').':', 'config_custom4',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom4_name',
'id'=>'custom4_name',
'value'=>$this->config->item('custom4_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom5').':', 'config_custom5',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom5_name',
'id'=>'custom5_name',
'value'=>$this->config->item('custom5_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom6').':', 'config_custom6',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom6_name',
'id'=>'custom6_name',
'value'=>$this->config->item('custom6_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom7').':', 'config_custom7',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom7_name',
'id'=>'custom7_name',
'value'=>$this->config->item('custom7_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom8').':', 'config_custom8',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom8_name',
'id'=>'custom8_name',
'value'=>$this->config->item('custom8_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom9').':', 'config_custom9',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom9_name',
'id'=>'custom9_name',
'value'=>$this->config->item('custom9_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_custom10').':', 'config_custom10',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom10_name',
'id'=>'custom10_name',
'value'=>$this->config->item('custom10_name')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_backup_database').':', 'config_backup_database',array('class'=>'wide')); ?>
<div id="backup_db" class="btn btn-primary btn-sm">
<span style="top:22%;"><?php echo $this->lang->line('config_backup_button'); ?></span>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
<?php
echo form_close();
?>
<?php echo form_close(); ?>
<script type='text/javascript'>
@@ -330,11 +327,11 @@ $(document).ready(function()
{
if(response.success)
{
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
},
dataType:'json'

View File

@@ -1,212 +1,209 @@
<div id="page_title"><?php echo $this->lang->line('config_locale_configuration'); ?></div>
<?php
echo form_open('config/save_locale/',array('id'=>'locale_config_form'));
?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_locale_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_currency_symbol').':', 'currency_symbol',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'currency_symbol',
'id'=>'currency_symbol',
'value'=>$this->config->item('currency_symbol')));?>
</div>
<?php echo form_open('config/save_locale/',array('id'=>'locale_config_form')); ?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_locale_info"); ?></legend>
<?php echo form_label($this->lang->line('config_currency_side').':', 'currency_side',array('class'=>''));?>
<div class='form_field'>
<?php
echo form_checkbox(array(
'name'=>'currency_side',
'id'=>'currency_side',
'value'=>'currency_side',
'checked'=>$this->config->item('currency_side')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_currency_symbol').':', 'currency_symbol',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'currency_symbol',
'id'=>'currency_symbol',
'value'=>$this->config->item('currency_symbol')));?>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_number_format').':', 'number_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo $this->lang->line('config_thousands_separator'); ?>
<?php echo form_dropdown('thousands_separator', array(
'&apos;' => '&apos; (apostrophe)',
',' => ', (comma)',
'.' => '. (dot)',
'' => '(none)'
),
$this->config->item('thousands_separator'));
?>
<?php echo $this->lang->line('config_decimal_point'); ?>
<?php echo form_dropdown('decimal_point', array(
'.' => '. (dot)',
',' => ', (comma)'
),
$this->config->item('decimal_point'));
?>
</div>
</div>
<?php echo form_label($this->lang->line('config_currency_side').':', 'currency_side',array('class'=>''));?>
<div class='form_field'>
<?php
echo form_checkbox(array(
'name'=>'currency_side',
'id'=>'currency_side',
'value'=>'currency_side',
'checked'=>$this->config->item('currency_side')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_language').':', 'language',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('language', array(
'en' => 'English',
'es' => 'Spanish',
'ru' => 'Russian',
'nl-BE' => 'Dutch (Belgium)',
'de-CH' => 'German (Swiss)',
'zh' => 'Chinese',
'id' => 'Indonesian',
'fr' => 'French',
'th' => 'Thai',
'tr' => 'Turkish'
),
$this->config->item('language'));
?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_number_format').':', 'number_format',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo $this->lang->line('config_thousands_separator'); ?>
<?php echo form_dropdown('thousands_separator', array(
'&apos;' => '&apos; (apostrophe)',
',' => ', (comma)',
'.' => '. (dot)',
'' => '(none)'
),
$this->config->item('thousands_separator'));
?>
<?php echo $this->lang->line('config_decimal_point'); ?>
<?php echo form_dropdown('decimal_point', array(
'.' => '. (dot)',
',' => ', (comma)'
),
$this->config->item('decimal_point'));
?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_timezone').':', 'timezone',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('timezone',
array(
'Pacific/Midway'=>'(GMT-11:00) Midway Island, Samoa',
'America/Adak'=>'(GMT-10:00) Hawaii-Aleutian',
'Etc/GMT+10'=>'(GMT-10:00) Hawaii',
'Pacific/Marquesas'=>'(GMT-09:30) Marquesas Islands',
'Pacific/Gambier'=>'(GMT-09:00) Gambier Islands',
'America/Anchorage'=>'(GMT-09:00) Alaska',
'America/Ensenada'=>'(GMT-08:00) Tijuana, Baja California',
'Etc/GMT+8'=>'(GMT-08:00) Pitcairn Islands',
'America/Los_Angeles'=>'(GMT-08:00) Pacific Time (US & Canada)',
'America/Denver'=>'(GMT-07:00) Mountain Time (US & Canada)',
'America/Chihuahua'=>'(GMT-07:00) Chihuahua, La Paz, Mazatlan',
'America/Dawson_Creek'=>'(GMT-07:00) Arizona',
'America/Belize'=>'(GMT-06:00) Saskatchewan, Central America',
'America/Cancun'=>'(GMT-06:00) Guadalajara, Mexico City, Monterrey',
'Chile/EasterIsland'=>'(GMT-06:00) Easter Island',
'America/Chicago'=>'(GMT-06:00) Central Time (US & Canada)',
'America/New_York'=>'(GMT-05:00) Eastern Time (US & Canada)',
'America/Havana'=>'(GMT-05:00) Cuba',
'America/Bogota'=>'(GMT-05:00) Bogota, Lima, Quito, Rio Branco',
'America/Caracas'=>'(GMT-04:30) Caracas',
'America/Santiago'=>'(GMT-04:00) Santiago',
'America/La_Paz'=>'(GMT-04:00) La Paz',
'Atlantic/Stanley'=>'(GMT-04:00) Faukland Islands',
'America/Campo_Grande'=>'(GMT-04:00) Brazil',
'America/Goose_Bay'=>'(GMT-04:00) Atlantic Time (Goose Bay)',
'America/Glace_Bay'=>'(GMT-04:00) Atlantic Time (Canada)',
'America/St_Johns'=>'(GMT-03:30) Newfoundland',
'America/Araguaina'=>'(GMT-03:00) UTC-3',
'America/Montevideo'=>'(GMT-03:00) Montevideo',
'America/Miquelon'=>'(GMT-03:00) Miquelon, St. Pierre',
'America/Godthab'=>'(GMT-03:00) Greenland',
'America/Argentina/Buenos_Aires'=>'(GMT-03:00) Buenos Aires',
'America/Sao_Paulo'=>'(GMT-03:00) Brasilia',
'America/Noronha'=>'(GMT-02:00) Mid-Atlantic',
'Atlantic/Cape_Verde'=>'(GMT-01:00) Cape Verde Is.',
'Atlantic/Azores'=>'(GMT-01:00) Azores',
'Europe/Belfast'=>'(GMT) Greenwich Mean Time : Belfast',
'Europe/Dublin'=>'(GMT) Greenwich Mean Time : Dublin',
'Europe/Lisbon'=>'(GMT) Greenwich Mean Time : Lisbon',
'Europe/London'=>'(GMT) Greenwich Mean Time : London',
'Africa/Abidjan'=>'(GMT) Monrovia, Reykjavik',
'Europe/Amsterdam'=>'(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'Europe/Belgrade'=>'(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',
'Europe/Brussels'=>'(GMT+01:00) Brussels, Copenhagen, Madrid, Paris',
'Africa/Algiers'=>'(GMT+01:00) West Central Africa',
'Africa/Windhoek'=>'(GMT+01:00) Windhoek',
'Asia/Beirut'=>'(GMT+02:00) Beirut',
'Africa/Cairo'=>'(GMT+02:00) Cairo',
'Asia/Gaza'=>'(GMT+02:00) Gaza',
'Africa/Blantyre'=>'(GMT+02:00) Harare, Pretoria',
'Asia/Jerusalem'=>'(GMT+02:00) Jerusalem',
'Europe/Minsk'=>'(GMT+02:00) Minsk',
'Asia/Damascus'=>'(GMT+02:00) Syria',
'Europe/Moscow'=>'(GMT+03:00) Moscow, St. Petersburg, Volgograd',
'Africa/Addis_Ababa'=>'(GMT+03:00) Nairobi',
'Asia/Tehran'=>'(GMT+03:30) Tehran',
'Asia/Dubai'=>'(GMT+04:00) Abu Dhabi, Muscat',
'Asia/Yerevan'=>'(GMT+04:00) Yerevan',
'Asia/Kabul'=>'(GMT+04:30) Kabul',
'Asia/Baku'=>'(GMT+05:00) Baku',
'Asia/Yekaterinburg'=>'(GMT+05:00) Ekaterinburg',
'Asia/Tashkent'=>'(GMT+05:00) Tashkent',
'Asia/Kolkata'=>'(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi',
'Asia/Katmandu'=>'(GMT+05:45) Kathmandu',
'Asia/Dhaka'=>'(GMT+06:00) Astana, Dhaka',
'Asia/Novosibirsk'=>'(GMT+06:00) Novosibirsk',
'Asia/Rangoon'=>'(GMT+06:30) Yangon (Rangoon)',
'Asia/Bangkok'=>'(GMT+07:00) Bangkok, Hanoi, Jakarta',
'Asia/Krasnoyarsk'=>'(GMT+07:00) Krasnoyarsk',
'Asia/Hong_Kong'=>'(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi',
'Asia/Irkutsk'=>'(GMT+08:00) Irkutsk, Ulaan Bataar',
'Australia/Perth'=>'(GMT+08:00) Perth',
'Australia/Eucla'=>'(GMT+08:45) Eucla',
'Asia/Tokyo'=>'(GMT+09:00) Osaka, Sapporo, Tokyo',
'Asia/Seoul'=>'(GMT+09:00) Seoul',
'Asia/Yakutsk'=>'(GMT+09:00) Yakutsk',
'Australia/Adelaide'=>'(GMT+09:30) Adelaide',
'Australia/Darwin'=>'(GMT+09:30) Darwin',
'Australia/Brisbane'=>'(GMT+10:00) Brisbane',
'Australia/Hobart'=>'(GMT+10:00) Hobart',
'Asia/Vladivostok'=>'(GMT+10:00) Vladivostok',
'Australia/Lord_Howe'=>'(GMT+10:30) Lord Howe Island',
'Etc/GMT-11'=>'(GMT+11:00) Solomon Is., New Caledonia',
'Asia/Magadan'=>'(GMT+11:00) Magadan',
'Pacific/Norfolk'=>'(GMT+11:30) Norfolk Island',
'Asia/Anadyr'=>'(GMT+12:00) Anadyr, Kamchatka',
'Pacific/Auckland'=>'(GMT+12:00) Auckland, Wellington',
'Etc/GMT-12'=>'(GMT+12:00) Fiji, Kamchatka, Marshall Is.',
'Pacific/Chatham'=>'(GMT+12:45) Chatham Islands',
'Pacific/Tongatapu'=>'(GMT+13:00) Nuku\'alofa',
'Pacific/Kiritimati'=>'(GMT+14:00) Kiritimati'
), $this->config->item('timezone') ? $this->config->item('timezone') : date_default_timezone_get());
?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_language').':', 'language',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('language', array(
'en' => 'English',
'es' => 'Spanish',
'ru' => 'Russian',
'nl-BE' => 'Dutch (Belgium)',
'de-CH' => 'German (Swiss)',
'zh' => 'Chinese',
'id' => 'Indonesian',
'fr' => 'French',
'th' => 'Thai',
'tr' => 'Turkish'
),
$this->config->item('language'));
?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_datetimeformat').':', 'datetimeformat', array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('dateformat', array(
'd/m/Y' => 'dd/mm/yyyy',
'm/d/Y' => 'mm/dd/yyyy',
'Y/m/d' => 'yyyy/mm/dd',
'd/m/y' => 'dd/mm/yy',
'm/d/y' => 'mm/dd/yy',
'y/m/d' => 'yy/mm/dd'),
$this->config->item('dateformat'));
?>
</div>
<div class='form_field'>
<?php echo form_dropdown('timeformat', array(
'H:i:s' => 'hh:mm:ss (24h)',
'h:i:s a' => 'hh:mm:ss am/pm',
'h:i:s' => 'hh:mm:ss (12h)'),
$this->config->item('timeformat'));
?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_timezone').':', 'timezone',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('timezone',
array(
'Pacific/Midway'=>'(GMT-11:00) Midway Island, Samoa',
'America/Adak'=>'(GMT-10:00) Hawaii-Aleutian',
'Etc/GMT+10'=>'(GMT-10:00) Hawaii',
'Pacific/Marquesas'=>'(GMT-09:30) Marquesas Islands',
'Pacific/Gambier'=>'(GMT-09:00) Gambier Islands',
'America/Anchorage'=>'(GMT-09:00) Alaska',
'America/Ensenada'=>'(GMT-08:00) Tijuana, Baja California',
'Etc/GMT+8'=>'(GMT-08:00) Pitcairn Islands',
'America/Los_Angeles'=>'(GMT-08:00) Pacific Time (US & Canada)',
'America/Denver'=>'(GMT-07:00) Mountain Time (US & Canada)',
'America/Chihuahua'=>'(GMT-07:00) Chihuahua, La Paz, Mazatlan',
'America/Dawson_Creek'=>'(GMT-07:00) Arizona',
'America/Belize'=>'(GMT-06:00) Saskatchewan, Central America',
'America/Cancun'=>'(GMT-06:00) Guadalajara, Mexico City, Monterrey',
'Chile/EasterIsland'=>'(GMT-06:00) Easter Island',
'America/Chicago'=>'(GMT-06:00) Central Time (US & Canada)',
'America/New_York'=>'(GMT-05:00) Eastern Time (US & Canada)',
'America/Havana'=>'(GMT-05:00) Cuba',
'America/Bogota'=>'(GMT-05:00) Bogota, Lima, Quito, Rio Branco',
'America/Caracas'=>'(GMT-04:30) Caracas',
'America/Santiago'=>'(GMT-04:00) Santiago',
'America/La_Paz'=>'(GMT-04:00) La Paz',
'Atlantic/Stanley'=>'(GMT-04:00) Faukland Islands',
'America/Campo_Grande'=>'(GMT-04:00) Brazil',
'America/Goose_Bay'=>'(GMT-04:00) Atlantic Time (Goose Bay)',
'America/Glace_Bay'=>'(GMT-04:00) Atlantic Time (Canada)',
'America/St_Johns'=>'(GMT-03:30) Newfoundland',
'America/Araguaina'=>'(GMT-03:00) UTC-3',
'America/Montevideo'=>'(GMT-03:00) Montevideo',
'America/Miquelon'=>'(GMT-03:00) Miquelon, St. Pierre',
'America/Godthab'=>'(GMT-03:00) Greenland',
'America/Argentina/Buenos_Aires'=>'(GMT-03:00) Buenos Aires',
'America/Sao_Paulo'=>'(GMT-03:00) Brasilia',
'America/Noronha'=>'(GMT-02:00) Mid-Atlantic',
'Atlantic/Cape_Verde'=>'(GMT-01:00) Cape Verde Is.',
'Atlantic/Azores'=>'(GMT-01:00) Azores',
'Europe/Belfast'=>'(GMT) Greenwich Mean Time : Belfast',
'Europe/Dublin'=>'(GMT) Greenwich Mean Time : Dublin',
'Europe/Lisbon'=>'(GMT) Greenwich Mean Time : Lisbon',
'Europe/London'=>'(GMT) Greenwich Mean Time : London',
'Africa/Abidjan'=>'(GMT) Monrovia, Reykjavik',
'Europe/Amsterdam'=>'(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'Europe/Belgrade'=>'(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',
'Europe/Brussels'=>'(GMT+01:00) Brussels, Copenhagen, Madrid, Paris',
'Africa/Algiers'=>'(GMT+01:00) West Central Africa',
'Africa/Windhoek'=>'(GMT+01:00) Windhoek',
'Asia/Beirut'=>'(GMT+02:00) Beirut',
'Africa/Cairo'=>'(GMT+02:00) Cairo',
'Asia/Gaza'=>'(GMT+02:00) Gaza',
'Africa/Blantyre'=>'(GMT+02:00) Harare, Pretoria',
'Asia/Jerusalem'=>'(GMT+02:00) Jerusalem',
'Europe/Minsk'=>'(GMT+02:00) Minsk',
'Asia/Damascus'=>'(GMT+02:00) Syria',
'Europe/Moscow'=>'(GMT+03:00) Moscow, St. Petersburg, Volgograd',
'Africa/Addis_Ababa'=>'(GMT+03:00) Nairobi',
'Asia/Tehran'=>'(GMT+03:30) Tehran',
'Asia/Dubai'=>'(GMT+04:00) Abu Dhabi, Muscat',
'Asia/Yerevan'=>'(GMT+04:00) Yerevan',
'Asia/Kabul'=>'(GMT+04:30) Kabul',
'Asia/Baku'=>'(GMT+05:00) Baku',
'Asia/Yekaterinburg'=>'(GMT+05:00) Ekaterinburg',
'Asia/Tashkent'=>'(GMT+05:00) Tashkent',
'Asia/Kolkata'=>'(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi',
'Asia/Katmandu'=>'(GMT+05:45) Kathmandu',
'Asia/Dhaka'=>'(GMT+06:00) Astana, Dhaka',
'Asia/Novosibirsk'=>'(GMT+06:00) Novosibirsk',
'Asia/Rangoon'=>'(GMT+06:30) Yangon (Rangoon)',
'Asia/Bangkok'=>'(GMT+07:00) Bangkok, Hanoi, Jakarta',
'Asia/Krasnoyarsk'=>'(GMT+07:00) Krasnoyarsk',
'Asia/Hong_Kong'=>'(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi',
'Asia/Irkutsk'=>'(GMT+08:00) Irkutsk, Ulaan Bataar',
'Australia/Perth'=>'(GMT+08:00) Perth',
'Australia/Eucla'=>'(GMT+08:45) Eucla',
'Asia/Tokyo'=>'(GMT+09:00) Osaka, Sapporo, Tokyo',
'Asia/Seoul'=>'(GMT+09:00) Seoul',
'Asia/Yakutsk'=>'(GMT+09:00) Yakutsk',
'Australia/Adelaide'=>'(GMT+09:30) Adelaide',
'Australia/Darwin'=>'(GMT+09:30) Darwin',
'Australia/Brisbane'=>'(GMT+10:00) Brisbane',
'Australia/Hobart'=>'(GMT+10:00) Hobart',
'Asia/Vladivostok'=>'(GMT+10:00) Vladivostok',
'Australia/Lord_Howe'=>'(GMT+10:30) Lord Howe Island',
'Etc/GMT-11'=>'(GMT+11:00) Solomon Is., New Caledonia',
'Asia/Magadan'=>'(GMT+11:00) Magadan',
'Pacific/Norfolk'=>'(GMT+11:30) Norfolk Island',
'Asia/Anadyr'=>'(GMT+12:00) Anadyr, Kamchatka',
'Pacific/Auckland'=>'(GMT+12:00) Auckland, Wellington',
'Etc/GMT-12'=>'(GMT+12:00) Fiji, Kamchatka, Marshall Is.',
'Pacific/Chatham'=>'(GMT+12:45) Chatham Islands',
'Pacific/Tongatapu'=>'(GMT+13:00) Nuku\'alofa',
'Pacific/Kiritimati'=>'(GMT+14:00) Kiritimati'
), $this->config->item('timezone') ? $this->config->item('timezone') : date_default_timezone_get());
?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
<?php
echo form_close();
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_datetimeformat').':', 'datetimeformat', array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('dateformat', array(
'd/m/Y' => 'dd/mm/yyyy',
'm/d/Y' => 'mm/dd/yyyy',
'Y/m/d' => 'yyyy/mm/dd',
'd/m/y' => 'dd/mm/yy',
'm/d/y' => 'mm/dd/yy',
'y/m/d' => 'yy/mm/dd'),
$this->config->item('dateformat'));
?>
</div>
<div class='form_field'>
<?php echo form_dropdown('timeformat', array(
'H:i:s' => 'hh:mm:ss (24h)',
'h:i:s a' => 'hh:mm:ss am/pm',
'h:i:s' => 'hh:mm:ss (12h)'),
$this->config->item('timeformat'));
?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
<?php echo form_close(); ?>
<script type='text/javascript'>
@@ -221,11 +218,11 @@ $(document).ready(function()
{
if(response.success)
{
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
},
dataType:'json'

View File

@@ -1,10 +1,12 @@
<?php $this->load->view("partial/header"); ?>
<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/tabcontent.css" />
<script src="<?php echo base_url();?>js/tabcontent.js" type="text/javascript" language="javascript" charset="UTF-8"></script>
<div id="title_bar">
<div id="title" class="float_left"><?php echo $this->lang->line('module_config'); ?></div>
</div>
<ul class="tabs" data-persist="true">
<li><a href="#general_config">General</a></li>
<li><a href="#locale_config">Locale</a></li>
@@ -30,5 +32,5 @@
<?php $this->load->view("configs/receipt_config"); ?>
</div>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -1,190 +1,187 @@
<div id="page_title"><?php echo $this->lang->line('config_receipt_configuration'); ?></div>
<?php
echo form_open('config/save_receipt/',array('id'=>'receipt_config_form'));
?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="receipt_error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_receipt_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_use_invoice_template').':', 'use_invoice_template',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'use_invoice_template',
'value'=>'use_invoice_template',
'id'=>'use_invoice_template',
'checked'=>$this->config->item('use_invoice_template')));?>
<?php echo form_open('config/save_receipt/',array('id'=>'receipt_config_form')); ?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="receipt_error_message_box" class="error_message_box"></ul>
<legend><?php echo $this->lang->line("config_receipt_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_use_invoice_template').':', 'use_invoice_template',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'use_invoice_template',
'value'=>'use_invoice_template',
'id'=>'use_invoice_template',
'checked'=>$this->config->item('use_invoice_template')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_default_comments').':', 'invoice_default_comments',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'invoice_default_comments',
'id'=>'invoice_default_comments',
'rows'=>4,
'cols'=>25,
'value'=>$this->config->item('invoice_default_comments')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_email_message').':', 'invoice_email_message',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'invoice_email_message',
'id'=>'invoice_email_message',
'rows'=>4,
'cols'=>25,
'value'=>$this->config->item('invoice_email_message')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receipt_show_taxes').':', 'receipt_show_taxes',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'receipt_show_taxes',
'value'=>'receipt_show_taxes',
'id'=>'receipt_show_taxes',
'checked'=>$this->config->item('receipt_show_taxes')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_show_total_discount').':', 'show_total_discount',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'show_total_discount',
'value'=>'show_total_discount',
'id'=>'show_total_discount',
'checked'=>$this->config->item('show_total_discount')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_silently').':', 'print_silently',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_silently',
'id'=>'print_silently',
'value'=>'print_silently',
'checked'=>$this->config->item('print_silently')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_header').':', 'print_header',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_header',
'id'=>'print_header',
'value'=>'print_header',
'checked'=>$this->config->item('print_header')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_footer').':', 'print_footer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_footer',
'id'=>'print_footer',
'value'=>'print_footer',
'checked'=>$this->config->item('print_footer')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receipt_printer').':', 'config_receipt_printer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown(
'receipt_printer',
array(),
'','id="receipt_printer"');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_printer').':', 'config_invoice_printer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('invoice_printer', array(), ' ','id="invoice_printer"');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_top_margin').':', 'print_top_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_top_margin',
'id'=>'print_top_margin',
'value'=>$this->config->item('print_top_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_left_margin').':', 'print_left_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_left_margin',
'id'=>'print_left_margin',
'value'=>$this->config->item('print_left_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_bottom_margin').':', 'print_bottom_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_bottom_margin',
'id'=>'print_bottom_margin',
'value'=>$this->config->item('print_bottom_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_right_margin').':', 'print_right_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_right_margin',
'id'=>'print_right_margin',
'value'=>$this->config->item('print_right_margin')));?>
px
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_default_comments').':', 'invoice_default_comments',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'invoice_default_comments',
'id'=>'invoice_default_comments',
'rows'=>4,
'cols'=>25,
'value'=>$this->config->item('invoice_default_comments')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_email_message').':', 'invoice_email_message',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'invoice_email_message',
'id'=>'invoice_email_message',
'rows'=>4,
'cols'=>25,
'value'=>$this->config->item('invoice_email_message')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receipt_show_taxes').':', 'receipt_show_taxes',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'receipt_show_taxes',
'value'=>'receipt_show_taxes',
'id'=>'receipt_show_taxes',
'checked'=>$this->config->item('receipt_show_taxes')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_show_total_discount').':', 'show_total_discount',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'show_total_discount',
'value'=>'show_total_discount',
'id'=>'show_total_discount',
'checked'=>$this->config->item('show_total_discount')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_silently').':', 'print_silently',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_silently',
'id'=>'print_silently',
'value'=>'print_silently',
'checked'=>$this->config->item('print_silently')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_header').':', 'print_header',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_header',
'id'=>'print_header',
'value'=>'print_header',
'checked'=>$this->config->item('print_header')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_footer').':', 'print_footer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'print_footer',
'id'=>'print_footer',
'value'=>'print_footer',
'checked'=>$this->config->item('print_footer')));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_receipt_printer').':', 'config_receipt_printer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown(
'receipt_printer',
array(),
'','id="receipt_printer"');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_invoice_printer').':', 'config_invoice_printer',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('invoice_printer', array(), ' ','id="invoice_printer"');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_top_margin').':', 'print_top_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_top_margin',
'id'=>'print_top_margin',
'value'=>$this->config->item('print_top_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_left_margin').':', 'print_left_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_left_margin',
'id'=>'print_left_margin',
'value'=>$this->config->item('print_left_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_bottom_margin').':', 'print_bottom_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_bottom_margin',
'id'=>'print_bottom_margin',
'value'=>$this->config->item('print_bottom_margin')));?>
px
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('config_print_right_margin').':', 'print_right_margin',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'type'=>'number',
'min'=>'0',
'max'=>'20',
'name'=>'print_right_margin',
'id'=>'print_right_margin',
'value'=>$this->config->item('print_right_margin')));?>
px
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit_form',
'id'=>'submit_form',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
</div>
<?php
echo form_close();
?>
<?php echo form_close(); ?>
<script type='text/javascript'>
@@ -240,11 +237,11 @@ $(document).ready(function()
{
if(response.success)
{
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
// set back disabled state
enable_disable_use_invoice_template();

View File

@@ -1,7 +1,6 @@
<div id="page_title"><?php echo $this->lang->line('config_location_configuration'); ?></div>
<?php
echo form_open('config/save_locations/',array('id'=>'location_config_form'));
?>
<?php echo form_open('config/save_locations/',array('id'=>'location_config_form')); ?>
<div id="config_wrapper">
<fieldset id="config_info">
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
@@ -22,9 +21,7 @@ echo form_open('config/save_locations/',array('id'=>'location_config_form'));
?>
</fieldset>
</div>
<?php
echo form_close();
?>
<?php echo form_close(); ?>
<script type='text/javascript'>
@@ -96,11 +93,11 @@ $(document).ready(function()
{
if(response.success)
{
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
$("#stock_locations").load('<?php echo site_url("config/stock_locations");?>', init_add_remove_locations);
},

View File

@@ -1,35 +1,31 @@
<?php
echo form_open_multipart('customers/do_excel_import/',array('id'=>'item_form'));
?>
<div id="required_fields_message"><?php echo $this->lang->line('customers_import_items_excel'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<b><a href="<?php echo site_url('customers/excel'); ?>"><?php echo $this->lang->line('common_download_import_template'); ?></a></b>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line('common_import'); ?></legend>
<?php echo form_open_multipart('customers/do_excel_import/',array('id'=>'item_form')); ?>
<div id="required_fields_message"><?php echo $this->lang->line('customers_import_items_excel'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<b><a href="<?php echo site_url('customers/excel'); ?>"><?php echo $this->lang->line('common_download_import_template'); ?></a></b>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line('common_import'); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_import_file_path').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload(array(
'name'=>'file_path',
'id'=>'file_path',
'value'=>'')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_import_file_path').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload(array(
'name'=>'file_path',
'id'=>'file_path',
'value'=>'')
);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submitf',
'id'=>'submitf',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<?php
echo form_submit(array(
'name'=>'submitf',
'id'=>'submitf',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<script type='text/javascript'>
//validation and submit handling

View File

@@ -1,53 +1,50 @@
<?php
echo form_open('customers/save/'.$person_info->person_id,array('id'=>'customer_form'));
?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="customer_basic_info">
<legend><?php echo $this->lang->line("customers_basic_information"); ?></legend>
<?php $this->load->view("people/form_basic_info"); ?>
<?php echo form_open('customers/save/'.$person_info->person_id,array('id'=>'customer_form')); ?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="customer_basic_info">
<legend><?php echo $this->lang->line("customers_basic_information"); ?></legend>
<?php $this->load->view("people/form_basic_info"); ?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_company_name').':', 'company_name'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company_name',
'value'=>$person_info->company_name)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_company_name').':', 'company_name'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company_name',
'value'=>$person_info->company_name)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_account_number').':', 'account_number'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'account_number',
'id'=>'account_number',
'class'=>'account_number',
'value'=>$person_info->account_number)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_account_number').':', 'account_number'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'account_number',
'id'=>'account_number',
'class'=>'account_number',
'value'=>$person_info->account_number)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_taxable').':', 'taxable'); ?>
<div class='form_field'>
<?php echo form_checkbox('taxable', '1', $person_info->taxable == '' ? TRUE : (boolean)$person_info->taxable);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('customers_taxable').':', 'taxable'); ?>
<div class='form_field'>
<?php echo form_checkbox('taxable', '1', $person_info->taxable == '' ? TRUE : (boolean)$person_info->taxable);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling

View File

@@ -1,106 +1,101 @@
<?php
echo form_open('employees/save/'.$person_info->person_id,array('id'=>'employee_form'));
?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="employee_basic_info">
<legend><?php echo $this->lang->line("employees_basic_information"); ?></legend>
<?php $this->load->view("people/form_basic_info"); ?>
</fieldset>
<?php echo form_open('employees/save/'.$person_info->person_id,array('id'=>'employee_form')); ?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="employee_basic_info">
<legend><?php echo $this->lang->line("employees_basic_information"); ?></legend>
<?php $this->load->view("people/form_basic_info"); ?>
</fieldset>
<fieldset id="employee_login_info">
<legend><?php echo $this->lang->line("employees_login_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_username').':', 'username',array('class'=>'required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'username',
'id'=>'username',
'value'=>$person_info->username));?>
</div>
</div>
<fieldset id="employee_login_info">
<legend><?php echo $this->lang->line("employees_login_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_username').':', 'username',array('class'=>'required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'username',
'id'=>'username',
'value'=>$person_info->username));?>
</div>
</div>
<?php
$password_label_attributes = $person_info->person_id == "" ? array('class'=>'required'):array();
?>
<?php
$password_label_attributes = $person_info->person_id == "" ? array('class'=>'required'):array();
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_password').':', 'password',$password_label_attributes); ?>
<div class='form_field'>
<?php echo form_password(array(
'name'=>'password',
'id'=>'password'
));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_password').':', 'password',$password_label_attributes); ?>
<div class='form_field'>
<?php echo form_password(array(
'name'=>'password',
'id'=>'password'
));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_repeat_password').':', 'repeat_password',$password_label_attributes); ?>
<div class='form_field'>
<?php echo form_password(array(
'name'=>'repeat_password',
'id'=>'repeat_password'
));?>
</div>
</div>
</fieldset>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('employees_repeat_password').':', 'repeat_password',$password_label_attributes); ?>
<div class='form_field'>
<?php echo form_password(array(
'name'=>'repeat_password',
'id'=>'repeat_password'
));?>
</div>
</div>
</fieldset>
<fieldset id="employee_permission_info">
<legend><?php echo $this->lang->line("employees_permission_info"); ?></legend>
<p><?php echo $this->lang->line("employees_permission_desc"); ?></p>
<fieldset id="employee_permission_info">
<legend><?php echo $this->lang->line("employees_permission_info"); ?></legend>
<p><?php echo $this->lang->line("employees_permission_desc"); ?></p>
<ul id="permission_list">
<?php
foreach($all_modules->result() as $module)
{
?>
<li>
<?php echo form_checkbox("grants[]",$module->module_id,$this->Employee->has_grant($module->module_id,$person_info->person_id),"class='module'"); ?>
<span class="medium"><?php echo $this->lang->line('module_'.$module->module_id);?>:</span>
<span class="small"><?php echo $this->lang->line('module_'.$module->module_id.'_desc');?></span>
<?php
foreach($all_subpermissions->result() as $permission)
{
$exploded_permission = explode('_', $permission->permission_id);
if ($permission->module_id == $module->module_id)
<ul id="permission_list">
<?php
foreach($all_modules->result() as $module)
{
$lang_key = $module->module_id.'_'.$exploded_permission[1];
$lang_line = $this->lang->line($lang_key);
$lang_line = ($this->lang->line_tbd($lang_key) == $lang_line) ? $exploded_permission[1] : $lang_line;
if (empty($lang_line))
?>
<li>
<?php echo form_checkbox("grants[]",$module->module_id,$this->Employee->has_grant($module->module_id,$person_info->person_id),"class='module'"); ?>
<span class="medium"><?php echo $this->lang->line('module_'.$module->module_id);?>:</span>
<span class="small"><?php echo $this->lang->line('module_'.$module->module_id.'_desc');?></span>
<?php
foreach($all_subpermissions->result() as $permission)
{
continue;
}
?>
<ul>
<li>
<?php echo form_checkbox("grants[]",$permission->permission_id,$this->Employee->has_grant($permission->permission_id,$person_info->person_id)); ?>
<span class="medium"><?php echo $lang_line ?></span>
</li>
</ul>
<?php
$exploded_permission = explode('_', $permission->permission_id);
if ($permission->module_id == $module->module_id)
{
$lang_key = $module->module_id.'_'.$exploded_permission[1];
$lang_line = $this->lang->line($lang_key);
$lang_line = ($this->lang->line_tbd($lang_key) == $lang_line) ? $exploded_permission[1] : $lang_line;
if (empty($lang_line))
{
continue;
}
?>
<ul>
<li>
<?php echo form_checkbox("grants[]",$permission->permission_id,$this->Employee->has_grant($permission->permission_id,$person_info->person_id)); ?>
<span class="medium"><?php echo $lang_line ?></span>
</li>
</ul>
<?php
}
}
}
}
}
?>
</li>
</ul>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</li>
</ul>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -1,58 +1,55 @@
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<?php
echo form_open('giftcards/save/'.$giftcard_info->giftcard_id,array('id'=>'giftcard_form'));
?>
<fieldset id="giftcard_basic_info" style="padding: 5px;">
<legend><?php echo $this->lang->line("giftcards_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_person_id').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'person_id',
'id'=>'person_id',
'value'=>$selected_person)
);?>
</div>
</div>
<?php echo form_open('giftcards/save/'.$giftcard_info->giftcard_id,array('id'=>'giftcard_form')); ?>
<fieldset id="giftcard_basic_info" style="padding: 5px;">
<legend><?php echo $this->lang->line("giftcards_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_giftcard_number').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'giftcard_number',
'id'=>'giftcard_number',
'value'=>$giftcard_number)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_person_id').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'person_id',
'id'=>'person_id',
'value'=>$selected_person)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_card_value').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'value',
'id'=>'value',
'value'=>$giftcard_info->value)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_giftcard_number').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'giftcard_number',
'id'=>'giftcard_number',
'value'=>$giftcard_number)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('giftcards_card_value').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'value',
'id'=>'value',
'value'=>$giftcard_info->value)
);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -32,7 +32,7 @@ function post_giftcard_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -40,7 +40,7 @@ function post_giftcard_form_submit(response)
if(jQuery.inArray(response.giftcard_id,get_visible_checkbox_ids()) != -1)
{
update_row(response.giftcard_id,'<?php echo site_url("$controller_name/get_row")?>');
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else //refresh entire table
@@ -49,7 +49,7 @@ function post_giftcard_form_submit(response)
{
//highlight new row
hightlight_row(response.giftcard_id);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
});
}
}
@@ -63,22 +63,25 @@ function post_giftcard_form_submit(response)
array('class'=>'thickbox none', 'title'=>$this->lang->line($controller_name.'_new')));
?>
</div>
<div id="pagination"><?= $links ?></div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</form>
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
<?php echo form_close(); ?>
</li>
</ul>
</div>
<div id="table_holder">
<?php echo $manage_table; ?>
<?php echo $manage_table; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -15,4 +15,5 @@
}
?>
</div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -1,78 +1,75 @@
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<?php
echo form_open('item_kits/save/'.$item_kit_info->item_kit_id,array('id'=>'item_kit_form'));
?>
<fieldset id="item_kit_info">
<legend><?php echo $this->lang->line("item_kits_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_name').':', 'name',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name',
'value'=>$item_kit_info->name)
);?>
</div>
</div>
<?php echo form_open('item_kits/save/'.$item_kit_info->item_kit_id,array('id'=>'item_kit_form')); ?>
<fieldset id="item_kit_info">
<legend><?php echo $this->lang->line("item_kits_info"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'value'=>$item_kit_info->description,
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_name').':', 'name',array('class'=>'wide required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name',
'value'=>$item_kit_info->name)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'value'=>$item_kit_info->description,
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_add_item').':', 'item',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'item',
'id'=>'item'
));?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('item_kits_add_item').':', 'item',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'item',
'id'=>'item'
));?>
</div>
</div>
<table id="item_kit_items">
<tr>
<th><?php echo $this->lang->line('common_delete');?></th>
<th><?php echo $this->lang->line('item_kits_item');?></th>
<th><?php echo $this->lang->line('item_kits_quantity');?></th>
</tr>
<?php foreach ($this->Item_kit_items->get_info($item_kit_info->item_kit_id) as $item_kit_item) {?>
<tr>
<?php
$item_info = $this->Item->get_info($item_kit_item['item_id']);
?>
<td><a href="#" onclick='return deleteItemKitRow(this);'>X</a></td>
<td><?php echo $item_info->name; ?></td>
<td><input class='quantity' id='item_kit_item_<?php echo $item_kit_item['item_id'] ?>' type='text' size='3' name=item_kit_item[<?php echo $item_kit_item['item_id'] ?>] value='<?php echo $item_kit_item['quantity'] ?>'/></td>
</tr>
<?php } ?>
</table>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<table id="item_kit_items">
<tr>
<th><?php echo $this->lang->line('common_delete');?></th>
<th><?php echo $this->lang->line('item_kits_item');?></th>
<th><?php echo $this->lang->line('item_kits_quantity');?></th>
</tr>
<?php foreach ($this->Item_kit_items->get_info($item_kit_info->item_kit_id) as $item_kit_item) {?>
<tr>
<?php
$item_info = $this->Item->get_info($item_kit_item['item_id']);
?>
<td><a href="#" onclick='return deleteItemKitRow(this);'>X</a></td>
<td><?php echo $item_info->name; ?></td>
<td><input class='quantity' id='item_kit_item_<?php echo $item_kit_item['item_id'] ?>' type='text' size='3' name=item_kit_item[<?php echo $item_kit_item['item_id'] ?>] value='<?php echo $item_kit_item['quantity'] ?>'/></td>
</tr>
<?php } ?>
</table>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
$("#item").autocomplete('<?php echo site_url("items/item_search"); ?>',
{
minChars:0,

View File

@@ -45,7 +45,7 @@ function post_item_kit_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -53,7 +53,7 @@ function post_item_kit_form_submit(response)
if(jQuery.inArray(response.item_kit_id,get_visible_checkbox_ids()) != -1)
{
update_row(response.item_kit_id,'<?php echo site_url("$controller_name/get_row")?>');
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else //refresh entire table
@@ -62,7 +62,7 @@ function post_item_kit_form_submit(response)
{
//highlight new row
hightlight_row(response.item_kit_id);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
});
}
}
@@ -78,25 +78,23 @@ function post_item_kit_form_submit(response)
</div>
<div id="pagination"><?= $links ?></div>
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/generate_barcodes",$this->lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?></span></li>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/generate_barcodes",$this->lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?></span></li>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<?php echo form_close(); ?>
<div id="table_holder">
<?php echo $manage_table; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -1,104 +1,101 @@
<?php
echo form_open('items/save_inventory/'.$item_info->item_id,array('id'=>'item_form'));
?>
<fieldset id="inv_item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<?php echo form_open('items/save_inventory/'.$item_info->item_id,array('id'=>'item_form')); ?>
<fieldset id="inv_item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<table align="center" border="0" bgcolor="#CCCCCC">
<div class="field_row clearfix">
<tr>
<td>
<?php echo form_label($this->lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $inumber = array (
'name'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($inumber)
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $iname = array (
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($iname);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
</td>
<td>
<?php $cat = array (
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($cat);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_stock_location').':', 'stock_location',array('class'=>'wide')); ?>
</td>
<td>
<?php
echo form_dropdown('stock_location',$stock_locations,current($stock_locations),'onchange="display_stock(this.value)"');
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?>
</td>
<td>
<?php $qty = array (
'name'=>'quantity',
'id'=>'quantity',
'value'=>current($item_quantities),
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($qty);
?>
</td>
</tr>
</div>
</table>
<table align="center" border="0" bgcolor="#CCCCCC">
<div class="field_row clearfix">
<tr>
<td>
<?php echo form_label($this->lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $inumber = array (
'name'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($inumber);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $iname = array (
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($iname);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
</td>
<td>
<?php $cat = array (
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($cat);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_stock_location').':', 'stock_location',array('class'=>'wide')); ?>
</td>
<td>
<?php
echo form_dropdown('stock_location',$stock_locations,current($stock_locations),'onchange="display_stock(this.value)"');
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?>
</td>
<td>
<?php $qty = array (
'name'=>'quantity',
'id'=>'quantity',
'value'=>current($item_quantities),
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($qty);
?>
</td>
</tr>
</div>
</table>
<div class="field_row clearfix">
<div class='form_field'></div>
</div>
<div class="field_row clearfix">
<div class='form_field'></div>
</div>
<div class="field_row clearfix">
<div class='form_field'></div>
</div>
</fieldset>
<?php echo form_close(); ?>
<div class="field_row clearfix">
<div class='form_field'></div>
</div>
</fieldset>
<?php
echo form_close();
?>
<?php
$inventory_array = $this->Inventory->get_inventory_data_for_item($item_info->item_id)->result_array();
$employee_name = array();

View File

@@ -1,37 +1,33 @@
<?php
echo form_open_multipart('items/do_excel_import/',array('id'=>'item_form'));
?>
<div id="required_fields_message"><?php echo $this->lang->line('items_import_items_excel'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<b><a href="<?php echo site_url('items/excel'); ?>"><?php echo $this->lang->line('common_download_import_template'); ?></a></b>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line('common_import'); ?></legend>
<?php echo form_open_multipart('items/do_excel_import/',array('id'=>'item_form')); ?>
<div id="required_fields_message"><?php echo $this->lang->line('items_import_items_excel'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<b><a href="<?php echo site_url('items/excel'); ?>"><?php echo $this->lang->line('common_download_import_template'); ?></a></b>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line('common_import'); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_import_file_path').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload(array(
'name'=>'file_path',
'id'=>'file_path',
'value'=>'')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('common_import_file_path').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload(array(
'name'=>'file_path',
'id'=>'file_path',
'value'=>'')
);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submitf',
'id'=>'submitf',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<?php
echo form_submit(array(
'name'=>'submitf',
'id'=>'submitf',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -1,265 +1,261 @@
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<?php
echo form_open('items/save/'.$item_info->item_id,array('id'=>'item_form', 'enctype'=>'multipart/form-data'));
?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_item_number').':', 'item_number',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'item_number',
'class'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number)
);?>
</div>
</div>
<?php echo form_open('items/save/'.$item_info->item_id,array('id'=>'item_form', 'enctype'=>'multipart/form-data')); ?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_supplier').':', 'supplier',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('supplier_id', $suppliers, $selected_supplier);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_cost_price').':', 'cost_price',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'cost_price',
'size'=>'8',
'id'=>'cost_price',
'value'=>$item_info->cost_price)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_unit_price').':', 'unit_price',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'unit_price',
'size'=>'8',
'id'=>'unit_price',
'value'=>$item_info->unit_price)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_1',
'size'=>'8',
'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_1',
'size'=>'3',
'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : $default_tax_1_rate)
);?>
%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_2',
'size'=>'8',
'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_2',
'size'=>'3',
'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : $default_tax_2_rate)
);?>
%
</div>
</div>
<?php
foreach($stock_locations as $key=>$location_detail)
{
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_quantity').' '.$location_detail['location_name'] .':',
$key.'_quantity',
array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>$key.'_quantity',
'id'=>$key.'_quantity',
'class'=>'quantity',
'size'=>'8',
'value'=>isset($item_info->item_id)?$location_detail['quantity']:0)
);?>
</div>
</div>
<?php
}
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_receiving_quantity').':', 'receiving_quantity',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'receiving_quantity',
'id'=>'receiving_quantity',
'size'=>'8',
'value'=>$item_info->receiving_quantity)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'reorder_level',
'id'=>'reorder_level',
'size'=>'8',
'value'=>!isset($item_info->item_id)?0:$item_info->reorder_level)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'value'=>$item_info->description,
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_image').':', 'item_image',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload('item_image');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_allow_alt_description').':', 'allow_alt_description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'allow_alt_description',
'id'=>'allow_alt_description',
'value'=>1,
'checked'=>($item_info->allow_alt_description)? 1 :0)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'is_serialized',
'id'=>'is_serialized',
'value'=>1,
'checked'=>($item_info->is_serialized)? 1 : 0)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_is_deleted').':', 'is_deleted',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'is_deleted',
'id'=>'is_deleted',
'value'=>1,
'checked'=>($item_info->deleted)? 1 : 0)
);?>
</div>
</div>
<?php for ($i = 0; $i < 11; $i++)
{
?>
<?php
if($this->config->item('custom'.$i.'_name') != null)
{
$item_arr = (array)$item_info;
?>
<div class="field_row clearfix">
<?php
echo form_label($this->config->item('custom'.$i.'_name').':', 'custom'.$i,array('class'=>'wide')); ?>
<?php echo form_label($this->lang->line('items_item_number').':', 'item_number',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'item_number',
'class'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_supplier').':', 'supplier',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('supplier_id', $suppliers, $selected_supplier);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_cost_price').':', 'cost_price',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'cost_price',
'size'=>'8',
'id'=>'cost_price',
'value'=>$item_info->cost_price)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_unit_price').':', 'unit_price',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'unit_price',
'size'=>'8',
'id'=>'unit_price',
'value'=>$item_info->unit_price)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_1',
'size'=>'8',
'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_1',
'size'=>'3',
'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : $default_tax_1_rate)
);?>
%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_2',
'size'=>'8',
'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_2',
'size'=>'3',
'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : $default_tax_2_rate)
);?>
%
</div>
</div>
<?php
foreach($stock_locations as $key=>$location_detail)
{
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_quantity').' '.$location_detail['location_name'] .':',
$key.'_quantity',
array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom'.$i,
'id'=>'custom'.$i,
'value'=>$item_arr['custom'.$i])
'name'=>$key.'_quantity',
'id'=>$key.'_quantity',
'class'=>'quantity',
'size'=>'8',
'value'=>isset($item_info->item_id)?$location_detail['quantity']:0)
);?>
</div>
</div>
<?php
<?php
}
}
?>
?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_receiving_quantity').':', 'receiving_quantity',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'receiving_quantity',
'id'=>'receiving_quantity',
'size'=>'8',
'value'=>$item_info->receiving_quantity)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'reorder_level',
'id'=>'reorder_level',
'size'=>'8',
'value'=>!isset($item_info->item_id)?0:$item_info->reorder_level)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'value'=>$item_info->description,
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_image').':', 'item_image',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_upload('item_image');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_allow_alt_description').':', 'allow_alt_description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'allow_alt_description',
'id'=>'allow_alt_description',
'value'=>1,
'checked'=>($item_info->allow_alt_description)? 1 :0)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'is_serialized',
'id'=>'is_serialized',
'value'=>1,
'checked'=>($item_info->is_serialized)? 1 : 0)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_is_deleted').':', 'is_deleted',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_checkbox(array(
'name'=>'is_deleted',
'id'=>'is_deleted',
'value'=>1,
'checked'=>($item_info->deleted)? 1 : 0)
);?>
</div>
</div>
<?php for ($i = 0; $i < 11; $i++)
{
?>
<?php
if($this->config->item('custom'.$i.'_name') != null)
{
$item_arr = (array)$item_info;
?>
<div class="field_row clearfix">
<?php echo form_label($this->config->item('custom'.$i.'_name').':', 'custom'.$i,array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'custom'.$i,
'id'=>'custom'.$i,
'value'=>$item_arr['custom'.$i])
);?>
</div>
</div>
<?php
}
}
?>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
echo form_submit(array(
'name'=>'continue',
'id'=>'continue',
'value'=>$this->lang->line('common_new'),
'class'=>'btn btn-default btn-sm pull-right',
'style'=>'margin-right: 10px;')
);
?>
</fieldset>
<?php echo form_close(); ?>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
echo form_submit(array(
'name'=>'continue',
'id'=>'continue',
'value'=>$this->lang->line('common_new'),
'class'=>'btn btn-default btn-sm pull-right',
'style'=>'margin-right: 10px;')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -1,159 +1,151 @@
<div id="required_fields_message"><?php echo $this->lang->line('items_edit_fields_you_want_to_update'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<?php
echo form_open('items/bulk_update/',array('id'=>'item_form'));
?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name')
);?>
</div>
</div>
<?php echo form_open('items/bulk_update/',array('id'=>'item_form')); ?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'category',
'id'=>'category')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'name',
'id'=>'name')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_supplier').':', 'supplier',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('supplier_id', $suppliers, '');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'category',
'id'=>'category')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_supplier').':', 'supplier',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('supplier_id', $suppliers, '');?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_cost_price').':', 'cost_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'cost_price',
'size'=>'8',
'id'=>'cost_price')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_cost_price').':', 'cost_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'cost_price',
'size'=>'8',
'id'=>'cost_price')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_unit_price').':', 'unit_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'unit_price',
'size'=>'8',
'id'=>'unit_price')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_unit_price').':', 'unit_price',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'unit_price',
'size'=>'8',
'id'=>'unit_price')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_1',
'size'=>'8',
'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->lang->line('items_sales_tax_1'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_1',
'size'=>'3',
'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : '')
);?>
%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_1',
'size'=>'8',
'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->lang->line('items_sales_tax_1'))
);?>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_2',
'size'=>'8',
'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->lang->line('items_sales_tax_2'))
);?>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_2',
'size'=>'3',
'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : '')
);?>
%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'reorder_level',
'id'=>'reorder_level')
);?>
</div>
</div>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_1',
'size'=>'3',
'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : '')
);?>
%
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_names[]',
'id'=>'tax_name_2',
'size'=>'8',
'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->lang->line('items_sales_tax_2'))
);?>
</div>
<div class="field_row clearfix">
<div class='form_field'>
<?php echo form_input(array(
'name'=>'tax_percents[]',
'id'=>'tax_percent_name_2',
'size'=>'3',
'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : '')
);?>
%
</div>
</div>
<?php echo form_label($this->lang->line('items_allow_alt_description').':', 'allow_alt_description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('allow_alt_description', $allow_alt_description_choices);?>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'reorder_level',
'id'=>'reorder_level')
);?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_description').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'description',
'id'=>'description',
'rows'=>'5',
'cols'=>'17')
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_allow_alt_description').':', 'allow_alt_description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('allow_alt_description', $allow_alt_description_choices);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('is_serialized', $serialization_choices);?>
</div>
</div>
<div class="field_row clearfix">
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<?php echo form_label($this->lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_dropdown('is_serialized', $serialization_choices);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -1,130 +1,127 @@
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<?php
echo form_close();
echo form_open('items/save_inventory/'.$item_info->item_id,array('id'=>'item_form'));
?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<table align="center" border="0" bgcolor="#CCCCCC">
<div class="field_row clearfix">
<tr>
<td>
<?php echo form_label($this->lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $inumber = array (
'name'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($inumber)
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $iname = array (
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($iname);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
</td>
<td>
<?php $cat = array (
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category,
'style' => 'border:none',
'readonly' => 'readonly'
<?php echo form_open('items/save_inventory/'.$item_info->item_id,array('id'=>'item_form')); ?>
<fieldset id="item_basic_info">
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
<table align="center" border="0" bgcolor="#CCCCCC">
<div class="field_row clearfix">
<tr>
<td>
<?php echo form_label($this->lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $inumber = array (
'name'=>'item_number',
'id'=>'item_number',
'value'=>$item_info->item_number,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($inumber);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_name').':', 'name',array('class'=>'wide')); ?>
</td>
<td>
<?php $iname = array (
'name'=>'name',
'id'=>'name',
'value'=>$item_info->name,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($iname);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_category').':', 'category',array('class'=>'wide')); ?>
</td>
<td>
<?php $cat = array (
'name'=>'category',
'id'=>'category',
'value'=>$item_info->category,
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($cat);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_stock_location').':', 'stock_location',array('class'=>'wide')); ?>
</td>
<td>
<?php
echo form_dropdown('stock_location',$stock_locations,current($stock_locations),'onchange="fill_quantity(this.value)"');
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?>
</td>
<td>
<?php $qty = array (
'name'=>'quantity',
'id'=>'quantity',
'value'=>current($item_quantities),
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($qty);
?>
</td>
</tr>
</div>
</table>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_add_minus').':', 'quantity',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'newquantity',
'id'=>'newquantity'
)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_inventory_comments').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'trans_comment',
'id'=>'trans_comment',
'rows'=>'3',
'cols'=>'17')
);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
echo form_input($cat);
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_stock_location').':', 'stock_location',array('class'=>'wide')); ?>
</td>
<td>
<?php
echo form_dropdown('stock_location',$stock_locations,current($stock_locations),'onchange="fill_quantity(this.value)"');
?>
</td>
</tr>
<tr>
<td>
<?php echo form_label($this->lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?>
</td>
<td>
<?php $qty = array (
'name'=>'quantity',
'id'=>'quantity',
'value'=>current($item_quantities),
'style' => 'border:none',
'readonly' => 'readonly'
);
echo form_input($qty);
?>
</td>
</tr>
</div>
</table>
</fieldset>
<?php echo form_close(); ?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_add_minus').':', 'quantity',array('class'=>'required wide')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'newquantity',
'id'=>'newquantity'
)
);?>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('items_inventory_comments').':', 'description',array('class'=>'wide')); ?>
<div class='form_field'>
<?php echo form_textarea(array(
'name'=>'trans_comment',
'id'=>'trans_comment',
'rows'=>'3',
'cols'=>'17')
);?>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<script type='text/javascript'>
//validation and submit handling

View File

@@ -89,7 +89,7 @@ function post_item_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -97,7 +97,7 @@ function post_item_form_submit(response)
if(jQuery.inArray(response.item_id,get_visible_checkbox_ids()) != -1)
{
update_row(response.item_id,'<?php echo site_url("$controller_name/get_row")?>',resize_thumbs);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else //refresh entire table
{
@@ -105,7 +105,7 @@ function post_item_form_submit(response)
{
//highlight new row
hightlight_row(response.item_id);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
});
}
}
@@ -115,7 +115,7 @@ function post_bulk_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -124,7 +124,7 @@ function post_bulk_form_submit(response)
{
update_row(selected_item_ids[k],'<?php echo site_url("$controller_name/get_row")?>',resize_thumbs);
}
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
}
@@ -162,56 +162,56 @@ function show_hide_search_filter(search_filter_section, switchImgTag)
</div>
<div id="pagination"><?= $links ?></div>
<div id="titleTextImg" style="background-color:#EEEEEE;height:30px;position:relative;">
<div style="float:left;vertical-align:text-top;"><?php echo $this->lang->line('common_search_options'); ?> :</div>
<a id="imageDivLink" href="javascript:show_hide_search_filter('search_filter_section', 'imageDivLink');" style="outline:none;">
<img src="
<?php echo isset($search_section_state)? ( ($search_section_state)? base_url().'images/minus.png' : base_url().'images/plus.png') : base_url().'images/plus.png';?>" style="border:0;outline:none;padding:0px;margin:0px;position:relative;top:-5px;"></a>
</div>
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<div id="search_filter_section" style="display: <?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>; background-color:#EEEEEE;">
<?php echo form_label($this->lang->line('items_empty_upc_items').' '.':', 'empty_upc');?>
<?php echo form_checkbox(array('name'=>'empty_upc','id'=>'empty_upc','value'=>1,'checked'=> isset($empty_upc)? ( ($empty_upc)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_low_inventory_items').' '.':', 'low_inventory');?>
<?php echo form_checkbox(array('name'=>'low_inventory','id'=>'low_inventory','value'=>1,'checked'=> isset($low_inventory)? ( ($low_inventory)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_serialized_items').' '.':', 'is_serialized');?>
<?php echo form_checkbox(array('name'=>'is_serialized','id'=>'is_serialized','value'=>1,'checked'=> isset($is_serialized)? ( ($is_serialized)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_no_description_items').' '.':', 'no_description');?>
<?php echo form_checkbox(array('name'=>'no_description','id'=>'no_description','value'=>1,'checked'=> isset($no_description)? ( ($no_description)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_search_custom_items').' '.':', 'search_custom');?>
<?php echo form_checkbox(array('name'=>'search_custom','id'=>'search_custom','value'=>1,'checked'=> isset($search_custom)? ( ($search_custom)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_is_deleted').' '.':', 'is_deleted');?>
<?php echo form_checkbox(array('name'=>'is_deleted','id'=>'is_deleted','value'=>1,'checked'=> isset($is_deleted)? ( ($is_deleted)? 1 : 0) : 0));?>
<div id="search_filter_section" style="display: <?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>; background-color:#EEEEEE;">
<?php echo form_label($this->lang->line('items_empty_upc_items').' '.':', 'empty_upc');?>
<?php echo form_checkbox(array('name'=>'empty_upc','id'=>'empty_upc','value'=>1,'checked'=> isset($empty_upc)? ( ($empty_upc)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_low_inventory_items').' '.':', 'low_inventory');?>
<?php echo form_checkbox(array('name'=>'low_inventory','id'=>'low_inventory','value'=>1,'checked'=> isset($low_inventory)? ( ($low_inventory)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_serialized_items').' '.':', 'is_serialized');?>
<?php echo form_checkbox(array('name'=>'is_serialized','id'=>'is_serialized','value'=>1,'checked'=> isset($is_serialized)? ( ($is_serialized)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_no_description_items').' '.':', 'no_description');?>
<?php echo form_checkbox(array('name'=>'no_description','id'=>'no_description','value'=>1,'checked'=> isset($no_description)? ( ($no_description)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_search_custom_items').' '.':', 'search_custom');?>
<?php echo form_checkbox(array('name'=>'search_custom','id'=>'search_custom','value'=>1,'checked'=> isset($search_custom)? ( ($search_custom)? 1 : 0) : 0)).' | ';?>
<?php echo form_label($this->lang->line('items_is_deleted').' '.':', 'is_deleted');?>
<?php echo form_checkbox(array('name'=>'is_deleted','id'=>'is_deleted','value'=>1,'checked'=> isset($is_deleted)? ( ($is_deleted)? 1 : 0) : 0));?>
<?php echo form_label($this->lang->line('sales_date_range').' :', 'start_date');?>
<?php echo form_input(array('name'=>'start_date','value'=>$start_date, 'class'=>'date_filter', 'size' => '15'));?>
<?php echo form_label(' - ', 'end_date');?>
<?php echo form_input(array('name'=>'end_date','value'=>$end_date, 'class'=>'date_filter', 'size' => '15'));?>
<input type="hidden" name="search_section_state" id="search_section_state" value="<?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>" />
</div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/bulk_edit/width:$form_width",$this->lang->line("items_bulk_edit"),array('id'=>'bulk_edit','title'=>$this->lang->line('items_edit_multiple_items'))); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/generate_barcodes",$this->lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?></span></li>
<?php if (count($stock_locations) > 1): ?>
<li class="float_left"><span><?php echo form_dropdown('stock_location',$stock_locations,$stock_location,'id="stock_location" onchange="$(\'#search_form\').submit();"'); ?></span></li>
<?php endif; ?>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<?php echo form_label($this->lang->line('sales_date_range').' :', 'start_date');?>
<?php echo form_input(array('name'=>'start_date','value'=>$start_date, 'class'=>'date_filter', 'size' => '15'));?>
<?php echo form_label(' - ', 'end_date');?>
<?php echo form_input(array('name'=>'end_date','value'=>$end_date, 'class'=>'date_filter', 'size' => '15'));?>
<input type="hidden" name="search_section_state" id="search_section_state" value="<?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>" />
</div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/bulk_edit/width:$form_width",$this->lang->line("items_bulk_edit"),array('id'=>'bulk_edit','title'=>$this->lang->line('items_edit_multiple_items'))); ?></span></li>
<li class="float_left"><span><?php echo anchor("$controller_name/generate_barcodes",$this->lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?></span></li>
<?php if (count($stock_locations) > 1): ?>
<li class="float_left"><span><?php echo form_dropdown('stock_location',$stock_locations,$stock_location,'id="stock_location" onchange="$(\'#search_form\').submit();"'); ?></span></li>
<?php endif; ?>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<?php echo form_close(); ?>
<div id="table_holder">
<?php echo $manage_table; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -1,3 +1,4 @@
<div id="feedback_bar"></div>
</div>
</div>

View File

@@ -37,7 +37,7 @@
<!-- end js template tags -->
<?php else : ?>
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=a8ae30ad50" language="javascript"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=a96d6ab060" language="javascript"></script>
<!-- end minjs template tags -->
<?php endif; ?>
@@ -69,47 +69,47 @@
<body>
<div class="wrapper">
<div class="topbar">
<div class="container">
<div class="navbar-left">
<div id="liveclock"><?php echo date($this->config->item('dateformat').' '.$this->config->item('timeformat')) ?></div>
</div>
<div class="topbar">
<div class="container">
<div class="navbar-left">
<div id="liveclock"><?php echo date($this->config->item('dateformat').' '.$this->config->item('timeformat')) ?></div>
</div>
<div class="navbar-right" style="margin:0">
<?php echo $this->lang->line('common_welcome')." $user_info->first_name $user_info->last_name! | "; ?>
<?php echo anchor("home/logout", $this->lang->line("common_logout")); ?>
<div class="navbar-right" style="margin:0">
<?php echo $this->lang->line('common_welcome')." $user_info->first_name $user_info->last_name! | "; ?>
<?php echo anchor("home/logout", $this->lang->line("common_logout")); ?>
</div>
</div>
</div>
</div>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand hidden-sm" href="<?php echo site_url(); ?>">OSPOS</a>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand hidden-sm" href="<?php echo site_url(); ?>">OSPOS</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<?php foreach($allowed_modules->result() as $module): ?>
<li class="<?php echo $module->module_id == $this->uri->segment(1)? 'active': ''; ?>">
<a href="<?php echo site_url("$module->module_id");?>" title="<?php echo $this->lang->line("module_".$module->module_id) ?>" class="menu-icon">
<img src="<?php echo base_url().'images/menubar/'.$module->module_id.'.png';?>" border="0" alt="Module Icon" /><br />
<?php echo $this->lang->line("module_".$module->module_id) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div><!--/.nav-collapse -->
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<?php foreach($allowed_modules->result() as $module): ?>
<li class="<?php echo $module->module_id == $this->uri->segment(1)? 'active': ''; ?>">
<a href="<?php echo site_url("$module->module_id");?>" title="<?php echo $this->lang->line("module_".$module->module_id) ?>" class="menu-icon">
<img src="<?php echo base_url().'images/menubar/'.$module->module_id.'.png';?>" border="0" alt="Module Icon" /><br />
<?php echo $this->lang->line("module_".$module->module_id) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container" id="main_container">
<div class="row">
<div class="container">
<div class="row">

View File

@@ -18,17 +18,7 @@
{
display:none;
}
#content_area
{
width:100%;
}
#content_area_wrapper
{
border:0px;
}
#sale_return_policy
{
width:100%;

View File

@@ -33,7 +33,7 @@ function post_person_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -41,7 +41,7 @@ function post_person_form_submit(response)
if(jQuery.inArray(response.person_id,get_visible_checkbox_ids()) != -1)
{
update_row(response.person_id,'<?php echo site_url("$controller_name/get_row")?>');
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else //refresh entire table
@@ -50,7 +50,7 @@ function post_person_form_submit(response)
{
//highlight new row
hightlight_row(response.person_id);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
});
}
}
@@ -59,33 +59,41 @@ function post_person_form_submit(response)
<div id="title_bar">
<div id="title" class="float_left"><?php echo $this->lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?></div>
<?php if ($controller_name =='customers') {?>
<?php if ($controller_name =='customers')
{
?>
<?php echo anchor("$controller_name/excel_import/width:$form_width",
"<div class='btn btn-info btn-sm pull-right''><span>" . $this->lang->line('common_import_excel') . "</span></div>",
array('class'=>'thickbox none', 'title'=>'Import Items from Excel'));
?>
<?php } ?>
<?php
}
?>
<?php echo anchor("$controller_name/view/-1/width:$form_width",
"<div class='btn btn-info btn-sm pull-right' style='margin-right: 10px;'><span>" . $this->lang->line($controller_name . '_new') . "</span></div>",
array('class'=>'thickbox none', 'title'=>$this->lang->line($controller_name . '_new')));
?>
</div>
<div id="pagination"><?= $links ?></div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><a href="#" id="email"><?php echo $this->lang->line("common_email");?></a></span></li>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</form>
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
<?php echo form_close(); ?>
</li>
</ul>
</div>
<div id="table_holder">
<?php echo $manage_table; ?>
<?php echo $manage_table; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -4,57 +4,57 @@
<fieldset id="receiving_basic_info">
<?php echo form_open("receivings/save/".$receiving_info['receiving_id'],array('id'=>'recvs_edit_form')); ?>
<legend><?php echo $this->lang->line("recvs_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_receipt_number').':', 'supplier'); ?>
<div class='form_field'>
<?php echo anchor('receivings/receipt/'.$receiving_info['receiving_id'], $this->lang->line('recvs_receipt_number') .$receiving_info['receiving_id'], array('target' => '_blank'));?>
<legend><?php echo $this->lang->line("recvs_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_receipt_number').':', 'supplier'); ?>
<div class='form_field'>
<?php echo anchor('receivings/receipt/'.$receiving_info['receiving_id'], $this->lang->line('recvs_receipt_number') .$receiving_info['receiving_id'], array('target' => '_blank'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_date').':', 'date'); ?>
<div class='form_field'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_date').':', 'date'); ?>
<div class='form_field'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_supplier').':', 'supplier'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'supplier_id', 'value' => $selected_supplier, 'id' => 'supplier_id'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_supplier').':', 'supplier'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'supplier_id', 'value' => $selected_supplier, 'id' => 'supplier_id'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_invoice_number').':', 'invoice_number'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'invoice_number', 'value' => $receiving_info['invoice_number'], 'id' => 'invoice_number'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_invoice_number').':', 'invoice_number'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'invoice_number', 'value' => $receiving_info['invoice_number'], 'id' => 'invoice_number'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_employee').':', 'employee'); ?>
<div class='form_field'>
<?php echo form_dropdown('employee_id', $employees, $receiving_info['employee_id'], 'id="employee_id"');?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_employee').':', 'employee'); ?>
<div class='form_field'>
<?php echo form_dropdown('employee_id', $employees, $receiving_info['employee_id'], 'id="employee_id"');?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_comments').':', 'comment'); ?>
<div class='form_field'>
<?php echo form_textarea(array('name'=>'comment','value'=>$receiving_info['comment'],'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('recvs_comments').':', 'comment'); ?>
<div class='form_field'>
<?php echo form_textarea(array('name'=>'comment','value'=>$receiving_info['comment'],'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
</div>
</div>
</div>
<?php echo form_submit(array(
'name'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=> 'btn btn-primary btn-sm pull-right')
);
?>
</form>
<?php echo form_submit(array(
'name'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=> 'btn btn-primary btn-sm pull-right')
);
?>
<?php echo form_close(); ?>
<?php echo form_open("receivings/delete/".$receiving_info['receiving_id'],array('id'=>'recvs_delete_form')); ?>
<?php echo form_hidden('receiving_id', $receiving_info['receiving_id']);?>
@@ -64,7 +64,7 @@
'class'=>'btn btn-danger btn-sm pull-right')
);
?>
</form>
<?php echo form_close(); ?>
</fieldset>
</div>
@@ -162,7 +162,7 @@ $(document).ready(function()
if (confirm('<?php echo $this->lang->line("recvs_delete_confirmation"); ?>'))
{
tb_remove();
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
var $element = get_table_row(id).parent().parent();
$element.find("td").animate({backgroundColor:"green"},1200,"linear")
.end().animate({opacity:0},1200,"linear",function()
@@ -176,7 +176,7 @@ $(document).ready(function()
return false;
},
error: function(jqXHR, textStatus, errorThrown) {
set_feedback(textStatus,'error_message',true);
set_feedback(textStatus, 'alert alert-dismissible alert-danger', true);
},
dataType:'json'
});

View File

@@ -1,7 +1,6 @@
<?php $this->load->view("partial/header"); ?>
<?php $this->load->view('partial/print_receipt', array('print_after_sale', $print_after_sale,
'selected_printer' => 'receipt_printer')); ?>
<?php $this->load->view('partial/print_receipt', array('print_after_sale', $print_after_sale, 'selected_printer' => 'receipt_printer')); ?>
<?php
if (isset($error_message))
@@ -15,26 +14,28 @@ if (isset($error_message))
<?php if ($this->Appconfig->get('company_logo') == '')
{
?>
<div id="company_name"><?php echo $this->config->item('company'); ?></div>
<div id="company_name"><?php echo $this->config->item('company'); ?></div>
<?php
}
else
{
?>
<div id="company_name"><img id="image" src="<?php echo base_url('uploads/' . $this->Appconfig->get('company_logo')); ?>" alt="company_logo" /></div>
<div id="company_name"><img id="image" src="<?php echo base_url('uploads/' . $this->Appconfig->get('company_logo')); ?>" alt="company_logo" /></div>
<?php
}
?>
<div id="company_address"><?php echo nl2br($this->config->item('address')); ?></div>
<div id="company_phone"><?php echo $this->config->item('phone'); ?></div>
<div id="sale_receipt"><?php echo $receipt_title; ?></div>
<div id="sale_time"><?php echo $transaction_time ?></div>
</div>
<div id="receipt_general_info">
<?php if(isset($supplier))
{
?>
<div id="customer"><?php echo $this->lang->line('suppliers_supplier').": ".$supplier; ?></div>
<div id="customer"><?php echo $this->lang->line('suppliers_supplier').": ".$supplier; ?></div>
<?php
}
?>
@@ -42,7 +43,7 @@ if (isset($error_message))
<?php if (!empty($invoice_number))
{
?>
<div id="invoice_number"><?php echo $this->lang->line('recvs_invoice_number').": ".$invoice_number; ?></div>
<div id="invoice_number"><?php echo $this->lang->line('recvs_invoice_number').": ".$invoice_number; ?></div>
<?php
}
?>
@@ -50,75 +51,81 @@ if (isset($error_message))
</div>
<table id="receipt_items">
<tr>
<th style="width:40%;"><?php echo $this->lang->line('items_item'); ?></th>
<th style="width:20%;"><?php echo $this->lang->line('common_price'); ?></th>
<th style="width:20%;"><?php echo $this->lang->line('sales_quantity'); ?></th>
<th style="width:15%;text-align:right;"><?php echo $this->lang->line('sales_total'); ?></th>
</tr>
<?php
foreach(array_reverse($cart, true) as $line=>$item)
{
?>
<tr>
<td><span class='long_name'><?php echo base64_decode($item['name']); ?></span><span class='short_name'><?php echo character_limiter(base64_decode($item['name']),10); ?></span></td>
<td><?php echo to_currency($item['price']); ?></td>
<td><?php
echo $item['quantity'] . " " . ($show_stock_locations ? " [" . $item['stock_name'] . "]" : "");
?>&nbsp;&nbsp;&nbsp;x <?php echo $item['receiving_quantity'] != 0 ? $item['receiving_quantity'] : 1; ?></td>
<td><div class="total-value"><?php echo to_currency($item['total']); ?></div></td>
</tr>
<tr>
<td ><?php echo $item['serialnumber']; ?></td>
</tr>
<?php if ($item['discount'] > 0 ) : ?>
<tr>
<td colspan="3" style="font-weight: bold;"> <?php echo number_format($item['discount'], 0) . " " . $this->lang->line("sales_discount_included")?> </td>
</tr>
<?php endif; ?>
<?php
}
?>
<tr>
<td colspan="3" style='text-align:right;border-top:2px solid #000000;'><?php echo $this->lang->line('sales_total'); ?></td>
<td style='border-top:2px solid #000000;'><div class="total-value"><?php echo to_currency($total); ?></div></td>
</tr>
<?php
if($mode!='requisition')
{
?>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_payment'); ?></td>
<td><div class="total-value"><?php echo $payment_type; ?></div></td>
</tr>
<?php if(isset($amount_change))
{
?>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_amount_tendered'); ?></td>
<td><div class="total-value"><?php echo to_currency($amount_tendered); ?></div></td>
<th style="width:40%;"><?php echo $this->lang->line('items_item'); ?></th>
<th style="width:20%;"><?php echo $this->lang->line('common_price'); ?></th>
<th style="width:20%;"><?php echo $this->lang->line('sales_quantity'); ?></th>
<th style="width:15%;text-align:right;"><?php echo $this->lang->line('sales_total'); ?></th>
</tr>
<?php
foreach(array_reverse($cart, true) as $line=>$item)
{
?>
<tr>
<td><span class='long_name'><?php echo base64_decode($item['name']); ?></span><span class='short_name'><?php echo character_limiter(base64_decode($item['name']),10); ?></span></td>
<td><?php echo to_currency($item['price']); ?></td>
<td><?php echo $item['quantity'] . " " . ($show_stock_locations ? " [" . $item['stock_name'] . "]" : "");
?>&nbsp;&nbsp;&nbsp;x <?php echo $item['receiving_quantity'] != 0 ? $item['receiving_quantity'] : 1; ?></td>
<td><div class="total-value"><?php echo to_currency($item['total']); ?></div></td>
</tr>
<tr>
<td ><?php echo $item['serialnumber']; ?></td>
</tr>
<?php
if ($item['discount'] > 0 )
{
?>
<tr>
<td colspan="3" style="font-weight: bold;"> <?php echo number_format($item['discount'], 0) . " " . $this->lang->line("sales_discount_included")?> </td>
</tr>
<?php
}
?>
<?php
}
?>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_change_due'); ?></td>
<td><div class="total-value"><?php echo $amount_change; ?></div></td>
<td colspan="3" style='text-align:right;border-top:2px solid #000000;'><?php echo $this->lang->line('sales_total'); ?></td>
<td style='border-top:2px solid #000000;'><div class="total-value"><?php echo to_currency($total); ?></div></td>
</tr>
<?php
}
?>
<?php
}
?>
<?php
if($mode!='requisition')
{
?>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_payment'); ?></td>
<td><div class="total-value"><?php echo $payment_type; ?></div></td>
</tr>
<?php if(isset($amount_change))
{
?>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_amount_tendered'); ?></td>
<td><div class="total-value"><?php echo to_currency($amount_tendered); ?></div></td>
</tr>
<tr>
<td colspan="3" style='text-align:right;'><?php echo $this->lang->line('sales_change_due'); ?></td>
<td><div class="total-value"><?php echo $amount_change; ?></div></td>
</tr>
<?php
}
?>
<?php
}
?>
</table>
<div id="sale_return_policy">
<?php echo nl2br($this->config->item('return_policy')); ?>
</div>
<div id='barcode'>
<img src='data:image/png;base64,<?php echo $barcode; ?>' /><br>
<?php echo $receiving_id; ?>
</div>
</div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -5,7 +5,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
@@ -32,31 +32,31 @@ if(isset($error))
}
}
?>
</form>
<?php echo form_close(); ?>
<?php echo form_open("receivings/add",array('id'=>'add_item_form')); ?>
<label id="item_label" for="item">
<?php
if($mode=='receive' or $mode=='requisition')
{
echo $this->lang->line('recvs_find_or_scan_item');
}
else
{
echo $this->lang->line('recvs_find_or_scan_item_or_receipt');
}
?>
</label>
<label id="item_label" for="item">
<?php
if($mode=='receive' or $mode=='requisition')
{
echo $this->lang->line('recvs_find_or_scan_item');
}
else
{
echo $this->lang->line('recvs_find_or_scan_item_or_receipt');
}
?>
</label>
<?php echo form_input(array('name'=>'item','id'=>'item','size'=>'40'));?>
<?php echo form_input(array('name'=>'item','id'=>'item','size'=>'40'));?>
<div id="new_item_button_register" >
<?php echo anchor("items/view/-1/width:450",
"<div class='btn btn-sm btn-info'><span>".$this->lang->line('sales_new_item')."</span></div>",
array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_item')));
?>
</div>
</form>
<?php echo form_close(); ?>
<!-- Receiving Items List -->
@@ -80,7 +80,7 @@ if(isset($error))
{
?>
<tr><td colspan='8'>
<div class='warning_message' style='padding:7px;'><?php echo $this->lang->line('sales_no_items_in_cart'); ?></div>
<div class='alert alert-dismissible alert-warning'><?php echo $this->lang->line('sales_no_items_in_cart'); ?></div>
</td></tr>
<?php
}
@@ -90,97 +90,97 @@ if(isset($error))
{
echo form_open("receivings/edit_item/$line");
?>
<tr>
<td><?php echo anchor("receivings/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
<td style="align:center;"><?php echo base64_decode($item['name']); ?><br /> [<?php echo $item['in_stock']; ?> in <?php echo $item['stock_name']; ?>]
<?php echo form_hidden('location', $item['item_location']); ?></td>
<tr>
<td><?php echo anchor("receivings/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
<td style="align:center;"><?php echo base64_decode($item['name']); ?><br /> [<?php echo $item['in_stock']; ?> in <?php echo $item['stock_name']; ?>]
<?php echo form_hidden('location', $item['item_location']); ?></td>
<?php if ($items_module_allowed && $mode !='requisition')
{
?>
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
<?php
}
else
{
?>
<td><?php echo $item['price']; ?></td>
<?php echo form_hidden('price',$item['price']); ?>
<?php
}
?>
<td>
<?php
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2'));
if ($item['receiving_quantity'] > 1)
{
?>
</td>
<td>x <?php echo $item['receiving_quantity']; ?></td>
<?php
}
else
{
?>
<td></td>
<?php
}
?>
<?php
if ($items_module_allowed && $mode!='requisition')
{
?>
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
<?php
}
else
{
?>
<td><?php echo $item['discount']; ?></td>
<?php echo form_hidden('discount',$item['discount']); ?>
<?php
}
?>
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
</tr>
<tr>
<?php
if($item['allow_alt_description']==1)
<?php if ($items_module_allowed && $mode !='requisition')
{
?>
<td style="color: #2F4F4F;"><?php echo $this->lang->line('sales_description_abbrv').':';?></td>
<?php
}
?>
<td colspan="2" style="text-align: left;">
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
<?php
if($item['allow_alt_description']==1)
}
else
{
?>
<td><?php echo $item['price']; ?></td>
<?php echo form_hidden('price',$item['price']); ?>
<?php
}
?>
<td>
<?php
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2'));
if ($item['receiving_quantity'] > 1)
{
echo form_input(array('name'=>'description','value'=>base64_decode($item['description']),'size'=>'20'));
?>
</td>
<td>x <?php echo $item['receiving_quantity']; ?></td>
<?php
}
else
{
if (base64_decode($item['description'])!='')
?>
<td></td>
<?php
}
?>
<?php
if ($items_module_allowed && $mode!='requisition')
{
?>
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
<?php
}
else
{
?>
<td><?php echo $item['discount']; ?></td>
<?php echo form_hidden('discount',$item['discount']); ?>
<?php
}
?>
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
</tr>
<tr>
<?php
if($item['allow_alt_description']==1)
{
?>
<td style="color: #2F4F4F;"><?php echo $this->lang->line('sales_description_abbrv').':';?></td>
<?php
}
?>
<td colspan="2" style="text-align: left;">
<?php
if($item['allow_alt_description']==1)
{
echo base64_decode($item['description']);
echo form_hidden('description',base64_decode($item['description']));
echo form_input(array('name'=>'description','value'=>base64_decode($item['description']),'size'=>'20'));
}
else
{
echo $this->lang->line('sales_no_description');
echo form_hidden('description','');
if (base64_decode($item['description'])!='')
{
echo base64_decode($item['description']);
echo form_hidden('description',base64_decode($item['description']));
}
else
{
echo $this->lang->line('sales_no_description');
echo form_hidden('description','');
}
}
}
?>
</td>
<td colspan="6"></td>
</tr>
</form>
<?php
?>
</td>
<td colspan="6"></td>
</tr>
<?php
echo form_close();
}
}
?>
@@ -200,9 +200,9 @@ if(isset($error))
else
{
echo form_open("receivings/select_supplier",array('id'=>'select_supplier_form')); ?>
<label id="supplier_label" for="supplier"><?php echo $this->lang->line('recvs_select_supplier'); ?></label>
<?php echo form_input(array('name'=>'supplier','id'=>'supplier','size'=>'30','value'=>$this->lang->line('recvs_start_typing_supplier_name')));?>
</form>
<label id="supplier_label" for="supplier"><?php echo $this->lang->line('recvs_select_supplier'); ?></label>
<?php echo form_input(array('name'=>'supplier','id'=>'supplier','size'=>'30','value'=>$this->lang->line('recvs_start_typing_supplier_name')));?>
<?php echo form_close(); ?>
<div style="margin-top:5px;text-align:center;">
<h3 style="margin: 5px 0 5px 0"><?php echo $this->lang->line('common_or'); ?></h3>
<?php echo anchor("suppliers/view/-1/width:400",
@@ -231,123 +231,121 @@ if(isset($error))
{
if($mode == 'requisition')
{
?>
?>
<div style='border-top:2px solid #000;' />
<div id="finish_sale">
<?php echo form_open("receivings/requisition_complete",array('id'=>'finish_receiving_form')); ?>
<br />
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?>
<br /><br />
<div class="btn btn-sm btn-success" id='finish_receiving_button' style='float:right;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_complete_receiving') ?></span>
</div>
</form>
<?php echo form_open("receivings/cancel_receiving",array('id'=>'cancel_receiving_form')); ?>
<div class="btn btn-sm btn-danger" id='cancel_receiving_button' style='float:left;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_cancel_receiving')?></span>
</div>
</form>
<br />
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?>
<br /><br />
<div class="btn btn-sm btn-success" id='finish_receiving_button' style='float:right;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_complete_receiving') ?></span>
</div>
</form>
<?php echo form_open("receivings/cancel_receiving",array('id'=>'cancel_receiving_form')); ?>
<div class="btn btn-sm btn-danger" id='cancel_receiving_button' style='float:left;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_cancel_receiving')?></span>
</div>
<?php echo form_close(); ?>
</div>
<?php
}
else
{
?>
?>
<div id="finish_sale">
<?php echo form_open("receivings/complete",array('id'=>'finish_receiving_form')); ?>
<br />
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?>
<br /><br />
<table width="100%">
<tr>
<br />
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?>
<br /><br />
<table width="100%">
<tr>
<td>
<?php echo $this->lang->line('recvs_print_after_sale'); ?>
</td>
<td>
<?php if ($print_after_sale)
{
echo form_checkbox(array('name'=>'recv_print_after_sale','id'=>'recv_print_after_sale','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'recv_print_after_sale','id'=>'recv_print_after_sale'));
}
?>
</td>
</tr>
<?php if ($mode == "receive")
{
?>
<tr>
<td>
<?php echo $this->lang->line('recvs_print_after_sale'); ?>
<?php echo $this->lang->line('recvs_invoice_enable'); ?>
</td>
<td>
<?php if ($print_after_sale)
{
echo form_checkbox(array('name'=>'recv_print_after_sale','id'=>'recv_print_after_sale','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'recv_print_after_sale','id'=>'recv_print_after_sale'));
}
?>
<?php if ($invoice_number_enabled)
{
echo form_checkbox(array('name'=>'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10,'checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10));
}
?>
</td>
</tr>
<?php if ($mode == "receive")
{
?>
<tr>
<td>
<?php echo $this->lang->line('recvs_invoice_enable'); ?>
</td>
<td>
<?php if ($invoice_number_enabled)
{
echo form_checkbox(array('name'=>'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10,'checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10));
}
?>
</td>
</tr>
<tr>
<td>
<?php echo $this->lang->line('recvs_invoice_number').': ';?>
</td>
<td>
<?php echo form_input(array('name'=>'recv_invoice_number','id'=>'recv_invoice_number','value'=>$invoice_number,'size'=>10));?>
</td>
</tr>
<?php
}
?>
<tr><td>
<?php
echo $this->lang->line('sales_payment').': ';?>
</td><td>
<?php
echo form_dropdown('payment_type',$payment_options);?>
</td>
</tr>
</tr>
<tr>
<td>
<?php echo $this->lang->line('recvs_invoice_number').': ';?>
</td>
<td>
<?php echo form_input(array('name'=>'recv_invoice_number','id'=>'recv_invoice_number','value'=>$invoice_number,'size'=>10));?>
</td>
</tr>
<?php
}
?>
<tr><td>
<?php
echo $this->lang->line('sales_payment').': ';?>
</td><td>
<?php
echo form_dropdown('payment_type',$payment_options);?>
</td>
</tr>
<tr>
<td>
<?php
echo $this->lang->line('sales_amount_tendered').': ';?>
</td><td>
<?php
echo form_input(array('name'=>'amount_tendered','value'=>'','size'=>'10'));
?>
</td>
</tr>
<tr>
<td>
<?php
echo $this->lang->line('sales_amount_tendered').': ';?>
</td><td>
<?php
echo form_input(array('name'=>'amount_tendered','value'=>'','size'=>'10'));
?>
</td>
</tr>
</table>
<br />
<div class='btn btn-sm btn-success' id='finish_receiving_button' style='float:right;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_complete_receiving') ?></span>
</div>
</form>
</table>
<br />
<div class='btn btn-sm btn-success' id='finish_receiving_button' style='float:right;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_complete_receiving') ?></span>
</div>
<?php echo form_close(); ?>
<?php echo form_open("receivings/cancel_receiving",array('id'=>'cancel_receiving_form')); ?>
<div class='btn btn-sm btn-danger' id='cancel_receiving_button' style='float:left;margin-top:5px;'>
<span><?php echo $this->lang->line('recvs_cancel_receiving')?></span>
</div>
</form>
<?php echo form_close(); ?>
</div>
<?php
<?php
}
}
?>
?>
</div>
<div class="clearfix" style="margin-bottom:30px;">&nbsp;</div>

View File

@@ -3,7 +3,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<?php echo form_label($this->lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?>

View File

@@ -3,7 +3,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<?php echo form_label($this->lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?>

View File

@@ -3,7 +3,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<div>

View File

@@ -3,7 +3,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<div>

View File

@@ -61,7 +61,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -3,7 +3,7 @@
<?php
if(isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
?>
<?php echo form_label($this->lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?>

View File

@@ -1,14 +1,19 @@
<?php
//OJB: Check if for excel export process
if($export_excel == 1){
// Check if for excel export process
if($export_excel == 1)
{
ob_start();
$this->load->view("partial/header_excel");
}else{
}
else
{
$this->load->view("partial/header");
}
?>
<div id="page_title" style="margin-bottom:8px;"><?php echo $title ?></div>
<div id="page_subtitle" style="margin-bottom:8px;"><?php echo $subtitle ?></div>
<div id="table_holder">
<table class="tablesorter report" id="sortable_table">
<thead>
@@ -54,18 +59,16 @@ if($export_excel == 1){
</tbody>
</table>
</div>
<div id="report_summary">
<?php foreach($overall_summary_data as $name=>$value) { ?>
<div class="summary_row"><?php echo $this->lang->line('reports_'.$name). ': '.to_currency($value); ?></div>
<?php }?>
<?php foreach($overall_summary_data as $name=>$value) { ?>
<div class="summary_row"><?php echo $this->lang->line('reports_'.$name). ': '.to_currency($value); ?></div>
<?php }?>
</div>
<?php if (isset($editable)): ?>
<div id="feedback_bar"></div>
<?php endif; ?>
<?php
if($export_excel == 1){
if($export_excel == 1)
{
$this->load->view("partial/footer_excel");
$content = ob_end_flush();
@@ -76,79 +79,80 @@ if($export_excel == 1){
header('Content-Disposition: attachment; filename='.$filename);
echo $content;
die();
}else{
}
else
{
$this->load->view("partial/footer");
?>
<script type="text/javascript" language="javascript">
<?php if (isset($editable)): ?>
function post_form_submit(response, row_id)
{
if(!response.success)
<script type="text/javascript" language="javascript">
<?php
if (isset($editable))
{
set_feedback(response.message,'error_message',true);
}
else
{
var row_id = response.id
$.get('<?php echo site_url("reports/get_detailed_" . $editable . "_row")?>/'+row_id, function(response)
?>
function post_form_submit(response, row_id)
{
//Replace previous row
var row = get_table_row(row_id).parent().parent();
var sign = row.find("a.expand").text();
row.replaceWith(response);
row = get_table_row(row_id).parent().parent();
update_sortable_table();
animate_row(row);
row.find("a.expand").click(expand_handler).text(sign);
tb_init(row.find("a.thickbox"));
});
set_feedback(response.message,'success_message',false);
if(!response.success)
{
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
var row_id = response.id
$.get('<?php echo site_url("reports/get_detailed_" . $editable . "_row")?>/'+row_id, function(response)
{
//Replace previous row
var row = get_table_row(row_id).parent().parent();
var sign = row.find("a.expand").text();
row.replaceWith(response);
row = get_table_row(row_id).parent().parent();
update_sortable_table();
animate_row(row);
row.find("a.expand").click(expand_handler).text(sign);
tb_init(row.find("a.thickbox"));
});
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
}
<?php
}
}
?>
<?php endif; ?>
function expand_handler(event)
{
$(event.target).parent().parent().next().find('.innertable').toggle();
if ($(event.target).text() == '+')
function expand_handler(event)
{
$(event.target).text('-');
}
else
{
$(event.target).text('+');
}
return false;
};
$(event.target).parent().parent().next().find('.innertable').toggle();
$(document).ready(function()
{
$(".tablesorter a.expand_all").click(function(event)
{
var $inner_elements = $(".tablesorter .innertable");
if ($inner_elements.is(":visible"))
if ($(event.target).text() == '+')
{
$inner_elements.hide();
$("a.expand, a.expand_all").text('+');
}
else
$(event.target).text('-');
}
else
{
$inner_elements.show();
$("a.expand, a.expand_all").text('-');
}
$(event.target).text('+');
}
return false;
};
$(document).ready(function()
{
$(".tablesorter a.expand_all").click(function(event)
{
var $inner_elements = $(".tablesorter .innertable");
if ($inner_elements.is(":visible"))
{
$inner_elements.hide();
$("a.expand, a.expand_all").text('+');
}
else
{
$inner_elements.show();
$("a.expand, a.expand_all").text('-');
}
return false;
});
$(".tablesorter a.expand").click(expand_handler);
});
$(".tablesorter a.expand").click(expand_handler);
});
</script>
</script>
<?php
} // end if not is excel export
?>

View File

@@ -4,73 +4,74 @@
<fieldset id="sale_basic_info">
<?php echo form_open("sales/save/".$sale_info['sale_id'],array('id'=>'sales_edit_form')); ?>
<legend><?php echo $this->lang->line("sales_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_receipt_number').':', 'customer'); ?>
<div class='form_field'>
<?php echo anchor('sales/receipt/'.$sale_info['sale_id'], $this->lang->line('sales_receipt_number') .$sale_info['sale_id'], array('target' => '_blank'));?>
<legend><?php echo $this->lang->line("sales_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_receipt_number').':', 'customer'); ?>
<div class='form_field'>
<?php echo anchor('sales/receipt/'.$sale_info['sale_id'], $this->lang->line('sales_receipt_number') .$sale_info['sale_id'], array('target' => '_blank'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_date').':', 'date'); ?>
<div class='form_field'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_date').':', 'date'); ?>
<div class='form_field'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_invoice_number').':', 'invoice_number'); ?>
<div class='form_field'>
<?php if (isset($sale_info["invoice_number"]) && !empty($sale_info["invoice_number"]) &&
isset($sale_info['customer_id']) && isset($sale_info['email']) && !empty($sale_info['email'])): ?>
<?php echo form_input(array('name'=>'invoice_number', 'size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
<a id="send_invoice" href="javascript:void(0);"><?=$this->lang->line('sales_send_invoice')?></a>
<?php else: ?>
<?php echo form_input(array('name'=>'invoice_number', 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
<?php endif; ?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_invoice_number').':', 'invoice_number'); ?>
<div class='form_field'>
<?php if (isset($sale_info["invoice_number"]) && !empty($sale_info["invoice_number"]) &&
isset($sale_info['customer_id']) && isset($sale_info['email']) && !empty($sale_info['email'])): ?>
<?php echo form_input(array('name'=>'invoice_number', 'size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
<a id="send_invoice" href="javascript:void(0);"><?=$this->lang->line('sales_send_invoice')?></a>
<?php else: ?>
<?php echo form_input(array('name'=>'invoice_number', 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
<?php endif; ?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_customer').':', 'customer'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'customer_id', 'value' => $selected_customer, 'id' => 'customer_id'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_customer').':', 'customer'); ?>
<div class='form_field'>
<?php echo form_input(array('name' => 'customer_id', 'value' => $selected_customer, 'id' => 'customer_id'));?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_employee').':', 'employee'); ?>
<div class='form_field'>
<?php echo form_dropdown('employee_id', $employees, $sale_info['employee_id'], 'id="employee_id"');?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_employee').':', 'employee'); ?>
<div class='form_field'>
<?php echo form_dropdown('employee_id', $employees, $sale_info['employee_id'], 'id="employee_id"');?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_comment').':', 'comment'); ?>
<div class='form_field'>
<?php echo form_textarea(array('name'=>'comment', 'value'=>$sale_info['comment'], 'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('sales_comment').':', 'comment'); ?>
<div class='form_field'>
<?php echo form_textarea(array('name'=>'comment', 'value'=>$sale_info['comment'], 'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
</div>
</div>
</div>
<?php echo form_submit(array(
'name'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=> 'btn btn-primary btn-sm pull-right')
);
?>
</form>
<?php echo form_submit(array(
'name'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=> 'btn btn-primary btn-sm pull-right')
);
?>
<?php echo form_close(); ?>
<?php echo form_open("sales/delete/".$sale_info['sale_id'],array('id'=>'sales_delete_form')); ?>
<?php echo form_hidden('sale_id', $sale_info['sale_id']);?>
<?php echo form_submit(array(
'name'=>'submit',
'value'=>$this->lang->line('sales_delete_entire_sale'),
'class'=>'btn btn-danger btn-sm pull-right')
'class'=>'btn btn-danger btn-sm pull-right',
'style'=>'margin-right: 10px;')
);
?>
</form>
<?php echo form_close(); ?>
</fieldset>
</div>
@@ -184,7 +185,7 @@ $(document).ready(function()
success: function(response)
{
tb_remove();
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
var $element = get_table_row(id).parent().parent();
$element.find("td").animate({backgroundColor:"green"},1200,"linear")
.end().animate({opacity:0},1200,"linear",function()
@@ -196,7 +197,7 @@ $(document).ready(function()
});
},
error: function(jqXHR, textStatus, errorThrown) {
set_feedback(textStatus,'error_message',true);
set_feedback(textStatus, 'alert alert-dismissible alert-danger', true);
},
dataType:'json'
});

View File

@@ -59,12 +59,12 @@ function post_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
update_row(response.id,'<?php echo site_url("$controller_name/get_row")?>');
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
}
@@ -72,7 +72,7 @@ function post_bulk_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -80,7 +80,7 @@ function post_bulk_form_submit(response)
{
update_row(response.ids[id],'<?php echo site_url("$controller_name/get_row")?>');
}
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
}
@@ -171,44 +171,47 @@ function init_table_sorting()
<div id="title" class="float_left"><?php echo $this->lang->line('common_list_of').' '.$this->lang->line('sales_receipt_number'); ?></div>
<a href="javascript:window.print()"><div class="btn btn-info btn-sm pull-right"><span><?php echo $this->lang->line('common_print'); ?></span></div></a>
</div>
<div id="pagination"><?= $links ?></div>
<div id="titleTextImg" style="background-color:#EEEEEE;height:30px;position:relative;">
<div style="float:left;vertical-align:text-top;"><?php echo $this->lang->line('common_search_options'). ': '; ?></div>
<a id="imageDivLink" href="javascript:show_hide_search_filter('search_filter_section', 'imageDivLink');" style="outline:none;">
<img src="<?php echo base_url().'images/plus.png'; ?>" style="border:0;outline:none;padding:0px;margin:0px;position:relative;top:-5px;"></a>
</div>
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<div id="search_filter_section" style="display: <?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>;background-color:#EEEEEE;">
<?php echo form_label($this->lang->line('sales_invoice_filter').' '.':', 'invoices_filter');?>
<?php echo form_checkbox(array('name'=>'only_invoices','id'=>'only_invoices','value'=>1,'checked'=> isset($only_invoices)? ( ($only_invoices)? 1 : 0) : 0)) . ' | ';?>
<?php echo form_label($this->lang->line('sales_date_range').' :', 'start_date');?>
<?php echo form_input(array('name'=>'start_date','value'=>$start_date, 'class'=>'date_filter', 'size' => '15'));?>
<?php echo form_label(' - ', 'end_date');?>
<?php echo form_input(array('name'=>'end_date','value'=>$end_date, 'class'=>'date_filter', 'size' => '15')) . ' | ';?>
<?php echo form_label($this->lang->line('sales_cash_filter').' '.':', 'cash_filter');?>
<?php echo form_checkbox(array('name'=>'only_cash','id'=>'only_cash','value'=>1,'checked'=> isset($only_cash)? ( ($only_cash)? 1 : 0) : 0));?>
<input type="hidden" name="search_section_state" id="search_section_state" value="<?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>" />
</div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor($controller_name . "/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<!-- li class="float_left"><span><?php echo anchor($controller_name . "/update_invoice_numbers", $this->lang->line('sales_invoice_update'),array('id'=>'update_invoice_numbers')); ?></span></li-->
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<div id="search_filter_section" style="display: <?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>;background-color:#EEEEEE;">
<?php echo form_label($this->lang->line('sales_invoice_filter').' '.':', 'invoices_filter');?>
<?php echo form_checkbox(array('name'=>'only_invoices','id'=>'only_invoices','value'=>1,'checked'=> isset($only_invoices)? ( ($only_invoices)? 1 : 0) : 0)) . ' | ';?>
<?php echo form_label($this->lang->line('sales_date_range').' :', 'start_date');?>
<?php echo form_input(array('name'=>'start_date','value'=>$start_date, 'class'=>'date_filter', 'size' => '15'));?>
<?php echo form_label(' - ', 'end_date');?>
<?php echo form_input(array('name'=>'end_date','value'=>$end_date, 'class'=>'date_filter', 'size' => '15')) . ' | ';?>
<?php echo form_label($this->lang->line('sales_cash_filter').' '.':', 'cash_filter');?>
<?php echo form_checkbox(array('name'=>'only_cash','id'=>'only_cash','value'=>1,'checked'=> isset($only_cash)? ( ($only_cash)? 1 : 0) : 0));?>
<input type="hidden" name="search_section_state" id="search_section_state" value="<?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>" />
</div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor($controller_name . "/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<!-- li class="float_left"><span><?php echo anchor($controller_name . "/update_invoice_numbers", $this->lang->line('sales_invoice_update'),array('id'=>'update_invoice_numbers')); ?></span></li-->
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</li>
</ul>
</div>
<?php echo form_close(); ?>
<div id="table_holder" class="totals">
<?php echo $manage_table; ?>
<?php echo $manage_table; ?>
</div>
<div id="payment_summary">
<?php echo $payments_summary; ?>
<?php echo $payments_summary; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -6,17 +6,17 @@
<?php
if (isset($error))
{
echo "<div class='error_message'>".$error."</div>";
echo "<div class='alert alert-dismissible alert-danger'>".$error."</div>";
}
if (isset($warning))
{
echo "<div class='warning_mesage'>".$warning."</div>";
echo "<div class='alert alert-dismissible alert-warning'>".$warning."</div>";
}
if (isset($success))
{
echo "<div class='success_message'>".$success."</div>";
echo "<div class='alert alert-dismissible alert-success'>".$success."</div>";
}
?>
@@ -46,10 +46,10 @@ if (isset($success))
?>
<?php echo anchor("sales/suspended/width:425",
"<div class='btn btn-warning btn-sm' id='show_suspended_sales_button'><span>".$this->lang->line('sales_suspended_sales')."</span></div>",
"<div class='btn btn-default btn-sm' id='show_suspended_sales_button'><span>".$this->lang->line('sales_suspended_sales')."</span></div>",
array('class'=>'thickbox none','title'=>$this->lang->line('sales_suspended_sales')));
?>
</form>
<?php echo form_close(); ?>
<?php echo form_open("sales/add", array('id'=>'add_item_form')); ?>
<label id="item_label" for="item">
@@ -64,7 +64,7 @@ if (isset($success))
array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_item')));
?>
</div>
</form>
<?php echo form_close(); ?>
<table id="register">
<thead>
@@ -86,7 +86,7 @@ if (isset($success))
?>
<tr>
<td colspan='8'>
<div class='warning_message' style='padding: 7px;'><?php echo $this->lang->line('sales_no_items_in_cart'); ?></div>
<div class='alert alert-dismissible alert-warning'><?php echo $this->lang->line('sales_no_items_in_cart'); ?></div>
</td>
</tr>
<?php
@@ -99,107 +99,108 @@ if (isset($success))
if($tabindex == 3)
{
$tabindex = 5;
}
}
echo form_open("sales/edit_item/$line");
?>
<tr>
<td><?php echo anchor("sales/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
<td><?php echo $item['item_number']; ?></td>
<td style="align: center;"><?php echo base64_decode($item['name']); ?><br /> [<?php echo $item['in_stock'] ?> in <?php echo $item['stock_name']; ?>]
<?php echo form_hidden('location', $item['item_location']); ?>
</td>
<tr>
<td><?php echo anchor("sales/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
<td><?php echo $item['item_number']; ?></td>
<td style="align: center;"><?php echo base64_decode($item['name']); ?><br /> [<?php echo $item['in_stock'] ?> in <?php echo $item['stock_name']; ?>]
<?php echo form_hidden('location', $item['item_location']); ?>
</td>
<?php if ($items_module_allowed)
{
?>
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
<?php
}
else
{
?>
<td><?php echo to_currency($item['price']); ?></td>
<?php echo form_hidden('price',$item['price']); ?>
<?php
}
?>
<td>
<?php
if($item['is_serialized']==1)
<?php if ($items_module_allowed)
{
echo $item['quantity'];
echo form_hidden('quantity',$item['quantity']);
?>
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
<?php
}
else
{
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2','tabindex'=>$tabindex));
}
?>
</td>
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
</tr>
<tr>
<?php
if($item['allow_alt_description']==1)
{
?>
<td style="color: #2F4F4F;"><?php echo $this->lang->line('sales_description_abbrv').':';?></td>
<?php
}
?>
<td colspan=2 style="text-align: left;">
{
?>
<td><?php echo to_currency($item['price']); ?></td>
<?php echo form_hidden('price',$item['price']); ?>
<?php
}
?>
<td>
<?php
if($item['is_serialized']==1)
{
echo $item['quantity'];
echo form_hidden('quantity',$item['quantity']);
}
else
{
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2','tabindex'=>$tabindex));
}
?>
</td>
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
</tr>
<tr>
<?php
if($item['allow_alt_description']==1)
{
echo form_input(array('name'=>'description','value'=>base64_decode($item['description']),'size'=>'20'));
?>
<td style="color: #2F4F4F;"><?php echo $this->lang->line('sales_description_abbrv').':';?></td>
<?php
}
else
{
if (base64_decode($item['description'])!='')
?>
<td colspan=2 style="text-align: left;">
<?php
if($item['allow_alt_description']==1)
{
echo base64_decode($item['description']);
echo form_hidden('description',base64_decode($item['description']));
echo form_input(array('name'=>'description','value'=>base64_decode($item['description']),'size'=>'20'));
}
else
{
echo $this->lang->line('sales_no_description');
echo form_hidden('description','');
if (base64_decode($item['description'])!='')
{
echo base64_decode($item['description']);
echo form_hidden('description',base64_decode($item['description']));
}
else
{
echo $this->lang->line('sales_no_description');
echo form_hidden('description','');
}
}
}
?>
</td>
<td>&nbsp;</td>
<td style="color: #2F4F4F;">
<?php
if($item['is_serialized']==1)
{
echo $this->lang->line('sales_serial').':';
}
?>
</td>
<td colspan="4" style="text-align: left;">
<?php
if($item['is_serialized']==1)
{
echo form_input(array('name'=>'serialnumber','value'=>$item['serialnumber'],'size'=>'20'));
}
else
{
echo form_hidden('serialnumber', '');
}
?>
</td>
</tr>
<tr style="height: 3px">
<td colspan=8 style="background-color: white"></td>
</tr>
?>
</td>
<td>&nbsp;</td>
<td style="color: #2F4F4F;">
<?php
if($item['is_serialized']==1)
{
echo $this->lang->line('sales_serial').':';
}
?>
</td>
<td colspan="4" style="text-align: left;">
<?php
if($item['is_serialized']==1)
{
echo form_input(array('name'=>'serialnumber','value'=>$item['serialnumber'],'size'=>'20'));
}
else
{
echo form_hidden('serialnumber', '');
}
?>
</td>
</tr>
<tr style="height: 3px">
<td colspan=8 style="background-color: white"></td>
</tr>
</form>
<?php echo form_close(); ?>
<?php
$tabindex = $tabindex + 1;
}
@@ -220,10 +221,10 @@ if (isset($success))
{
echo form_open("sales/select_customer",array('id'=>'select_customer_form'));
?>
<label id="customer_label" for="customer"><?php echo $this->lang->line('sales_select_customer'); ?></label>
<?php echo form_input(array('name'=>'customer','id'=>'customer','size'=>'30','value'=>$this->lang->line('sales_start_typing_customer_name')));?>
<label id="customer_label" for="customer"><?php echo $this->lang->line('sales_select_customer'); ?></label>
<?php echo form_input(array('name'=>'customer','id'=>'customer','size'=>'30','value'=>$this->lang->line('sales_start_typing_customer_name')));?>
</form>
<?php echo form_close(); ?>
<div style="margin-top: 5px; text-align: center;">
<h3 style="margin: 5px 0 5px 0"><?php echo $this->lang->line('common_or'); ?></h3>
@@ -263,12 +264,12 @@ if (isset($success))
<span><?php echo $this->lang->line('sales_cancel_sale'); ?></span>
</div>
<div class='btn btn-sm btn-warning' id='suspend_sale_button' style='float:right; margin-top: 5px;'>
<div class='btn btn-sm btn-default' id='suspend_sale_button' style='float:right; margin-top: 5px;'>
<span><?php echo $this->lang->line('sales_suspend_sale'); ?></span>
</div>
</div>
</form>
<?php echo form_close(); ?>
<div class="clearfix" style="margin-bottom: 1px;">&nbsp;</div>
@@ -276,35 +277,33 @@ if (isset($success))
// Only show this part if there is at least one payment entered.
if(count($payments) > 0)
{
echo form_open("sales/complete", array('id'=>'finish_sale_form'));
?>
<?php echo form_open("sales/complete", array('id'=>'finish_sale_form')); ?>
<div id="finish_sale">
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment', 'id'=>'comment', 'value'=>$comment, 'rows'=>'4', 'cols'=>'23'));?>
<br />
<br />
<?php
if(!empty($customer_email))
{
echo $this->lang->line('sales_email_receipt'). ': '
. form_checkbox(array(
'name' => 'email_receipt',
'id' => 'email_receipt',
'value' => '1',
'checked' => (boolean)$email_receipt,
)).'<br />('.$customer_email.')<br />';
}
if ($payments_cover_total)
{
echo "<div class='btn btn-sm btn-success' id='finish_sale_button' style='float:left; margin-top:5px;' tabindex='3'><span>".$this->lang->line('sales_complete_sale')."</span></div>";
}
?>
</div>
</form>
<?php
<div id="finish_sale">
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
<?php echo form_textarea(array('name'=>'comment', 'id'=>'comment', 'value'=>$comment, 'rows'=>'4', 'cols'=>'23'));?>
<br />
<br />
<?php
if(!empty($customer_email))
{
echo $this->lang->line('sales_email_receipt'). ': '
. form_checkbox(array(
'name' => 'email_receipt',
'id' => 'email_receipt',
'value' => '1',
'checked' => (boolean)$email_receipt,
)).'<br />('.$customer_email.')<br />';
}
if ($payments_cover_total)
{
echo "<div class='btn btn-sm btn-success' id='finish_sale_button' style='float:left; margin-top:5px;' tabindex='3'><span>".$this->lang->line('sales_complete_sale')."</span></div>";
}
?>
</div>
<?php
echo form_close();
}
?>
@@ -324,78 +323,77 @@ if (isset($success))
<div id="payment_details">
<div>
<?php echo form_open("sales/add_payment",array('id'=>'add_payment_form')); ?>
<table width="100%">
<tr>
<td>
<?php echo $this->lang->line('sales_print_after_sale'); ?>
</td>
<td>
<?php
if ($print_after_sale)
{
echo form_checkbox(array('name'=>'sales_print_after_sale','id'=>'sales_print_after_sale','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'sales_print_after_sale','id'=>'sales_print_after_sale'));
}
?>
</td>
</tr>
<?php
if ($mode == "sale")
{
?>
<tr>
<td>
<?php echo $this->lang->line('sales_invoice_enable'); ?>
</td>
<td>
<?php if ($invoice_number_enabled)
{
echo form_checkbox(array('name'=>'sales_invoice_enable','id'=>'sales_invoice_enable','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'sales_invoice_enable','id'=>'sales_invoice_enable'));
}
?>
</td>
</tr>
<tr>
<td>
<?php echo $this->lang->line('sales_invoice_number').': ';?>
</td>
<td>
<?php echo form_input(array('name'=>'sales_invoice_number','id'=>'sales_invoice_number','value'=>$invoice_number,'size'=>10));?>
</td>
</tr>
<?php
}
?>
<tr>
<td>
<?php echo $this->lang->line('sales_payment').': ';?>
</td>
<td>
<?php echo form_dropdown( 'payment_type', $payment_options, array(), 'id="payment_types"' ); ?>
</td>
</tr>
<tr>
<td>
<span id="amount_tendered_label"><?php echo $this->lang->line( 'sales_amount_tendered' ).': '; ?></span>
</td>
<td>
<?php echo form_input( array( 'name'=>'amount_tendered', 'id'=>'amount_tendered', 'value'=>to_currency_no_money($amount_due), 'size'=>'10','tabindex'=>4 ) ); ?>
</td>
</tr>
</table>
<div class='btn btn-sm btn-primary' id='add_payment_button' style='float: left; margin-top: 5px;'>
<span><?php echo $this->lang->line('sales_add_payment'); ?></span>
</div>
</form>
<table width="100%">
<tr>
<td>
<?php echo $this->lang->line('sales_print_after_sale'); ?>
</td>
<td>
<?php
if ($print_after_sale)
{
echo form_checkbox(array('name'=>'sales_print_after_sale','id'=>'sales_print_after_sale','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'sales_print_after_sale','id'=>'sales_print_after_sale'));
}
?>
</td>
</tr>
<?php
if ($mode == "sale")
{
?>
<tr>
<td>
<?php echo $this->lang->line('sales_invoice_enable'); ?>
</td>
<td>
<?php if ($invoice_number_enabled)
{
echo form_checkbox(array('name'=>'sales_invoice_enable','id'=>'sales_invoice_enable','checked'=>'checked'));
}
else
{
echo form_checkbox(array('name'=>'sales_invoice_enable','id'=>'sales_invoice_enable'));
}
?>
</td>
</tr>
<tr>
<td>
<?php echo $this->lang->line('sales_invoice_number').': ';?>
</td>
<td>
<?php echo form_input(array('name'=>'sales_invoice_number','id'=>'sales_invoice_number','value'=>$invoice_number,'size'=>10));?>
</td>
</tr>
<?php
}
?>
<tr>
<td>
<?php echo $this->lang->line('sales_payment').': ';?>
</td>
<td>
<?php echo form_dropdown( 'payment_type', $payment_options, array(), 'id="payment_types"' ); ?>
</td>
</tr>
<tr>
<td>
<span id="amount_tendered_label"><?php echo $this->lang->line( 'sales_amount_tendered' ).': '; ?></span>
</td>
<td>
<?php echo form_input( array( 'name'=>'amount_tendered', 'id'=>'amount_tendered', 'value'=>to_currency_no_money($amount_due), 'size'=>'10','tabindex'=>4 ) ); ?>
</td>
</tr>
</table>
<div class='btn btn-sm btn-primary' id='add_payment_button' style='float: left; margin-top: 5px;'>
<span><?php echo $this->lang->line('sales_add_payment'); ?></span>
</div>
<?php echo form_close(); ?>
</div>
<?php
@@ -418,14 +416,13 @@ if (isset($success))
{
echo form_open("sales/edit_payment/$payment_id",array('id'=>'edit_payment_form'.$payment_id));
?>
<tr>
<td><?php echo anchor( "sales/delete_payment/$payment_id", '['.$this->lang->line('common_delete').']' ); ?></td>
<td><?php echo $payment['payment_type']; ?></td>
<td style="text-align: right;"><?php echo to_currency( $payment['payment_amount'] ); ?></td>
</tr>
</form>
<?php
<tr>
<td><?php echo anchor( "sales/delete_payment/$payment_id", '['.$this->lang->line('common_delete').']' ); ?></td>
<td><?php echo $payment['payment_type']; ?></td>
<td style="text-align: right;"><?php echo to_currency( $payment['payment_amount'] ); ?></td>
</tr>
<?php
echo form_close();
}
?>
</tbody>
@@ -434,9 +431,7 @@ if (isset($success))
<?php
}
?>
</div>
<?php
}
?>

View File

@@ -35,8 +35,10 @@
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="submit_button float_right"></td>
</form>
<input type="submit" name="submit" value="<?php echo $this->lang->line('sales_unsuspend'); ?>" id="submit" class="btn btn-primary btn-xs pull-right"></td>
<?php
echo form_close();
?>
</tr>
<?php
}

View File

@@ -1,58 +1,54 @@
<?php
echo form_open('suppliers/save/'.$person_info->person_id,array('id'=>'supplier_form'));
?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="supplier_basic_info">
<legend><?php echo $this->lang->line("suppliers_basic_information"); ?></legend>
<?php echo form_open('suppliers/save/'.$person_info->person_id,array('id'=>'supplier_form')); ?>
<div id="required_fields_message"><?php echo $this->lang->line('common_fields_required_message'); ?></div>
<ul id="error_message_box" class="error_message_box"></ul>
<fieldset id="supplier_basic_info">
<legend><?php echo $this->lang->line("suppliers_basic_information"); ?></legend>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_company_name').':', 'company_name', array('class'=>'required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company_name',
'id'=>'company_name_input',
'value'=>$person_info->company_name)
);?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_company_name').':', 'company_name', array('class'=>'required')); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'company_name',
'id'=>'company_name_input',
'value'=>$person_info->company_name)
);?>
</div>
</div>
</div>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_agency_name').':', 'agency_name'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'agency_name',
'id'=>'agency_name_input',
'value'=>$person_info->agency_name)
);?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_agency_name').':', 'agency_name'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'agency_name',
'id'=>'agency_name_input',
'value'=>$person_info->agency_name)
);?>
</div>
</div>
</div>
<?php $this->load->view("people/form_basic_info"); ?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_account_number').':', 'account_number'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'account_number',
'id'=>'account_number',
'value'=>$person_info->account_number)
);?>
<?php $this->load->view("people/form_basic_info"); ?>
<div class="field_row clearfix">
<?php echo form_label($this->lang->line('suppliers_account_number').':', 'account_number'); ?>
<div class='form_field'>
<?php echo form_input(array(
'name'=>'account_number',
'id'=>'account_number',
'value'=>$person_info->account_number)
);?>
</div>
</div>
</div>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php
echo form_close();
?>
<?php
echo form_submit(array(
'name'=>'submit',
'id'=>'submit',
'value'=>$this->lang->line('common_submit'),
'class'=>'btn btn-primary btn-sm pull-right')
);
?>
</fieldset>
<?php echo form_close(); ?>
<script type='text/javascript'>
//validation and submit handling
$(document).ready(function()
{

View File

@@ -1,4 +1,5 @@
<?php $this->load->view("partial/header"); ?>
<script type="text/javascript">
$(document).ready(function()
{
@@ -32,7 +33,7 @@ function post_person_form_submit(response)
{
if(!response.success)
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
else
{
@@ -40,7 +41,7 @@ function post_person_form_submit(response)
if(jQuery.inArray(response.person_id,get_visible_checkbox_ids()) != -1)
{
update_row(response.person_id,'<?php echo site_url("$controller_name/get_row")?>');
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else //refresh entire table
@@ -49,7 +50,7 @@ function post_person_form_submit(response)
{
//highlight new row
hightlight_row(response.person_id);
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
});
}
}
@@ -63,22 +64,26 @@ function post_person_form_submit(response)
array('class'=>'thickbox none', 'title'=>$this->lang->line($controller_name . '_new')));
?>
</div>
<div id="pagination"><?= $links ?></div>
<div id="table_action_header">
<ul>
<li class="float_left"><span><?php echo anchor("$controller_name/delete",$this->lang->line("common_delete"),array('id'=>'delete')); ?></span></li>
<li class="float_left"><span><a href="#" id="email"><?php echo $this->lang->line("common_email");?></a></span></li>
<li class="float_right">
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
</form>
<img src='<?php echo base_url()?>images/spinner_small.gif' alt='spinner' id='spinner' />
<?php echo form_open("$controller_name/search",array('id'=>'search_form')); ?>
<input type="text" name ='search' id='search'/>
<input type="hidden" name ='limit_from' id='limit_from'/>
<?php echo form_close(); ?>
</li>
</ul>
</div>
<div id="table_holder">
<?php echo $manage_table; ?>
<?php echo $manage_table; ?>
</div>
<div id="feedback_bar"></div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -44,41 +44,8 @@ label.required
float:right;
}
.warning_message
{
text-align:center;
background-color:#fffcdd;
border:1px solid #fff4aa;
font-weight:bold;
}
.error_message
{
text-align:center;
background-color:#f68383;
border:1px solid #da3232;
font-weight:bold;
}
.warning_mesage
{
text-align:center;
background-color:#FBEC5D;
border:1px solid #da3232;
font-weight:bold;
}
.success_message
{
text-align:center;
background-color:#e1ffdd;
border:1px solid #2ca71c;
font-weight:bold;
}
input
{
font-family: Arial;
padding: 3px;
}
@@ -92,6 +59,17 @@ input
height: 0;
}
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }
.clearfix
{
display: inline-block;
}
html[xmlns] .clearfix
{
display: block;
}
* html .clearfix
{
height: 1%;
}

View File

@@ -12,69 +12,79 @@
@import url(jquery-ui.theme.css);
@import url(jquery-ui-timepicker-addon.css);
body
html, body
{
margin:0px;
padding:0px;
background-color:#f7f7f7;
font-family: Arial, sans-serif, "Lucida Grande", "Trebuchet MS", Tahoma, Verdana;
font-size: 0.9em;
height: 100%;
}
a.none
{
text-decoration:none;
text-decoration: none;
}
#content_area_wrapper
.topbar
{
position:relative;
width:100%;
background-color:#FFFFFF;
margin:0px;
padding-bottom: 10px;
border-bottom:1px solid #CCCCCC;
text-align:center;
color: #eee;
font-size: 12px;
background: #182735;
padding: 5px;
}
#content_area
.navbar
{
position:relative;
margin:0 auto;
width:875px;
text-align:left;
min-height: 40px;
border-radius: 0;
}
.navbar-brand
{
padding: 22px 15px;
height: 40px;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus
{
color: #2C3E50 !important;
background-color: #FFFFFF !important;
}
.navbar .menu-icon {
text-align: center;
font-size: 12px;
}
.navbar .menu-icon img {
width: 24px;
}
.wrapper
{
min-height: 100%;
margin-bottom: -75px;
font-size: 14px;
line-height: 1.5;
}
#title_bar
{
position:relative;
margin-top:10px;
margin-bottom:10px;
width:100%;
height:50px;
position: relative;
margin-top: 10px;
margin-bottom: 10px;
width: 100%;
height: 50px;
}
#title
{
position:absolute;
bottom:0px;
left:0px;
font-size:30px;
font-weight:bold;
color:#000000;
}
#page_title
{
margin-top:8px;
font-size:30px;
font-weight:bold;
color:#000000;
text-align:center;
#title,
#page_title {
font-size: 22px;
margin-top: 21px;
margin-bottom: 10.5px;
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 400;
line-height: 1.1;
color: inherit;
}
#page_subtitle
@@ -86,41 +96,42 @@ a.none
text-align:center;
}
#new_button
{
position:absolute;
bottom:-5px;
right:0px;
}
#spinner
{
float:right;
float:right;
display:none;
}
#feedback_bar
{
position:fixed;
bottom:0;
left:0;
width:100%;
height:55px;
position:fixed;
opacity: 0;
filter: alpha(opacity=0);
z-index:1;
line-height:3.3;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 1;
line-height: 3.3;
text-align: center;
}
#home_module_list
{
position: relative;
padding: 20px 0;
text-align: center;
}
.module_item
.module_item
{
padding: 10px;
min-width: 105px;
display: inline-block;
text-align: center;
margin-bottom: 3px;
}
.module_item a
{
display: block;
}
#config_wrapper
@@ -152,7 +163,6 @@ a.none
font-size:11px;
color:#777777;
clear:both;
}
input#search

View File

@@ -4,19 +4,14 @@
font-size:75%;
}
#menubar,#footer
.topbar
{
display:none;
}
#content_area
#menubar, #footer
{
width:100%;
}
#content_area_wrapper
{
border:0px;
display:none;
}
#sale_return_policy

View File

@@ -73,10 +73,10 @@
#register th
{
background-color:#4386a1;
padding:5px;
text-align:center;
color:#FFFFFF;
background-color: #999999;
padding: 5px;
text-align: center;
color: #FFFFFF;
}
#register td

View File

@@ -245,7 +245,6 @@ CREATE TABLE `ospos_item_kit_items` (
-- Dumping data for table `ospos_item_kit_items`
--
-- --------------------------------------------------------
--
@@ -663,7 +662,6 @@ CREATE TABLE `ospos_sessions` (
-- Dumping data for table `ospos_sessions`
--
-- --------------------------------------------------------
--
@@ -704,11 +702,10 @@ CREATE TABLE `ospos_suppliers` (
--
--
-- This migration script should be run after creating tables with the regular database script and before applying the constraints.
--
-- This script migrates data from phppos to ospos 2.3.4
--
--
-- Copy data to table `ospos_app_config`
@@ -873,6 +870,11 @@ SELECT `person_id`, `company_name`, `account_number`, `deleted` FROM `phppos`.ph
-- Add constraints on copied data
--
--
-- Constraints for dumped tables
--
--
-- Constraints for table `ospos_customers`
--

View File

File diff suppressed because one or more lines are too long

View File

@@ -189,14 +189,12 @@ function do_delete(url)
});
});
set_feedback(response.message,'success_message',false);
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
}
else
{
set_feedback(response.message,'error_message',true);
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
}
},"json");
}
@@ -277,8 +275,7 @@ function enable_row_selection(rows)
);
rows.click(function row_click(event)
{
{
var checkbox = $(this).find(":checkbox");
checkbox.attr('checked',!checkbox.attr('checked'));
do_email(enable_email.url);
@@ -310,7 +307,8 @@ function update_sortable_table()
}
}
function get_table_row(id) {
function get_table_row(id)
{
id = id || $("input[name='sale_id']").val();
var $element = $("#sortable_table tbody :checkbox[value='" + id + "']");
if ($element.length === 0) {

View File

@@ -1,160 +1,77 @@
/* additional styles placed here */
html, body {
height: 100%;
}
body {
/*padding-top: 80px;*/
}
.topbar {
color: #eee;
font-size: 12px;
background: #182735;
padding: 5px;
}
.wrapper {
min-height: 100%;
margin-bottom: -75px;
}
.navbar {
min-height: 40px;
border-radius: 0;
}
.navbar-brand {
padding: 22px 15px;
height: 40px;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #2C3E50;
background-color: #FFFFFF;
}
table.tablesorter {
table.tablesorter
{
border: 0;
}
table.tablesorter tbody td {
table.tablesorter tbody td
{
padding: 8px;
}
table.tablesorter tbody td.over {
table.tablesorter tbody td.over
{
background-color: #F5F5F5;
}
table.tablesorter tbody td.selected {
table.tablesorter tbody td.selected
{
background-color: #ECECEC;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
table.tablesorter thead tr th, table.tablesorter tfoot tr th
{
padding: 8px;
}
#table_action_header {
#table_action_header
{
height: 35px;
background-color: transparent;
border: 0;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
table.tablesorter thead tr th, table.tablesorter tfoot tr th
{
background-color: #999999;
}
#search_filter_section {
#search_filter_section
{
padding: 5px;
margin-bottom: 10px;
}
#titleTextImg {
#titleTextImg
{
background-color: transparent !important;
}
#table_action_header ul li span a {
#table_action_header ul li span a
{
background-color: rgba(0, 0, 0, 0);
border: 0;
color: #aaa;
}
#table_action_header ul li span a:hover {
#table_action_header ul li span a:hover
{
color: #555;
}
#title,
#page_title {
font-size: 22px;
margin-top: 21px;
margin-bottom: 10.5px;
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 400;
line-height: 1.1;
color: inherit;
}
#home_module_list {
padding: 20px 0;
text-align: center;
}
.module_item {
min-width: 105px;
display: inline-block;
text-align: center;
margin-bottom: 3px;
}
.module_item a {
display: block;
}
.navbar .menu-icon {
text-align: center;
font-size: 12px;
}
.navbar .menu-icon img {
width: 24px;
}
#main_container {
font-size: 14px;
line-height: 1.5;
}
#feedback_bar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 55px;
position: fixed;
opacity: 0;
filter: alpha(opacity=0);
z-index: 1;
line-height: 3.3;
}
#register th {
background-color: #999999;
padding: 5px;
text-align: center;
color: #FFFFFF;
}
@media (min-width: 768px) {
.navbar-nav > li > a {
@media (min-width: 768px)
{
.navbar-nav > li > a
{
padding: 10px 10px 9px;
}
}
@media print {
.no-print, .no-print * {
@media print
{
.no-print, .no-print *
{
display: none !important;
}
}