
PK 
<?php
ob_start();
//error_reporting(E_ALL ^ E_NOTICE);
@session_start();
ini_set('allow_url_include',1);
date_default_timezone_set("Asia/Kolkata");
set_time_limit(600);
ini_set('max_execution_time',600);
include '../includes/settings/constant.php';
//include '../includes/settings/db.php';
require_once '../includes/settings/PDODB.php';
include '../includes/modules/functions.php';
$function = new FUNCTIONS();
if (!empty($_SESSION['adminId']) && !empty($_SESSION['admin_role_id'])) {
if($_SESSION['admin_role_id']==1){
//header("Location: index.php");
}elseif($_SESSION['admin_role_id']==2){
header("Location: ../dashboard/index.php");
}
}else{
header("Location: ../index.php");
exit();
}
$driverdata = $function->getDriverDetails($id=$_GET['did'],$member_id=NULL,$isactive=1);
//print_r($driverdata[0]); //exit;
$user =$function->getUsers($id=$_GET['id'],$email=NULL,$password=NULL,$isactive=NULL);
$userdetail =$function->getUserDetails($id=$_GET['id'],$isactive=NULL);
//print_r($userdetail); exit;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INSPINIA | Basic Form</title>
<?php include_once '../layout/style.php'; ?>
<style type="text/css">
td, th{
vertical-align: top;
padding: 0 5px;
}
</style>
</head>
<body>
<div id="wrapper">
<?php $currentPage = 'all-driver'; include_once '../layout/side-bar.php'; ?>
<div id="page-wrapper" class="gray-bg">
<?php include_once '../layout/header.php'; ?>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-10">
<h2>Driver ID Card</h2>
</div>
<div class="col-lg-2">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox float-e-margins">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-lg-4">
<div class="widget-head-color-box navy-bg p-lg text-center">
<div class="m-b-md">
<h2 class="font-bold no-margins">
RWA
</h2>
<small>Sector-40 Noida (U.P.)</small>
</div>
<img src="../img/rwa-logo.jpg" class="img-circle circle-border m-b-md" alt="profile" height="128px" width="128px">
<div>
<span>100 Tweets</span> |
<span>350 Following</span> |
<span>610 Followers</span>
</div>
</div>
<div class="widget-text-box">
<!-- <h4 class="media-heading">Father's Name : </h4><?=$driverdata[0]['father_name'];?>
<p><?=$driverdata[0]['address'];?></p> -->
<table>
<tr>
<th>Name</th>
<td>:</td>
<td><?=$driverdata[0]['name'];?></td>
</tr>
<tr>
<th>Father's Name</th>
<td>:</td>
<td><?=$driverdata[0]['father_name'];?></td>
</tr>
<tr>
<th>Address</th>
<td>:</td>
<td><?=$driverdata[0]['address'];?></td>
</tr>
<tr>
<th>Phone No.</th>
<td>:</td>
<td><?=$driverdata[0]['phone_no'];?></td>
</tr>
<tr>
<th>House No.</th>
<td>:</td>
<td><?=$userdetail[0]['house_no'];?></td>
</tr>
<tr>
<th>Employed Name</th>
<td>:</td>
<td><?=$user[0]['owner_name'];?></td>
</tr>
<tr>
<th>Since</th>
<td>:</td>
<td><?=$driverdata[0]['join_on'];?></td>
</tr>
</table>
<!-- <div class="text-right">
<a class="btn btn-xs btn-white"><i class="fa fa-thumbs-up"></i> Like </a>
<a class="btn btn-xs btn-primary"><i class="fa fa-heart"></i> Love</a>
</div> -->
<hr>
<p>Note.: Employed should immediately notify the RWA in case of discontinuation of service of the employee.</p>
</div>
</div>
<div class="col-lg-4">
<div class="contact-box">
<a href="profile.html">
<div class="col-sm-4">
<div class="text-center">
<img alt="image" class="img-circle m-t-xs img-responsive" src="../img/rwa-logo.jpg">
<div class="m-t-xs font-bold">RWA S-40</div>
</div>
</div>
<div class="col-sm-8">
<h3><strong><?=$driverdata[0]['name'];?></strong></h3>
<p><i class="fa fa-map-marker"></i> <?=$driverdata[0]['address'];?></p>
<address>
<strong>Twitter, Inc.</strong><br>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
<abbr title="Phone">P:</abbr> (123) 456-7890
</address>
</div>
<div class="clearfix"></div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include_once '../layout/script.php'; ?>
<script>
$(document).on("click", ".fmemberedit", function () {
$("#eid").val($(this).data('id'));
$("#ename").val($(this).data('name'));
$("#efather_name").val($(this).data('father_name'));
$("#ephone_no").val($(this).data('phone_no'));
$("#emember_id").val($(this).data('member_id'));
$('#esince').val($(this).data('since'));
$('#eaddress').val($(this).data('address'));
});
</script>
<script>
function tossterMsgAlert(msg='Welcome',title='') {
toastr.options = {
closeButton: true,
//debug: false,
newestOnTop: false,
//progressBar: false,
positionClass: 'toast-top-center',
preventDuplicates: true,
//onclick: null,
//showDuration: 300,
//hideDuration: 1000,
timeOut: 2000,
//extendedTimeOut: 1000,
//showEasing: 'swing',
//hideEasing: 'linear',
//showMethod: 'fadeIn',
hideMethod: 'fadeOut'
};
toastr.warning(title,msg);
}
</script>
</body>
</html>


PK 99