File "id-card.php"
Full path: /home/eshuaesb/public_html/www.mhawaterpark.com/partners/id-card.php
File
size: 0 KB (3.72 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php include("auth.php");
require("conn.php");
session_start();
$v_code =$_SESSION['v_code'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Id Card</title>
<meta content="" name="description">
<meta content="" name="keywords">
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<?php include("templates/inc.php"); ?>
<link rel="stylesheet" href="IDCard.css">
</head>
<body>
<!-- ======= Header ======= -->
<?php
include("templates/header.php");
?>
<!-- End Header -->
<!-- ======= Sidebar ======= -->
<?php
include("templates/sidebar.php");
?>
<!-- End Sidebar-->
<main id="main" class="main">
<div class="pagetitle">
<h1>ID Card</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="breadcrumb-item">ID Card</li>
</ol>
</nav>
</div>
<?php echo getPhoto() ?>
<section class="section dashboard">
<div class="row">
<!-- Left side columns -->
<div class="col-lg-12">
<div class="row">
<!-- Sales Card -->
<div class="col-xxl-2 col-md-4">
</div>
<div class="col-xxl-2 col-md-4">
<?php
function getPhoto()
{
include("conn.php");
$file = "";
$v_code = $_SESSION['v_code'];
$sql = "select * from tbl_vendor where v_code='384772'";
$smt = mysqli_query($conn, $sql);
if ($row['photo_url'])
$photo_url = $row['photo_url'];
return ($photo_url);
}
?>
<?php
include("conn.php");
$sql = "select * from tbl_vendor where v_code='$v_code'";
$smt = mysqli_query($conn, $sql);
$rs = mysqli_fetch_assoc($smt);
?>
<center>
<div class="padding">
<div class="font">
<div class="companyname"></div>
<div class="top">
<img src="<?php echo $rs['photo_url']; ?>">
</div>
<div class="">
<div class="ename">
<p class="p1" style="margin-top: 48px; margin-left: -36px;"><b style="margin-top: -5px;"> <?php echo $rs['name']; ?></b></p>
<center> <p style="margin-top: -23px; margin-left: -38px;"> <?php echo $rs['designation']; ?></p></center>
</div>
<div class="edetails">
<p style="margin-top: 38px;"><b>CID :</b> <?php echo $rs['v_code']; ?> <br>
<b>Mobile :</b> +91-<?php echo $rs['mobile']; ?> <br>
<b>DOB :</b><?php echo $rs['dob']; ?>
</p>
</div>
<div class="barcode">
<img src="code.png" alt="">
</div>
</div>
</div>
</div>
</center>
<!--</div>-->
</div>
</div><!-- End Revenue Card -->
<div class="col-xxl-2 col-md-4">
</div><!-- End Revenue Card -->
<!-- Revenue Card -->
</div>
</div>
</div>
</section>
<br><br><br>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<?php
include("templates/footer.php");
?>
<!-- End Footer -->
<?php include("templates/vendors.php"); ?>
</html>