-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Publicview extends CI_Controller { | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$this->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; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
</div> | ||
<footer class="footer py-3"> | ||
<div class = "container "> | ||
<div class="row"> | ||
<div class="col-sm-6 text-center text-md-left pt-2 pb-2 text-light"> | ||
<p class="small">ΙΜΠΕΡΙΑΛ ΕΠΙΘΕΩΡΗΣΕΙΣ ΚΑΙ ΠΙΣΤΟΠΟΙΗΣΕΙΣ ΙΚΕ<br /> | ||
<span class="strong">DEKRA IMPERIAL</span><br /> | ||
ΛΕΩΦΟΡΟΣ ΣΥΓΓΡΟΥ 253 ΝΕΑ ΣΜΥΡΝΗ, Τ.Κ. 17122<br /> | ||
Τηλέφωνο: 2109426352<br /> | ||
E-Mail: [email protected]<br /> | ||
</div> | ||
<div class="col-sm-6 text-center text-md-right pt-2 pb-2 text-light"> | ||
<small>created by INLINE</small> | ||
</div> | ||
</div></div> | ||
</footer> | ||
|
||
<script src="<?php echo base_url(); ?>assets/js/bootstrap.bundle.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/moment.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/gauge.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/formValidation.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/framework/bootstrap4.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/bootbox.all.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/clipboard.min.js"></script> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/js/tempusdominus-bootstrap-4.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/featherlight.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/featherlight.gallery.js" type="text/javascript" charset="utf-8"></script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<link rel="shortcut icon" href="<?php echo base_url(); ?>assets/images/favicon.png" /> | ||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/all.min.css"> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/formValidation.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.18/r-2.2.2/rg-1.1.0/datatables.min.css"/> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/css/tempusdominus-bootstrap-4.min.css" /> | ||
<link type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>assets/css/featherlight.css" /> | ||
<link type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>assets/css/featherlight.gallery.css" /> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/custom.css"> | ||
<script src="<?php echo base_url(); ?>assets/js/jquery-3.3.1.min.js"></script> | ||
<script src="<?php echo base_url(); ?>assets/js/webcam.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.18/r-2.2.2/rg-1.1.0/datatables.min.js"></script> | ||
<title>IMPERIAL DEKRA</title> | ||
</head> | ||
<body> | ||
<div class="content"> | ||
<header> | ||
<div class="container"> | ||
<div class="row"><div class="col px-3 py-5"><img src="<?php echo base_url(); ?>assets/images/Dekra-Imperial_Horizontal-1.svg" class="img-fluid"></div></div> | ||
</div> | ||
</header> |
Oops, something went wrong.