104 lines
3.5 KiB
PHP
104 lines
3.5 KiB
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
?><!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
|
|
|
|
<style type="text/css">
|
|
.page_break { page-break-before: always; }
|
|
|
|
@page {
|
|
margin: 50px 25px;
|
|
}
|
|
|
|
header {
|
|
position: fixed;
|
|
top: 10px;
|
|
left: 0px;
|
|
right: 0px;
|
|
height: 30px;
|
|
|
|
/** Extra personal styles **/
|
|
/*background-color: #03a9f4;
|
|
color: white;*/
|
|
text-align: center;
|
|
/* line-height: 35px;*/
|
|
}
|
|
|
|
footer {
|
|
position: fixed;
|
|
bottom: 5px;
|
|
left: 0px;
|
|
right: 0px;
|
|
height: 30px;
|
|
|
|
/** Extra personal styles **/
|
|
/*background-color: #03a9f4;
|
|
color: white;*/
|
|
text-align: right;
|
|
/*line-height: 35px;*/
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
<body >
|
|
<!-- Define header and footer blocks before your content
|
|
<header>
|
|
Our Code World
|
|
</header> -->
|
|
|
|
<footer>
|
|
<hr>
|
|
<div><img style="width:150;height:40px;" src='http://ssa.sineedge.com/sparqapi/logo/sinelogo.png' /></div>
|
|
</footer>
|
|
|
|
<!-- Wrap the content of your PDF inside a main tag -->
|
|
<?php
|
|
echo "<br><br><br><br><br><br><br><br><br>";
|
|
echo "<div style='background-color:#add1eb;font-style:italic'>";
|
|
echo "<h1><center><data>PERSONAL DISCUSSION REPORT</data></center></h1> ";
|
|
echo "<center style='font-size:15px;font-style:italic;font-weight:bold'>for the case of</center>";
|
|
echo "<h2><center><data >".$pd_master_details[0]['title_name'].$pd_master_details[0]['main_applicant']."</data></center></h2>";
|
|
echo "</div>";
|
|
echo "<br><br><br><br>";
|
|
echo "<p><code>PD Report Date : <data>".$pd_master_details[0]['updatedon']."</data></code></p>";
|
|
echo "<p><code>PD Vist Date : <data>".$pd_master_details[0]['scheduled_on']."</data></code></p>";
|
|
echo "<p><code>PD Initiated by <data>".$pd_master_details[0]['branch_name']." </data>Branch</code></p>";
|
|
echo "<p><code>Loan Applicant ID : <data>".$pd_master_details[0]['lender_applicant_id']."</data></code></p>";
|
|
echo "<p><code>Loan Amount Applied For :</code></p>";
|
|
echo "<p>
|
|
<table border=1 style='border-collapse:collapse;text-align:center;'>
|
|
<thead> <tr> <th>As Per PD Initiation</th> <th>As Per Loan Applicants during PD</th> </tr></thead>
|
|
|
|
<tbody>
|
|
<tr> <td>Rs " . number_format($pd_master_details[0]['loan_amount']). ".</td> <td> #### </td> </tr>
|
|
</tbody>
|
|
</table>
|
|
</p>";
|
|
|
|
echo "<p><code>Product : <data>".$pd_master_details[0]['product_name']."</data></code></p>";
|
|
echo "<p><code>Customer Segment : <data>".$pd_master_details[0]['customer_segment_name']."</data></code></p>";
|
|
|
|
echo "<div class='page_break'></div>";
|
|
echo "<h3>Business Related Information</h3>";
|
|
if(count($pd_processed_forms[13]))
|
|
{
|
|
$business_details = json_decode($pd_processed_forms[13][0]['processed_json'],true);
|
|
//print_r($business_details);
|
|
$name_of_the_business_entity = "####";
|
|
if($business_details['profession_name'] != "") {$name_of_the_business_entity = $business_details['profession_name'];}else { $name_of_the_business_entity = $business_details['profession_name']; }
|
|
|
|
echo "Name of the Business Entity : <data> <?php echo $name_of_the_business_entity; ?><data>";
|
|
|
|
}
|
|
|
|
?>
|
|
</body>
|
|
</html>
|