diff --git a/application/controllers/Publicview.php b/application/controllers/Publicview.php new file mode 100644 index 0000000..0386a2a --- /dev/null +++ b/application/controllers/Publicview.php @@ -0,0 +1,59 @@ +load->model('itindata_model'); + $this->load->helper('url_helper'); + $this->load->helper('form'); + $this->lang->load('itin','greek'); + $sesdata = $this->session->userdata; + $this->data = array( + 'user_lang' => $sesdata['site_lang'], + ); + + } + public function index($id) + { +echo $id; + } + + public function show($qrc) + { + $data = $this->data; + + if ($inspections = $this->itindata_model->get_inspectionsfull(array('qrcode_inspection' => '"'.$qrc.'"'))) { + + $data['inspection'] = $inspections[0]; + $data['fueltypes'] = $this->_getfueltypes(); + $data['wheeldrives'] = $this->_getwheeldrives(); + $inspection = $inspections[0]; + $data['sec1score'] = $inspection->s1score_inspection; + $data['sec2score'] = $inspection->s2score_inspection; + $data['sec3score'] = $inspection->s3score_inspection; + $data['inspscore'] = $this->itindata_model->get_inspectionscore($id); + //$data['inspimg'] = $this->itindata_model->get_inspectionimages($id); + $data['inspectionid'] = $inspection->id_inspection; + $data['checkpoints'] = $this->itindata_model->get_checkpoints(); + $this->load->view('public/header', $data); + $this->load->view('public/publicshow', $data); + $this->load->view('public/footer', $data); + } else { + redirect('https://www.imperial-dekra.gr/'); + } + } + + private function _getfueltypes() { + $fueltypes = array('petrol', 'diesel', 'hybridpetrol', 'hybriddiesel', 'pluginpetrol', 'plugindiesel', 'electric', 'cng', 'lng'); + return $fueltypes; + } + + private function _getwheeldrives() { + $wheeldrives = array('fwd', 'rwd', 'awd'); + return $wheeldrives; + } + + +} diff --git a/application/views/public/footer.php b/application/views/public/footer.php new file mode 100644 index 0000000..a603acc --- /dev/null +++ b/application/views/public/footer.php @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + diff --git a/application/views/public/header.php b/application/views/public/header.php new file mode 100644 index 0000000..06d15aa --- /dev/null +++ b/application/views/public/header.php @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + IMPERIAL DEKRA + + +
+
+
+
+
+
diff --git a/application/views/public/publicshow.php b/application/views/public/publicshow.php new file mode 100644 index 0000000..d83ec2f --- /dev/null +++ b/application/views/public/publicshow.php @@ -0,0 +1,301 @@ +
+

lang->line('pdf_dekra_report'); ?>

+
+
+ +
+
+
lang->line('date_inspection'); ?>: date_inspection)); ?>
+
+
+
lang->line('vehicle_details'); ?>
+
lang->line('vin_vhcl'); ?>:
+
vin_vhcl; ?>
+
lang->line('reg_vhcl'); ?>:
+
reg_vhcl; ?>
+
lang->line('firstreg_vhcl'); ?>:
+
firstreg_vhcl)); ?>
+
lang->line('type_vhcl'); ?>:
+
type_vhcl; ?>
+
lang->line('doors_vhcl'); ?>:
+
doors_vhcl; ?>
+
lang->line('make_vhcl'); ?>:
+
make_vhcl; ?>
+
lang->line('colour_vhcl'); ?>:
+
colour_vhcl; ?>
+
lang->line('model_vhcl'); ?>:
+
model_vhcl; ?>
+
lang->line('fuel_vhcl'); ?>:
+
lang->line($inspection->fueltyp_vhcl); ?>
+
lang->line('wheeldrive_vhcl'); ?>:
+
lang->line($inspection->wheeldrive_vhcl); ?>
+
lang->line('pdf_displpow_vhcl'); ?>
+
pow_vhcl; ?>kW / displ_vhcl; ?>ccm
+
lang->line('mlg_vhcl'); ?>:
+
mlg_vhcl; ?>
+
+ +
+
+

Αποτελέσματα

+
+
+ +
lang->line('pdf_technology_check'); ?>
+
%
+
+
+ +
lang->line('pdf_bodywork_check'); ?>
+
%
+
+
+ +
lang->line('pdf_system_check'); ?>
+
%
+
+
+
+ rmrk_inspection) && $inspection->rmrk_inspection != "n/a") { ?> +
+
+
+

lang->line('genremark_inspection'); ?>

+
rmrk_inspection ?>
+ +
+
+ + en_rmrk_inspection) && $inspection->en_rmrk_inspection != "n/a") { ?> +
+
+
+

lang->line('genremark_inspection'); ?>

+
en_rmrk_inspection ?>
+ +
+
+ + + + + + +
+ + +
+ + + + +