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;
|
||||
}
|
||||
|
||||
.simpletable,
|
||||
.simpletable th,
|
||||
.simpletable td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* #########End of Mini Score Card Div Styles######### */
|
||||
#rcorners_green {
|
||||
background: #33cc33;
|
||||
@ -178,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/* #########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 {
|
||||
width: 150px;
|
||||
height: 25px;
|
||||
@ -231,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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 {
|
||||
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 {
|
||||
table-layout: fixed;
|
||||
width: 80%;
|
||||
@ -327,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.intelligence {
|
||||
/*background-color: lightgrey;*/
|
||||
width: auto;
|
||||
border: 5px solid #0191ed;
|
||||
padding: 5px;
|
||||
/*margin: 10px;*/
|
||||
}
|
||||
|
||||
/* ######### TOOLTIP CSS END ######### */
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
@ -520,32 +405,25 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else if (strtoupper($neighbour_value['do_know']) == 'NO') {
|
||||
$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'])
|
||||
{
|
||||
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
|
||||
{
|
||||
} 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++)
|
||||
{
|
||||
for ($i = 0; $i < count($neighbour_value['organisation_owner']); $i++) {
|
||||
$owner = $neighbour_value['organisation_owner'][$i];
|
||||
if($owner != 0)
|
||||
{
|
||||
if ($owner != 0) {
|
||||
$title = MYUTIL::applicantTitleName($applicants_details, $owner);
|
||||
$ownwers_list .= $title . ' ' . APPLICANTNAME_GRABBER::getApplicantsNameById($owner, $applicants_details) . ' , ';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$ownwers_list .= ' ' . $neighbour_value['other_organisation_owner'] . ' , ';
|
||||
}
|
||||
}
|
||||
@ -555,8 +433,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
//echo $ownwers_list;echo "**********";
|
||||
|
||||
$ownwers_list = substr_replace($ownwers_list, '', strrpos($ownwers_list, ','), 1);
|
||||
if(strrpos($ownwers_list,','))
|
||||
{
|
||||
if (strrpos($ownwers_list, ',')) {
|
||||
$ownwers_list = substr_replace($ownwers_list, ' and ', strrpos($ownwers_list, ','), 1);
|
||||
}
|
||||
|
||||
@ -564,9 +441,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$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
|
||||
{
|
||||
}
|
||||
} 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);
|
||||
@ -592,34 +468,29 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
else{?>
|
||||
} 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>';}
|
||||
if ($neighbourhood_form_common_remarks != "") {
|
||||
echo '<p>' . $neighbourhood_form_common_remarks . '</p>';
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- ################# neighbourhood/reference check ends #################-->
|
||||
|
||||
<!-- ################# credit manager specific query #################-->
|
||||
<?php
|
||||
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
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'])) {
|
||||
|
||||
|
||||
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
||||
echo 'Question - ' . $value['question'] . '<br>';
|
||||
echo 'Answer - ' . $value['answer'];
|
||||
@ -631,14 +502,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo '<br>';
|
||||
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'])) {
|
||||
|
||||
|
||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||
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>');
|
||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
||||
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||
if ($doc_value['ans'] != 'yes') {
|
||||
echo 'Reason : ' . $doc_value['reason'];
|
||||
}
|
||||
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']) {
|
||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||
$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)) {
|
||||
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
|
||||
}
|
||||
@ -669,7 +541,10 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
}
|
||||
|
||||
//}
|
||||
|
||||
?>
|
||||
|
||||
<!-- ################# credit manager specific query ends#################-->
|
||||
|
||||
<!-- ################# final remarks #################-->
|
||||
@ -698,7 +573,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
}}
|
||||
}
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
|
||||
|
||||
@ -63,13 +63,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
color: #e00201;
|
||||
}
|
||||
|
||||
.simpletable,
|
||||
.simpletable th,
|
||||
.simpletable td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* #########End of Mini Score Card Div Styles######### */
|
||||
#rcorners_green {
|
||||
background: #33cc33;
|
||||
@ -178,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/* #########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 {
|
||||
width: 150px;
|
||||
height: 25px;
|
||||
@ -231,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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 {
|
||||
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 {
|
||||
table-layout: fixed;
|
||||
width: 80%;
|
||||
@ -327,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.intelligence {
|
||||
/*background-color: lightgrey;*/
|
||||
width: auto;
|
||||
border: 5px solid #0191ed;
|
||||
padding: 5px;
|
||||
/*margin: 10px;*/
|
||||
}
|
||||
|
||||
/* ######### TOOLTIP CSS END ######### */
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
@ -458,8 +343,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<h3 contenteditable="true"><u>VISIT DETAILS</u>: </h3>';
|
||||
$Office_visit_data = json_decode($pd_processed_forms[29][0]['processed_json'], true);
|
||||
$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';
|
||||
$business_activities = strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES' ? 'seen' : 'not seen';
|
||||
@ -469,7 +352,9 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$business_activities_during_visit = preg_replace("/_/i", ' ', $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 = 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -486,14 +371,12 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$document_not_seen = array();
|
||||
if (strtoupper($ov_value['salary_register_was_seen']) == 'YES') {
|
||||
array_push($document_seen, 'Salary Certificate');
|
||||
}
|
||||
else if(strtoupper($ov_value['salary_register_was_seen'])== 'NO' && isset($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'])) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available']);
|
||||
}
|
||||
if (strtoupper($ov_value['cash_voucher_was_seen']) == 'YES') {
|
||||
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'])){
|
||||
} 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['salary_slip_was_seen']) == 'YES') {
|
||||
@ -542,15 +425,18 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<!-- ################# credit manager specific query #################-->
|
||||
<?php
|
||||
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = 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);
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
}
|
||||
|
||||
// echo 'CREDIT ********************';
|
||||
// print_r($data['pd_processed_forms'][24]);
|
||||
//print_r($credit_officier_specific_queries);
|
||||
// if(count($credit_officier_specific_queries))
|
||||
// {
|
||||
echo '<br>';
|
||||
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'])) {
|
||||
|
||||
|
||||
@ -564,16 +450,15 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
// echo '<h3 contenteditable="true">Document to be photographed/scanned: </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'])) {
|
||||
|
||||
|
||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||
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>');
|
||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
||||
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||
if ($doc_value['ans'] != 'yes') {
|
||||
echo 'Reason : ' . $doc_value['reason'];
|
||||
}
|
||||
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']) {
|
||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||
$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)) {
|
||||
$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#################-->
|
||||
|
||||
<!-- ################# final remarks #################-->
|
||||
@ -633,7 +522,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
}}
|
||||
}
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
|
||||
|
||||
@ -55,7 +55,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
/*line-height: 35px;*/
|
||||
}
|
||||
|
||||
|
||||
.non-editable {
|
||||
background-color: #99ff99;
|
||||
}
|
||||
@ -64,42 +63,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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######### */
|
||||
#rcorners_green {
|
||||
|
||||
background: #33cc33;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
@ -107,7 +72,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
#rcorners_red {
|
||||
|
||||
background: red;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
@ -115,7 +79,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
#rcorners_light_green {
|
||||
|
||||
background: #99ff66;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
@ -123,7 +86,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
#rcorners_amber {
|
||||
|
||||
background: #ff9900;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
@ -132,11 +94,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/* #########End of Mini Score Card DIv Styles######### */
|
||||
|
||||
|
||||
|
||||
|
||||
/* #########Score Card Table Styles######### */
|
||||
|
||||
.scorecard_table {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
@ -213,23 +171,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/* #########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 {
|
||||
width: 150px;
|
||||
height: 25px;
|
||||
@ -266,90 +207,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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 {
|
||||
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 {
|
||||
table-layout: fixed;
|
||||
width: 80%;
|
||||
@ -362,14 +220,6 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.intelligence {
|
||||
/*background-color: lightgrey;*/
|
||||
width: auto;
|
||||
border: 5px solid #0191ed;
|
||||
padding: 5px;
|
||||
/*margin: 10px;*/
|
||||
}
|
||||
|
||||
/* ######### TOOLTIP CSS END ######### */
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
@ -552,32 +402,25 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else if (strtoupper($neighbour_value['do_know']) == 'NO') {
|
||||
$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'])
|
||||
{
|
||||
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
|
||||
{
|
||||
} 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++)
|
||||
{
|
||||
for ($i = 0; $i < count($neighbour_value['organisation_owner']); $i++) {
|
||||
$owner = $neighbour_value['organisation_owner'][$i];
|
||||
if($owner != 0)
|
||||
{
|
||||
if ($owner != 0) {
|
||||
$title = MYUTIL::applicantTitleName($applicants_details, $owner);
|
||||
$ownwers_list .= $title . ' ' . APPLICANTNAME_GRABBER::getApplicantsNameById($owner, $applicants_details) . ' , ';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$ownwers_list .= ' ' . $neighbour_value['other_organisation_owner'] . ' , ';
|
||||
}
|
||||
}
|
||||
@ -587,8 +430,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
//echo $ownwers_list;echo "**********";
|
||||
|
||||
$ownwers_list = substr_replace($ownwers_list, '', strrpos($ownwers_list, ','), 1);
|
||||
if(strrpos($ownwers_list,','))
|
||||
{
|
||||
if (strrpos($ownwers_list, ',')) {
|
||||
$ownwers_list = substr_replace($ownwers_list, ' and ', strrpos($ownwers_list, ','), 1);
|
||||
}
|
||||
|
||||
@ -596,9 +438,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$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
|
||||
{
|
||||
}
|
||||
} 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);
|
||||
@ -624,35 +465,35 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
else{?>
|
||||
} 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>';}
|
||||
if ($neighbourhood_form_common_remarks != "") {
|
||||
echo '<p>' . $neighbourhood_form_common_remarks . '</p>';
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- ################# neighbourhood/reference check ends #################-->
|
||||
|
||||
<!-- ################# credit manager specific query #################-->
|
||||
<?php
|
||||
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = 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);
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
}
|
||||
|
||||
// echo 'CREDIT ********************';
|
||||
// print_r($data['pd_processed_forms'][24]);
|
||||
//print_r($credit_officier_specific_queries);
|
||||
// if(count($credit_officier_specific_queries))
|
||||
// {
|
||||
echo '<br>';
|
||||
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'])) {
|
||||
|
||||
|
||||
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
|
||||
echo 'Question - ' . $value['question'] . '<br>';
|
||||
echo 'Answer - ' . $value['answer'];
|
||||
@ -664,14 +505,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo '<br>';
|
||||
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'])) {
|
||||
|
||||
|
||||
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
|
||||
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>');
|
||||
if (strtoupper($doc_value['ans']) != 'YES') {
|
||||
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '<br>' : 'NO<br>');
|
||||
if ($doc_value['ans'] != 'yes') {
|
||||
echo 'Reason : ' . $doc_value['reason'];
|
||||
}
|
||||
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']) {
|
||||
echo 'Question : ' . $covid_value['question'] . '<br>';
|
||||
$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)) {
|
||||
$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#################-->
|
||||
|
||||
@ -731,7 +575,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
}}
|
||||
}
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user