Commit 1756bb94 by Jansa Jose

change driver details in admin

parent 18a70e5a
......@@ -8,7 +8,8 @@ class Driver_model extends CI_Model {
$query = $this->db->where('status',1);
$query=$this->db->where('driver_id !=', 'NULL');
$query = $this->db->distinct()->select('driver_id');
$this->db->join('users','users.id = booking_approve.driver_id');
$query = $this->db->distinct()->select('booking_approve.driver_id,TRIM(concat(users.first_name,' ',IFNULL(users.last_name,''))) as driver_name,users.email,users.gender,users.date_of_birth');
$query = $this->db->get('booking_approve');
//echo $this->db->last_query();die();
$result = $query->result();
......
......@@ -56,10 +56,10 @@
<tr>
<td class="hidden"><?php echo $driver->driver_id; ?></td>
<td class="center"><?php echo get_drivername($driver->driver_id); ?>
<td class="center"><?php echo get_driveremail($driver->driver_id); ?></td>
<td class="center"><?php echo get_driverdob($driver->driver_id); ?></td>
<td class="center"><?php echo get_drivergender($driver->driver_id); ?></td>
<td class="center"><?php echo $driver->driver_name; ?>
<td class="center"><?php echo $driver->email; ?></td>
<td class="center"><?php echo $driver->date_of_birth; ?></td>
<td class="center"><?php echo $driver->gender; ?></td>
<td class="center">
<!-- <a class="btn btn-sm bg-olive show-patientdetails" href="javascript:void(0);" data-id="<?php echo $users->id; ?>">
-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment