mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-12 07:56:34 -04:00
Make choose file in General Configuration bootstrap (#116)
Used following jQuery plugin: http://gregpike.net/demos/bootstrap-file-input/demo.html
This commit is contained in:
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Breite (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generiere Barcode wenn leer";
|
||||
$lang["config_company"] = "Firmenname";
|
||||
$lang["config_company_logo"] = "Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Firmenname ist erforderlich";
|
||||
$lang["config_company_website_url"] = "Webseite ist nicht in korrektem Format";
|
||||
$lang["config_currency_side"] = "Pos. rechts";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Company Name";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "Choose File";
|
||||
$lang["config_company_required"] = "Company name is a required field";
|
||||
$lang["config_company_website_url"] = "Company website is not a valid URL (http://...)";
|
||||
$lang["config_currency_side"] = "Right side";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Ancho (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Nombre del Comercio";
|
||||
$lang["config_company_logo"] = "Logotipo del Comercio";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Nombre del Comercio es requerido";
|
||||
$lang["config_company_website_url"] = "Sitio Web no es una URL estándar (http://...)";
|
||||
$lang["config_currency_side"] = "Lado derecho";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Nome de l\'Entreprise";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Le nom d\'entreprise est requis";
|
||||
$lang["config_company_website_url"] = "Le site web de l\'entreprise n\'est pas une URL valide (http://...)";
|
||||
$lang["config_currency_side"] = "Symbole à droite";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Nama Perusahaan";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Nama Perusahaan wajib diisi";
|
||||
$lang["config_company_website_url"] = "Situs Perusahaan bukan URL yang benar(http://...)";
|
||||
$lang["config_currency_side"] = "Sisi Kanan";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Breedte (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Genereer indien leeg";
|
||||
$lang["config_company"] = "Bedrijfsnaam";
|
||||
$lang["config_company_logo"] = "Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "De bedrijfsnaam moet ingevuld worden";
|
||||
$lang["config_company_website_url"] = "De website van het bedrijf is geen geldige URL (http://...)";
|
||||
$lang["config_currency_side"] = "Rechterkant";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Название Компании";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Имя Компании обязательный пробел";
|
||||
$lang["config_company_website_url"] = "Веб-сайт Компании не является допустимым URL (http://...)";
|
||||
$lang["config_currency_side"] = "Правая сторона";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "กว้าง (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "ชื่อร้านค้า";
|
||||
$lang["config_company_logo"] = "ภาพโลโก้";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "ชื่อร้านค้าต้องกรอก";
|
||||
$lang["config_company_website_url"] = "เว็บไซต์ร้านค้าไม่ถูกต้อง";
|
||||
$lang["config_currency_side"] = "ด้านขวา";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "Şirket Adı";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "Şirket Adı zorunlu alandır";
|
||||
$lang["config_company_website_url"] = "website adresi yanlış (http://...)";
|
||||
$lang["config_currency_side"] = "Sağda";
|
||||
|
||||
@@ -27,6 +27,7 @@ $lang["config_barcode_width"] = "Width (px)";
|
||||
$lang["config_barcode_generate_if_empty"] = "Generate if empty";
|
||||
$lang["config_company"] = "公司名稱";
|
||||
$lang["config_company_logo"] = "Company Logo";
|
||||
$lang["config_company_choose_file"] = "";
|
||||
$lang["config_company_required"] = "公司名稱為必填";
|
||||
$lang["config_company_website_url"] = "公司網址格式錯誤 (http://...)";
|
||||
$lang["config_currency_side"] = "Right side";
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('config_company').':', 'company',array('class'=>'wide required')); ?>
|
||||
<?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',
|
||||
@@ -18,275 +18,275 @@
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('config_company_logo').':', 'company_logo',array('class'=>'wide')); ?>
|
||||
<?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');?>
|
||||
<input name='company_logo' id='company_logo' class="btn btn-default btn-sm" type="file" title='<?php echo $this->lang->line("config_company_choose_file")?>'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('config_address').':', 'address',array('class'=>'wide required')); ?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>%
|
||||
<?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')));?>%
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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'))); ?>
|
||||
<?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'))); ?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?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')));?>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'custom10_name',
|
||||
'id'=>'custom10_name',
|
||||
'value'=>$this->config->item('custom10_name')));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -297,14 +297,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo form_submit(array(
|
||||
<?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')
|
||||
);
|
||||
?>
|
||||
'class'=>'btn btn-primary btn-sm pull-right'));?>
|
||||
</fieldset>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
@@ -318,6 +315,9 @@ $(document).ready(function()
|
||||
window.location='<?php echo site_url('config/backup_db') ?>';
|
||||
});
|
||||
|
||||
$('input[type=file]').bootstrapFileInput();
|
||||
$('.file-inputs').bootstrapFileInput();
|
||||
|
||||
$('#config_form').validate({
|
||||
submitHandler:function(form)
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<script type="text/javascript" src="js/jquery.tablesorter.staticrow.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery.validate-1.13.1-min.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/bootstrap-3.3.6.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/bootstrap.file-input.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/common.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/date.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/imgpreview.full.jquery.js" language="javascript"></script>
|
||||
@@ -37,7 +38,7 @@
|
||||
<!-- end js template tags -->
|
||||
<?php else : ?>
|
||||
<!-- start minjs template tags -->
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=946c014a6d" language="javascript"></script>
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=96f6785349" language="javascript"></script>
|
||||
<!-- end minjs template tags -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
<?php $this->load->view("partial/header"); ?>
|
||||
|
||||
<div id="page_title" style="margin-bottom: 8px;"><?php echo $this->lang->line('sales_register'); ?></div>
|
||||
|
||||
54781
dist/opensourcepos.js
vendored
54781
dist/opensourcepos.js
vendored
File diff suppressed because one or more lines are too long
26
dist/opensourcepos.min.js
vendored
26
dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
129
js/bootstrap.file-input.js
vendored
Normal file
129
js/bootstrap.file-input.js
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
Bootstrap - File Input
|
||||
======================
|
||||
|
||||
This is meant to convert all file input tags into a set of elements that displays consistently in all browsers.
|
||||
|
||||
Converts all
|
||||
<input type="file">
|
||||
into Bootstrap buttons
|
||||
<a class="btn">Browse</a>
|
||||
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
$.fn.bootstrapFileInput = function() {
|
||||
|
||||
this.each(function(i,elem){
|
||||
|
||||
var $elem = $(elem);
|
||||
|
||||
// Maybe some fields don't need to be standardized.
|
||||
if (typeof $elem.attr('data-bfi-disabled') != 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Set the word to be displayed on the button
|
||||
var buttonWord = 'Browse';
|
||||
|
||||
if (typeof $elem.attr('title') != 'undefined') {
|
||||
buttonWord = $elem.attr('title');
|
||||
}
|
||||
|
||||
var className = '';
|
||||
|
||||
if (!!$elem.attr('class')) {
|
||||
className = ' ' + $elem.attr('class');
|
||||
}
|
||||
|
||||
// Now we're going to wrap that input field with a Bootstrap button.
|
||||
// The input will actually still be there, it will just be float above and transparent (done with the CSS).
|
||||
$elem.wrap('<a class="file-input-wrapper btn btn-default ' + className + '"></a>').parent().prepend($('<span></span>').html(buttonWord));
|
||||
})
|
||||
|
||||
// After we have found all of the file inputs let's apply a listener for tracking the mouse movement.
|
||||
// This is important because the in order to give the illusion that this is a button in FF we actually need to move the button from the file input under the cursor. Ugh.
|
||||
.promise().done( function(){
|
||||
|
||||
// As the cursor moves over our new Bootstrap button we need to adjust the position of the invisible file input Browse button to be under the cursor.
|
||||
// This gives us the pointer cursor that FF denies us
|
||||
$('.file-input-wrapper').mousemove(function(cursor) {
|
||||
|
||||
var input, wrapper,
|
||||
wrapperX, wrapperY,
|
||||
inputWidth, inputHeight,
|
||||
cursorX, cursorY;
|
||||
|
||||
// This wrapper element (the button surround this file input)
|
||||
wrapper = $(this);
|
||||
// The invisible file input element
|
||||
input = wrapper.find("input");
|
||||
// The left-most position of the wrapper
|
||||
wrapperX = wrapper.offset().left;
|
||||
// The top-most position of the wrapper
|
||||
wrapperY = wrapper.offset().top;
|
||||
// The with of the browsers input field
|
||||
inputWidth= input.width();
|
||||
// The height of the browsers input field
|
||||
inputHeight= input.height();
|
||||
//The position of the cursor in the wrapper
|
||||
cursorX = cursor.pageX;
|
||||
cursorY = cursor.pageY;
|
||||
|
||||
//The positions we are to move the invisible file input
|
||||
// The 20 at the end is an arbitrary number of pixels that we can shift the input such that cursor is not pointing at the end of the Browse button but somewhere nearer the middle
|
||||
moveInputX = cursorX - wrapperX - inputWidth + 20;
|
||||
// Slides the invisible input Browse button to be positioned middle under the cursor
|
||||
moveInputY = cursorY- wrapperY - (inputHeight/2);
|
||||
|
||||
// Apply the positioning styles to actually move the invisible file input
|
||||
input.css({
|
||||
left:moveInputX,
|
||||
top:moveInputY
|
||||
});
|
||||
});
|
||||
|
||||
$('body').on('change', '.file-input-wrapper input[type=file]', function(){
|
||||
|
||||
var fileName;
|
||||
fileName = $(this).val();
|
||||
|
||||
// Remove any previous file names
|
||||
$(this).parent().next('.file-input-name').remove();
|
||||
if (!!$(this).prop('files') && $(this).prop('files').length > 1) {
|
||||
fileName = $(this)[0].files.length+' files';
|
||||
}
|
||||
else {
|
||||
fileName = fileName.substring(fileName.lastIndexOf('\\') + 1, fileName.length);
|
||||
}
|
||||
|
||||
// Don't try to show the name if there is none
|
||||
if (!fileName) {
|
||||
return;
|
||||
}
|
||||
|
||||
var selectedFileNamePlacement = $(this).data('filename-placement');
|
||||
if (selectedFileNamePlacement === 'inside') {
|
||||
// Print the fileName inside
|
||||
$(this).siblings('span').html(fileName);
|
||||
$(this).attr('title', fileName);
|
||||
} else {
|
||||
// Print the fileName aside (right after the the button)
|
||||
$(this).parent().after('<span class="file-input-name">'+fileName+'</span>');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
// Add the styles before the first stylesheet
|
||||
// This ensures they can be easily overridden with developer styles
|
||||
var cssHtml = '<style>'+
|
||||
'.file-input-wrapper { overflow: hidden; position: relative; cursor: pointer; z-index: 1; }'+
|
||||
'.file-input-wrapper input[type=file], .file-input-wrapper input[type=file]:focus, .file-input-wrapper input[type=file]:hover { position: absolute; top: 0; left: 0; cursor: pointer; opacity: 0; filter: alpha(opacity=0); z-index: 99; outline: 0; }'+
|
||||
'.file-input-name { margin-left: 8px; }'+
|
||||
'</style>';
|
||||
$('link[rel=stylesheet]').eq(0).before(cssHtml);
|
||||
|
||||
})(jQuery);
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<?php if ($this->input->cookie('debug') == "true" || $this->input->get("debug") == "true") : ?>
|
||||
<!-- start js template tags -->
|
||||
<script type="text/javascript" src="js/jquery-1.8.3.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery-1.12.0.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery-ui-1.11.4.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery-ui-timepicker-addon.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery.ajax_queue.js" language="javascript"></script>
|
||||
@@ -25,6 +25,8 @@
|
||||
<script type="text/javascript" src="js/jquery.tablesorter-2.20.1.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery.tablesorter.staticrow.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/jquery.validate-1.13.1-min.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/bootstrap-3.3.6.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/bootstrap.file-input.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/common.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/date.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="js/imgpreview.full.jquery.js" language="javascript"></script>
|
||||
@@ -36,7 +38,7 @@
|
||||
<!-- end js template tags -->
|
||||
<?php else : ?>
|
||||
<!-- start minjs template tags -->
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=946c014a6d" language="javascript"></script>
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=96f6785349" language="javascript"></script>
|
||||
<!-- end minjs template tags -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ config_barcode_width,Breite (px),Breedte (px),Ancho (px),Width (px),Width (px),W
|
||||
config_barcode_generate_if_empty,Generiere Barcode wenn leer,Genereer indien leeg,Generate if empty,Generate if empty,Generate if empty,Generate if empty,Generate if empty,Generate if empty,Generate if empty,Generate if empty
|
||||
config_company,Firmenname,Bedrijfsnaam,Nombre del Comercio,Company Name,Nome de l\'Entreprise,公司名稱,Название Компании,ชื่อร้านค้า,Şirket Adı,Nama Perusahaan
|
||||
config_company_logo,Logo,Logo,Logotipo del Comercio,Company Logo,Company Logo,Company Logo,Company Logo,ภาพโลโก้,Company Logo,Company Logo
|
||||
config_company_choose_file,,,,Choose File,,,,,,
|
||||
config_company_required,Firmenname ist erforderlich,De bedrijfsnaam moet ingevuld worden,Nombre del Comercio es requerido,Company name is a required field,Le nom d\'entreprise est requis,公司名稱為必填,Имя Компании обязательный пробел,ชื่อร้านค้าต้องกรอก,Şirket Adı zorunlu alandır,Nama Perusahaan wajib diisi
|
||||
config_company_website_url,Webseite ist nicht in korrektem Format,De website van het bedrijf is geen geldige URL (http://...),Sitio Web no es una URL estándar (http://...),Company website is not a valid URL (http://...),Le site web de l\'entreprise n\'est pas une URL valide (http://...),公司網址格式錯誤 (http://...),Веб-сайт Компании не является допустимым URL (http://...),เว็บไซต์ร้านค้าไม่ถูกต้อง,website adresi yanlış (http://...),Situs Perusahaan bukan URL yang benar(http://...)
|
||||
config_currency_side,Pos. rechts,Rechterkant,Lado derecho,Right side,Symbole à droite,Right side,Правая сторона,ด้านขวา,Sağda,Sisi Kanan
|
||||
|
||||
|
Reference in New Issue
Block a user