mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-25 00:44:03 -04:00
Bulk View changes.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<?php echo form_open('attributes/save_definition/' . esc($definition_id, 'attr'), ['id' => 'attribute_form', 'class' => 'form-horizontal']) //TODO: String Interpolation?>
|
||||
<?php echo form_open('attributes/save_definition/' . esc($definition_id), ['id' => 'attribute_form', 'class' => 'form-horizontal']) //TODO: String Interpolation?>
|
||||
<fieldset id="attribute_basic_info">
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
@@ -23,7 +23,7 @@
|
||||
'name' => 'definition_name',
|
||||
'id' => 'definition_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value'=>esc($definition_info->definition_name, 'attr')
|
||||
'value'=>esc($definition_info->definition_name)
|
||||
]
|
||||
) ?>
|
||||
</div>
|
||||
@@ -41,8 +41,8 @@
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown(
|
||||
'definition_group',
|
||||
esc($definition_group, 'attr'),
|
||||
esc($definition_info->definition_fk, 'attr'),
|
||||
esc($definition_group),
|
||||
esc($definition_info->definition_fk),
|
||||
'id="definition_group" class="form-control" ' . (empty($definition_group) ? 'disabled="disabled"' : '')
|
||||
) ?>
|
||||
</div>
|
||||
@@ -54,8 +54,8 @@
|
||||
<div class="input-group">
|
||||
<?php echo form_multiselect(
|
||||
'definition_flags[]',
|
||||
esc($definition_flags, 'attr'),
|
||||
esc(array_keys($selected_definition_flags), 'attr'),
|
||||
esc($definition_flags),
|
||||
esc(array_keys($selected_definition_flags)),
|
||||
[
|
||||
'id' => 'definition_flags',
|
||||
'class' => 'selectpicker show-menu-arrow',
|
||||
@@ -75,7 +75,7 @@
|
||||
<div class="input-group">
|
||||
<?php echo form_input ([
|
||||
'name' => 'definition_unit',
|
||||
'value' => esc($definition_info->definition_unit, 'attr'),
|
||||
'value' => esc($definition_info->definition_unit),
|
||||
'class' => 'form-control input-sm',
|
||||
'id' => 'definition_unit'
|
||||
]) ?>
|
||||
@@ -274,4 +274,4 @@ $(document).ready(function()
|
||||
}
|
||||
}, form_support.error));
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Attributes.definition_name'), 'definition_name_label', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('definition_name', esc($definition_names, 'attr'), -1, ['id' => 'definition_name', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('definition_name', esc($definition_names), -1, ['id' => 'definition_name', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -19,18 +19,18 @@ foreach($definition_values as $definition_id => $definition_value)
|
||||
?>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(esc($definition_value['definition_name']), esc($definition_value['definition_name'], 'attr'), ['class' => 'control-label col-xs-3']) ?>
|
||||
<?php echo form_label(esc($definition_value['definition_name']), esc($definition_value['definition_name']), ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<div class="input-group">
|
||||
<?php
|
||||
echo form_hidden(esc("attribute_ids[$definition_id]", 'attr'), esc($definition_value['attribute_id'], 'attr'));
|
||||
echo form_hidden(esc("attribute_ids[$definition_id]"), esc($definition_value['attribute_id']));
|
||||
$attribute_value = $definition_value['attribute_value'];
|
||||
|
||||
if ($definition_value['definition_type'] == DATE)
|
||||
{
|
||||
$value = (empty($attribute_value) || empty($attribute_value->attribute_date)) ? NOW : strtotime($attribute_value->attribute_date);
|
||||
echo form_input ([
|
||||
'name' => esc("attribute_links[$definition_id]", 'attr'),
|
||||
'name' => esc("attribute_links[$definition_id]"),
|
||||
'value' => to_date($value),
|
||||
'class' => 'form-control input-sm datetime',
|
||||
'data-definition-id' => $definition_id,
|
||||
@@ -40,17 +40,17 @@ foreach($definition_values as $definition_id => $definition_value)
|
||||
else if ($definition_value['definition_type'] == DROPDOWN) //TODO: === ?
|
||||
{
|
||||
$selected_value = $definition_value['selected_value'];
|
||||
echo form_dropdown(esc("attribute_links[$definition_id]", 'attr'), esc($definition_value['values'], 'attr'), esc($selected_value, 'attr'), "class='form-control' data-definition-id='$definition_id'");
|
||||
echo form_dropdown(esc("attribute_links[$definition_id]"), esc($definition_value['values']), esc($selected_value), "class='form-control' data-definition-id='$definition_id'");
|
||||
}
|
||||
else if ($definition_value['definition_type'] == TEXT) //TODO: === ?
|
||||
{
|
||||
$value = (empty($attribute_value) || empty($attribute_value->attribute_value)) ? $definition_value['selected_value'] : $attribute_value->attribute_value;
|
||||
echo form_input(esc("attribute_links[$definition_id]"), esc($value, 'attr'), "class='form-control valid_chars' data-definition-id='$definition_id'");
|
||||
echo form_input(esc("attribute_links[$definition_id]"), esc($value), "class='form-control valid_chars' data-definition-id='$definition_id'");
|
||||
}
|
||||
else if ($definition_value['definition_type'] == DECIMAL) //TODO: === ?
|
||||
{
|
||||
$value = (empty($attribute_value) || empty($attribute_value->attribute_decimal)) ? $definition_value['selected_value'] : $attribute_value->attribute_decimal;
|
||||
echo form_input(esc("attribute_links[$definition_id]"), esc($value, 'attr'), "class='form-control valid_chars' data-definition-id='$definition_id'");
|
||||
echo form_input(esc("attribute_links[$definition_id]"), esc($value), "class='form-control valid_chars' data-definition-id='$definition_id'");
|
||||
}
|
||||
else if ($definition_value['definition_type'] == CHECKBOX) //TODO: === ?
|
||||
{
|
||||
@@ -59,13 +59,13 @@ foreach($definition_values as $definition_id => $definition_value)
|
||||
//Sends 0 if the box is unchecked instead of not sending anything.
|
||||
echo form_input ([
|
||||
'type' => 'hidden',
|
||||
'name' => esc("attribute_links[$definition_id]", 'attr'),
|
||||
'name' => esc("attribute_links[$definition_id]"),
|
||||
'id' => "attribute_links[$definition_id]",
|
||||
'value' => 0,
|
||||
'data-definition-id' => $definition_id
|
||||
]);
|
||||
echo form_checkbox ([
|
||||
'name' => esc("attribute_links[$definition_id]", 'attr'),
|
||||
'name' => esc("attribute_links[$definition_id]"),
|
||||
'id' => "attribute_links[$definition_id]",
|
||||
'value' => 1,
|
||||
'checked' => ($value ? 1 : 0),
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<?php echo form_open(esc('cashups/save/'.$cash_ups_info->cashup_id, 'attr'), ['id' => 'cashups_edit_form', 'class' => 'form-horizontal']) //TODO: String Interpolation ?>
|
||||
<?php echo form_open(esc('cashups/save/'.$cash_ups_info->cashup_id), ['id' => 'cashups_edit_form', 'class' => 'form-horizontal']) //TODO: String Interpolation ?>
|
||||
<fieldset id="item_basic_info">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Cashups.info'), 'cash_ups_info', ['class' => 'control-label col-xs-3']) ?>
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Cashups.open_employee'), 'open_employee', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('open_employee_id', esc($employees, 'attr'), $cash_ups_info->open_employee_id, 'id="open_employee_id" class="form-control"') ?>
|
||||
<?php echo form_dropdown('open_employee_id', esc($employees), $cash_ups_info->open_employee_id, 'id="open_employee_id" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Cashups.close_employee'), 'close_employee', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('close_employee_id', esc($employees, 'attr'), $cash_ups_info->close_employee_id, 'id="close_employee_id" class="form-control"') ?>
|
||||
<?php echo form_dropdown('close_employee_id', esc($employees), $cash_ups_info->close_employee_id, 'id="close_employee_id" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ $(document).ready(function()
|
||||
<span class="glyphicon glyphicon-print"> </span><?php echo lang('Common.print') ?>
|
||||
</button>
|
||||
<button class='btn btn-info btn-sm pull-right modal-dlg' data-btn-submit='<?php echo lang('Common.submit') ?>' data-href='<?php echo site_url($controller_name."/view") //TODO: String Interpolation ?>'
|
||||
title='<?php echo lang(esc($controller_name, 'attr') . '.new') //TODO: String Interpolation?>'>
|
||||
title='<?php echo lang(esc($controller_name) . '.new') //TODO: String Interpolation?>'>
|
||||
<span class="glyphicon glyphicon-tags"> </span><?php echo lang(esc($controller_name) . '.new') //TODO: String Interpolation ?>
|
||||
</button>
|
||||
</div>
|
||||
@@ -59,7 +59,7 @@ $(document).ready(function()
|
||||
</button>
|
||||
|
||||
<?php echo form_input (['name' => 'daterangepicker', 'class' => 'form-control input-sm', 'id' => 'daterangepicker']) ?>
|
||||
<?php echo form_multiselect('filters[]', esc($filters, 'attr'), [''], [
|
||||
<?php echo form_multiselect('filters[]', esc($filters), [''], [
|
||||
'id' => 'filters',
|
||||
'data-none-selected-text'=>lang('Common.none_selected_text'),
|
||||
'class' => 'selectpicker show-menu-arrow',
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.barcode_type'), 'barcode_type', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('barcode_type', esc($support_barcode, 'attr'), esc($config['barcode_type'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('barcode_type', esc($support_barcode), esc($config['barcode_type']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
<div class='col-sm-2'>
|
||||
<?php echo form_dropdown(
|
||||
'barcode_font',
|
||||
esc($this->barcode_lib->listfonts('fonts'), 'attr'),
|
||||
esc($config['barcode_font'], 'attr'),
|
||||
esc($this->barcode_lib->listfonts('fonts')),
|
||||
esc($config['barcode_font']),
|
||||
['class' => 'form-control input-sm required']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -125,7 +125,7 @@
|
||||
echo form_dropdown ([
|
||||
'name' => 'barcode_formats[]',
|
||||
'id' => 'barcode_formats',
|
||||
'options' => !empty($barcode_formats) ? esc(array_combine($barcode_formats, $barcode_formats), 'attr') : [],
|
||||
'options' => !empty($barcode_formats) ? esc(array_combine($barcode_formats, $barcode_formats)) : [],
|
||||
'multiple' => 'multiple',
|
||||
'data-role' => 'tagsinput']) ?>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
'sendmail' => 'sendmail',
|
||||
'smtp' => 'smtp'
|
||||
],
|
||||
esc($config['protocol'], 'attr'),
|
||||
esc($config['protocol']),
|
||||
['class' => 'form-control input-sm', 'id' => 'protocol'])
|
||||
?>
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
'name' => 'mailpath',
|
||||
'id' => 'mailpath',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['mailpath'], 'attr')
|
||||
'value' => esc($config['mailpath'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@
|
||||
'name' => 'smtp_host',
|
||||
'id' => 'smtp_host',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['smtp_host'], 'attr')
|
||||
'value' => esc($config['smtp_host'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,7 +63,7 @@
|
||||
'tls' => 'TLS',
|
||||
'ssl' => 'SSL'
|
||||
],
|
||||
esc($config['smtp_crypto'], 'attr'),
|
||||
esc($config['smtp_crypto']),
|
||||
['class' => 'form-control input-sm', 'id' => 'smtp_crypto'])
|
||||
?>
|
||||
</div>
|
||||
@@ -90,7 +90,7 @@
|
||||
'name' => 'smtp_user',
|
||||
'id' => 'smtp_user',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['smtp_user'], 'attr')
|
||||
'value' => esc($config['smtp_user'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +105,7 @@
|
||||
'name' => 'smtp_pass',
|
||||
'id' => 'smtp_pass',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['smtp_pass'], 'attr')
|
||||
'value' => esc($config['smtp_pass'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class='col-sm-10'>
|
||||
<div class="form-group form-group-sm row">
|
||||
<div class='col-sm-3'>
|
||||
<?php echo form_dropdown('theme', $themes, esc($config['theme'], 'attr'), ['class' => 'form-control input-sm', 'id' => 'theme-change']) ?>
|
||||
<?php echo form_dropdown('theme', $themes, esc($config['theme']), ['class' => 'form-control input-sm', 'id' => 'theme-change']) ?>
|
||||
</div>
|
||||
<div class="col-sm-7">
|
||||
<a href="<?php echo 'https://bootswatch.com/3/' . ('bootstrap' == ($config['theme']) ? 'default' : esc($config['theme'])) ?>" target="_blank" rel=”noopener”>
|
||||
@@ -38,7 +38,7 @@
|
||||
'floating_labels' => lang('Config.floating_labels'),
|
||||
'input_groups' => lang('Config.input_groups')
|
||||
],
|
||||
esc($config['login_form'], 'attr'),
|
||||
esc($config['login_form']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@
|
||||
'data-toggle' => 'toggle',
|
||||
'data-size' => 'normal',
|
||||
'data-onstyle' => 'success',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol'], 'attr').'</b>',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol']).'</b>',
|
||||
'data-off' => '<b>%</b>',
|
||||
'checked' => $config['default_sales_discount_type']
|
||||
]) ?>
|
||||
@@ -95,7 +95,7 @@
|
||||
'data-toggle' => 'toggle',
|
||||
'data-size' => 'normal',
|
||||
'data-onstyle' => 'success',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol'], 'attr') . '</b>',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol']) . '</b>',
|
||||
'data-off' => '<b>%</b>',
|
||||
'checked' => $config['default_receivings_discount_type']
|
||||
]) ?>
|
||||
@@ -158,7 +158,7 @@
|
||||
'top' => lang('Config.top'),
|
||||
'bottom' => lang('Config.bottom')
|
||||
],
|
||||
esc($config['notify_vertical_position'], 'attr'),
|
||||
esc($config['notify_vertical_position']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -170,7 +170,7 @@
|
||||
'center' => lang('Config.center'),
|
||||
'right' => lang('Config.right')
|
||||
],
|
||||
esc($config['notify_horizontal_position'], 'attr'),
|
||||
esc($config['notify_horizontal_position']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -274,7 +274,7 @@
|
||||
'name' => 'gcaptcha_site_key',
|
||||
'id' => 'gcaptcha_site_key',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value' => esc($config['gcaptcha_site_key'], 'attr')
|
||||
'value' => esc($config['gcaptcha_site_key'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -286,7 +286,7 @@
|
||||
'name' => 'gcaptcha_secret_key',
|
||||
'id' => 'gcaptcha_secret_key',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value' => esc($config['gcaptcha_secret_key'], 'attr')
|
||||
'value' => esc($config['gcaptcha_secret_key'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -306,7 +306,7 @@
|
||||
'unit_price' => lang('Items.unit_price'),
|
||||
'cost_price' => lang('Items.cost_price')
|
||||
],
|
||||
esc($config['suggestions_first_column'], 'attr'),
|
||||
esc($config['suggestions_first_column']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -323,7 +323,7 @@
|
||||
'unit_price' => lang('Items.unit_price'),
|
||||
'cost_price' => lang('Items.cost_price')
|
||||
],
|
||||
esc($config['suggestions_second_column'], 'attr'),
|
||||
esc($config['suggestions_second_column']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -340,7 +340,7 @@
|
||||
'unit_price' => lang('Items.unit_price'),
|
||||
'cost_price' => lang('Items.cost_price')
|
||||
],
|
||||
esc($config['suggestions_third_column'], 'attr'),
|
||||
esc($config['suggestions_third_column']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
'name' => 'address',
|
||||
'id' => 'address',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value'=> $config['address'], 'attr'
|
||||
'value'=> $config['address']
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
'name' => 'mailchimp_api_key',
|
||||
'id' => 'mailchimp_api_key',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($mailchimp['api_key'], 'attr')
|
||||
'value' => esc($mailchimp['api_key'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,8 +38,8 @@
|
||||
<span class="input-group-addon input-sm"><span class="glyphicon glyphicon-user"></span></span>
|
||||
<?php echo form_dropdown(
|
||||
'mailchimp_list_id',
|
||||
esc($mailchimp['lists'], 'attr'),
|
||||
esc($mailchimp['list_id'], 'attr'),
|
||||
esc($mailchimp['lists']),
|
||||
esc($mailchimp['list_id']),
|
||||
['id' => 'mailchimp_list_id', 'class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.invoice_type'), 'invoice_type', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-3'>
|
||||
<?php echo form_dropdown('invoice_type', esc($invoice_type_options, 'attr'), esc($config['invoice_type'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('invoice_type', esc($invoice_type_options), esc($config['invoice_type']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
'name' => 'recv_invoice_format',
|
||||
'id' => 'recv_invoice_format',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['recv_invoice_format'], 'attr')
|
||||
'value' => esc($config['recv_invoice_format'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,7 +48,7 @@
|
||||
'name' => 'invoice_default_comments',
|
||||
'id' => 'invoice_default_comments',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['invoice_default_comments'], 'attr')
|
||||
'value' => esc($config['invoice_default_comments'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@
|
||||
'name' => 'invoice_email_message',
|
||||
'id' => 'invoice_email_message',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['invoice_email_message'], 'attr')
|
||||
'value' => esc($config['invoice_email_message'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.line_sequence'), 'line_sequence', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('line_sequence', esc($line_sequence_options, 'attr'), esc($config['line_sequence'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('line_sequence', esc($line_sequence_options), esc($config['line_sequence']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
'name' => 'sales_invoice_format',
|
||||
'id' => 'sales_invoice_format',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['sales_invoice_format'], 'attr')
|
||||
'value' => esc($config['sales_invoice_format'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,7 +104,7 @@
|
||||
'name' => 'sales_quote_format',
|
||||
'id' => 'sales_quote_format',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['sales_quote_format'], 'attr')
|
||||
'value' => esc($config['sales_quote_format'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -129,7 +129,7 @@
|
||||
'name' => 'quote_default_comments',
|
||||
'id' => 'quote_default_comments',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['quote_default_comments'], 'attr')
|
||||
'value' => esc($config['quote_default_comments'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -153,7 +153,7 @@
|
||||
'name' => 'work_order_format',
|
||||
'id' => 'work_order_format',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['work_order_format'], 'attr')
|
||||
'value' => esc($config['work_order_format'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
{
|
||||
?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(esc($license['title'], 'attr'), 'license', ['class' => 'control-label col-xs-3']) ?>
|
||||
<?php echo form_label(esc($license['title']), 'license', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_textarea ([
|
||||
'name' => 'license',
|
||||
'id' => 'license_' . $counter++, //TODO: String Interpolation
|
||||
'class' => 'form-control',
|
||||
'readonly' => '',
|
||||
'value' => esc($license['text'], 'attr')
|
||||
'value' => esc($license['text'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
<?php echo form_label(lang('Config.number_locale'), 'number_locale', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='row'>
|
||||
<div class='col-xs-1'>
|
||||
<?php echo form_input('number_locale', esc($config['number_locale'], 'attr'), ['class' => 'form-control input-sm', 'id' => 'number_locale']) ?>
|
||||
<?php echo form_hidden('save_number_locale', esc($config['number_locale'], 'attr')) ?>
|
||||
<?php echo form_input('number_locale', esc($config['number_locale']), ['class' => 'form-control input-sm', 'id' => 'number_locale']) ?>
|
||||
<?php echo form_hidden('save_number_locale', esc($config['number_locale'])) ?>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<label class="control-label">
|
||||
@@ -51,7 +51,7 @@
|
||||
'name' => 'currency_symbol',
|
||||
'id' => 'currency_symbol',
|
||||
'class' => 'form-control input-sm number_locale',
|
||||
'value' => esc($config['currency_symbol'], 'attr')
|
||||
'value' => esc($config['currency_symbol'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,7 +63,7 @@
|
||||
'name' => 'currency_code',
|
||||
'id' => 'currency_code',
|
||||
'class' => 'form-control input-sm number_locale',
|
||||
'value' => esc($currency_code, 'attr')
|
||||
'value' => esc($currency_code)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -144,7 +144,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.cash_rounding'), 'cash_rounding_code', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('cash_rounding_code', esc($rounding_options, 'attr'), $config['cash_rounding_code'], ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('cash_rounding_code', esc($rounding_options), $config['cash_rounding_code'], ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
'creditdebitcash' => lang('Sales.credit') . ' / ' . lang('Sales.debit') . ' / ' . lang('Sales.cash'),
|
||||
'creditcashdebit' => lang('Sales.credit') . ' / ' . lang('Sales.cash') . ' / ' . lang('Sales.debit')
|
||||
],
|
||||
esc($config['payment_options_order'], 'attr'),
|
||||
esc($config['payment_options_order']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
@@ -169,7 +169,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.country_codes'), 'country_codes', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-1'>
|
||||
<?php echo form_input('country_codes', esc($config['country_codes'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input('country_codes', esc($config['country_codes']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
<label class="control-label">
|
||||
@@ -197,7 +197,7 @@
|
||||
<?php echo form_dropdown(
|
||||
'timezone',
|
||||
get_timezones(),
|
||||
$config['timezone'] ? esc($config['timezone'], 'attr') : date_default_timezone_get(), ['class' => 'form-control input-sm']) ?>
|
||||
$config['timezone'] ? esc($config['timezone']) : date_default_timezone_get(), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
<?php echo form_dropdown(
|
||||
'dateformat',
|
||||
get_dateformats(),
|
||||
esc($config['dateformat'], 'attr'),
|
||||
esc($config['dateformat']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
'name' => 'msg_uid',
|
||||
'id' => 'msg_uid',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value' => esc($config['msg_uid'], 'attr')
|
||||
'value' => esc($config['msg_uid'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -28,7 +28,7 @@
|
||||
'name' => 'msg_pwd',
|
||||
'id' => 'msg_pwd',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value' => esc($config['msg_pwd'], 'attr')
|
||||
'value' => esc($config['msg_pwd'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
'name' => 'msg_src',
|
||||
'id' => 'msg_src',
|
||||
'class' => 'form-control input-sm required',
|
||||
'value' => $config['msg_src'] == NULL ? esc($config['company'], 'attr') : esc($config['msg_src'], 'attr')
|
||||
'value' => $config['msg_src'] == NULL ? esc($config['company']) : esc($config['msg_src'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
'receipt_default' => lang('Config.receipt_default'),
|
||||
'receipt_short' => lang('Config.receipt_short')
|
||||
],
|
||||
esc($config['receipt_template'], 'attr'),
|
||||
esc($config['receipt_template']),
|
||||
['class' => 'form-control input-sm']
|
||||
) ?>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
'name' => 'tax_id',
|
||||
'id' => 'tax_id',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['tax_id'], 'attr')
|
||||
'value' => esc($config['tax_id'])
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
'name' => 'default_tax_1_name',
|
||||
'id' => 'default_tax_1_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => $config['default_tax_1_name'] !== FALSE ? esc($config['default_tax_1_name'], 'attr') : lang('Items.sales_tax_1')]) ?>
|
||||
'value' => $config['default_tax_1_name'] !== FALSE ? esc($config['default_tax_1_name']) : lang('Items.sales_tax_1')]) ?>
|
||||
</div>
|
||||
<div class="col-xs-1 input-group">
|
||||
<?php echo form_input ([
|
||||
@@ -63,7 +63,7 @@
|
||||
'name' => 'default_tax_2_name',
|
||||
'id' => 'default_tax_2_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => $config['default_tax_2_name'] !== FALSE ? esc($config['default_tax_2_name'], 'attr') : lang('Items.sales_tax_2')
|
||||
'value' => $config['default_tax_2_name'] !== FALSE ? esc($config['default_tax_2_name']) : lang('Items.sales_tax_2')
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-xs-1 input-group">
|
||||
@@ -92,21 +92,21 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.default_tax_code'), 'default_tax_code', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('default_tax_code', esc($tax_code_options, 'attr'), esc($config['default_tax_code'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('default_tax_code', esc($tax_code_options), esc($config['default_tax_code']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.default_tax_category'), 'default_tax_category', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('default_tax_category', esc($tax_category_options, 'attr'), esc($config['default_tax_category'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('default_tax_category', esc($tax_category_options), esc($config['default_tax_category']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Config.default_tax_jurisdiction'), 'default_tax_jurisdiction', ['class' => 'control-label col-xs-2']) ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_dropdown('default_tax_jurisdiction', esc($tax_jurisdiction_options, 'attr'), esc($config['default_tax_jurisdiction'], 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('default_tax_jurisdiction', esc($tax_jurisdiction_options), esc($config['default_tax_jurisdiction']), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<fieldset id="item_basic_info">
|
||||
<div class="form-group form-group-sm">
|
||||
<div class="col-xs-12">
|
||||
<a href="<?php echo esc(site_url('customers/csv'), 'url') ?>"><?php echo lang('Common.download_import_template') ?></a>
|
||||
<a href="<?php echo esc('customers/csv') ?>"><?php echo lang('Common.download_import_template') ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@ $(document).ready(function()
|
||||
success: function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
table_support.handle_submit('<?php echo esc(site_url('customers'), 'url') ?>', response);
|
||||
table_support.handle_submit('<?php echo esc('customers') ?>', response);
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
'name' => 'username',
|
||||
'id' => 'username',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->username, 'attr')
|
||||
'value' => esc($person_info->username)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<?php $password_label_attributes = $person_info->person_id == "" ? ['class' => 'required'] : []; ?>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Employees.password'), 'password', esc(array_merge($password_label_attributes, ['class' => 'control-label col-xs-3']), 'attr'))?>
|
||||
<?php echo form_label(lang('Employees.password'), 'password', esc(array_merge($password_label_attributes, ['class' => 'control-label col-xs-3'])))?>
|
||||
<div class='col-xs-8'>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon input-sm"><span class="glyphicon glyphicon-lock"></span></span>
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Employees.repeat_password'), 'repeat_password', esc(array_merge($password_label_attributes, ['class' => 'control-label col-xs-3']), 'attr')) ?>
|
||||
<?php echo form_label(lang('Employees.repeat_password'), 'repeat_password', esc(array_merge($password_label_attributes, ['class' => 'control-label col-xs-3']))) ?>
|
||||
<div class='col-xs-8'>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon input-sm"><span class="glyphicon glyphicon-lock"></span></span>
|
||||
@@ -97,8 +97,8 @@
|
||||
|
||||
echo form_dropdown(
|
||||
'language',
|
||||
esc($languages, 'attr'),
|
||||
esc("$language_code:$language", 'attr'),
|
||||
esc($languages),
|
||||
esc("$language_code:$language"),
|
||||
['class' => 'form-control input-sm']
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -78,8 +78,8 @@
|
||||
— <?= esc($row['class'] . $row['type'] . $row['function']) ?>
|
||||
<?php if (! empty($row['args'])) : ?>
|
||||
<?php $args_id = $error_id . 'args' . $index ?>
|
||||
( <a href="#" onclick="return toggle('<?= esc($args_id, 'attr') ?>');">arguments</a> )
|
||||
<div class="args" id="<?= esc($args_id, 'attr') ?>">
|
||||
( <a href="#" onclick="return toggle('<?= esc($args_id) ?>');">arguments</a> )
|
||||
<div class="args" id="<?= esc($args_id) ?>">
|
||||
<table cellspacing="0">
|
||||
|
||||
<?php
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
'name' => 'supplier_tax_code',
|
||||
'id' => 'supplier_tax_code',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($expenses_info->supplier_tax_code, 'attr')
|
||||
'value' => esc($expenses_info->supplier_tax_code)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -111,21 +111,21 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Expenses.payment'), 'payment_type', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('payment_type', esc($payment_options, 'attr'), esc($expenses_info->payment_type, 'attr'), ['class' => 'form-control', 'id' => 'payment_type']) ?>
|
||||
<?php echo form_dropdown('payment_type', esc($payment_options), esc($expenses_info->payment_type), ['class' => 'form-control', 'id' => 'payment_type']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Expenses_categories.name'), 'category', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('expense_category_id', esc($expense_categories, 'attr'), $expenses_info->expense_category_id, ['class' => 'form-control', 'id' => 'category']) ?>
|
||||
<?php echo form_dropdown('expense_category_id', esc($expense_categories), $expenses_info->expense_category_id, ['class' => 'form-control', 'id' => 'category']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Expenses.employee'), 'employee', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('employee_id', esc($employees, 'attr'), $expenses_info->employee_id, 'id="employee_id" class="form-control"') ?>
|
||||
<?php echo form_dropdown('employee_id', esc($employees), $expenses_info->employee_id, 'id="employee_id" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
'name' => 'description',
|
||||
'id' => 'description',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($expenses_info->description, 'attr')
|
||||
'value' => esc($expenses_info->description)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,7 +66,7 @@ $(document).ready(function()
|
||||
</button>
|
||||
|
||||
<?php echo form_input (['name' => 'daterangepicker', 'class' => 'form-control input-sm', 'id' => 'daterangepicker']) ?>
|
||||
<?php echo form_multiselect('filters[]', esc($filters, 'attr'), [''], ['id' => 'filters', 'data-none-selected-text' => lang('Common.none_selected_text'), 'class' => 'selectpicker show-menu-arrow', 'data-selected-text-format' => 'count > 1', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
<?php echo form_multiselect('filters[]', esc($filters), [''], ['id' => 'filters', 'data-none-selected-text' => lang('Common.none_selected_text'), 'class' => 'selectpicker show-menu-arrow', 'data-selected-text-format' => 'count > 1', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
'name' => 'category_name',
|
||||
'id' => 'category_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($category_info->category_name, 'attr')
|
||||
'value' => esc($category_info->category_name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,7 +29,7 @@
|
||||
'name' => 'category_description',
|
||||
'id' => 'category_description',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($category_info->category_description, 'attr')
|
||||
'value' => esc($category_info->category_description)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
'name' => 'person_name',
|
||||
'id' => 'person_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($selected_person_name, 'attr')
|
||||
'value' => esc($selected_person_name)
|
||||
]) ?>
|
||||
<?php echo form_hidden('person_id', $selected_person_id) ?>
|
||||
</div>
|
||||
@@ -41,7 +41,7 @@
|
||||
'name' => 'giftcard_number',
|
||||
'id' => 'giftcard_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($giftcard_number, 'attr')
|
||||
'value' => esc($giftcard_number)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
'name' => 'username',
|
||||
'id' => 'username',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->username, 'attr'),
|
||||
'value' => esc($person_info->username),
|
||||
'readonly' => 'true'
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
'name' => 'item_kit_number',
|
||||
'id' => 'item_kit_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_kit_info->item_kit_number, 'attr')
|
||||
'value' => esc($item_kit_info->item_kit_number)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,7 +35,7 @@
|
||||
'name' => 'name',
|
||||
'id' => 'name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_kit_info->name, 'attr')
|
||||
'value' => esc($item_kit_info->name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@
|
||||
'id' => 'item_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'size' => '50',
|
||||
'value' => esc($selected_kit_item, 'attr')
|
||||
'value' => esc($selected_kit_item)
|
||||
]) ?>
|
||||
<?php echo form_hidden('kit_item_id', $selected_kit_item_id) ?>
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
'name' => 'description',
|
||||
'id' => 'description',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_kit_info->description, 'attr')
|
||||
'value' => esc($item_kit_info->description)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
'name' => 'item_number',
|
||||
'id' => 'item_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_info->item_number, 'attr')
|
||||
'value' => esc($item_info->item_number)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
'name' => 'name',
|
||||
'id' => 'name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_info->name, 'attr')
|
||||
'value' => esc($item_info->name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -64,7 +64,7 @@
|
||||
<?php
|
||||
if($config['category_dropdown'])
|
||||
{
|
||||
echo form_dropdown('category', esc($categories, 'attr'), $selected_category, ['class' => 'form-control']);
|
||||
echo form_dropdown('category', esc($categories), $selected_category, ['class' => 'form-control']);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -72,7 +72,7 @@
|
||||
'name' => 'category',
|
||||
'id' => 'category',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_info->category, 'attr')
|
||||
'value' => esc($item_info->category)
|
||||
]);
|
||||
}
|
||||
?>
|
||||
@@ -183,7 +183,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.supplier'), 'supplier', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('supplier_id', esc($suppliers, 'attr'), $selected_supplier, ['class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('supplier_id', esc($suppliers), $selected_supplier, ['class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
'name' => 'tax_names[]',
|
||||
'id' => 'tax_name_1',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => isset($item_tax_info[0]['name']) ? esc($item_tax_info[0]['name'], 'attr') : esc($config['default_tax_1_name'], 'attr')
|
||||
'value' => isset($item_tax_info[0]['name']) ? esc($item_tax_info[0]['name']) : esc($config['default_tax_1_name'])
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
@@ -263,7 +263,7 @@
|
||||
'name' => 'tax_names[]',
|
||||
'id' => 'tax_name_2',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => isset($item_tax_info[1]['name']) ? esc($item_tax_info[1]['name'], 'attr') : esc($config['default_tax_2_name'], 'attr')
|
||||
'value' => isset($item_tax_info[1]['name']) ? esc($item_tax_info[1]['name']) : esc($config['default_tax_2_name'])
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
@@ -292,7 +292,7 @@
|
||||
'id' => 'tax_category',
|
||||
'class' => 'form-control input-sm',
|
||||
'size' => '50',
|
||||
'value' => esc($tax_category, 'attr')
|
||||
'value' => esc($tax_category)
|
||||
]) ?><?php echo form_hidden('tax_category_id', $tax_category_id) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -308,7 +308,7 @@
|
||||
'name' => 'hsn_code',
|
||||
'id' => 'hsn_code',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($hsn_code, 'attr')
|
||||
'value' => esc($hsn_code)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -368,7 +368,7 @@
|
||||
'name' => 'description',
|
||||
'id' => 'description',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_info->description, 'attr')
|
||||
'value' => esc($item_info->description)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -441,7 +441,7 @@
|
||||
'name' => 'pack_name',
|
||||
'id' => 'pack_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item_info->pack_name, 'attr')
|
||||
'value' => esc($item_info->pack_name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -453,7 +453,7 @@
|
||||
'name' => 'low_sell_item_name',
|
||||
'id' => 'low_sell_item_name',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($selected_low_sell_item, 'attr')
|
||||
'value' => esc($selected_low_sell_item)
|
||||
]) ?><?php echo form_hidden('low_sell_item_id', $selected_low_sell_item_id) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.supplier'), 'supplier', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('supplier_id', esc($suppliers, 'attr'), '', ['class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('supplier_id', esc($suppliers), '', ['class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
'name' => 'tax_names[]',
|
||||
'id' => 'tax_name_1',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['default_tax_1_name'], 'attr')
|
||||
'value' => esc($config['default_tax_1_name'])
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
@@ -112,7 +112,7 @@
|
||||
'name' => 'tax_names[]',
|
||||
'id' => 'tax_name_2',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($config['default_tax_2_name'], 'attr')
|
||||
'value' => esc($config['default_tax_2_name'])
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
@@ -153,14 +153,14 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.allow_alt_description'), 'allow_alt_description', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('allow_alt_description', esc($allow_alt_description_choices, 'attr'), '', ['class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('allow_alt_description', esc($allow_alt_description_choices), '', ['class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.is_serialized'), 'is_serialized', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('is_serialized', esc($serialization_choices, 'attr'), '', ['class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('is_serialized', esc($serialization_choices), '', ['class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
@@ -20,7 +20,7 @@ use App\Models\Employee;
|
||||
'id' => 'item_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->item_number, 'attr')
|
||||
'value' => esc($item_info->item_number)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@ use App\Models\Employee;
|
||||
'id' => 'name',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->name, 'attr')
|
||||
'value' => esc($item_info->name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@ use App\Models\Employee;
|
||||
'id' => 'category',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->category, 'attr')
|
||||
'value' => esc($item_info->category)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,7 +58,7 @@ use App\Models\Employee;
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.stock_location'), 'stock_location', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations, 'attr'), current($stock_locations), ['onchange' => 'display_stock(this.value);', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations), current($stock_locations), ['onchange' => 'display_stock(this.value);', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
'id' => 'item_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->item_number, 'attr')
|
||||
'value' => esc($item_info->item_number)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -36,7 +36,7 @@
|
||||
'id' => 'name',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->name, 'attr')
|
||||
'value' => esc($item_info->name)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
'id' => 'category',
|
||||
'class' => 'form-control input-sm',
|
||||
'disabled' => '',
|
||||
'value' => esc($item_info->category, 'attr')
|
||||
'value' => esc($item_info->category)
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Items.stock_location'), 'stock_location', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations, 'attr'), current($stock_locations), ['onchange' => 'fill_quantity(this.value)', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations), current($stock_locations), ['onchange' => 'fill_quantity(this.value)', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ $(document).ready(function()
|
||||
<?php echo form_input (['name' => 'daterangepicker', 'class' => 'form-control input-sm', 'id' => 'daterangepicker']) ?>
|
||||
<?php echo form_multiselect(
|
||||
'filters[]',
|
||||
esc($filters, 'attr'),
|
||||
esc($filters),
|
||||
[''],
|
||||
[
|
||||
'id' => 'filters',
|
||||
@@ -114,7 +114,7 @@ $(document).ready(function()
|
||||
{
|
||||
echo form_dropdown(
|
||||
'stock_location',
|
||||
esc($stock_locations, 'attr'),
|
||||
esc($stock_locations),
|
||||
$stock_location,
|
||||
[
|
||||
'id' => 'stock_location',
|
||||
|
||||
@@ -8,18 +8,18 @@
|
||||
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<?php echo form_open(esc("messages/send_form/$person_info->person_id", 'attr'), ['id' => 'send_sms_form', 'class' => 'form-horizontal']) ?>
|
||||
<?php echo form_open(esc("messages/send_form/$person_info->person_id"), ['id' => 'send_sms_form', 'class' => 'form-horizontal']) ?>
|
||||
<fieldset>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Messages.first_name'), 'first_name_label', ['for' => 'first_name', 'class' => 'control-label col-xs-2']) ?>
|
||||
<div class="col-xs-10">
|
||||
<?php echo form_input (['class' => 'form-control input-sm', 'type' => 'text', 'name' => 'first_name', 'value' => esc($person_info->first_name, 'attr'), 'readonly' => 'true']) ?>
|
||||
<?php echo form_input (['class' => 'form-control input-sm', 'type' => 'text', 'name' => 'first_name', 'value' => esc($person_info->first_name), 'readonly' => 'true']) ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Messages.last_name'), 'last_name_label', ['for' => 'last_name', 'class' => 'control-label col-xs-2']) ?>
|
||||
<div class="col-xs-10">
|
||||
<?php echo form_input (['class' => 'form-control input-sm', 'type' => 'text', 'name' => 'last_name', 'value' => esc($person_info->last_name, 'attr'), 'readonly' => 'true']) ?>
|
||||
<?php echo form_input (['class' => 'form-control input-sm', 'type' => 'text', 'name' => 'last_name', 'value' => esc($person_info->last_name), 'readonly' => 'true']) ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-group-sm">
|
||||
@@ -27,14 +27,14 @@
|
||||
<div class="col-xs-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon input-sm"><span class="glyphicon glyphicon-phone-alt"></span></span>
|
||||
<?php echo form_input (['class' => 'form-control input-sm required', 'type' => 'text', 'name' => 'phone', 'value' => esc($person_info->phone_number, 'attr')]) ?>
|
||||
<?php echo form_input (['class' => 'form-control input-sm required', 'type' => 'text', 'name' => 'phone', 'value' => esc($person_info->phone_number)]) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Messages.message'), 'message_label', ['for' => 'message', 'class' => 'control-label col-xs-2 required']) ?>
|
||||
<div class="col-xs-10">
|
||||
<?php echo form_textarea (['class' => 'form-control input-sm required', 'name' => 'message', 'id' => 'message', 'value' => esc($config['msg_msg'], 'attr')]) ?>
|
||||
<?php echo form_textarea (['class' => 'form-control input-sm required', 'name' => 'message', 'id' => 'message', 'value' => esc($config['msg_msg'])]) ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
@@ -18,10 +18,10 @@ foreach($dinner_tables as $table_key => $table)
|
||||
|
||||
<div class='col-xs-2'>
|
||||
<?php $form_data = [
|
||||
'name' => esc("dinner_table_$dinner_table_id", 'attr'),
|
||||
'id' => esc("dinner_table_$dinner_table_id", 'attr'),
|
||||
'name' => esc("dinner_table_$dinner_table_id"),
|
||||
'id' => esc("dinner_table_$dinner_table_id"),
|
||||
'class' => 'dinner_table valid_chars form-control input-sm required',
|
||||
'value' => esc($dinner_table_name, 'attr')
|
||||
'value' => esc($dinner_table_name)
|
||||
];
|
||||
$table['deleted'] && $form_data['disabled'] = 'disabled';
|
||||
echo form_input($form_data);
|
||||
|
||||
@@ -62,7 +62,7 @@ $request = Services::request();
|
||||
</div>
|
||||
|
||||
<div class="navbar-right" style="margin:0">
|
||||
<?= anchor(esc("home/change_password/$user_info->person_id", 'url'), esc("$user_info->first_name $user_info->last_name", 'attr'), ['class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), 'title' => lang('Employees.change_password')]) ?>
|
||||
<?= anchor(esc("home/change_password/$user_info->person_id", 'url'), esc("$user_info->first_name $user_info->last_name"), ['class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), 'title' => lang('Employees.change_password')]) ?>
|
||||
<?= ' | ' . ((ENVIRONMENT == 'development' || $request->getGet('debugdebug') == 'true') ? session('session_sha1') . ' | ' : '') ?>
|
||||
<?= anchor('home/logout', lang('Login.logout')) ?>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@ foreach($stock_locations as $location => $location_data)
|
||||
'name' => "stock_location[$location_id]",
|
||||
'id' => "stock_location[$location_id]",
|
||||
'class' => 'stock_location valid_chars form-control input-sm required',
|
||||
'value' => esc($location_name, 'attr')
|
||||
'value' => esc($location_name)
|
||||
];
|
||||
$location_data['deleted'] && $form_data['disabled'] = 'disabled';
|
||||
echo form_input($form_data);
|
||||
|
||||
@@ -21,7 +21,7 @@ foreach($tax_categories as $key => $category)
|
||||
'id' => "tax_category_$i",
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder' => lang('Taxes.tax_category_name'),
|
||||
'value' => esc($tax_category, 'attr')
|
||||
'value' => esc($tax_category)
|
||||
];
|
||||
echo form_input($form_data);
|
||||
?>
|
||||
@@ -31,7 +31,7 @@ foreach($tax_categories as $key => $category)
|
||||
'name' => 'tax_group_sequence[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder' => lang('Taxes.sequence'),
|
||||
'value' => esc($tax_group_sequence, 'attr')
|
||||
'value' => esc($tax_group_sequence)
|
||||
];
|
||||
echo form_input($form_data);
|
||||
?>
|
||||
|
||||
@@ -23,7 +23,7 @@ foreach($tax_codes as $tax_code => $tax_code_data)
|
||||
'id' => "tax_code_$i",
|
||||
'class' => 'valid_chars text-uppercase form-control input-sm',
|
||||
'placeholder' => lang('Taxes.code'),
|
||||
'value' => esc($tax_code, 'attr')
|
||||
'value' => esc($tax_code)
|
||||
];
|
||||
echo form_input($form_data)
|
||||
?>
|
||||
@@ -33,7 +33,7 @@ foreach($tax_codes as $tax_code => $tax_code_data)
|
||||
'name' => 'tax_code_name[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder'=>lang('Taxes.name'),
|
||||
'value' => esc($tax_code_name, 'attr')
|
||||
'value' => esc($tax_code_name)
|
||||
];
|
||||
echo form_input($form_data)
|
||||
?>
|
||||
@@ -43,7 +43,7 @@ foreach($tax_codes as $tax_code => $tax_code_data)
|
||||
'name' => 'city[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder'=>lang('Taxes.city'),
|
||||
'value' => esc($city, 'attr')
|
||||
'value' => esc($city)
|
||||
];
|
||||
echo form_input($form_data)
|
||||
?>
|
||||
@@ -53,7 +53,7 @@ foreach($tax_codes as $tax_code => $tax_code_data)
|
||||
'name' => 'state[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder'=>lang('Taxes.state'),
|
||||
'value' => esc($state, 'attr')
|
||||
'value' => esc($state)
|
||||
];
|
||||
echo form_input($form_data)
|
||||
?>
|
||||
|
||||
@@ -26,7 +26,7 @@ foreach($tax_jurisdictions as $tax_jurisdiction => $jurisdiction)
|
||||
'id' => "jurisdiction_name_$i",
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder' => lang('Taxes.jurisdiction_name'),
|
||||
'value' => esc($jurisdiction_name, 'attr')
|
||||
'value' => esc($jurisdiction_name)
|
||||
];
|
||||
echo form_input($form_data);
|
||||
?>
|
||||
@@ -37,7 +37,7 @@ foreach($tax_jurisdictions as $tax_jurisdiction => $jurisdiction)
|
||||
'name' => 'tax_group[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder' => lang('Taxes.tax_group'),
|
||||
'value' => esc($tax_group, 'attr')
|
||||
'value' => esc($tax_group)
|
||||
];
|
||||
echo form_input($form_data);
|
||||
?>
|
||||
@@ -52,7 +52,7 @@ foreach($tax_jurisdictions as $tax_jurisdiction => $jurisdiction)
|
||||
'name' => 'reporting_authority[]',
|
||||
'class' => 'valid_chars form-control input-sm',
|
||||
'placeholder' => lang('Taxes.reporting_authority'),
|
||||
'value' => esc($reporting_authority, 'attr')
|
||||
'value' => esc($reporting_authority)
|
||||
];
|
||||
echo form_input($form_data)
|
||||
?>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Receivings.supplier'), 'supplier', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_input (['name' => 'supplier_name', 'value' => esc($selected_supplier_name, 'attr'), 'id' => 'supplier_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'supplier_name', 'value' => esc($selected_supplier_name), 'id' => 'supplier_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_hidden('supplier_id', $selected_supplier_id) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,21 +42,21 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Receivings.reference'), 'reference', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_input (['name' => 'reference', 'value' => esc($receiving_info['reference'], 'attr'), 'id' => 'reference', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'reference', 'value' => esc($receiving_info['reference']), 'id' => 'reference', 'class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Receivings.employee'), 'employee', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_dropdown('employee_id', esc($employees, 'attr'), $receiving_info['employee_id'], 'id="employee_id" class="form-control"') ?>
|
||||
<?php echo form_dropdown('employee_id', esc($employees), $receiving_info['employee_id'], 'id="employee_id" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Receivings.comments'), 'comment', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_textarea (['name' => 'comment','value' => esc($receiving_info['comment'], 'attr'), 'id' => 'comment', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_textarea (['name' => 'comment','value' => esc($receiving_info['comment']), 'id' => 'comment', 'class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
</div>
|
||||
|
||||
<div id='barcode'>
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $receiving_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -39,14 +39,14 @@ if (isset($success))
|
||||
|
||||
<!-- Top register controls -->
|
||||
|
||||
<?= form_open(esc("$controller_name/change_mode", 'attr'), ['id' => 'mode_form', 'class' => 'form-horizontal panel panel-default']) ?>
|
||||
<?= form_open(esc("$controller_name/change_mode"), ['id' => 'mode_form', 'class' => 'form-horizontal panel panel-default']) ?>
|
||||
<div class="panel-body form-group">
|
||||
<ul>
|
||||
<li class="pull-left first_li">
|
||||
<label class="control-label"><?php echo lang('Receivings.mode') ?></label>
|
||||
</li>
|
||||
<li class="pull-left">
|
||||
<?php echo form_dropdown('mode', esc($modes, 'attr'), esc($mode, 'attr'), ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
<?php echo form_dropdown('mode', esc($modes), esc($mode), ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
@@ -57,7 +57,7 @@ if (isset($success))
|
||||
<label class="control-label"><?php echo lang('Receivings.stock_source') ?></label>
|
||||
</li>
|
||||
<li class="pull-left">
|
||||
<?php echo form_dropdown('stock_source', esc($stock_locations, 'attr'), $stock_source, ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
<?php echo form_dropdown('stock_source', esc($stock_locations), $stock_source, ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
@@ -68,7 +68,7 @@ if (isset($success))
|
||||
<label class="control-label"><?php echo lang('Receivings.stock_destination') ?></label>
|
||||
</li>
|
||||
<li class="pull-left">
|
||||
<?php echo form_dropdown('stock_destination', esc($stock_locations, 'attr'), esc($stock_destination, 'attr'), ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
<?php echo form_dropdown('stock_destination', esc($stock_locations), esc($stock_destination), ['onchange'=>"$('#mode_form').submit();", 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'fit']) ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
@@ -149,7 +149,7 @@ if (isset($success))
|
||||
foreach(array_reverse($cart, TRUE) as $line => $item)
|
||||
{
|
||||
?>
|
||||
<?php echo form_open(esc("$controller_name/edit_item/$line", 'attr'), ['class' => 'form-horizontal', 'id' => "cart_$line"]) ?>
|
||||
<?php echo form_open(esc("$controller_name/edit_item/$line"), ['class' => 'form-horizontal', 'id' => "cart_$line"]) ?>
|
||||
<tr>
|
||||
<td><?php echo anchor(esc("$controller_name/delete_item/$line", 'url'), '<span class="glyphicon glyphicon-trash"></span>') ?></td>
|
||||
<td><?php echo esc($item['item_number']) ?></td>
|
||||
@@ -184,7 +184,7 @@ if (isset($success))
|
||||
<td><?php echo form_input (['name' => 'quantity', 'class' => 'form-control input-sm', 'value' => to_quantity_decimals($item['quantity']),'onClick' => 'this.select();']) ?></td>
|
||||
<td><?php echo form_dropdown(
|
||||
'receiving_quantity',
|
||||
esc($item['receiving_quantity_choices'], 'attr'),
|
||||
esc($item['receiving_quantity_choices']),
|
||||
$item['receiving_quantity'],
|
||||
['class' => 'form-control input-sm']
|
||||
) ?></td>
|
||||
@@ -204,9 +204,9 @@ if (isset($success))
|
||||
'data-toggle' => "toggle",
|
||||
'data-size' => 'small',
|
||||
'data-onstyle' => 'success',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol'], 'attr') .'</b>',
|
||||
'data-on' => '<b>' . esc($config['currency_symbol']) .'</b>',
|
||||
'data-off' => '<b>%</b>',
|
||||
'data-line' => esc($line, 'attr'),
|
||||
'data-line' => esc($line),
|
||||
'checked' => $item['discount_type']
|
||||
]) ?>
|
||||
</span>
|
||||
@@ -242,7 +242,7 @@ if (isset($success))
|
||||
echo form_input ([
|
||||
'name' => 'description',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($item['description'], 'attr')
|
||||
'value' => esc($item['description'])
|
||||
]);
|
||||
}
|
||||
else
|
||||
@@ -250,7 +250,7 @@ if (isset($success))
|
||||
if ($item['description'] != '') //TODO: !==?
|
||||
{
|
||||
echo $item['description'];
|
||||
echo form_hidden('description', esc($item['description'], 'attr'));
|
||||
echo form_hidden('description', esc($item['description']));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -332,7 +332,7 @@ if (isset($success))
|
||||
else
|
||||
{
|
||||
?>
|
||||
<?php echo form_open(esc("$controller_name/select_supplier", 'attr'), ['id' => 'select_supplier_form', 'class' => 'form-horizontal']) ?>
|
||||
<?php echo form_open(esc("$controller_name/select_supplier"), ['id' => 'select_supplier_form', 'class' => 'form-horizontal']) ?>
|
||||
<div class="form-group" id="select_customer">
|
||||
<label id="supplier_label" for="supplier" class="control-label" style="margin-bottom: 1em; margin-top: -1em;"><?php echo lang('Receivings.select_supplier') ?></label>
|
||||
<?php echo form_input ([
|
||||
@@ -383,7 +383,7 @@ if (isset($success))
|
||||
if($mode == 'requisition')
|
||||
{
|
||||
?>
|
||||
<?php echo form_open(esc("$controller_name/requisition_complete", 'attr'), ['id' => 'finish_receiving_form', 'class' => 'form-horizontal']) ?>
|
||||
<?php echo form_open(esc("$controller_name/requisition_complete"), ['id' => 'finish_receiving_form', 'class' => 'form-horizontal']) ?>
|
||||
<div class="form-group form-group-sm">
|
||||
<label id="comment_label" for="comment"><?php echo lang('Common.comments') ?></label>
|
||||
<?php echo form_textarea ([
|
||||
@@ -411,7 +411,7 @@ if (isset($success))
|
||||
'name' => 'comment',
|
||||
'id' => 'comment',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($comment, 'attr'),
|
||||
'value' => esc($comment),
|
||||
'rows' => '4'
|
||||
]) ?>
|
||||
<div id="payment_details" >
|
||||
@@ -439,7 +439,7 @@ if (isset($success))
|
||||
'name' => 'recv_reference',
|
||||
'id' => 'recv_reference',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($reference, 'attr'),
|
||||
'value' => esc($reference),
|
||||
'size' => 5
|
||||
]) ?>
|
||||
</td>
|
||||
@@ -452,7 +452,7 @@ if (isset($success))
|
||||
<td>
|
||||
<?php echo form_dropdown(
|
||||
'payment_type',
|
||||
esc($payment_options, 'attr'),
|
||||
esc($payment_options),
|
||||
[],
|
||||
[
|
||||
'id' => 'payment_types',
|
||||
|
||||
@@ -38,7 +38,7 @@ if(isset($error))
|
||||
?>
|
||||
<?php echo form_label(lang('Reports.sale_type'), 'reports_sale_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_sale_type' class="col-xs-3">
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options, 'attr'), 'complete', ['id' => 'input_type', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options), 'complete', ['id' => 'input_type', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -73,7 +73,7 @@ if(isset($error))
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.discount_type'), 'reports_discount_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_discount_type' class="col-xs-3">
|
||||
<?php echo form_dropdown('discount_type', esc($discount_type_options, 'attr'), esc($config['default_sales_discount_type'], 'attr'), ['id' => 'discount_type_id', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('discount_type', esc($discount_type_options), esc($config['default_sales_discount_type']), ['id' => 'discount_type_id', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -87,7 +87,7 @@ if(isset($error))
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.stock_location'), 'reports_stock_location_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_stock_location' class="col-xs-3">
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations, 'attr'), 'all', ['id' => 'location_id', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations), 'all', ['id' => 'location_id', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -25,14 +25,14 @@ if(isset($error))
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.stock_location'), 'reports_stock_location_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_stock_location' class="col-xs-3">
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations, 'attr'), 'all', 'id="location_id" class="form-control"') ?>
|
||||
<?php echo form_dropdown('stock_location', esc($stock_locations), 'all', 'id="location_id" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.item_count'), 'reports_item_count_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_item_count' class="col-xs-3">
|
||||
<?php echo form_dropdown('item_count', esc($item_count, 'attr'), 'all', 'id="item_count" class="form-control"') ?>
|
||||
<?php echo form_dropdown('item_count', esc($item_count), 'all', 'id="item_count" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,4 +55,4 @@ $(document).ready(function()
|
||||
window.location = [window.location, $("#location_id").val(), $("#item_count").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -31,23 +31,23 @@ if(isset($error))
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm" id="report_specific_input_data">
|
||||
<?php echo form_label(esc($specific_input_name, 'attr'), 'specific_input_name_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<?php echo form_label(esc($specific_input_name), 'specific_input_name_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div class="col-xs-3">
|
||||
<?php echo form_dropdown('specific_input_data', esc($specific_input_data, 'attr'), '', 'id="specific_input_data" class="form-control selectpicker" data-live-search="true"') ?>
|
||||
<?php echo form_dropdown('specific_input_data', esc($specific_input_data), '', 'id="specific_input_data" class="form-control selectpicker" data-live-search="true"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.sale_type'), 'reports_sale_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_sale_type' class="col-xs-3">
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options, 'attr'), 'complete', 'id="input_type" class="form-control"') ?>
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options), 'complete', 'id="input_type" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.payment_type'), 'reports_payment_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div class="col-xs-3">
|
||||
<?php echo form_dropdown('payment_type', esc($payment_type, 'attr'), '', 'id="input_payment_type" class="form-control"') ?>
|
||||
<?php echo form_dropdown('payment_type', esc($payment_type), '', 'id="input_payment_type" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ if(isset($error))
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.discount_type'), 'reports_discount_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_discount_type' class="col-xs-3">
|
||||
<?php echo form_dropdown('discount_type', esc($discount_type_options, 'attr'), esc($config['default_sales_discount_type'], 'attr'), ['id' => 'discount_type_id', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('discount_type', esc($discount_type_options), esc($config['default_sales_discount_type']), ['id' => 'discount_type_id', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -44,9 +44,9 @@ if(isset($error))
|
||||
?>
|
||||
|
||||
<div class="form-group form-group-sm" id="report_specific_input_data">
|
||||
<?php echo form_label(esc($specific_input_name, 'attr'), 'specific_input_name_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<?php echo form_label(esc($specific_input_name), 'specific_input_name_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div class="col-xs-3 discount_percent">
|
||||
<?php echo form_dropdown('specific_input_data', esc($specific_input_data, 'attr'), '', 'id="specific_input_data" class="form-control"') ?>
|
||||
<?php echo form_dropdown('specific_input_data', esc($specific_input_data), '', 'id="specific_input_data" class="form-control"') ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@@ -70,7 +70,7 @@ if(isset($error))
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Reports.sale_type'), 'reports_sale_type_label', ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div id='report_sale_type' class="col-xs-3">
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options, 'attr'), 'complete', 'id="input_type" class="form-control"') ?>
|
||||
<?php echo form_dropdown('sale_type', esc($sale_type_options), 'complete', 'id="input_type" class="form-control"') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
<?php echo form_label(lang('Sales.invoice_number'), 'invoice_number', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php if(!empty($sale_info["invoice_number"]) && isset($sale_info['customer_id']) && !empty($sale_info['email'])): ?>
|
||||
<?php echo form_input (['name' => 'invoice_number', 'size'=>10, 'value' => esc($sale_info['invoice_number'], 'attr'), 'id' => 'invoice_number', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'invoice_number', 'size'=>10, 'value' => esc($sale_info['invoice_number']), 'id' => 'invoice_number', 'class' => 'form-control input-sm']) ?>
|
||||
<a id="send_invoice" href="javascript:void(0);"><?php echo lang('Sales.send_invoice') ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo form_input (['name' => 'invoice_number', 'value' => esc($sale_info['invoice_number'], 'attr'), 'id' => 'invoice_number', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'invoice_number', 'value' => esc($sale_info['invoice_number']), 'id' => 'invoice_number', 'class' => 'form-control input-sm']) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Sales.payment'), 'payment_new', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-4'>
|
||||
<?php echo form_dropdown('payment_type_new', esc($new_payment_options, 'attr'), esc($payment_type_new, 'attr'), ['id' => 'payment_types_new', 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown('payment_type_new', esc($new_payment_options), esc($payment_type_new), ['id' => 'payment_types_new', 'class' => 'form-control']) ?>
|
||||
</div>
|
||||
<div class='col-xs-4'>
|
||||
<div class="input-group input-group-sm">
|
||||
@@ -88,15 +88,15 @@
|
||||
<?php // no editing of Gift Card payments as it's a complex change ?>
|
||||
<?php echo form_hidden("payment_id_$i", $row->payment_id) ?>
|
||||
<?php if( !empty(strstr($row->payment_type, lang('Sales.giftcard'))) ): ?>
|
||||
<?php echo form_input (['name' => "payment_type_$i", 'value' => esc($row->payment_type, 'attr'), 'id' => "payment_type_$i", 'class' => 'form-control input-sm', 'readonly' => 'true']) ?>
|
||||
<?php echo form_input (['name' => "payment_type_$i", 'value' => esc($row->payment_type), 'id' => "payment_type_$i", 'class' => 'form-control input-sm', 'readonly' => 'true']) ?>
|
||||
<?php else: ?>
|
||||
<?php echo form_dropdown("payment_type_$i", esc($payment_options, 'attr'), esc($row->payment_type, 'attr'), ['id' => "payment_types_$i", 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown("payment_type_$i", esc($payment_options), esc($row->payment_type), ['id' => "payment_types_$i", 'class' => 'form-control']) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='col-xs-4'>
|
||||
<div class="input-group input-group-sm">
|
||||
<?php if(!currency_side()): ?>
|
||||
<span class="input-group-addon input-sm"><b><?php echo esc($config['currency_symbol'], 'attr') ?></b></span>
|
||||
<span class="input-group-addon input-sm"><b><?php echo esc($config['currency_symbol']) ?></b></span>
|
||||
<?php endif; ?>
|
||||
<?php echo form_input (['name' => "payment_amount_$i", 'value' => $row->payment_amount, 'id' => "payment_amount_$i", 'class' => 'form-control input-sm', 'readonly' => 'true']) //TODO: add type attribute ?>
|
||||
<?php if(currency_side()): ?>
|
||||
@@ -113,7 +113,7 @@
|
||||
<?php if( !empty(strstr($row->payment_type, lang('Sales.giftcard')))): ?>
|
||||
<?php echo form_input (['name' => "refund_type_$i", 'value'=>lang('Sales.cash'), 'id' => "refund_type_$i", 'class' => 'form-control input-sm', 'readonly' => 'true']) ?>
|
||||
<?php else: ?>
|
||||
<?php echo form_dropdown("refund_type_$i", esc($payment_options, 'attr'), lang('Sales.cash'), ['id' => "refund_types_$i", 'class' => 'form-control']) ?>
|
||||
<?php echo form_dropdown("refund_type_$i", esc($payment_options), lang('Sales.cash'), ['id' => "refund_types_$i", 'class' => 'form-control']) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='col-xs-4'>
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Sales.customer'), 'customer', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_input (['name' => 'customer_name', 'value' => esc($selected_customer_name, 'attr'), 'id' => 'customer_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'customer_name', 'value' => esc($selected_customer_name), 'id' => 'customer_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_hidden('customer_id', $selected_customer_id) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -145,7 +145,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Sales.employee'), 'employee', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_input (['name' => 'employee_name', 'value' => esc($selected_employee_name, 'attr'), 'id' => 'employee_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_input (['name' => 'employee_name', 'value' => esc($selected_employee_name), 'id' => 'employee_name', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_hidden('employee_id', $selected_employee_id) ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -153,7 +153,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Sales.comment'), 'comment', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-8'>
|
||||
<?php echo form_textarea (['name' => 'comment', 'value' => esc($sale_info['comment'], 'attr'), 'id' => 'comment', 'class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_textarea (['name' => 'comment', 'value' => esc($sale_info['comment']), 'id' => 'comment', 'class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
@@ -260,7 +260,7 @@ $(document).ready(function()
|
||||
<div style='padding:2%;'><?php echo nl2br(esc($config['return_policy'])) ?></div>
|
||||
</div>
|
||||
<div id='barcode'>
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' style='padding-top:4%;' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' style='padding-top:4%;' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -207,7 +207,7 @@ if(isset($error_message))
|
||||
<?php echo nl2br($config['return_policy']) ?>
|
||||
</div>
|
||||
<div id='barcode'>
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
</div>
|
||||
|
||||
<div id="barcode">
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
<br>
|
||||
|
||||
<div id="barcode" style="text-align:center">
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
</div>
|
||||
|
||||
<div id="barcode">
|
||||
<img alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -267,7 +267,7 @@ if(isset($success))
|
||||
?>
|
||||
<td><?php echo form_input (['type' => 'hidden', 'name' => 'item_id', 'value' => $item['item_id']]) ?></td>
|
||||
<td style="align: center;" colspan="6">
|
||||
<?php echo form_input (['name' => 'item_description', 'id' => 'item_description', 'class' => 'form-control input-sm', 'value' => esc($item['description'], 'attr'), 'tabindex' => ++$tabindex]) ?>
|
||||
<?php echo form_input (['name' => 'item_description', 'id' => 'item_description', 'class' => 'form-control input-sm', 'value' => esc($item['description']), 'tabindex' => ++$tabindex]) ?>
|
||||
</td>
|
||||
<td> </td>
|
||||
<?php
|
||||
@@ -289,7 +289,7 @@ if(isset($success))
|
||||
<?php
|
||||
if($item['allow_alt_description'])
|
||||
{
|
||||
echo form_input (['name' => 'description', 'class' => 'form-control input-sm', 'value' => esc($item['description'], 'attr'), 'onClick' => 'this.select();']);
|
||||
echo form_input (['name' => 'description', 'class' => 'form-control input-sm', 'value' => esc($item['description']), 'onClick' => 'this.select();']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -262,7 +262,7 @@ $(document).ready(function()
|
||||
<div style='padding:2%;'><?php echo nl2br(esc($config['return_policy'])) ?></div>
|
||||
</div>
|
||||
<div id='barcode'>
|
||||
<img style='padding-top:4%;' alt='<?php echo esc($barcode, 'attr') ?>' src='data:image/png;base64,<?php echo esc($barcode, 'attr') ?>' /><br>
|
||||
<img style='padding-top:4%;' alt='<?php echo esc($barcode) ?>' src='data:image/png;base64,<?php echo esc($barcode) ?>' /><br>
|
||||
<?php echo $sale_id ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
'name' => 'company_name',
|
||||
'id' => 'company_name_input',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->company_name, 'attr')
|
||||
'value' => esc($person_info->company_name)
|
||||
])
|
||||
?>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@
|
||||
'name' => 'agency_name',
|
||||
'id' => 'agency_name_input',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->agency_name, 'attr')
|
||||
'value' => esc($person_info->agency_name)
|
||||
])
|
||||
?>
|
||||
</div>
|
||||
@@ -53,7 +53,7 @@
|
||||
'name' => 'account_number',
|
||||
'id' => 'account_number',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->account_number, 'attr')
|
||||
'value' => esc($person_info->account_number)
|
||||
])
|
||||
?>
|
||||
</div>
|
||||
@@ -66,7 +66,7 @@
|
||||
'name' => 'tax_id',
|
||||
'id' => 'tax_id',
|
||||
'class' => 'form-control input-sm',
|
||||
'value' => esc($person_info->tax_id, 'attr')
|
||||
'value' => esc($person_info->tax_id)
|
||||
])
|
||||
?>
|
||||
</div>
|
||||
|
||||
@@ -19,21 +19,21 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Taxes.tax_code'), 'rate_tax_code_id', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-5'>
|
||||
<?php echo form_dropdown('rate_tax_code_id',esc($tax_code_options, 'attr'), esc($rate_tax_code_id, 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('rate_tax_code_id',esc($tax_code_options), esc($rate_tax_code_id), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Taxes.tax_category'), 'rate_tax_category_id', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-5'>
|
||||
<?php echo form_dropdown('rate_tax_category_id', esc($tax_category_options, 'attr'), esc($rate_tax_category_id, 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('rate_tax_category_id', esc($tax_category_options), esc($rate_tax_category_id), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Taxes.tax_jurisdiction'), 'rate_jurisdiction_id', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-5'>
|
||||
<?php echo form_dropdown('rate_jurisdiction_id', esc($tax_jurisdiction_options, 'attr'), esc($rate_jurisdiction_id, 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('rate_jurisdiction_id', esc($tax_jurisdiction_options), esc($rate_jurisdiction_id), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
'name' => 'tax_rate',
|
||||
'id' => 'tax_rate',
|
||||
'class' => 'form-control input-sm text-uppercase',
|
||||
'value' => esc($tax_rate, 'attr')
|
||||
'value' => esc($tax_rate)
|
||||
])
|
||||
?>
|
||||
<span class="input-group-addon input-sm">%</span>
|
||||
@@ -55,7 +55,7 @@
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label(lang('Taxes.tax_rounding'), 'tax_rounding_code', ['class' => 'control-label col-xs-3']) ?>
|
||||
<div class='col-xs-5'>
|
||||
<?php echo form_dropdown('tax_rounding_code', esc($rounding_options, 'attr'), esc($tax_rounding_code, 'attr'), ['class' => 'form-control input-sm']) ?>
|
||||
<?php echo form_dropdown('tax_rounding_code', esc($rounding_options), esc($tax_rounding_code), ['class' => 'form-control input-sm']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user