<?
include 'connection.php';
session_start();
$sql ="SELECT * FROM member WHERE id ='".$_GET['id']."' and cardstatus='active'";
$exc = $mysqli->query($sql);
if(mysqli_num_rows($exc)>0){
$row = $exc->fetch_assoc();
?>
<div id="DivIdToPrint">
<!DOCTYPE html>
<html>
<head>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
.card {
border: 1px solid #ddd;
max-width: 350px;
padding: 5px;
margin: auto;
text-align: center;
}
img {
width: 50%;
border: 1px solid #ddd;
}
.designation {
font-size: 18px;
}
.social {
margin: 20px 0;
}
a {
font-size: 26px;
padding: 7px 12px;
text-decoration: none;
background-color: #04456f;
color: white;
border-radius: 10px;
}
a:hover {
background-color: #00c8ff;
}
</style>
</head>
<body>
<br>
<table style="width:100%;">
<tr>
<td style="width:50%">
<div class="card" style="background: #EF7C23;">
<h1 style="text-align: center;font-size: 20px;margin-bottom: 5px;color: #2D3192;"><U>IDENTITY CART</U></h1>
<p style="text-align:left;font-size: 11px;float: left;">ID Card No.<? echo $row["memberid"];?></p>
<p style="text-align:left;font-size: 11px;float: right;">Reg No. 326/2019-2020</p>
</div>
<div class="card" style="background: #2D3192;margin-top: 18px;height: 50px;">
<img src="50x50.png" style="float: left;height: 50px;width: 50px;margin-right: 5PX;margin-left: -56px;" alt="image" />
<h1 style="text-align: left;font-size: 18px;color: white;margin-top: 6px;">NATIONALIST YOUTH FAREMER ORGANIZATION</h1>
</div>
<div class="card">
<img src="../member/photo/<? echo $row["img"];?>" alt="image" style="width:128px" />
<p style="text-align:center;color: red;font-size: 7px;letter-spacing: 1px;font-weight: 700;height: 7px; ">Member -NATIONALIST YOUTH FARMERS ORGAZATION</p>
<p style="color: #2D3192;text-align:left;margin-left: 42px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 7px; ">Name : <? echo $row["name"];?></p>
<p style="color: #2D3192;text-align: left;margin-left: 42px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 7px; ">Post : <? echo $row["post"];?></p>
<p style="color: #2D3192;text-align: left;margin-left: 42px;font-size: 11px; letter-spacing: 1px;font-weight: 700;height: 7px; ">Father Name : <? echo $row["father"];?></p>
<p style="color: #2D3192;text-align: left;margin-left: 42px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 7px; ">D.O.B : <? echo $row["birth"];?></p>
<p style="color: #2D3192;text-align: left;margin-left: 42px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 7px; ">Mobile No : <? echo $row["mobile"];?></p>
<p style="color: #2D3192;text-align: left;margin-left: 42px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 7px; ">Adhar No : <? echo $row["adhar"];?></p>
<p style="color: #2D3192;margin-right: 37px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 5px;float: right; ">Auth. Sign</p>
<br>
<p style="color: #2D3192;margin-right: -91px;font-size: 9px;letter-spacing: 1px;font-weight: 700;height: 5px;float: right; ">National Office In-charge</p>
<br>
</div>
</td>
<td style="width:50%">
<div class="card" style="background: #EF7C23;height: 43px;">
</div>
<div class="card" style="border-bottom: none;">
<h1 style="text-align: center;font-size: 20px;color: red;"><u>INSTRUCTION</u></h1>
<p style="text-align:justify;font-size: 13px;">this identity cardis nontransferable and is govemed by the terms and condition applicable for card memners,as announced and amended by nationalist youth farmers organization internationl from time to time, in casethis card is misplace or found,please infrom and send to the below address</p>
</div>
<div class="card" style="border-top: none;">
<img src="106x106.png" alt="image" style="width:106px;border:none;" />
<p style="text-align:center;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 5px; ">Office No 8, Pocket-E CSC Market</p>
<p style="text-align: center;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 5px; ">Mayur Vihar Phase -II, New Delhi-91</p>
<p style="text-align: center;font-size: 11px; letter-spacing: 1px;font-weight: 700;height: 5px; ">Contact No.: 9783527000,6350350363</p>
<p style="text-align: center;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 5px; ">Website:www.nyfo.org.in</p>
<p style="text-align: left;margin-left: 37px;font-size: 11px;letter-spacing: 1px;font-weight: 700;height: 5px; ">Email Id : nationalnyfo@gmail.com</p>
<p style="color: #2D3192;text-align: center;font-size: 9px;letter-spacing: 1px;font-weight: 700;height: 5px;">Issued On Date 01st April 2021 Valid 30th March 2022</p>
<br>
</div>
</td>
</tr>
</table>
</body>
</html>
</div>
<br>
<a class="btn btn-default" id="pp" style="border: 1px solid;cursor: pointer;margin-left: 600px;" onclick="print();">Print</a>
<script type="text/javascript">
function print(){
var divToPrint=document.getElementById('DivIdToPrint');
var newWin=window.open('','Print-Window');
newWin.document.open();
newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');
newWin.document.close();
setTimeout(function(){newWin.close();},10);
}
</script>
<? } else { ?>
<h1>Id Card Not Found</h1>
<? } ?> |