commit
Showing
... | ... | @@ -133,15 +133,18 @@ public function getExpressData(){ |
$status = $this->Express_model->addExpress($_POST); | ||
if($status['status'] == 1){ | ||
$profile_id =encode_param($status['profile_id']); | ||
$template = getNotifTemplate(); | ||
$to =$_POST['email']; | ||
$sender_email = "[email protected]"; | ||
$data['name']=$_POST['name']; | ||
$data['email']=$_POST['email']; | ||
$data['reg_url']=base_url('Registration_request/editExpresss/'.$profile_id); | ||
$data['registration_mail']=$template['registration_mail']; | ||
$data['password']=$temp_password; | ||
$mail_head = "Your Access Account is now activated"; | ||
if(isset($template['registration_mail']) && !empty($template['registration_mail'])){ | ||
... | ... |
... | ... | @@ -134,12 +134,13 @@ public function getGarageData(){ |
$status = $this->Garage_model->addGarage($_POST); | ||
if($status['status'] == 1){ | ||
$profile_id =encode_param($status['profile_id']); | ||
$template = getNotifTemplate(); | ||
$to =$_POST['email']; | ||
$sender_email = "[email protected]"; | ||
$data['name']=$_POST['name']; | ||
$data['email']=$_POST['email']; | ||
$data['reg_url']=base_url('Registration_request/editGarege/'.$profile_id); | ||
$data['registration_mail']=$template['registration_mail']; | ||
$data['password']=$temp_password; | ||
$mail_head = "Your Access Account is now activated"; | ||
... | ... |
... | ... | @@ -134,12 +134,13 @@ public function getPosData(){ |
$status = $this->Pos_model->addPos($_POST); | ||
if($status['status'] == 1){ | ||
$profile_id =encode_param($status['profile_id']); | ||
$template = getNotifTemplate(); | ||
$to =$_POST['email']; | ||
$sender_email = "[email protected]"; | ||
$data['name']=$_POST['name']; | ||
$data['email']=$_POST['email']; | ||
$data['reg_url']=base_url('Registration_request/editPos/'.$profile_id); | ||
$data['registration_mail']=$template['registration_mail']; | ||
$data['password']=$temp_password; | ||
$mail_head = "Your Access Account is now activated"; | ||
... | ... |
admin/application/views/Regpos_request.php
0 → 100644
<!-- PAGE-INDEX-STARTS --> | ||
<div class="breadcrumbs"> | ||
<div class="breadcrumbs-inner"> | ||
<?php | ||
if($this->session->flashdata('message')) { | ||
$message = $this->session->flashdata('message'); | ||
?> | ||
<div class="alert alert-<?php echo $message['class']; ?>"> | ||
<button class="close" data-dismiss="alert" type="button">×</button> | ||
<?php echo $message['message']; ?> | ||
</div> | ||
<?php } ?> | ||
<div class="row m-0"> | ||
<div class="col-sm-4"> | ||
<div class="page-header float-left"> | ||
<div class="page-title"> | ||
<h1><?= $pTitle ?></h1> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-sm-8"> | ||
<div class="page-header float-right"> | ||
<div class="page-title"> | ||
<ol class="breadcrumb text-right"> | ||
<li><a href="<?= base_url() ?>">Dashboard</a></li> | ||
<li><a ><?= $menu ?></a></li> | ||
</ol> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- PAGE-INDEX-ENDS --> | ||
<!-- PAGE-CONTENT-STARTS --> | ||
<div class="content"> | ||
<div class="animated fadeIn"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<strong class="card-title"><?= $pDescription ?></strong> | ||
</div> | ||
<div class="card-body"> | ||
<table id="" class="table table-striped table-bordered dataTable-custom" data-ajax="Rassist_booking/get_all_booking"> | ||
<thead> | ||
<tr> | ||
<th>No</th> | ||
<th>Booking ID</th> | ||
<th>Customer Details</th> | ||
<th>Vehicle Details</th> | ||
<th>Road Assist</th> | ||
<th>Location</th> | ||
<th>Date</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<th>No</th> | ||
<th>Booking ID</th> | ||
<th>Customer Details</th> | ||
<th>Vehicle Details</th> | ||
<th>Road Assist </th> | ||
<th>Location</th> | ||
<th>Date</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- PAGE-CONTENT-ENDS --> | ||
<!-- .model --> | ||
<div id="myModal23" class="modal fade" role="dialog" data-backdrop="static" data-keyboard="false"> | ||
<div class="modal-dialog modal-lg"> | ||
<!-- Modal content--> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal">×</button> | ||
<h4 class="modal-title">Booking Details</h4> | ||
</div> | ||
<div class="modal-body" id="details" > | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- .card --> | ||
</div> | ||
<!-- PAGE-CONTENT-ENDS --> | ||
<script type="text/javascript"> | ||
function doconfirm(){ | ||
action = confirm("Are you sure to delete permanently?"); | ||
if(action != true) return false; | ||
} | ||
</script> | ||
<script type="text/javascript"> | ||
function viewBookingDetails(booking_id){ | ||
if(booking_id=='' || booking_id==undefined || booking_id=='undefined' || booking_id==null || booking_id=='null'){ | ||
return true; | ||
} | ||
// modalTrigger('Quote Details',''); | ||
// addModalLoader(); | ||
jQuery('[id="myModal23"]').modal('show'); | ||
var resp = post_ajax(base_url+"Rassist_booking/getAssist_bookingData",{'booking_id':booking_id}); | ||
if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){ | ||
remModalLoader(); | ||
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!'); | ||
return false; | ||
} | ||
var quote_data = jQuery.parseJSON(resp).data; | ||
jQuery.each(quote_data, function (index, value) { | ||
if(value == '' || value == null || value == undefined || value == 'null' || value == 'undefined'){ | ||
quote_data[index] = ' -- '; | ||
} | ||
}); | ||
var html = '<table id="DataTables_Table_0" class="table table-striped table-bordered dataTable-custom dataTable" data-ajax="Garage_request/get_all_Garage_request" role="grid" aria-describedby="DataTables_Table_0_info">'+ | ||
'<thead>'+ | ||
'<tr role="row">'+ | ||
'<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="2" style="width: 200px;" aria-label="Request Code: activate to sort column ascending">Booking Code:'+ quote_data[0]['booking_id']+'</th>'+ | ||
'</tr>'+ | ||
'</thead>'+ | ||
'</table>'+ | ||
'<table id="DataTables_Table_0" class="table table-striped table-bordered dataTable-custom dataTable" data-ajax="Garage_request/get_all_Garage_request" role="grid" aria-describedby="DataTables_Table_0_info">'+ | ||
'<thead>'+ | ||
'<tr role="row">'+ | ||
'<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="2" style="width: 200px;" aria-label="Request Code: activate to sort column ascending">Customer</th>'+ | ||
'</tr>'+ | ||
'</thead>'+ | ||
'<tbody>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Name</td>'+ | ||
'<td>'+ quote_data[0]['customer_name']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Phone No</td>'+ | ||
'<td>'+ quote_data[0]['customer_phone']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Email ID</td>'+ | ||
'<td>'+ quote_data[0]['email_id']+'</td>'+ | ||
'</tr>'+ | ||
'</tbody>'+ | ||
'</table>'; | ||
if(quote_data[0]['status'] != 1){ | ||
html += '<table id="DataTables_Table_0" class="table table-striped table-bordered dataTable-custom dataTable" data-ajax="Garage_request/get_all_Garage_request" role="grid" aria-describedby="DataTables_Table_0_info">'+ | ||
'<thead>'+ | ||
'<tr role="row">'+ | ||
'<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="2" style="width: 200px;" aria-label="Request Code: activate to sort column ascending">Road Assist</th>'+ | ||
'</tr>'+ | ||
'</thead>'+ | ||
'<tbody>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Roadassist Code</td>'+ | ||
'<td>'+ quote_data[0]['road_assist_code']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Name</td>'+ | ||
'<td>'+ quote_data[0]['road_assist_name']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Phone No</td>'+ | ||
'<td>'+ quote_data[0]['road_assist_phone']+'</td>'+ | ||
'</tr>'+ | ||
'</tbody>'+ | ||
'</table>'; | ||
} | ||
html += '<table id="DataTables_Table_0" class="table table-striped table-bordered dataTable-custom dataTable" data-ajax="Garage_request/get_all_Garage_request" role="grid" aria-describedby="DataTables_Table_0_info">'+ | ||
'<thead>'+ | ||
'<tr role="row">'+ | ||
'<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="2" style="width: 200px;" aria-label="Request Code: activate to sort column ascending">Vehicle</th>'+ | ||
'</tr>'+ | ||
'</thead>'+ | ||
'<tbody>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Vehicle Name</td>'+ | ||
'<td>'+ quote_data[0]['vehicle_name']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Vehicle Modal</td>'+ | ||
'<td>'+ quote_data[0]['model']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Vehicle Make</td>'+ | ||
'<td>'+ quote_data[0]['make']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Vehicle Year</td>'+ | ||
'<td>'+ quote_data[0]['year']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Vehicle Mileage</td>'+ | ||
'<td>'+ quote_data[0]['mileage']+'</td>'+ | ||
'</tr>'+ | ||
'</tbody>'+ | ||
'</table>'+ | ||
'<table id="DataTables_Table_0" class="table table-striped table-bordered dataTable-custom dataTable" data-ajax="Garage_request/get_all_Garage_request" role="grid" aria-describedby="DataTables_Table_0_info">'+ | ||
'<thead>'+ | ||
'<tr role="row">'+ | ||
'<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="2" style="width: 200px;" aria-label="Request Code: activate to sort column ascending">Booking Details</th>'+ | ||
'</tr>'+ | ||
'</thead>'+ | ||
'<tbody>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Service cost</td>'+ | ||
'<td>'+ quote_data[0]['cost']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Booking Date</td>'+ | ||
'<td>'+ quote_data[0]['date']+'</td>'+ | ||
'</tr>'+ | ||
'<tr role="row" class="odd">'+ | ||
'<td>Requirement</td>'+ | ||
'<td>'+ quote_data[0]['requirement']+'</td>'+ | ||
'</tr>'+ | ||
'</tbody>'+ | ||
'</table>'; | ||
remModalLoader(); | ||
jQuery('[id="details"]').html(html); | ||
jQuery('[id="customerProfileImg"]').error(function() { | ||
jQuery('[id="customerProfileImg"]').attr('src',base_url+'assets/images/no_image.png'); | ||
}); | ||
} | ||
/*[customer_name] => customerA | ||
[customer_phone] => 9998887774 | ||
[email_id] => [email protected] | ||
[id] => 3 | ||
[cust_id] => 4 | ||
[vehicle_id] => 2 | ||
[date] => 2019-08-15 00:00:00 | ||
[requirement] => ghfh | ||
[lat] => 10.023676 | ||
[lng] => 76.311623 | ||
[road_assist_id] => 1 | ||
[cost] => 0 | ||
[status] => 1 | ||
[year] => fg | ||
[vin] => gfgf4436547546 | ||
[model] => ggfg | ||
[make] => ghg | ||
[vehicle_name] => fgh | ||
[mileage] => 55*/ | ||
</script> | ||
\ No newline at end of file |
admin/application/views/login2.php
deleted
100644 → 0
File added
4.18 KB
4.18 KB
4.18 KB
4.18 KB
27.1 KB
4.18 KB
4.18 KB
File added
27.1 KB
4.18 KB
4.18 KB
File added
File added
4.18 KB
4.18 KB
File added
File added
File added
4.18 KB
4.18 KB
27.1 KB
File added
27.1 KB
27.1 KB
27.1 KB
27.1 KB
File added
4.18 KB
pos/application/controllers/Dashboard.php
0 → 100644