mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-19 23:07:57 -05:00
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
70 lines
1.8 KiB
PHP
70 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* @var array $tax_codes
|
|
*/
|
|
?>
|
|
<?php
|
|
$i = 0;
|
|
|
|
foreach($tax_codes as $tax_code => $tax_code_data)
|
|
{
|
|
$tax_code_id = $tax_code_data['tax_code_id'];
|
|
$tax_code = $tax_code_data['tax_code'];
|
|
$tax_code_name = $tax_code_data['tax_code_name'];
|
|
$city = $tax_code_data['city'];
|
|
$state = $tax_code_data['state'];
|
|
++$i;
|
|
?>
|
|
<div class="form-group form-group-sm" style="<?= $tax_code_data['deleted'] ? 'display:none;' : 'display:block;' ?>">
|
|
<?= form_label(lang('Taxes.tax_code') . " $i", "tax_code_$i", ['class' => 'control-label col-xs-2']) ?>
|
|
<div class='col-xs-2'>
|
|
<?php $form_data = [
|
|
'name' => 'tax_code[]',
|
|
'id' => "tax_code_$i",
|
|
'class' => 'valid_chars text-uppercase form-control input-sm',
|
|
'placeholder' => lang('Taxes.code'),
|
|
'value' => esc($tax_code)
|
|
];
|
|
echo form_input($form_data)
|
|
?>
|
|
</div>
|
|
<div class='col-xs-2'>
|
|
<?php $form_data = [
|
|
'name' => 'tax_code_name[]',
|
|
'class' => 'valid_chars form-control input-sm',
|
|
'placeholder'=>lang('Taxes.name'),
|
|
'value' => esc($tax_code_name)
|
|
];
|
|
echo form_input($form_data)
|
|
?>
|
|
</div>
|
|
<div class='col-xs-2'>
|
|
<?php $form_data = [
|
|
'name' => 'city[]',
|
|
'class' => 'valid_chars form-control input-sm',
|
|
'placeholder'=>lang('Taxes.city'),
|
|
'value' => esc($city)
|
|
];
|
|
echo form_input($form_data)
|
|
?>
|
|
</div>
|
|
<div class='col-xs-2'>
|
|
<?php $form_data = [
|
|
'name' => 'state[]',
|
|
'class' => 'valid_chars form-control input-sm',
|
|
'placeholder'=>lang('Taxes.state'),
|
|
'value' => esc($state)
|
|
];
|
|
echo form_input($form_data)
|
|
?>
|
|
</div>
|
|
|
|
<span class="add_tax_code glyphicon glyphicon-plus" style="padding-top: 0.5em;"></span>
|
|
<span> </span>
|
|
<span class="remove_tax_code glyphicon glyphicon-minus" style="padding-top: 0.5em;"></span>
|
|
<?= form_hidden('tax_code_id[]', $tax_code_id) ?>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|