AI ISSUE CHECK
This commit is contained in:
parent
3a09807aec
commit
4876288c77
@ -4620,7 +4620,7 @@ class PD_Controller extends REST_Controller {
|
||||
$pdid = $records['pd_id'];
|
||||
|
||||
$pd_master_details = $this->PD_Model->getPDMasterDetails($pdid);
|
||||
//print_r($pd_master_details);
|
||||
|
||||
if($pd_master_details[0]['fk_subproduct_id'] != "" || $pd_master_details[0]['fk_subproduct_id'] != null)
|
||||
{
|
||||
|
||||
|
||||
Binary file not shown.
@ -6,30 +6,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
||||
<style type="text/css">
|
||||
.page_break { page-break-before: always; }
|
||||
|
||||
@page {
|
||||
margin: 50px 25px;
|
||||
|
||||
.page_break { page-break-before: always; }
|
||||
@page {
|
||||
margin: 100px 50px;
|
||||
font-family:Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
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 {
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 5px;
|
||||
left: 0px;
|
||||
@ -43,7 +28,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
/*line-height: 35px;*/
|
||||
}
|
||||
|
||||
.table2 {
|
||||
.table2 {
|
||||
border: 1px solid black;
|
||||
width: 100%;
|
||||
}
|
||||
@ -61,15 +46,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
border-collapse: collapse;
|
||||
}
|
||||
tfoot{
|
||||
color:#e00201;
|
||||
color:#e00201;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body >
|
||||
<body style="font-size:13px;margin:25px 25px">
|
||||
<!-- Define header and footer blocks before your content
|
||||
<header>
|
||||
Our Code World
|
||||
@ -79,28 +63,29 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<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 $loan_form = json_decode($pd_processed_forms[10][0]['processed_json'],true);
|
||||
?>
|
||||
<?php
|
||||
//echo "<br><br><br><br><br><br><br><br><br>";
|
||||
setlocale(LC_MONETARY, 'en_IN');
|
||||
echo "<div style='background-color:#add1eb;font-style:italic'>";
|
||||
echo "<h1><center><data>PERSONAL DISCUSSION REPORT</data></center></h1> ";
|
||||
echo "<div>";
|
||||
echo "<h1><center>PERSONAL DISCUSSION REPORT</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 "<h2><center>".$pd_master_details[0]['title_name'].$pd_master_details[0]['main_applicant']."</center></h2>";
|
||||
echo "</div>";
|
||||
echo "<br><br><br><br>";
|
||||
?>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php
|
||||
echo "<tr><td>PD Report Date </td><td><data>".$pd_master_details[0]['updatedon']."</data></td>";
|
||||
echo "<tr><td>PD Vist Date </td><td> <data>".$pd_master_details[0]['scheduled_on']."</data></td></tr>";
|
||||
echo "<tr><td>PD Initiated by </td><td><data>".$pd_master_details[0]['branch_name']." </data>Branch</td></tr>";
|
||||
echo "<tr><td>Loan Applicant ID </td><td> <data>".$pd_master_details[0]['lender_applicant_id']."</data></td></tr>";
|
||||
echo "<tr><td>PD Report Date </td><td>".$pd_master_details[0]['updatedon']."</td>";
|
||||
echo "<tr><td>PD Vist Date </td><td> ".$pd_master_details[0]['scheduled_on']."</td></tr>";
|
||||
echo "<tr><td>PD Initiated by </td><td>".$pd_master_details[0]['branch_name']." Branch</td></tr>";
|
||||
echo "<tr><td>Loan Applicant ID </td><td> ".$pd_master_details[0]['lender_applicant_id']."</td></tr>";
|
||||
echo "<tr><td>Product </td><td>".$pd_master_details[0]['product_name']."</td></tr>";
|
||||
echo "<tr><td>Customer Segment </td><td>".$pd_master_details[0]['customer_segment_name']."<td></tr>";
|
||||
?>
|
||||
@ -185,7 +170,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<p>Loan Applicants</p>
|
||||
<!-- <table border=1 style='border-collapse:collapse;'> -->
|
||||
<table class="table2">
|
||||
<table class="table2" >
|
||||
|
||||
<?php
|
||||
foreach($general_form['individuals'] as $ind_key => $individual)
|
||||
@ -252,7 +237,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<br>
|
||||
<p><b>Loan Details :</b></p>
|
||||
<?php echo "A loan for Rs ".number_format($loan_form['loan_amount'])." (".MYUITIL::numtowords($loan_form['loan_amount']).") has been applied by the applicant for ".$loan_form['end_use_master'][0].".";
|
||||
<?php echo "<p>A loan for Rs ".number_format($loan_form['loan_amount'])." (".MYUITIL::numtowords($loan_form['loan_amount']).") has been applied by the applicant for ".$loan_form['end_use_master'][0].".";
|
||||
if($loan_form['is_transfer'] == 'yes')
|
||||
{
|
||||
echo "There is a balance transfer of Rs. ".number_format($loan_form['balance_transfer_amount'])." (".MYUITIL::numtowords($loan_form['balance_transfer_amount']).")from ".$loan_form['lender_master']."),and the balance top up of Rs.".$loan_form['topup_amount']." is to be used for ".$loan_form['end_use_topup_master'].". The applicants are comfortable to pay an EMI of Rs.".number_format($loan_form['emi_level'])." per month.";
|
||||
@ -287,7 +272,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
//echo "#################".strripos($owners_list,',');
|
||||
$owners_list = substr_replace($owners_list," and ",strripos($owners_list,','),1);
|
||||
echo "The property being mortgaged is a ".$loan_form['property_type_master']." owned by ".$owners_list.", and is ".$loan_form['construction_status_master']." with an estimated market value of Rs ".number_format($loan_form['emv_per_customer'])."(".MYUITIL::numtowords($loan_form['emv_per_customer']).")";
|
||||
echo "The property being mortgaged is a ".$loan_form['property_type_master']." owned by ".$owners_list.", and is ".$loan_form['construction_status_master']." with an estimated market value of Rs ".number_format($loan_form['emv_per_customer'])."(".MYUITIL::numtowords($loan_form['emv_per_customer']).")</p>";
|
||||
?>
|
||||
<br>
|
||||
<p><b>PD Officer's Note (About Loan Details) :<b></p> <?php echo $loan_form['loandetails_remarks']; ?>
|
||||
|
||||
@ -2,148 +2,24 @@
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $pdid; ?></title>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
table {
|
||||
font-family: arial, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
<link href='https://fonts.googleapis.com/css?family=Sofia' rel='stylesheet'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
||||
<style>
|
||||
body {
|
||||
font-family:Sofia;
|
||||
<!-- font: 13px/20px normal Helvetica, Arial, sans-serif; -->
|
||||
}
|
||||
|
||||
td, th {
|
||||
border: 1px solid #dddddd;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #dddddd;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>PD Report ID:- <b><?php echo $pdid; ?></b></h1>
|
||||
|
||||
<div id="body">
|
||||
<p style="color:green;font-size:20px;">Main Applicant Name: <b><?php echo $main_applicant_name; ?></b></p>
|
||||
|
||||
<p>Customer Segment: <b><?php echo $cus_seg; ?></b></p>
|
||||
<code>Lender: <b><?php echo $lender_name; ?></b></code>
|
||||
|
||||
<p>Product :- <b><?php echo $product; ?></b></p>
|
||||
<code>Sub Product: <b><?php echo $sub_product; ?></b></code>
|
||||
|
||||
<p>Business Info - Type Of Activity</p>
|
||||
<?php if($type_of_activity == "Manufacturing")
|
||||
{
|
||||
?> <h2>Manufacturing Products</h2> <?php
|
||||
}
|
||||
else if($type_of_activity == "Retails")
|
||||
{
|
||||
?> <h2>Retails Products</h2> <?php
|
||||
}
|
||||
else if($type_of_activity == "Service Providers")
|
||||
{
|
||||
?> <h2>Service Providers</h2> <?php
|
||||
}?>
|
||||
<hr>
|
||||
<h2>Co Applicants List</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Company</th>
|
||||
<th>Contact</th>
|
||||
<th>Relation</th>
|
||||
<th>Earing Status</th>
|
||||
<th>Company Name</th>
|
||||
<th>Age Eligibilty</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($applicants as $applicant)
|
||||
{?>
|
||||
<tr>
|
||||
<td><?php echo $applicant['name']?></td>
|
||||
<td><?php echo $applicant['age']?></td>
|
||||
<td><?php echo $applicant['relation']?></td>
|
||||
<td><?php echo $applicant['es']?></td>
|
||||
<td><?php echo $applicant['cn']?></td>
|
||||
<td><?php if($applicant['age'] > 60){ echo "NA";}?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
<h1 style="font-family:Helvetica, Arial, sans-serif">Sofia</h1>
|
||||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
|
||||
<p>123456790</p>
|
||||
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
|
||||
<p>abcdefghijklmnopqrstuvwxyz</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user