Skip to content

Commit

Permalink
fueltype
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 1, 2024
1 parent c6f58fa commit 0d345c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,12 @@ public function vehicle_save() {
$insdata['type_vhcl'] = $this->input->post('type_vhcl');
$insdata['make_vhcl'] = $this->input->post('make_vhcl');
$insdata['model_vhcl'] = $this->input->post('model_vhcl');
$insdata['fueltyp_vhcl'] = $this->input->post('fueltyp_vhcl');
$insdata['displ_vhcl'] = $this->input->post('displ_vhcl');
$insdata['pow_vhcl'] = $this->input->post('pow_vhcl');
$insdata['doors_vhcl'] = $this->input->post('doors_vhcl');
$insdata['colour_vhcl'] = $this->input->post('colour_vhcl');
$insdata['firstreg_vhcl'] = date('Y-m-d', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $this->input->post('firstreg_vhcl'))))));
$insdata['fueltyp_vhcl'] = $this->input->post('fueltyp_vhcl');
//$insdata['nxtdate_vhcl'] = date('Y-m-d', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $this->input->post('nxtdate_vhcl'))))));
if (isset($_POST['id_vhcl'])) {
$this->itindata_model->upd_vehicle($this->input->post('id_vhcl'), $insdata);
Expand Down
2 changes: 1 addition & 1 deletion application/views/vehiclesform.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</div>
<div class="form-group col">
<label for="fueltyp_vhcl"><?= $this->lang->line('fuel_vhcl'); ?></label>
<div class="input-group mb-3 date" named="fueltyp_vhcl" id="fueltyp_vhcl" data-target-input="nearest">
<div class="input-group mb-3 date" name="fueltyp_vhcl" id="fueltyp_vhcl" data-target-input="nearest">
<select class="custom-select" id="inputGroupSelect01">
<?php foreach ($fueltypes as $ft) { ?>
<option value="<?= $ft ?>" <?php if ($ft == $fueltyp_vhcl) { echo "SELECTED"; } ?>><?= $this->lang->line($ft); ?></option>
Expand Down

0 comments on commit 0d345c3

Please sign in to comment.