sparqapi/api/application/views/digital_locker.php

198 lines
7.1 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$uparrow = '<span style="color:green;">↑</span>';
$downarrow = '<span style="color:red;">↓</span>';
$dash = '<span style="color:black;"> </span>';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
@page {
margin: 100px 50px;
font-family:Merriweather;
}
header {
position: fixed;
top: -70px;
left: 0px;
right: 0px;
height: 20px;
text-align: right;
}
footer {
position: fixed;
bottom: 5px;
left: 0px;
right: 0px;
height: 20px;
font-size: 10px;
text-align: left;
}
.headlines {
font: 500 20px/32px Roboto,"Helvetica Neue",sans-serif;
text-align: left;
margin: 0; }
/* #########Score Card Table Styles######### */
.scorecard_table {
border-collapse: collapse;
width: 100%;
page-break-inside: inline;
}
.scorecard_table td, .scorecard_table th {
border: 1px solid #000;
page-break-inside: inline;
}
.scorecard_table tr:nth-child(even){background-color: #f2f2f2;page-break-inside: inline; }
.scorecard_table tr:hover {background-color: #ddd;}
.scorecard_table th {
padding-top: 8px;
padding-bottom: 8px;
text-align: center;
background-color: #FF0000;
color: white;page-break-inside: inline;
}
/* #########End of Score Card Table Styles######### */
/* HTML - Red ;Hex Code - #FF0000;Decimal Code - (255,0,0) */
.bodycss{
font-weight: 400;
font-size: 1.2rem;
color: rgba(0,0,0,.87);
line-height: 1.5;
font-family: Roboto,"Helvetica Neue",sans-serif;
padding: 0 40px;
}
.buttoncss{
background-color: #FF0000;
border: none;
color: white;
padding: 8px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50%;
}
.branding {
display: block;
border-bottom: 2px solid red;
page-break-inside: inline;
}
.fa-disabled {
opacity: 0.6;
cursor: not-allowed;
}
a i {
transition: all 0.3s linear;
}
a:hover i {
transform: scale(1.5);
}
a:hover {
color: red;
}
</style>
<title><?php echo $page_title; ?></title>
</head>
<body>
<div class="branding"><a><img src="https://pdgenie.com/logo/sineedge_red.png" style="height: 45px;"></a></div>
<br>
<div class="bodycss">
<footer>
<hr>
<img style="width:100px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie Team
</footer>
<header>
<div>
<img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/>
</div>
<hr>
</header>
<?php
if(count($list))
{
echo '<div>
<span class="headlines">
<span style= "font-weight: bold;"> Digital Documents</span>
<br>
PD Number : "<i>'.$pd_sno.'/'.$pd_id.'</i>"<br>
Applicant Name : "<i>'.$applicant_name.'</i>"</span>
</div>';
echo ' <table class="scorecard_table"><tbody>
<tr>
<th colspan="1" > Sr. No. </th>
<th colspan="3" > Document Name</th>
<th colspan="1" > Document Uploaded Date</th>
<th colspan="2" > Document Description</th>
<th colspan="2" > Document Issuer</th>
<th colspan="1" > Action </th></tr>';
for($i=0;$i<count($list['items']);$i++){
echo '<tr><td colspan="1" ><div style="text-align:right;padding-right: 8px;">'.($i+1).'</div></td>'; //checkbox
echo '<td colspan="3"><div style="text-align:left;padding-left: 8px;">'.$list['items'][$i]['name'].'</td>';
echo '<td colspan="1"><div style="text-align:center">'.$list['items'][$i]['date'].'</td>';
echo '<td colspan="2"><div style="text-align:left;padding-left: 8px;">'.$list['items'][$i]['description'].'</td>';
echo '<td colspan="2"><div style="text-align:left;padding-left: 8px;">'.$list['items'][$i]['issuer'].'</td>';
echo '<td colspan="2"><div style="text-align:center;">
<form id="form1" name="form1" method="post" action="previewDigiLockerDocs" target="_blank">
<input type="hidden" id="token" name="token" value='.$token.'>
<input type="hidden" id="pd_id" name="pd_id" value='.$pd_id.'>
<input type="hidden" id="applicant_name" name="applicant_name" value='.$applicant_name.'>
<input type="hidden" id="applicant_id" name="applicant_id" value='.$applicant_id.'>
<input type="hidden" id="doc_name" name="doc_name" value='.$list['items'][$i]['name'].'>
<input type="hidden" id="doc_uri" name="doc_uri" value='.$list['items'][$i]['uri'].'>
<button class="buttoncss" data-toggle="tooltip" data-placement="right" type="submit"><i class="fa fa-download" title="Preview/Download PDF"></i></button></td>
</form>
</tr>';
}
echo '</tbody></table>';
// <a class="link" href="previewDigiLockerDocs?doc='.$list['items'][$i]['uri'].'&token='.$token.'" target="_blank"><i class="fa fa-download" title="Download PDF"></i></a>
// <div style="text-align:right;">
// <button class="buttoncss" data-toggle="tooltip" title="Download" data-placement="right" type="submit"><i class="fa fa-download"></i> Download</button>
// </div>
}
else{
echo '<table class="scorecard_table"><tbody>
<tr>
<th colspan="1" > Sr. No. </th>
<th colspan="3" > Document Name</th>
<th colspan="1" > Document Uploaded Date</th>
<th colspan="2" > Document Description</th>
<th colspan="2" > Document Issuer</th>
<th colspan="2" > Action</th></tr>
<tr><td colspan="10"><div style="text-align:center">There is No Digi-Locker Docs</div></td></tr>
</tbody></table><br>';
}
?>
</div>
</body>
</html>