90 lines
4.5 KiB
PHP
Executable File
90 lines
4.5 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>E-Card</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta content="A fully featured CRM" name="description" />
|
|
<meta content="Venba info tech" name="author" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<!-- App favicon -->
|
|
<link rel="shortcut icon" href="<?= base_url()."public"; ?>/assets/images/Nhance_Favi.svg">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table data-custom-table-css="table">
|
|
<?php if(isset($data)) { ?>
|
|
<?php foreach ($data as $key => $value) { ?>
|
|
<tr>
|
|
<td>
|
|
<!-- Left side of the ID card -->
|
|
<div
|
|
style="width: 400px; height: 250px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0 10px;">
|
|
|
|
<div style="padding: 20px; box-sizing: border-box; border-right: 1px solid #ccc;">
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Name:</label>
|
|
<span><?= htmlspecialchars($value['name']) ?></span>
|
|
</div>
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Policy No:</label>
|
|
<span><?= htmlspecialchars($value['tpa_id']) ?></span>
|
|
</div>
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Card No:</label>
|
|
<span><?= 'KR2-0' . $key ?></span>
|
|
</div>
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Emp.Id:</label>
|
|
<span><?= htmlspecialchars($value['emp_code']) ?></span>
|
|
</div>
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Age:</label>
|
|
<span><?= htmlspecialchars($value['emp_age']) ?></span>
|
|
</div>
|
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
|
<label style="font-weight: bold;">Valid up to:</label>
|
|
<span><?= htmlspecialchars(formatDateOrReturn($value['policy_end_date'])) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<!-- Right side of the ID card -->
|
|
<div
|
|
style="width: 400px; height: 250px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0 10px; font-size:smaller">
|
|
<div style="padding: 20px; box-sizing: border-box; border-left: 1px solid #ccc;">
|
|
<div style="padding-top: 20px;position: relative;bottom: 36px;">
|
|
<h4>Terms and Conditions</h4>
|
|
<p>This card is non-transferable and is valid at network hospitals only.</p>
|
|
<ul style="padding-left: 20px;">
|
|
<li>will enable Card Holder to avail cashless hospitalization only on the basis of
|
|
</li>
|
|
<li>In the case of photoless identity cards issued to beneficiaries, acceptable
|
|
proof</li>
|
|
<li>Notify the authorities in case of any changes to your personal information.</li>
|
|
<li>The mentioned covers are add-ons by paying additional premium and available only if opted by the policyholders.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<br>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</table>
|
|
|
|
|
|
<?php if(!isset($data)) { ?>
|
|
<a href="<?= generate_download_link('HX3kUB') ?>"
|
|
target="_blank">button</a>
|
|
<?php } ?>
|
|
|
|
</body>
|
|
|
|
</html>
|