123 lines
4.4 KiB
PHP
123 lines
4.4 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">
|
|
<style type="text/css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.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;
|
|
}
|
|
|
|
|
|
/* #########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;
|
|
padding: 8px;
|
|
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: #0d93a9;
|
|
color: white;page-break-inside: inline;
|
|
|
|
}
|
|
|
|
/* #########End of Score Card Table Styles######### */
|
|
|
|
.tdcenteralign{ text-align: center; }
|
|
.thlargefont{ font-size: 20px; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
|
|
|
<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 '<form id="form1" name="form1" method="post" action="downloadDigiLockerDocs">
|
|
<table class="scorecard_table"><tbody>
|
|
<tr><th class="thlargefont" colspan="10">DIGI LOCKER Docs List</th></tr>
|
|
<tr><td colspan="1" > Serial Number / Checkbox </td>
|
|
<td class = "tdcenteralign" colspan="2">Name</td>
|
|
<td class = "tdcenteralign" colspan="3">Description</td>
|
|
<td class = "tdcenteralign" colspan="4">Issuer</td></tr>';
|
|
|
|
for($i=0;$i<count($list['items']);$i++){
|
|
echo '<tr><td colspan="1" ><div style="text-align:right">'.($i+1).'<input type="checkbox" id="'.$i.'" name="'.$i.'" value="'.$list['items'][$i]['uri'].'"></div></td>'; //checkbox
|
|
echo '<td class = "tdcenteralign" colspan="2">'.$list['items'][$i]['name'].'</td>';
|
|
echo '<td class = "tdcenteralign" colspan="3">'.$list['items'][$i]['description'].'</td>';
|
|
echo '<td class = "tdcenteralign" colspan="4">'.$list['items'][$i]['issuer'].'</td></tr>';
|
|
}
|
|
echo '<input type="hidden" id="token" name="token" value='.$token.'>';
|
|
|
|
echo '</tbody></table>
|
|
<br>
|
|
<div style="text-align:right"><input type="submit" value="Download"></div></form>';
|
|
}
|
|
else{
|
|
echo '<table class="scorecard_table"><tbody>
|
|
<tr><th class="thlargefont" colspan="10">Digi-Locker Docs List</th></tr>
|
|
<tr><td colspan="1" > Serial Number / Checkbox </td>
|
|
<td class = "tdcenteralign" colspan="2">Name</td>
|
|
<td class = "tdcenteralign" colspan="3">Description</td>
|
|
<td class = "tdcenteralign" colspan="4">Issuer</td></tr>
|
|
<tr><td class = "tdcenteralign" colspan="10">There is No Digi-Locker Docs</td></tr>
|
|
</tbody></table><br>';
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|