Testing Feedback 2 : ps
This commit is contained in:
parent
db0e43d33f
commit
fc1f134491
@ -63,13 +63,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: #e00201;
|
color: #e00201;
|
||||||
}
|
}
|
||||||
|
|
||||||
.simpletable,
|
|
||||||
.simpletable th,
|
|
||||||
.simpletable td {
|
|
||||||
border: 1px solid black;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########End of Mini Score Card Div Styles######### */
|
/* #########End of Mini Score Card Div Styles######### */
|
||||||
#rcorners_green {
|
#rcorners_green {
|
||||||
background: #33cc33;
|
background: #33cc33;
|
||||||
@ -178,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
/* #########End of Score Card Table Styles######### */
|
/* #########End of Score Card Table Styles######### */
|
||||||
|
|
||||||
#boxstyle2 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 200px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#boxstyle3 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 120px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#first_div {
|
#first_div {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@ -231,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
.chip {
|
|
||||||
|
|
||||||
padding: 0 25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 600px;
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
border-radius: 50px;
|
|
||||||
background-color: #f1f1f1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img1 {
|
|
||||||
float: left;
|
|
||||||
margin: 0 10px 0 -25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img2 {
|
|
||||||
float: right;
|
|
||||||
margin: 0 -25px 0px -125px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### ;*/
|
|
||||||
|
|
||||||
.gallery {
|
|
||||||
margin: 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery:hover {
|
|
||||||
border: 1px solid #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.desc {
|
|
||||||
padding: 8px;
|
|
||||||
text-align: center;
|
|
||||||
color: green
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### */
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS START ######### */
|
/* ######### TOOLTIP CSS START ######### */
|
||||||
|
|
||||||
.tooltip {
|
|
||||||
position: relative;
|
|
||||||
display: inline;
|
|
||||||
border-bottom: 1px dotted black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext {
|
|
||||||
visibility: hidden;
|
|
||||||
width: 120px;
|
|
||||||
background-color: black;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 5px 0;
|
|
||||||
|
|
||||||
/* Position the tooltip */
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover .tooltiptext {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ini_table {
|
#ini_table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -327,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intelligence {
|
|
||||||
/*background-color: lightgrey;*/
|
|
||||||
width: auto;
|
|
||||||
border: 5px solid #0191ed;
|
|
||||||
padding: 5px;
|
|
||||||
/*margin: 10px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS END ######### */
|
/* ######### TOOLTIP CSS END ######### */
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -418,15 +303,15 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
||||||
$value = $general_form['json'];
|
$value = $general_form['json'];
|
||||||
$all_applicant_details = $applicants_details;
|
$all_applicant_details = $applicants_details;
|
||||||
if (strtoupper($value['is_person_met']) == 'YES') {
|
if (strtoupper($value['is_person_met']) == 'YES') {
|
||||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met_master'].')</b> was met at the visited address.' . '</p>';
|
echo '<p>' . 'Applicant <b>(' . $value['Name_of_the_Person_met_master'] . ')</b> was met at the visited address.' . '</p>';
|
||||||
}else if (strtoupper($value['is_person_met']) == 'NO') {
|
} else if (strtoupper($value['is_person_met']) == 'NO') {
|
||||||
echo '<p>' . '('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit.' . '</p>';
|
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') (' . $value['designation_person_met_master'] . ') was met at the visited address during visit.' . '</p>';
|
||||||
}
|
}
|
||||||
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
||||||
echo '<p>' . $general_form['general_remark'] . '</p>';
|
echo '<p>' . $general_form['general_remark'] . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!-- ####################### general information ends ############################-->
|
<!-- ####################### general information ends ############################-->
|
||||||
|
|
||||||
<!-- ####################### address details ############################-->
|
<!-- ####################### address details ############################-->
|
||||||
@ -434,19 +319,19 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
echo '<br>';
|
echo '<br>';
|
||||||
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
||||||
$address_value = $address_form['json'];
|
$address_value = $address_form['json'];
|
||||||
if(!empty($address_value)){
|
if (!empty($address_value)) {
|
||||||
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Visit Initiated Address:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'. </p>';
|
<b>Visit Initiated Address:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '. </p>';
|
||||||
}
|
}
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Address Where Visit is Initiated:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'.
|
<b>Address Where Visit is Initiated:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '.
|
||||||
<b>Address Where Visit was actually done:</b> '.$address_value['actual_pd_address'].' , '.$address_value['city2_master'].' , '.$address_value['state2_master'].' , '.$address_value['pincode2_master'].'.
|
<b>Address Where Visit was actually done:</b> ' . $address_value['actual_pd_address'] . ' , ' . $address_value['city2_master'] . ' , ' . $address_value['state2_master'] . ' , ' . $address_value['pincode2_master'] . '.
|
||||||
<b>Reason for change in Visit address:</b> '.$address_value['end_use'].'.</p>';
|
<b>Reason for change in Visit address:</b> ' . $address_value['end_use'] . '.</p>';
|
||||||
}
|
}
|
||||||
echo '<p>' . 'The Field Visit was done at <b>'.$address_value['address_type_master'].'</b> of the loan applicants. The <b>'.$address_value['address_type_master'].'</b> is located in a <b>'.$address_value['locality_master'].'</b> and the estimated area of the <b>'.$address_value['address_type_master'].'</b> is <b>'.$address_value['uom_master'].'</b>. The location was <b>'.$address_value['Approach_to_PD_location'].'</b>. As Per Officer, the <b>'.$address_value['address_type_master'].'</b> is situated in a <b>'.$address_value['comment_locality_master'].'</b> Locality. ' . '</p>';
|
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. The <b>' . $address_value['address_type_master'] . '</b> is located in a <b>' . $address_value['locality_master'] . '</b> and the estimated area of the <b>' . $address_value['address_type_master'] . '</b> is <b>' . $address_value['uom_master'] . '</b>. The location was <b>' . $address_value['Approach_to_PD_location'] . '</b>. As Per Officer, the <b>' . $address_value['address_type_master'] . '</b> is situated in a <b>' . $address_value['comment_locality_master'] . '</b> Locality. ' . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
@ -460,31 +345,31 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$ov_value = $Office_visit_data['json'];
|
$ov_value = $Office_visit_data['json'];
|
||||||
|
|
||||||
$business_activities_during_visit = implode(', ', $ov_value['Was_any_business_activities_observed_during_visit']);
|
$business_activities_during_visit = implode(', ', $ov_value['Was_any_business_activities_observed_during_visit']);
|
||||||
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit );
|
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit);
|
||||||
$business_activities_during_visit = ucwords($business_activities_during_visit);
|
$business_activities_during_visit = ucwords($business_activities_during_visit);
|
||||||
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
|
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
|
||||||
|
|
||||||
echo '<ul><li style="margin: 15px 0;"><b>Brief of the Business / Service Model:</b> '.$ov_value['business_brief'].'.</li>
|
echo '<ul><li style="margin: 15px 0;"><b>Brief of the Business / Service Model:</b> ' . $ov_value['business_brief'] . '.</li>
|
||||||
<li style="margin: 15px 0;">Visited address is of a <b>'.$ov_value['visited_address_is'].'</b>.</li>
|
<li style="margin: 15px 0;">Visited address is of a <b>' . $ov_value['visited_address_is'] . '</b>.</li>
|
||||||
<li style="margin: 15px 0;">At the time of visit, the officer sighted <b>'.$ov_value['no_of_employees_sighted_by_PD_officer_during_visit'].'</b> employees at the business premises.</li>
|
<li style="margin: 15px 0;">At the time of visit, the officer sighted <b>' . $ov_value['no_of_employees_sighted_by_PD_officer_during_visit'] . '</b> employees at the business premises.</li>
|
||||||
<li style="margin: 15px 0;">The Business Name board was <b>'.$company_name_sighted.'</b> at the visited address.</li>';
|
<li style="margin: 15px 0;">The Business Name board was <b>' . $company_name_sighted . '</b> at the visited address.</li>';
|
||||||
if(strtoupper($ov_value['do_you_want_to_add_other_documents']) == 'YES'){
|
if (strtoupper($ov_value['do_you_want_to_add_other_documents']) == 'YES') {
|
||||||
echo '<li style="margin: 15px 0;"> <b>'.$ov_value['remarks_others'].'</b> was sighted during visit and pictures are enclosed with the Report.</li>';
|
echo '<li style="margin: 15px 0;"> <b>' . $ov_value['remarks_others'] . '</b> was sighted during visit and pictures are enclosed with the Report.</li>';
|
||||||
}
|
}
|
||||||
if($ov_value['Visited_address_is_rented'] != 'not disclosed '){
|
if ($ov_value['Visited_address_is_rented'] != 'not disclosed ') {
|
||||||
echo '<li style="margin: 15px 0;">The <b>'.$ov_value['visited_address_is'].'</b> is <b>'.$ov_value['Visited_address_is_rented'].'</b>.</li>';
|
echo '<li style="margin: 15px 0;">The <b>' . $ov_value['visited_address_is'] . '</b> is <b>' . $ov_value['Visited_address_is_rented'] . '</b>.</li>';
|
||||||
}
|
}
|
||||||
if($ov_value['Visited_address_is_rented'] == 'not disclosed '){
|
if ($ov_value['Visited_address_is_rented'] == 'not disclosed ') {
|
||||||
echo '<li style="margin: 15px 0;">The <b>'.$ov_value['visited_address_is'].'</b> is Rented or Owned is Not Disclosed by the person met.</li>';
|
echo '<li style="margin: 15px 0;">The <b>' . $ov_value['visited_address_is'] . '</b> is Rented or Owned is Not Disclosed by the person met.</li>';
|
||||||
}
|
}
|
||||||
echo '<li style="margin: 15px 0;">Business Activity was <b>'.$company_name_sighted.'</b> and <b>'.$business_activities_during_visit.'</b> </li>';
|
echo '<li style="margin: 15px 0;">Business Activity was <b>' . $company_name_sighted . '</b> and <b>' . $business_activities_during_visit . '</b> </li>';
|
||||||
if(strtoupper($ov_value['stock_photograph']) == 'YES'){
|
if (strtoupper($ov_value['stock_photograph']) == 'YES') {
|
||||||
echo '<li style="margin: 15px 0;">Stock was seen during visit and pictures are enclosed with the Report.</li>';
|
echo '<li style="margin: 15px 0;">Stock was seen during visit and pictures are enclosed with the Report.</li>';
|
||||||
}
|
}
|
||||||
if(strtoupper($ov_value['stock_photograph']) == 'NO'){
|
if (strtoupper($ov_value['stock_photograph']) == 'NO') {
|
||||||
echo '<li style="margin: 15px 0;">Stock was not seen during visit because <b>'.$ov_value['reason_of_stock_non_availability'].'</b> .</li>';
|
echo '<li style="margin: 15px 0;">Stock was not seen during visit because <b>' . $ov_value['reason_of_stock_non_availability'] . '</b> .</li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
<!-- ####################### office visit DI ends ############################-->
|
<!-- ####################### office visit DI ends ############################-->
|
||||||
@ -492,134 +377,120 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
<!-- ################# neighbourhood/reference check #################-->
|
<!-- ################# neighbourhood/reference check #################-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$pd_offiecer_status_about_neighbor = "";
|
$pd_offiecer_status_about_neighbor = "";
|
||||||
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
||||||
$neighbour_value = $neighbour_details['json'];
|
$neighbour_value = $neighbour_details['json'];
|
||||||
// print_r($neighbour_value);
|
// print_r($neighbour_value);
|
||||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
||||||
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
||||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||||
// }
|
// }
|
||||||
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
//echo $pd_offiecer_status_about_neighbor;
|
//echo $pd_offiecer_status_about_neighbor;
|
||||||
if(count($neighbour_value)>0){
|
if (count($neighbour_value) > 0) {
|
||||||
|
|
||||||
$neighbourhood_name='Neighbour Check was done with ';
|
$neighbourhood_name = 'Neighbour Check was done with ';
|
||||||
$neighbourhood_name.= $neighbour_value['neighbourhood_name'].'.';
|
$neighbourhood_name .= $neighbour_value['neighbourhood_name'] . '.';
|
||||||
$neighbourhood_do_know = null;
|
$neighbourhood_do_know = null;
|
||||||
$neighbourhood_business_running_yr = null;
|
$neighbourhood_business_running_yr = null;
|
||||||
$ownership = null;
|
$ownership = null;
|
||||||
$neighbourhood_name_only = $neighbour_value['neighbourhood_name'];
|
$neighbourhood_name_only = $neighbour_value['neighbourhood_name'];
|
||||||
if(strtoupper($neighbour_value['do_know'])=='YES'){
|
if (strtoupper($neighbour_value['do_know']) == 'YES') {
|
||||||
$neighbourhood_do_know = $neighbour_value['neighbourhood_name']." knows about applicants and their business.";
|
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " knows about applicants and their business.";
|
||||||
} else if(strtoupper($neighbour_value['do_know'])=='NO'){
|
} else if (strtoupper($neighbour_value['do_know']) == 'NO') {
|
||||||
$neighbourhood_do_know = $neighbour_value['neighbourhood_name']." did not know about the applicant or their business.";
|
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " did not know about the applicant or their business.";
|
||||||
|
}
|
||||||
|
if ($neighbour_value['how_long_do_know_in_year'] || $neighbour_value['how_long_do_know_in_month']) {
|
||||||
|
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " confirmed that the business has been in operation for ";
|
||||||
|
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_year'] == 1) ? $neighbour_value['how_long_do_know_in_year'] . " year" : (($neighbour_value['how_long_do_know_in_year'] > 1) ? $neighbour_value['how_long_do_know_in_year'] . " years" : "");
|
||||||
|
$neighbour_value['how_long_do_know_in_year'] && $neighbour_value['how_long_do_know_in_month'] ? $neighbourhood_business_running_yr .= ' and ' : '';
|
||||||
|
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_month'] == 1) ? $neighbour_value['how_long_do_know_in_month'] . " month" : (($neighbour_value['how_long_do_know_in_month'] > 1) ? $neighbour_value['how_long_do_know_in_month'] . " months" : "");
|
||||||
|
$neighbourhood_business_running_yr .= '.';
|
||||||
|
} else {
|
||||||
|
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " was not aware of how long the business is in operation.";
|
||||||
|
}
|
||||||
|
$ownwers_list = '';
|
||||||
|
if (isset($neighbour_value['know_organisation_owner']) && strtoupper($neighbour_value['know_organisation_owner']) == 'YES') {
|
||||||
|
if (isset($neighbour_value['organisation_owner'])) {
|
||||||
|
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
||||||
|
for ($i = 0; $i < count($neighbour_value['organisation_owner']); $i++) {
|
||||||
|
$owner = $neighbour_value['organisation_owner'][$i];
|
||||||
|
if ($owner != 0) {
|
||||||
|
$title = MYUTIL::applicantTitleName($applicants_details, $owner);
|
||||||
|
$ownwers_list .= $title . ' ' . APPLICANTNAME_GRABBER::getApplicantsNameById($owner, $applicants_details) . ' , ';
|
||||||
|
} else {
|
||||||
|
$ownwers_list .= ' ' . $neighbour_value['other_organisation_owner'] . ' , ';
|
||||||
}
|
}
|
||||||
if($neighbour_value['how_long_do_know_in_year'] || $neighbour_value['how_long_do_know_in_month'])
|
|
||||||
{
|
|
||||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." confirmed that the business has been in operation for ";
|
|
||||||
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_year'] == 1) ? $neighbour_value['how_long_do_know_in_year']." year" : (($neighbour_value['how_long_do_know_in_year'] > 1) ? $neighbour_value['how_long_do_know_in_year']." years" : "");
|
|
||||||
$neighbour_value['how_long_do_know_in_year'] && $neighbour_value['how_long_do_know_in_month'] ? $neighbourhood_business_running_yr .= ' and ':'';
|
|
||||||
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_month'] == 1) ? $neighbour_value['how_long_do_know_in_month']." month" : (($neighbour_value['how_long_do_know_in_month'] > 1) ? $neighbour_value['how_long_do_know_in_month']." months" : "");
|
|
||||||
$neighbourhood_business_running_yr .= '.';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." was not aware of how long the business is in operation.";
|
|
||||||
}
|
|
||||||
$ownwers_list = '';
|
|
||||||
if(isset($neighbour_value['know_organisation_owner']) && strtoupper($neighbour_value['know_organisation_owner']) == 'YES'){
|
|
||||||
if(isset($neighbour_value['organisation_owner'])){
|
|
||||||
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
|
||||||
for($i = 0; $i < count($neighbour_value['organisation_owner']); $i++)
|
|
||||||
{
|
|
||||||
$owner = $neighbour_value['organisation_owner'][$i];
|
|
||||||
if($owner != 0)
|
|
||||||
{
|
|
||||||
$title = MYUTIL::applicantTitleName($applicants_details,$owner);
|
|
||||||
$ownwers_list .= $title.' '.APPLICANTNAME_GRABBER::getApplicantsNameById($owner,$applicants_details).' , ';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$ownwers_list .= ' '.$neighbour_value['other_organisation_owner'].' , ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//echo $ownwers_list;
|
|
||||||
//$ownwers_list = substr_replace($ownwers_list,'', strrpos(-$ownwers_list,','),1);
|
|
||||||
//echo $ownwers_list;
|
|
||||||
//echo $ownwers_list;echo "**********";
|
|
||||||
|
|
||||||
$ownwers_list = substr_replace($ownwers_list,'', strrpos($ownwers_list,','),1);
|
|
||||||
if(strrpos($ownwers_list,','))
|
|
||||||
{
|
|
||||||
$ownwers_list = substr_replace($ownwers_list,' and ', strrpos($ownwers_list,','),1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$grammer1 = count($neighbour_value['organisation_owner']) > 1 ? ' are ': ' is ';
|
|
||||||
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners': 'owner';
|
|
||||||
$ownership = 'As per '.$neighbour_value['neighbourhood_name'].' the '.$grammer2 .' of '.$company_name.$grammer1.$ownwers_list.'.';
|
|
||||||
|
|
||||||
}}else
|
|
||||||
{
|
|
||||||
$ownership = $neighbour_value['neighbourhood_name']." was not aware of the business ownership.";
|
|
||||||
}
|
|
||||||
$existNeighRefCheck = array('neighbourhood_name_only' => $neighbourhood_name_only,'neighbourhood_name' => $neighbourhood_name,'neighbourhood_do_know' => $neighbourhood_do_know,'neighbourhood_business_running_yr' => $neighbourhood_business_running_yr,'ownership' => $ownership);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($existNeighRefCheck)){
|
|
||||||
$nfValue = $existNeighRefCheck;
|
|
||||||
echo $nfValue['neighbourhood_name_only'];
|
|
||||||
?>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?></li>
|
|
||||||
</ul>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor;?>.</span></li>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
else{?>
|
//echo $ownwers_list;
|
||||||
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
//$ownwers_list = substr_replace($ownwers_list,'', strrpos(-$ownwers_list,','),1);
|
||||||
<!-- <p>Neighbour Check was not possible due to Could not verify</p> -->
|
//echo $ownwers_list;
|
||||||
<p>Status of the check: could not verify.</p>
|
//echo $ownwers_list;echo "**********";
|
||||||
|
|
||||||
<?php
|
$ownwers_list = substr_replace($ownwers_list, '', strrpos($ownwers_list, ','), 1);
|
||||||
|
if (strrpos($ownwers_list, ',')) {
|
||||||
|
$ownwers_list = substr_replace($ownwers_list, ' and ', strrpos($ownwers_list, ','), 1);
|
||||||
}
|
}
|
||||||
if($neighbourhood_form_common_remarks != ""){ echo '<p>'. $neighbourhood_form_common_remarks.'</p>';}
|
|
||||||
?>
|
|
||||||
|
$grammer1 = count($neighbour_value['organisation_owner']) > 1 ? ' are ' : ' is ';
|
||||||
|
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners' : 'owner';
|
||||||
|
$ownership = 'As per ' . $neighbour_value['neighbourhood_name'] . ' the ' . $grammer2 . ' of ' . $company_name . $grammer1 . $ownwers_list . '.';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$ownership = $neighbour_value['neighbourhood_name'] . " was not aware of the business ownership.";
|
||||||
|
}
|
||||||
|
$existNeighRefCheck = array('neighbourhood_name_only' => $neighbourhood_name_only, 'neighbourhood_name' => $neighbourhood_name, 'neighbourhood_do_know' => $neighbourhood_do_know, 'neighbourhood_business_running_yr' => $neighbourhood_business_running_yr, 'ownership' => $ownership);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (!empty($existNeighRefCheck)) {
|
||||||
|
$nfValue = $existNeighRefCheck;
|
||||||
|
echo $nfValue['neighbourhood_name_only'];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?></li>
|
||||||
|
</ul>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor; ?>.</span></li>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
} else { ?>
|
||||||
|
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
||||||
|
<!-- <p>Neighbour Check was not possible due to Could not verify</p> -->
|
||||||
|
<p>Status of the check: could not verify.</p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($neighbourhood_form_common_remarks != "") {
|
||||||
|
echo '<p>' . $neighbourhood_form_common_remarks . '</p>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- ################# neighbourhood/reference check ends #################-->
|
<!-- ################# neighbourhood/reference check ends #################-->
|
||||||
|
|
||||||
<!-- ################# credit manager specific query #################-->
|
<!-- ################# credit manager specific query #################-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$credit_officier_specific_queries = array();
|
$credit_officier_specific_queries = array();
|
||||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
if (isset($pd_processed_forms[31])) {
|
||||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
||||||
|
|
||||||
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
||||||
echo 'Question - ' . $value['question'] . '<br>';
|
echo 'Question - ' . $value['question'] . '<br>';
|
||||||
echo 'Answer - ' . $value['answer'];
|
echo 'Answer - ' . $value['answer'];
|
||||||
@ -631,14 +502,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
||||||
|
//
|
||||||
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||||
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
||||||
echo 'Provided ( Yes / No ) : ' . (strtoupper($doc_value['ans']) == 'YES' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
if ($doc_value['ans'] != 'yes') {
|
||||||
echo 'Reason : ' . $doc_value['reason'];
|
echo 'Reason : ' . $doc_value['reason'];
|
||||||
}
|
}
|
||||||
echo '<br><br>';
|
echo '<br><br>';
|
||||||
@ -655,6 +526,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
||||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||||
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
||||||
|
|
||||||
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
||||||
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
||||||
}
|
}
|
||||||
@ -669,15 +541,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- ################# credit manager specific query ends#################-->
|
<!-- ################# credit manager specific query ends#################-->
|
||||||
|
|
||||||
<!-- ################# final remarks #################-->
|
<!-- ################# final remarks #################-->
|
||||||
<div class="page_break"></div>
|
<div class="page_break"></div>
|
||||||
<br>
|
<br>
|
||||||
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
||||||
<?php
|
<?php
|
||||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'], true);
|
||||||
$final_remark_data = $final_remark['json'];
|
$final_remark_data = $final_remark['json'];
|
||||||
//print_r($final_remark_data);
|
//print_r($final_remark_data);
|
||||||
|
|
||||||
@ -688,17 +563,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$Could_not_verfiy = null;
|
$Could_not_verfiy = null;
|
||||||
$fo_diplay = null;
|
$fo_diplay = null;
|
||||||
|
|
||||||
if(isset($final_remark_data['final_status_of_visit'])){
|
if (isset($final_remark_data['final_status_of_visit'])) {
|
||||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||||
$Could_not_verfiy = 1;
|
$Could_not_verfiy = 1;
|
||||||
$fo_diplay = "Could not verfiy";
|
$fo_diplay = "Could not verfiy";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||||
$positive = 1;
|
$positive = 1;
|
||||||
$fo_diplay = "Positive";
|
$fo_diplay = "Positive";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||||
$negative = 1;
|
$negative = 1;
|
||||||
$fo_diplay = "Negative";
|
$fo_diplay = "Negative";
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||||
|
|
||||||
|
|
||||||
@ -715,24 +591,24 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||||
|
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||||
|
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||||
echo $tick_mark;
|
echo $tick_mark;
|
||||||
} ?></div>
|
} ?></div>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
|
||||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
|
||||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -741,91 +617,91 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<li>Remarks:</li>
|
<li>Remarks:</li>
|
||||||
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- ################# final remarks ends #################-->
|
<!-- ################# final remarks ends #################-->
|
||||||
<!-- ################# satellite #################-->
|
<!-- ################# satellite #################-->
|
||||||
<?php
|
<?php
|
||||||
if (!empty($distances['distance'])) {
|
if (!empty($distances['distance'])) {
|
||||||
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
||||||
}
|
|
||||||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
|
||||||
echo '<br><br>';
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
$satellite_url = '';
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
|
||||||
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
|
||||||
if ($com_value['pd_document_title'] == 'satellite') {
|
|
||||||
$satellite_url = $com_value['doc_url'];
|
|
||||||
unset($pd_images['common_images'][$com_key]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
||||||
|
echo '<br><br>';
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
$satellite_url = '';
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||||
?>
|
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
||||||
|
if ($com_value['pd_document_title'] == 'satellite') {
|
||||||
|
$satellite_url = $com_value['doc_url'];
|
||||||
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
unset($pd_images['common_images'][$com_key]);
|
||||||
<!-- ################# satellite ends #################-->
|
break;
|
||||||
<!-- ################# common images #################-->
|
|
||||||
|
|
||||||
<?php
|
|
||||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
|
||||||
// return ($var['isactive'] != 0);
|
|
||||||
// });
|
|
||||||
if (count($pd_images['34'])) {
|
|
||||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
|
||||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
|
||||||
echo '<div id="page_break"></div>';
|
|
||||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
|
||||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
|
||||||
|
|
||||||
$add_factor = 0;
|
|
||||||
for ($row = 0; $row < $tot_rows; $row++) {
|
|
||||||
echo '<tr>';
|
|
||||||
|
|
||||||
$from = $row == 0 ? $row : ($row + $add_factor);
|
|
||||||
$to = ($from + 2);
|
|
||||||
$add_factor = $add_factor + 2;
|
|
||||||
for ($i = $from; $i <= $to; $i++) {
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
|
||||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
|
||||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//unset($p_key);
|
|
||||||
}
|
}
|
||||||
echo '</tr>';
|
|
||||||
}
|
}
|
||||||
echo '</tbody></table>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!-- ################# common images #################-->
|
|
||||||
<!-- ########################### End-disclaimer start ######################################### -->
|
|
||||||
<?php
|
|
||||||
|
|
||||||
echo "<p>";
|
|
||||||
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
|
||||||
if (isset($footer_lender_stamp)) {
|
|
||||||
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
|
||||||
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
|
||||||
|
|
||||||
if (isset($footer_lender_disclaimer)) {
|
|
||||||
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
|
||||||
}
|
|
||||||
echo "</p>";
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!-- ########################### End disclaimer end ######################################### -->
|
|
||||||
|
|
||||||
|
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||||||
|
<!-- ################# satellite ends #################-->
|
||||||
|
<!-- ################# common images #################-->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||||
|
// return ($var['isactive'] != 0);
|
||||||
|
// });
|
||||||
|
if (count($pd_images['34'])) {
|
||||||
|
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||||
|
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||||
|
echo '<div id="page_break"></div>';
|
||||||
|
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||||
|
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||||
|
|
||||||
|
$add_factor = 0;
|
||||||
|
for ($row = 0; $row < $tot_rows; $row++) {
|
||||||
|
echo '<tr>';
|
||||||
|
|
||||||
|
$from = $row == 0 ? $row : ($row + $add_factor);
|
||||||
|
$to = ($from + 2);
|
||||||
|
$add_factor = $add_factor + 2;
|
||||||
|
for ($i = $from; $i <= $to; $i++) {
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||||
|
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||||
|
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
//unset($p_key);
|
||||||
|
}
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
echo '</tbody></table>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!-- ################# common images #################-->
|
||||||
|
<!-- ########################### End-disclaimer start ######################################### -->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
echo "<p>";
|
||||||
|
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
||||||
|
if (isset($footer_lender_stamp)) {
|
||||||
|
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
||||||
|
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
||||||
|
|
||||||
|
if (isset($footer_lender_disclaimer)) {
|
||||||
|
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
||||||
|
}
|
||||||
|
echo "</p>";
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- ########################### End disclaimer end ######################################### -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -63,13 +63,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: #e00201;
|
color: #e00201;
|
||||||
}
|
}
|
||||||
|
|
||||||
.simpletable,
|
|
||||||
.simpletable th,
|
|
||||||
.simpletable td {
|
|
||||||
border: 1px solid black;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########End of Mini Score Card Div Styles######### */
|
/* #########End of Mini Score Card Div Styles######### */
|
||||||
#rcorners_green {
|
#rcorners_green {
|
||||||
background: #33cc33;
|
background: #33cc33;
|
||||||
@ -178,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
/* #########End of Score Card Table Styles######### */
|
/* #########End of Score Card Table Styles######### */
|
||||||
|
|
||||||
#boxstyle2 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 200px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#boxstyle3 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 120px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#first_div {
|
#first_div {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@ -231,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
.chip {
|
|
||||||
|
|
||||||
padding: 0 25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 600px;
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
border-radius: 50px;
|
|
||||||
background-color: #f1f1f1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img1 {
|
|
||||||
float: left;
|
|
||||||
margin: 0 10px 0 -25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img2 {
|
|
||||||
float: right;
|
|
||||||
margin: 0 -25px 0px -125px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### ;*/
|
|
||||||
|
|
||||||
.gallery {
|
|
||||||
margin: 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery:hover {
|
|
||||||
border: 1px solid #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.desc {
|
|
||||||
padding: 8px;
|
|
||||||
text-align: center;
|
|
||||||
color: green
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### */
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS START ######### */
|
/* ######### TOOLTIP CSS START ######### */
|
||||||
|
|
||||||
.tooltip {
|
|
||||||
position: relative;
|
|
||||||
display: inline;
|
|
||||||
border-bottom: 1px dotted black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext {
|
|
||||||
visibility: hidden;
|
|
||||||
width: 120px;
|
|
||||||
background-color: black;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 5px 0;
|
|
||||||
|
|
||||||
/* Position the tooltip */
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover .tooltiptext {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ini_table {
|
#ini_table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -327,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intelligence {
|
|
||||||
/*background-color: lightgrey;*/
|
|
||||||
width: auto;
|
|
||||||
border: 5px solid #0191ed;
|
|
||||||
padding: 5px;
|
|
||||||
/*margin: 10px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS END ######### */
|
/* ######### TOOLTIP CSS END ######### */
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -418,15 +303,15 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
||||||
$value = $general_form['json'];
|
$value = $general_form['json'];
|
||||||
$all_applicant_details = $applicants_details;
|
$all_applicant_details = $applicants_details;
|
||||||
if (strtoupper($value['is_person_met']) == 'YES') {
|
if (strtoupper($value['is_person_met']) == 'YES') {
|
||||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met_master'].')</b> was met at the visited address.' . '</p>';
|
echo '<p>' . 'Applicant <b>(' . $value['Name_of_the_Person_met_master'] . ')</b> was met at the visited address.' . '</p>';
|
||||||
}else if (strtoupper($value['is_person_met']) == 'NO') {
|
} else if (strtoupper($value['is_person_met']) == 'NO') {
|
||||||
echo '<p>' . 'During PD ('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit.' . '</p>';
|
echo '<p>' . 'During PD (' . $value['Name_of_the_Person'] . ') (' . $value['designation_person_met_master'] . ') was met at the visited address during visit.' . '</p>';
|
||||||
}
|
}
|
||||||
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
||||||
echo '<p>' . $general_form['general_remark'] . '</p>';
|
echo '<p>' . $general_form['general_remark'] . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!-- ####################### general information ends ############################-->
|
<!-- ####################### general information ends ############################-->
|
||||||
|
|
||||||
<!-- ####################### address details ############################-->
|
<!-- ####################### address details ############################-->
|
||||||
@ -434,19 +319,19 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
echo '<br>';
|
echo '<br>';
|
||||||
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
||||||
$address_value = $address_form['json'];
|
$address_value = $address_form['json'];
|
||||||
if(!empty($address_value)){
|
if (!empty($address_value)) {
|
||||||
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Visit Initiated Address:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'. </p>';
|
<b>Visit Initiated Address:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '. </p>';
|
||||||
}
|
}
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Address Where Visit is Initiated:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'.
|
<b>Address Where Visit is Initiated:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '.
|
||||||
<b>Address Where Visit was actually done:</b> '.$address_value['actual_pd_address'].' , '.$address_value['city2_master'].' , '.$address_value['state2_master'].' , '.$address_value['pincode2_master'].'.
|
<b>Address Where Visit was actually done:</b> ' . $address_value['actual_pd_address'] . ' , ' . $address_value['city2_master'] . ' , ' . $address_value['state2_master'] . ' , ' . $address_value['pincode2_master'] . '.
|
||||||
<b>Reason for change in Visit address:</b> '.$address_value['end_use'].'.</p>';
|
<b>Reason for change in Visit address:</b> ' . $address_value['end_use'] . '.</p>';
|
||||||
}
|
}
|
||||||
echo '<p>' . 'The Field Visit was done at <b>'.$address_value['address_type_master'].'</b> of the loan applicants. </p>';
|
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. </p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
@ -458,83 +343,81 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
echo '<h3 contenteditable="true"><u>VISIT DETAILS</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>VISIT DETAILS</u>: </h3>';
|
||||||
$Office_visit_data = json_decode($pd_processed_forms[29][0]['processed_json'], true);
|
$Office_visit_data = json_decode($pd_processed_forms[29][0]['processed_json'], true);
|
||||||
$ov_value = $Office_visit_data['json'];
|
$ov_value = $Office_visit_data['json'];
|
||||||
print_r($ov_value);
|
|
||||||
|
|
||||||
|
|
||||||
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
|
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
|
||||||
$business_activities = strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES' ? 'seen' : 'not seen';
|
$business_activities = strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES' ? 'seen' : 'not seen';
|
||||||
$business_activities_during_visit = '';
|
$business_activities_during_visit = '';
|
||||||
if(strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES'){
|
if (strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES') {
|
||||||
$business_activities_during_visit = implode(', ', $ov_value['If_yes_choose_one']);
|
$business_activities_during_visit = implode(', ', $ov_value['If_yes_choose_one']);
|
||||||
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit );
|
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit);
|
||||||
$business_activities_during_visit = ' and '.ucwords($business_activities_during_visit);
|
$business_activities_during_visit = ' and ' . ucwords($business_activities_during_visit);
|
||||||
// if(isset($ov_value['Others_Please_specify'])){ $business_activities_during_visit = $business_activities_during_visit.'('.$ov_value['Others_Please_specify'].')'; }
|
// if(isset($ov_value['Others_Please_specify'])){ $business_activities_during_visit = $business_activities_during_visit.'('.$ov_value['Others_Please_specify'].')'; }
|
||||||
if(isset($ov_value['Others_Please_specify'])){ $business_activities_during_visit = str_replace("Others",$ov_value['Others_Please_specify'],$business_activities_during_visit); }
|
if (isset($ov_value['Others_Please_specify'])) {
|
||||||
|
$business_activities_during_visit = str_replace("Others", $ov_value['Others_Please_specify'], $business_activities_during_visit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$year = (abs($ov_value['year'])>=2) ? $ov_value['year'].' Years' : $ov_value['year'].' Year';
|
$year = (abs($ov_value['year']) >= 2) ? $ov_value['year'] . ' Years' : $ov_value['year'] . ' Year';
|
||||||
$month = '';
|
$month = '';
|
||||||
if($ov_value['month'] > 0 && (!empty($ov_value['month'])) && isset($ov_value['month'])){
|
if ($ov_value['month'] > 0 && (!empty($ov_value['month'])) && isset($ov_value['month'])) {
|
||||||
$month = (abs($ov_value['month'])>=2) ? $ov_value['month'].' Months' : $ov_value['month'].' Month';
|
$month = (abs($ov_value['month']) >= 2) ? $ov_value['month'] . ' Months' : $ov_value['month'] . ' Month';
|
||||||
$month = ' and '.$month;
|
$month = ' and ' . $month;
|
||||||
}
|
}
|
||||||
|
|
||||||
$grosssal = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($ov_value['gross_monthly_salary']). '<span style="font-size:10px;">('. MYUTIL::numtowords($ov_value['gross_monthly_salary']) .')</span>';
|
$grosssal = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' . ' ' . MYUTIL::customIndianNumberFormat($ov_value['gross_monthly_salary']) . '<span style="font-size:10px;">(' . MYUTIL::numtowords($ov_value['gross_monthly_salary']) . ')</span>';
|
||||||
$netsal = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($ov_value['net_monthly_salary']). '<span style="font-size:10px;">('. MYUTIL::numtowords($ov_value['net_monthly_salary']) .')</span>';
|
$netsal = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' . ' ' . MYUTIL::customIndianNumberFormat($ov_value['net_monthly_salary']) . '<span style="font-size:10px;">(' . MYUTIL::numtowords($ov_value['net_monthly_salary']) . ')</span>';
|
||||||
$document_seen = array();
|
$document_seen = array();
|
||||||
$document_not_seen = array();
|
$document_not_seen = array();
|
||||||
if(strtoupper($ov_value['salary_register_was_seen']) == 'YES'){
|
if (strtoupper($ov_value['salary_register_was_seen']) == 'YES') {
|
||||||
array_push($document_seen,'Salary Certificate');
|
array_push($document_seen, 'Salary Certificate');
|
||||||
|
} else if (strtoupper($ov_value['salary_register_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available'])) {
|
||||||
|
array_push($document_not_seen, $ov_value['Why_documents_are_not_available']);
|
||||||
}
|
}
|
||||||
else if(strtoupper($ov_value['salary_register_was_seen'])== 'NO' && isset($ov_value['Why_documents_are_not_available'])){
|
if (strtoupper($ov_value['cash_voucher_was_seen']) == 'YES') {
|
||||||
array_push($document_not_seen,$ov_value['Why_documents_are_not_available']);
|
array_push($document_seen, 'Cash Voucher');
|
||||||
|
} else if (strtoupper($ov_value['cash_voucher_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_cash_voucher'])) {
|
||||||
|
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_cash_voucher']);
|
||||||
}
|
}
|
||||||
if(strtoupper($ov_value['cash_voucher_was_seen']) == 'YES'){
|
if (strtoupper($ov_value['salary_slip_was_seen']) == 'YES') {
|
||||||
array_push($document_seen,'Cash Voucher');
|
array_push($document_seen, 'Salary Slip');
|
||||||
|
} else if (strtoupper($ov_value['salary_slip_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_salary_slip'])) {
|
||||||
|
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_salary_slip']);
|
||||||
}
|
}
|
||||||
else if(strtoupper($ov_value['cash_voucher_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_cash_voucher'])){
|
if (strtoupper($ov_value['offer_letter_was_seen']) == 'YES') {
|
||||||
array_push($document_not_seen,$ov_value['Why_documents_are_not_available_cash_voucher']);
|
array_push($document_seen, 'Offer letter');
|
||||||
|
} else if ($ov_value['offer_letter_was_seen'] == 'NO' && isset($ov_value['Why_documents_are_not_available_offer_letter'])) {
|
||||||
|
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_offer_letter']);
|
||||||
}
|
}
|
||||||
if(strtoupper($ov_value['salary_slip_was_seen']) == 'YES'){
|
if (strtoupper($ov_value['others_Please_specifys']) == 'YES' && !empty($ov_value['Others_specify'])) {
|
||||||
array_push($document_seen,'Salary Slip');
|
array_push($document_seen, $ov_value['Others_specify']);
|
||||||
}else if(strtoupper($ov_value['salary_slip_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_salary_slip'])){
|
|
||||||
array_push($document_not_seen,$ov_value['Why_documents_are_not_available_salary_slip']);
|
|
||||||
}
|
|
||||||
if(strtoupper($ov_value['offer_letter_was_seen']) == 'YES'){
|
|
||||||
array_push($document_seen,'Offer letter');
|
|
||||||
}else if($ov_value['offer_letter_was_seen'] == 'NO' && isset($ov_value['Why_documents_are_not_available_offer_letter'])){
|
|
||||||
array_push($document_not_seen,$ov_value['Why_documents_are_not_available_offer_letter']);
|
|
||||||
}
|
|
||||||
if(strtoupper($ov_value['others_Please_specifys']) == 'YES' && !empty($ov_value['Others_specify'])){
|
|
||||||
array_push($document_seen,$ov_value['Others_specify']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<ul><li style="margin: 15px 0;"><b>Employer Profile:</b> '.$ov_value['employer_brief'].'.</li>
|
echo '<ul><li style="margin: 15px 0;"><b>Employer Profile:</b> ' . $ov_value['employer_brief'] . '.</li>
|
||||||
|
|
||||||
<li style="margin: 15px 0;">The applicant has served <b> '.$year.$month.'</b> as employee in this firm / company.</li>';
|
<li style="margin: 15px 0;">The applicant has served <b> ' . $year . $month . '</b> as employee in this firm / company.</li>';
|
||||||
|
|
||||||
if(strtoupper($ov_value['salary_confirmed_by_person_met']) == 'YES'){
|
if (strtoupper($ov_value['salary_confirmed_by_person_met']) == 'YES') {
|
||||||
echo '<li style="margin: 15px 0;">Applicant’s Salary confirmed has been confirmed by the person met. He gets monthly gross salary of
|
echo '<li style="margin: 15px 0;">Applicant’s Salary confirmed has been confirmed by the person met. He gets monthly gross salary of
|
||||||
'.$grosssal.' and net monthly salary of '.$netsal.'.</li> ';
|
' . $grosssal . ' and net monthly salary of ' . $netsal . '.</li> ';
|
||||||
}
|
}
|
||||||
if(strtoupper($ov_value['salary_confirmed_by_person_met']) == 'NO'){
|
if (strtoupper($ov_value['salary_confirmed_by_person_met']) == 'NO') {
|
||||||
|
|
||||||
echo '<li style="margin: 15px 0;">Applicant’s Salary <b> was not confirmed </b> by the person met.</li> ';
|
echo '<li style="margin: 15px 0;">Applicant’s Salary <b> was not confirmed </b> by the person met.</li> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<li style="margin: 15px 0;">Applicant salary is getting paid Via <b>'.$ov_value['mode_of_getting_salary'].'</b>.</li> ';
|
echo '<li style="margin: 15px 0;">Applicant salary is getting paid Via <b>' . $ov_value['mode_of_getting_salary'] . '</b>.</li> ';
|
||||||
echo '<li style="margin: 15px 0;">Employment Document Sighted: <b>'.implode('/', $document_seen).'</b> were seen during Field visit and photographs of same is available in zipped file enclosed with report.</li> ';
|
echo '<li style="margin: 15px 0;">Employment Document Sighted: <b>' . implode('/', $document_seen) . '</b> were seen during Field visit and photographs of same is available in zipped file enclosed with report.</li> ';
|
||||||
if(!empty($document_not_seen)){
|
if (!empty($document_not_seen)) {
|
||||||
echo '<li style="margin: 15px 0;">Documents were not sighted during visit because, <b>'.implode('/', $document_seen).'</b></li> ';
|
echo '<li style="margin: 15px 0;">Documents were not sighted during visit because, <b>' . implode('/', $document_seen) . '</b></li> ';
|
||||||
}
|
}
|
||||||
echo '<li style="margin: 15px 0;">Officer Sighted '.$ov_value['no_of_employees_sighted_by_PD_officer_during_visit'].' employees at the visited premises.';
|
echo '<li style="margin: 15px 0;">Officer Sighted ' . $ov_value['no_of_employees_sighted_by_PD_officer_during_visit'] . ' employees at the visited premises.';
|
||||||
echo'<li style="margin: 15px 0;">The Business Name board was <b>'.$company_name_sighted.'</b> at the visited address.</li>
|
echo '<li style="margin: 15px 0;">The Business Name board was <b>' . $company_name_sighted . '</b> at the visited address.</li>
|
||||||
<li style="margin: 15px 0;">Business Activity was <b>'.$business_activities.$business_activities_during_visit .'</b>.</li>';
|
<li style="margin: 15px 0;">Business Activity was <b>' . $business_activities . $business_activities_during_visit . '</b>.</li>';
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
<!-- ####################### office visit DI ends ############################-->
|
<!-- ####################### office visit DI ends ############################-->
|
||||||
@ -542,15 +425,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
<!-- ################# credit manager specific query #################-->
|
<!-- ################# credit manager specific query #################-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
$credit_officier_specific_queries = array();
|
||||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
if (isset($pd_processed_forms[31])) {
|
||||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||||
// print_r($credit_officier_specific_queries);
|
|
||||||
}
|
}
|
||||||
|
// echo 'CREDIT ********************';
|
||||||
|
// print_r($data['pd_processed_forms'][24]);
|
||||||
|
//print_r($credit_officier_specific_queries);
|
||||||
|
// if(count($credit_officier_specific_queries))
|
||||||
|
// {
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
||||||
|
//echo '<br>';
|
||||||
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
@ -564,16 +450,15 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
// echo '<h3 contenteditable="true">Document to be photographed/scanned: </h3>';
|
|
||||||
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
||||||
|
//
|
||||||
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||||
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
||||||
echo 'Provided ( Yes / No ) : ' . (strtoupper($doc_value['ans']) == 'YES' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
if ($doc_value['ans'] != 'yes') {
|
||||||
echo 'Reason : ' . $doc_value['reason'];
|
echo 'Reason : ' . $doc_value['reason'];
|
||||||
}
|
}
|
||||||
echo '<br><br>';
|
echo '<br><br>';
|
||||||
@ -590,6 +475,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
||||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||||
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
||||||
|
|
||||||
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
||||||
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
||||||
}
|
}
|
||||||
@ -604,7 +490,10 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- ################# credit manager specific query ends#################-->
|
<!-- ################# credit manager specific query ends#################-->
|
||||||
|
|
||||||
<!-- ################# final remarks #################-->
|
<!-- ################# final remarks #################-->
|
||||||
@ -612,7 +501,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
<br>
|
<br>
|
||||||
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
||||||
<?php
|
<?php
|
||||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'], true);
|
||||||
$final_remark_data = $final_remark['json'];
|
$final_remark_data = $final_remark['json'];
|
||||||
//print_r($final_remark_data);
|
//print_r($final_remark_data);
|
||||||
|
|
||||||
@ -623,17 +512,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$Could_not_verfiy = null;
|
$Could_not_verfiy = null;
|
||||||
$fo_diplay = null;
|
$fo_diplay = null;
|
||||||
|
|
||||||
if(isset($final_remark_data['final_status_of_visit'])){
|
if (isset($final_remark_data['final_status_of_visit'])) {
|
||||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||||
$Could_not_verfiy = 1;
|
$Could_not_verfiy = 1;
|
||||||
$fo_diplay = "Could not verfiy";
|
$fo_diplay = "Could not verfiy";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||||
$positive = 1;
|
$positive = 1;
|
||||||
$fo_diplay = "Positive";
|
$fo_diplay = "Positive";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||||
$negative = 1;
|
$negative = 1;
|
||||||
$fo_diplay = "Negative";
|
$fo_diplay = "Negative";
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||||
|
|
||||||
|
|
||||||
@ -650,24 +540,24 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||||
|
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||||
|
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||||
echo $tick_mark;
|
echo $tick_mark;
|
||||||
} ?></div>
|
} ?></div>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
|
||||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
|
||||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -676,91 +566,91 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<li>Remarks:</li>
|
<li>Remarks:</li>
|
||||||
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- ################# final remarks ends #################-->
|
<!-- ################# final remarks ends #################-->
|
||||||
<!-- ################# satellite #################-->
|
<!-- ################# satellite #################-->
|
||||||
<?php
|
<?php
|
||||||
if (!empty($distances['distance'])) {
|
if (!empty($distances['distance'])) {
|
||||||
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
||||||
}
|
|
||||||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
|
||||||
echo '<br><br>';
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
$satellite_url = '';
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
|
||||||
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
|
||||||
if ($com_value['pd_document_title'] == 'satellite') {
|
|
||||||
$satellite_url = $com_value['doc_url'];
|
|
||||||
unset($pd_images['common_images'][$com_key]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
||||||
|
echo '<br><br>';
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
$satellite_url = '';
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||||
?>
|
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
||||||
|
if ($com_value['pd_document_title'] == 'satellite') {
|
||||||
|
$satellite_url = $com_value['doc_url'];
|
||||||
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
unset($pd_images['common_images'][$com_key]);
|
||||||
<!-- ################# satellite ends #################-->
|
break;
|
||||||
<!-- ################# common images #################-->
|
|
||||||
|
|
||||||
<?php
|
|
||||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
|
||||||
// return ($var['isactive'] != 0);
|
|
||||||
// });
|
|
||||||
if (count($pd_images['34'])) {
|
|
||||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
|
||||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
|
||||||
echo '<div id="page_break"></div>';
|
|
||||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
|
||||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
|
||||||
|
|
||||||
$add_factor = 0;
|
|
||||||
for ($row = 0; $row < $tot_rows; $row++) {
|
|
||||||
echo '<tr>';
|
|
||||||
|
|
||||||
$from = $row == 0 ? $row : ($row + $add_factor);
|
|
||||||
$to = ($from + 2);
|
|
||||||
$add_factor = $add_factor + 2;
|
|
||||||
for ($i = $from; $i <= $to; $i++) {
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
|
||||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
|
||||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//unset($p_key);
|
|
||||||
}
|
}
|
||||||
echo '</tr>';
|
|
||||||
}
|
}
|
||||||
echo '</tbody></table>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!-- ################# common images #################-->
|
|
||||||
<!-- ########################### End-disclaimer start ######################################### -->
|
|
||||||
<?php
|
|
||||||
|
|
||||||
echo "<p>";
|
|
||||||
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
|
||||||
if (isset($footer_lender_stamp)) {
|
|
||||||
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
|
||||||
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
|
||||||
|
|
||||||
if (isset($footer_lender_disclaimer)) {
|
|
||||||
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
|
||||||
}
|
|
||||||
echo "</p>";
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!-- ########################### End disclaimer end ######################################### -->
|
|
||||||
|
|
||||||
|
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||||||
|
<!-- ################# satellite ends #################-->
|
||||||
|
<!-- ################# common images #################-->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||||
|
// return ($var['isactive'] != 0);
|
||||||
|
// });
|
||||||
|
if (count($pd_images['34'])) {
|
||||||
|
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||||
|
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||||
|
echo '<div id="page_break"></div>';
|
||||||
|
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||||
|
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||||
|
|
||||||
|
$add_factor = 0;
|
||||||
|
for ($row = 0; $row < $tot_rows; $row++) {
|
||||||
|
echo '<tr>';
|
||||||
|
|
||||||
|
$from = $row == 0 ? $row : ($row + $add_factor);
|
||||||
|
$to = ($from + 2);
|
||||||
|
$add_factor = $add_factor + 2;
|
||||||
|
for ($i = $from; $i <= $to; $i++) {
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||||
|
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||||
|
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
//unset($p_key);
|
||||||
|
}
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
echo '</tbody></table>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!-- ################# common images #################-->
|
||||||
|
<!-- ########################### End-disclaimer start ######################################### -->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
echo "<p>";
|
||||||
|
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
||||||
|
if (isset($footer_lender_stamp)) {
|
||||||
|
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
||||||
|
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
||||||
|
|
||||||
|
if (isset($footer_lender_disclaimer)) {
|
||||||
|
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
||||||
|
}
|
||||||
|
echo "</p>";
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- ########################### End disclaimer end ######################################### -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -55,7 +55,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
/*line-height: 35px;*/
|
/*line-height: 35px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.non-editable {
|
.non-editable {
|
||||||
background-color: #99ff99;
|
background-color: #99ff99;
|
||||||
}
|
}
|
||||||
@ -64,42 +63,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: #e00201;
|
color: #e00201;
|
||||||
}
|
}
|
||||||
|
|
||||||
.simpletable,
|
|
||||||
.simpletable th,
|
|
||||||
.simpletable td {
|
|
||||||
border: 1px solid black;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ######### Mini Score Card Table Styles######### */
|
|
||||||
|
|
||||||
.mini_scorecard_table {
|
|
||||||
width: 100%;
|
|
||||||
page-break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini_scorecard_table td,
|
|
||||||
.mini_scorecard_table th {
|
|
||||||
|
|
||||||
page-break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini_scorecard_table th {
|
|
||||||
padding-top: 5px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #0191ed;
|
|
||||||
color: white;
|
|
||||||
page-break-inside: avoid;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########End of Mini Score Card Table Styles######### */
|
|
||||||
|
|
||||||
|
|
||||||
/* #########End of Mini Score Card Div Styles######### */
|
/* #########End of Mini Score Card Div Styles######### */
|
||||||
#rcorners_green {
|
#rcorners_green {
|
||||||
|
|
||||||
background: #33cc33;
|
background: #33cc33;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
@ -107,7 +72,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
|
|
||||||
#rcorners_red {
|
#rcorners_red {
|
||||||
|
|
||||||
background: red;
|
background: red;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
@ -115,7 +79,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
|
|
||||||
#rcorners_light_green {
|
#rcorners_light_green {
|
||||||
|
|
||||||
background: #99ff66;
|
background: #99ff66;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
@ -123,7 +86,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
|
|
||||||
#rcorners_amber {
|
#rcorners_amber {
|
||||||
|
|
||||||
background: #ff9900;
|
background: #ff9900;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
@ -132,11 +94,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
/* #########End of Mini Score Card DIv Styles######### */
|
/* #########End of Mini Score Card DIv Styles######### */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Score Card Table Styles######### */
|
/* #########Score Card Table Styles######### */
|
||||||
|
|
||||||
.scorecard_table {
|
.scorecard_table {
|
||||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||||
/*font-family: Merriweather;*/
|
/*font-family: Merriweather;*/
|
||||||
@ -213,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
/* #########End of Score Card Table Styles######### */
|
/* #########End of Score Card Table Styles######### */
|
||||||
|
|
||||||
#boxstyle2 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 200px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#boxstyle3 {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 120px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px outset black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#first_div {
|
#first_div {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@ -266,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
.chip {
|
|
||||||
|
|
||||||
padding: 0 25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 600px;
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
border-radius: 50px;
|
|
||||||
background-color: #f1f1f1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img1 {
|
|
||||||
float: left;
|
|
||||||
margin: 0 10px 0 -25px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip #img2 {
|
|
||||||
float: right;
|
|
||||||
margin: 0 -25px 0px -125px;
|
|
||||||
height: 100px;
|
|
||||||
width: 100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Person met card css######### */
|
|
||||||
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### ;*/
|
|
||||||
|
|
||||||
.gallery {
|
|
||||||
margin: 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery:hover {
|
|
||||||
border: 1px solid #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.desc {
|
|
||||||
padding: 8px;
|
|
||||||
text-align: center;
|
|
||||||
color: green
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #########Doc sighted gallary css######### */
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS START ######### */
|
/* ######### TOOLTIP CSS START ######### */
|
||||||
|
|
||||||
.tooltip {
|
|
||||||
position: relative;
|
|
||||||
display: inline;
|
|
||||||
border-bottom: 1px dotted black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext {
|
|
||||||
visibility: hidden;
|
|
||||||
width: 120px;
|
|
||||||
background-color: black;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 5px 0;
|
|
||||||
|
|
||||||
/* Position the tooltip */
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover .tooltiptext {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ini_table {
|
#ini_table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -362,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intelligence {
|
|
||||||
/*background-color: lightgrey;*/
|
|
||||||
width: auto;
|
|
||||||
border: 5px solid #0191ed;
|
|
||||||
padding: 5px;
|
|
||||||
/*margin: 10px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ######### TOOLTIP CSS END ######### */
|
/* ######### TOOLTIP CSS END ######### */
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -453,15 +303,15 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
|
||||||
$value = $general_form['json'];
|
$value = $general_form['json'];
|
||||||
$all_applicant_details = $applicants_details;
|
$all_applicant_details = $applicants_details;
|
||||||
if (strtoupper($value['is_person_met']) == 'YES') {
|
if (strtoupper($value['is_person_met']) == 'YES') {
|
||||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met_master'].')</b> was met at the visited address.' . '</p>';
|
echo '<p>' . 'Applicant <b>(' . $value['Name_of_the_Person_met_master'] . ')</b> was met at the visited address.' . '</p>';
|
||||||
}else if (strtoupper($value['is_person_met']) == 'NO') {
|
} else if (strtoupper($value['is_person_met']) == 'NO') {
|
||||||
echo '<p>' . '('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit.' . '</p>';
|
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') (' . $value['designation_person_met_master'] . ') was met at the visited address during visit.' . '</p>';
|
||||||
}
|
}
|
||||||
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
||||||
echo '<p>' . $general_form['general_remark'] . '</p>';
|
echo '<p>' . $general_form['general_remark'] . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!-- ####################### general information ends ############################-->
|
<!-- ####################### general information ends ############################-->
|
||||||
|
|
||||||
<!-- ####################### address details ############################-->
|
<!-- ####################### address details ############################-->
|
||||||
@ -469,19 +319,19 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
echo '<br>';
|
echo '<br>';
|
||||||
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
||||||
$address_value = $address_form['json'];
|
$address_value = $address_form['json'];
|
||||||
if(!empty($address_value)){
|
if (!empty($address_value)) {
|
||||||
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Visit Initiated Address:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'. </p>';
|
<b>Visit Initiated Address:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '. </p>';
|
||||||
}
|
}
|
||||||
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
|
||||||
echo '<p>' . '
|
echo '<p>' . '
|
||||||
<b>Address Where Visit is Initiated:</b> '.$address_value['initiated_address'].' , '.$address_value['city_master'].' , '.$address_value['state_master'].' , '.$address_value['pincode_master'].'.
|
<b>Address Where Visit is Initiated:</b> ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '.
|
||||||
<b>Address Where Visit was actually done:</b> '.$address_value['actual_pd_address'].' , '.$address_value['city2_master'].' , '.$address_value['state2_master'].' , '.$address_value['pincode2_master'].'.
|
<b>Address Where Visit was actually done:</b> ' . $address_value['actual_pd_address'] . ' , ' . $address_value['city2_master'] . ' , ' . $address_value['state2_master'] . ' , ' . $address_value['pincode2_master'] . '.
|
||||||
<b>Reason for change in Visit address:</b> '.$address_value['end_use'].'.</p>';
|
<b>Reason for change in Visit address:</b> ' . $address_value['end_use'] . '.</p>';
|
||||||
}
|
}
|
||||||
echo '<p>' . 'The Field Visit was done at <b>'.$address_value['address_type_master'].'</b> of the loan applicants. The <b>'.$address_value['address_type_master'].'</b> is located in a <b>'.$address_value['locality_master'].'</b> and the estimated area of the <b>'.$address_value['address_type_master'].'</b> is <b>'.$address_value['uom_master'].'</b>. The location was <b>'.$address_value['Approach_to_PD_location'].'</b>. As Per Officer, the <b>'.$address_value['address_type_master'].'</b> is situated in a <b>'.$address_value['comment_locality_master'].'</b> Locality. ' . '</p>';
|
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. The <b>' . $address_value['address_type_master'] . '</b> is located in a <b>' . $address_value['locality_master'] . '</b> and the estimated area of the <b>' . $address_value['address_type_master'] . '</b> is <b>' . $address_value['uom_master'] . '</b>. The location was <b>' . $address_value['Approach_to_PD_location'] . '</b>. As Per Officer, the <b>' . $address_value['address_type_master'] . '</b> is situated in a <b>' . $address_value['comment_locality_master'] . '</b> Locality. ' . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
@ -496,28 +346,28 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$residence_visit_data = json_decode($pd_processed_forms[30][0]['processed_json'], true);
|
$residence_visit_data = json_decode($pd_processed_forms[30][0]['processed_json'], true);
|
||||||
$rv_value = $residence_visit_data['json'];
|
$rv_value = $residence_visit_data['json'];
|
||||||
|
|
||||||
$year = (abs($rv_value['year'])>=2) ? $rv_value['year'].' Years' : $rv_value['year'].' Year';
|
$year = (abs($rv_value['year']) >= 2) ? $rv_value['year'] . ' Years' : $rv_value['year'] . ' Year';
|
||||||
$month = '';
|
$month = '';
|
||||||
if($rv_value['month'] > 0 && (!empty($rv_value['month'])) && isset($rv_value['month'])){
|
if ($rv_value['month'] > 0 && (!empty($rv_value['month'])) && isset($rv_value['month'])) {
|
||||||
$month = (abs($rv_value['month'])>=2) ? $rv_value['month'].' Months' : $rv_value['month'].' Month';
|
$month = (abs($rv_value['month']) >= 2) ? $rv_value['month'] . ' Months' : $rv_value['month'] . ' Month';
|
||||||
$month = ' and '.$month;
|
$month = ' and ' . $month;
|
||||||
}
|
}
|
||||||
$type_of_proof = preg_replace("/_/i", ' ', $rv_value['type_of_proof'] );
|
$type_of_proof = preg_replace("/_/i", ' ', $rv_value['type_of_proof']);
|
||||||
$type_of_proof = ucwords($type_of_proof);
|
$type_of_proof = ucwords($type_of_proof);
|
||||||
|
|
||||||
echo '<ul><li style="margin: 15px 0;">The Applicant is residing at the visited address for '.$year.$month.'.</li>
|
echo '<ul><li style="margin: 15px 0;">The Applicant is residing at the visited address for ' . $year . $month . '.</li>
|
||||||
<li style="margin: 15px 0;">The Residence is <b>'.ucwords($rv_value['Visited_address_is_rented']).'</b> by the applicant.</li>';
|
<li style="margin: 15px 0;">The Residence is <b>' . ucwords($rv_value['Visited_address_is_rented']) . '</b> by the applicant.</li>';
|
||||||
|
|
||||||
if(strtoupper($ov_value['address_proof_shared']) == 'YES'){
|
if (strtoupper($ov_value['address_proof_shared']) == 'YES') {
|
||||||
echo '<li style="margin: 15px 0;"> Address Proof: <b>'.$type_of_proof.'</b> was shared during visit.</li>';
|
echo '<li style="margin: 15px 0;"> Address Proof: <b>' . $type_of_proof . '</b> was shared during visit.</li>';
|
||||||
}
|
}
|
||||||
if(strtoupper($ov_value['address_proof_shared']) == 'NO'){
|
if (strtoupper($ov_value['address_proof_shared']) == 'NO') {
|
||||||
echo '<li style="margin: 15px 0;"> Address Proof <b> was not shared </b> during visit.</li>';
|
echo '<li style="margin: 15px 0;"> Address Proof <b> was not shared </b> during visit.</li>';
|
||||||
}
|
}
|
||||||
// if($ov_value['Visited_address_is_rented'] != 'not disclosed '){
|
// if($ov_value['Visited_address_is_rented'] != 'not disclosed '){
|
||||||
// echo '<li style="margin: 15px 0;">The <b>'.$ov_value['visited_address_is'].'</b> is <b>'.$ov_value['Visited_address_is_rented'].'</b>.</li>';
|
// echo '<li style="margin: 15px 0;">The <b>'.$ov_value['visited_address_is'].'</b> is <b>'.$ov_value['Visited_address_is_rented'].'</b>.</li>';
|
||||||
// }
|
// }
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
<!-- ####################### office visit DI ends ############################-->
|
<!-- ####################### office visit DI ends ############################-->
|
||||||
@ -525,134 +375,125 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
<!-- ################# neighbourhood/reference check #################-->
|
<!-- ################# neighbourhood/reference check #################-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$pd_offiecer_status_about_neighbor = "";
|
$pd_offiecer_status_about_neighbor = "";
|
||||||
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
||||||
$neighbour_value = $neighbour_details['json'];
|
$neighbour_value = $neighbour_details['json'];
|
||||||
// print_r($neighbour_value);
|
// print_r($neighbour_value);
|
||||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
||||||
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
||||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||||
// }
|
// }
|
||||||
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
||||||
?>
|
?>
|
||||||
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
//echo $pd_offiecer_status_about_neighbor;
|
//echo $pd_offiecer_status_about_neighbor;
|
||||||
if(count($neighbour_value)>0){
|
if (count($neighbour_value) > 0) {
|
||||||
|
|
||||||
$neighbourhood_name='Neighbour Check was done with ';
|
$neighbourhood_name = 'Neighbour Check was done with ';
|
||||||
$neighbourhood_name.= $neighbour_value['neighbourhood_name'].'.';
|
$neighbourhood_name .= $neighbour_value['neighbourhood_name'] . '.';
|
||||||
$neighbourhood_do_know = null;
|
$neighbourhood_do_know = null;
|
||||||
$neighbourhood_business_running_yr = null;
|
$neighbourhood_business_running_yr = null;
|
||||||
$ownership = null;
|
$ownership = null;
|
||||||
$neighbourhood_name_only = $neighbour_value['neighbourhood_name'];
|
$neighbourhood_name_only = $neighbour_value['neighbourhood_name'];
|
||||||
if(strtoupper($neighbour_value['do_know'])=='YES'){
|
if (strtoupper($neighbour_value['do_know']) == 'YES') {
|
||||||
$neighbourhood_do_know = $neighbour_value['neighbourhood_name']." knows about applicants and their business.";
|
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " knows about applicants and their business.";
|
||||||
} else if(strtoupper($neighbour_value['do_know'])=='NO'){
|
} else if (strtoupper($neighbour_value['do_know']) == 'NO') {
|
||||||
$neighbourhood_do_know = $neighbour_value['neighbourhood_name']." did not know about the applicant or their business.";
|
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " did not know about the applicant or their business.";
|
||||||
|
}
|
||||||
|
if ($neighbour_value['how_long_do_know_in_year'] || $neighbour_value['how_long_do_know_in_month']) {
|
||||||
|
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " confirmed that the business has been in operation for ";
|
||||||
|
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_year'] == 1) ? $neighbour_value['how_long_do_know_in_year'] . " year" : (($neighbour_value['how_long_do_know_in_year'] > 1) ? $neighbour_value['how_long_do_know_in_year'] . " years" : "");
|
||||||
|
$neighbour_value['how_long_do_know_in_year'] && $neighbour_value['how_long_do_know_in_month'] ? $neighbourhood_business_running_yr .= ' and ' : '';
|
||||||
|
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_month'] == 1) ? $neighbour_value['how_long_do_know_in_month'] . " month" : (($neighbour_value['how_long_do_know_in_month'] > 1) ? $neighbour_value['how_long_do_know_in_month'] . " months" : "");
|
||||||
|
$neighbourhood_business_running_yr .= '.';
|
||||||
|
} else {
|
||||||
|
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " was not aware of how long the business is in operation.";
|
||||||
|
}
|
||||||
|
$ownwers_list = '';
|
||||||
|
if (isset($neighbour_value['know_organisation_owner']) && strtoupper($neighbour_value['know_organisation_owner']) == 'YES') {
|
||||||
|
if (isset($neighbour_value['organisation_owner'])) {
|
||||||
|
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
||||||
|
for ($i = 0; $i < count($neighbour_value['organisation_owner']); $i++) {
|
||||||
|
$owner = $neighbour_value['organisation_owner'][$i];
|
||||||
|
if ($owner != 0) {
|
||||||
|
$title = MYUTIL::applicantTitleName($applicants_details, $owner);
|
||||||
|
$ownwers_list .= $title . ' ' . APPLICANTNAME_GRABBER::getApplicantsNameById($owner, $applicants_details) . ' , ';
|
||||||
|
} else {
|
||||||
|
$ownwers_list .= ' ' . $neighbour_value['other_organisation_owner'] . ' , ';
|
||||||
}
|
}
|
||||||
if($neighbour_value['how_long_do_know_in_year'] || $neighbour_value['how_long_do_know_in_month'])
|
|
||||||
{
|
|
||||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." confirmed that the business has been in operation for ";
|
|
||||||
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_year'] == 1) ? $neighbour_value['how_long_do_know_in_year']." year" : (($neighbour_value['how_long_do_know_in_year'] > 1) ? $neighbour_value['how_long_do_know_in_year']." years" : "");
|
|
||||||
$neighbour_value['how_long_do_know_in_year'] && $neighbour_value['how_long_do_know_in_month'] ? $neighbourhood_business_running_yr .= ' and ':'';
|
|
||||||
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_month'] == 1) ? $neighbour_value['how_long_do_know_in_month']." month" : (($neighbour_value['how_long_do_know_in_month'] > 1) ? $neighbour_value['how_long_do_know_in_month']." months" : "");
|
|
||||||
$neighbourhood_business_running_yr .= '.';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." was not aware of how long the business is in operation.";
|
|
||||||
}
|
|
||||||
$ownwers_list = '';
|
|
||||||
if(isset($neighbour_value['know_organisation_owner']) && strtoupper($neighbour_value['know_organisation_owner']) == 'YES'){
|
|
||||||
if(isset($neighbour_value['organisation_owner'])){
|
|
||||||
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
|
||||||
for($i = 0; $i < count($neighbour_value['organisation_owner']); $i++)
|
|
||||||
{
|
|
||||||
$owner = $neighbour_value['organisation_owner'][$i];
|
|
||||||
if($owner != 0)
|
|
||||||
{
|
|
||||||
$title = MYUTIL::applicantTitleName($applicants_details,$owner);
|
|
||||||
$ownwers_list .= $title.' '.APPLICANTNAME_GRABBER::getApplicantsNameById($owner,$applicants_details).' , ';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$ownwers_list .= ' '.$neighbour_value['other_organisation_owner'].' , ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//echo $ownwers_list;
|
|
||||||
//$ownwers_list = substr_replace($ownwers_list,'', strrpos(-$ownwers_list,','),1);
|
|
||||||
//echo $ownwers_list;
|
|
||||||
//echo $ownwers_list;echo "**********";
|
|
||||||
|
|
||||||
$ownwers_list = substr_replace($ownwers_list,'', strrpos($ownwers_list,','),1);
|
|
||||||
if(strrpos($ownwers_list,','))
|
|
||||||
{
|
|
||||||
$ownwers_list = substr_replace($ownwers_list,' and ', strrpos($ownwers_list,','),1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$grammer1 = count($neighbour_value['organisation_owner']) > 1 ? ' are ': ' is ';
|
|
||||||
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners': 'owner';
|
|
||||||
$ownership = 'As per '.$neighbour_value['neighbourhood_name'].' the '.$grammer2 .' of '.$company_name.$grammer1.$ownwers_list.'.';
|
|
||||||
|
|
||||||
}}else
|
|
||||||
{
|
|
||||||
$ownership = $neighbour_value['neighbourhood_name']." was not aware of the business ownership.";
|
|
||||||
}
|
|
||||||
$existNeighRefCheck = array('neighbourhood_name_only' => $neighbourhood_name_only,'neighbourhood_name' => $neighbourhood_name,'neighbourhood_do_know' => $neighbourhood_do_know,'neighbourhood_business_running_yr' => $neighbourhood_business_running_yr,'ownership' => $ownership);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($existNeighRefCheck)){
|
|
||||||
$nfValue = $existNeighRefCheck;
|
|
||||||
echo $nfValue['neighbourhood_name_only'];
|
|
||||||
?>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
|
||||||
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?></li>
|
|
||||||
</ul>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor;?>.</span></li>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
else{?>
|
//echo $ownwers_list;
|
||||||
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
//$ownwers_list = substr_replace($ownwers_list,'', strrpos(-$ownwers_list,','),1);
|
||||||
<!-- <p>Neighbour Check was not possible due to Could not verify</p> -->
|
//echo $ownwers_list;
|
||||||
<p>Status of the check: could not verify.</p>
|
//echo $ownwers_list;echo "**********";
|
||||||
|
|
||||||
<?php
|
$ownwers_list = substr_replace($ownwers_list, '', strrpos($ownwers_list, ','), 1);
|
||||||
|
if (strrpos($ownwers_list, ',')) {
|
||||||
|
$ownwers_list = substr_replace($ownwers_list, ' and ', strrpos($ownwers_list, ','), 1);
|
||||||
}
|
}
|
||||||
if($neighbourhood_form_common_remarks != ""){ echo '<p>'. $neighbourhood_form_common_remarks.'</p>';}
|
|
||||||
?>
|
|
||||||
|
$grammer1 = count($neighbour_value['organisation_owner']) > 1 ? ' are ' : ' is ';
|
||||||
|
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners' : 'owner';
|
||||||
|
$ownership = 'As per ' . $neighbour_value['neighbourhood_name'] . ' the ' . $grammer2 . ' of ' . $company_name . $grammer1 . $ownwers_list . '.';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$ownership = $neighbour_value['neighbourhood_name'] . " was not aware of the business ownership.";
|
||||||
|
}
|
||||||
|
$existNeighRefCheck = array('neighbourhood_name_only' => $neighbourhood_name_only, 'neighbourhood_name' => $neighbourhood_name, 'neighbourhood_do_know' => $neighbourhood_do_know, 'neighbourhood_business_running_yr' => $neighbourhood_business_running_yr, 'ownership' => $ownership);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (!empty($existNeighRefCheck)) {
|
||||||
|
$nfValue = $existNeighRefCheck;
|
||||||
|
echo $nfValue['neighbourhood_name_only'];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
||||||
|
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?></li>
|
||||||
|
</ul>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor; ?>.</span></li>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
} else { ?>
|
||||||
|
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
||||||
|
<!-- <p>Neighbour Check was not possible due to Could not verify</p> -->
|
||||||
|
<p>Status of the check: could not verify.</p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($neighbourhood_form_common_remarks != "") {
|
||||||
|
echo '<p>' . $neighbourhood_form_common_remarks . '</p>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- ################# neighbourhood/reference check ends #################-->
|
<!-- ################# neighbourhood/reference check ends #################-->
|
||||||
|
|
||||||
<!-- ################# credit manager specific query #################-->
|
<!-- ################# credit manager specific query #################-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$credit_officier_specific_queries = array();
|
$credit_officier_specific_queries = array();
|
||||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
if (isset($pd_processed_forms[31])) {
|
||||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
|
||||||
// print_r($credit_officier_specific_queries);
|
|
||||||
}
|
}
|
||||||
|
// echo 'CREDIT ********************';
|
||||||
|
// print_r($data['pd_processed_forms'][24]);
|
||||||
|
//print_r($credit_officier_specific_queries);
|
||||||
|
// if(count($credit_officier_specific_queries))
|
||||||
|
// {
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
echo '<h3 contenteditable="true"><u>CREDIT MANAGER`S SPECIFIC QUERIES</u>:</h3>';
|
||||||
|
//echo '<br>';
|
||||||
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
||||||
echo 'Question - ' . $value['question'] . '<br>';
|
echo 'Question - ' . $value['question'] . '<br>';
|
||||||
echo 'Answer - ' . $value['answer'];
|
echo 'Answer - ' . $value['answer'];
|
||||||
@ -664,14 +505,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
echo '<h3 contenteditable="true"><u>DOCUMENT TO BE PHOTOGRAPHED/SCANNED</u>: </h3>';
|
||||||
|
//
|
||||||
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||||
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
echo 'Document Required : ' . $doc_value['doc_name'] . '<br>';
|
||||||
echo 'Provided ( Yes / No ) : ' . (strtoupper($doc_value['ans']) == 'YES' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
if ($doc_value['ans'] != 'yes') {
|
||||||
echo 'Reason : ' . $doc_value['reason'];
|
echo 'Reason : ' . $doc_value['reason'];
|
||||||
}
|
}
|
||||||
echo '<br><br>';
|
echo '<br><br>';
|
||||||
@ -688,6 +529,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
|
||||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||||
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
|
||||||
|
|
||||||
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
|
||||||
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
||||||
}
|
}
|
||||||
@ -702,6 +544,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!-- ################# credit manager specific query ends#################-->
|
<!-- ################# credit manager specific query ends#################-->
|
||||||
|
|
||||||
@ -710,7 +554,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
<br>
|
<br>
|
||||||
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
||||||
<?php
|
<?php
|
||||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'], true);
|
||||||
$final_remark_data = $final_remark['json'];
|
$final_remark_data = $final_remark['json'];
|
||||||
//print_r($final_remark_data);
|
//print_r($final_remark_data);
|
||||||
|
|
||||||
@ -721,17 +565,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
$Could_not_verfiy = null;
|
$Could_not_verfiy = null;
|
||||||
$fo_diplay = null;
|
$fo_diplay = null;
|
||||||
|
|
||||||
if(isset($final_remark_data['final_status_of_visit'])){
|
if (isset($final_remark_data['final_status_of_visit'])) {
|
||||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||||
$Could_not_verfiy = 1;
|
$Could_not_verfiy = 1;
|
||||||
$fo_diplay = "Could not verfiy";
|
$fo_diplay = "Could not verfiy";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||||
$positive = 1;
|
$positive = 1;
|
||||||
$fo_diplay = "Positive";
|
$fo_diplay = "Positive";
|
||||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||||
$negative = 1;
|
$negative = 1;
|
||||||
$fo_diplay = "Negative";
|
$fo_diplay = "Negative";
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||||
|
|
||||||
|
|
||||||
@ -748,24 +593,24 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||||
|
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||||
|
echo $tick_mark;
|
||||||
|
} ?></div>
|
||||||
|
</td>
|
||||||
|
<td style="padding-left:50px;">
|
||||||
|
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||||
|
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||||
echo $tick_mark;
|
echo $tick_mark;
|
||||||
} ?></div>
|
} ?></div>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
|
||||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
<td style="padding-left:50px;">
|
|
||||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
|
||||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
|
||||||
echo $tick_mark;
|
|
||||||
} ?></div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -774,89 +619,89 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<li>Remarks:</li>
|
<li>Remarks:</li>
|
||||||
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
<?php echo '<p style="text-align:justify;">' . $pd_officer_final_remark . '</p>' ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- ################# final remarks ends #################-->
|
<!-- ################# final remarks ends #################-->
|
||||||
<!-- ################# satellite #################-->
|
<!-- ################# satellite #################-->
|
||||||
<?php
|
<?php
|
||||||
if (!empty($distances['distance'])) {
|
if (!empty($distances['distance'])) {
|
||||||
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
|
||||||
}
|
|
||||||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
|
||||||
echo '<br><br>';
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
$satellite_url = '';
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
|
||||||
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
|
||||||
if ($com_value['pd_document_title'] == 'satellite') {
|
|
||||||
$satellite_url = $com_value['doc_url'];
|
|
||||||
unset($pd_images['common_images'][$com_key]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>' . $pd_master_details[0]['start_location'];
|
||||||
|
echo '<br><br>';
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
$satellite_url = '';
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||||
?>
|
foreach ($pd_images['common_images'] as $com_key => $com_value) {
|
||||||
|
if ($com_value['pd_document_title'] == 'satellite') {
|
||||||
|
$satellite_url = $com_value['doc_url'];
|
||||||
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
unset($pd_images['common_images'][$com_key]);
|
||||||
<!-- ################# satellite ends #################-->
|
break;
|
||||||
<?php
|
|
||||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
|
||||||
// return ($var['isactive'] != 0);
|
|
||||||
// });
|
|
||||||
if (count($pd_images['34'])) {
|
|
||||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
|
||||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
|
||||||
echo '<div id="page_break"></div>';
|
|
||||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
|
||||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
|
||||||
|
|
||||||
$add_factor = 0;
|
|
||||||
for ($row = 0; $row < $tot_rows; $row++) {
|
|
||||||
echo '<tr>';
|
|
||||||
|
|
||||||
$from = $row == 0 ? $row : ($row + $add_factor);
|
|
||||||
$to = ($from + 2);
|
|
||||||
$add_factor = $add_factor + 2;
|
|
||||||
for ($i = $from; $i <= $to; $i++) {
|
|
||||||
|
|
||||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
|
||||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
|
||||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//unset($p_key);
|
|
||||||
}
|
}
|
||||||
echo '</tr>';
|
|
||||||
}
|
}
|
||||||
echo '</tbody></table>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!-- ################# common images #################-->
|
|
||||||
<!-- ########################### End-disclaimer start ######################################### -->
|
|
||||||
<?php
|
|
||||||
|
|
||||||
echo "<p>";
|
|
||||||
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
|
||||||
if (isset($footer_lender_stamp)) {
|
|
||||||
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
|
||||||
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
|
||||||
|
|
||||||
if (isset($footer_lender_disclaimer)) {
|
|
||||||
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
|
||||||
}
|
|
||||||
echo "</p>";
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!-- ########################### End disclaimer end ######################################### -->
|
|
||||||
|
|
||||||
|
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||||||
|
<!-- ################# satellite ends #################-->
|
||||||
|
<?php
|
||||||
|
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||||
|
// return ($var['isactive'] != 0);
|
||||||
|
// });
|
||||||
|
if (count($pd_images['34'])) {
|
||||||
|
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||||
|
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||||
|
echo '<div id="page_break"></div>';
|
||||||
|
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||||
|
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||||
|
|
||||||
|
$add_factor = 0;
|
||||||
|
for ($row = 0; $row < $tot_rows; $row++) {
|
||||||
|
echo '<tr>';
|
||||||
|
|
||||||
|
$from = $row == 0 ? $row : ($row + $add_factor);
|
||||||
|
$to = ($from + 2);
|
||||||
|
$add_factor = $add_factor + 2;
|
||||||
|
for ($i = $from; $i <= $to; $i++) {
|
||||||
|
|
||||||
|
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||||
|
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||||
|
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
//unset($p_key);
|
||||||
|
}
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
echo '</tbody></table>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!-- ################# common images #################-->
|
||||||
|
<!-- ########################### End-disclaimer start ######################################### -->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
echo "<p>";
|
||||||
|
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
|
||||||
|
if (isset($footer_lender_stamp)) {
|
||||||
|
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
||||||
|
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/' . $footer_lender_stamp['disclaimer'] . '" /></p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
|
||||||
|
|
||||||
|
if (isset($footer_lender_disclaimer)) {
|
||||||
|
echo '<p align="center"><i>' . $footer_lender_disclaimer['disclaimer'] . '</i></p>';
|
||||||
|
}
|
||||||
|
echo "</p>";
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- ########################### End disclaimer end ######################################### -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user