NAME BOARD SEEN IMAGED ADDED
This commit is contained in:
parent
48aa1a1f67
commit
0121317c9d
@ -5034,7 +5034,7 @@ class PD_Controller extends REST_Controller {
|
|||||||
$records = $this->post('records');
|
$records = $this->post('records');
|
||||||
$pdid = $records['pd_id'];
|
$pdid = $records['pd_id'];
|
||||||
|
|
||||||
ini_set('max_execution_time', 300);
|
//ini_set('max_execution_time', 300);
|
||||||
//PDALERTS::pdnotification($pdid);die();
|
//PDALERTS::pdnotification($pdid);die();
|
||||||
$is_regenerate = 0;
|
$is_regenerate = 0;
|
||||||
if(isset($records['regenerate']))
|
if(isset($records['regenerate']))
|
||||||
|
|||||||
@ -33,7 +33,8 @@ public static function getFamilyMemberDetails($values){
|
|||||||
foreach($values as $parRow){
|
foreach($values as $parRow){
|
||||||
if($parRow['family_member_name'] != "" || $parRow['family_member_name'] != null)
|
if($parRow['family_member_name'] != "" || $parRow['family_member_name'] != null)
|
||||||
{
|
{
|
||||||
$temp_family = array('name' => $parRow['family_member_salutation_master'].' '.$parRow['family_member_name'],'individual_relation' => $parRow['other_family_relationship_id_master'] .' of ','relation_to' => $parRow['relation_to_id_master'],'relation_to_company' => substr($parRow['relationship_with_company_id_master'],0,-2),'started_business' => $parRow['started_business']);
|
$company_relationship = strpos($parRow['relationship_with_company_id_master'], 'of') ? substr($parRow['relationship_with_company_id_master'],0,-2): $parRow['relationship_with_company_id_master'];
|
||||||
|
$temp_family = array('name' => $parRow['family_member_salutation_master'].' '.$parRow['family_member_name'],'individual_relation' => $parRow['other_family_relationship_id_master'] .' of ','relation_to' => $parRow['relation_to_id_master'],'relation_to_company' => $company_relationship,'started_business' => $parRow['started_business']);
|
||||||
|
|
||||||
array_push($getFamilyMembers,$temp_family);
|
array_push($getFamilyMembers,$temp_family);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -797,7 +797,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
$answer = null;
|
$answer = null;
|
||||||
$per = $business_score['attributed_score'] > 0 && $business_score['max_score'] > 0 ? ( ($business_score['attributed_score'] / $business_score['max_score']) * 100) : 0;
|
$per = $business_score['attributed_score'] > 0 && $business_score['max_score'] > 0 ? ( ($business_score['attributed_score'] / $business_score['max_score']) * 100) : 0;
|
||||||
|
|
||||||
$class = ( $per >= 80 ? 'rcorners_green' : ($per >= 70 && $per < 80 ? 'rcorners_light_green' : ($per >= 60 && $per < 70 ? 'rcorners_amber' : 'rcorners_red')));
|
$class = ( $per >= 80 ? 'rcorners_green' : ($per >= 65 && $per < 80 ? 'rcorners_light_green' : ($per >= 50 && $per < 65 ? 'rcorners_amber' : 'rcorners_red')));
|
||||||
|
|
||||||
// if($bsk == 'business_seasonality')
|
// if($bsk == 'business_seasonality')
|
||||||
// {
|
// {
|
||||||
@ -843,7 +843,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
$class = null;
|
$class = null;
|
||||||
$per = $general_score['attributed_score'] > 0 && $general_score['max_score'] > 0 ? ( ($general_score['attributed_score'] / $general_score['max_score']) * 100) : 0;
|
$per = $general_score['attributed_score'] > 0 && $general_score['max_score'] > 0 ? ( ($general_score['attributed_score'] / $general_score['max_score']) * 100) : 0;
|
||||||
|
|
||||||
$class = ( $per >= 80 ? 'rcorners_green' : $per >= 70 && $per < 80 ? 'rcorners_light_green' : $per >= 60 && $per < 70 ? 'rcorners_amber' : 'rcorners_red');
|
$class = ( $per >= 80 ? 'rcorners_green' : ($per >= 65 && $per < 80 ? 'rcorners_light_green' : ($per >= 50 && $per < 65 ? 'rcorners_amber' : 'rcorners_red')));
|
||||||
|
|
||||||
$answer = ucfirst($general_score['answer']);
|
$answer = ucfirst($general_score['answer']);
|
||||||
|
|
||||||
if($gsk == 'value_of_other_assets')
|
if($gsk == 'value_of_other_assets')
|
||||||
@ -906,6 +907,25 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$name_board_seen_img_url = '';
|
||||||
|
if(isset($pd_processed_forms[13][0]))
|
||||||
|
{
|
||||||
|
|
||||||
|
$first_business_form = json_decode($pd_processed_forms[13][0]['processed_json'],true);
|
||||||
|
if($first_business_form['was_the_company_name_board_sighted']=='yes')
|
||||||
|
{
|
||||||
|
//echo 'YES';die();
|
||||||
|
foreach ($pd_images[13] as $image_key => $image_value) {
|
||||||
|
if($image_value['pd_document_title'] == 'Name Board Seen')
|
||||||
|
{
|
||||||
|
$name_board_seen_img_url = $image_value['doc_url'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//echo $name_board_seen_img_url;die();
|
||||||
//print_r($address_images);die();
|
//print_r($address_images);die();
|
||||||
?>
|
?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
@ -948,9 +968,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
<tr> <th>PD Location Approach</th> <th>Name Board of Business</th> </tr>
|
<tr> <th>PD Location Approach</th> <th>Name Board of Business</th> </tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
|
|
||||||
<img border="3" src ="<?php echo $pd_location_approach_img_url;?>" style="width:50%;height:300px;border-color:#0191ed" alt=""/>
|
<img border="3" src ="<?php echo $pd_location_approach_img_url;?>" style="width:50%;height:300px;border-color:#0191ed" alt=""/>
|
||||||
</td><td>
|
</td><td>
|
||||||
<img border="3" src ='http://www.jrwald.com/uploads/5/6/9/6/56965327/3240978-1-orig_orig.jpg' alt="Name Board" style="width:50%;height:300px;border-color:#0191ed" /> </td>
|
<img border="3" src ="<?php echo $name_board_seen_img_url;?>" alt="Name Board" style="width:50%;height:300px;border-color:#0191ed" /> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr> <td><?php echo $pd_location_approach_img_location .'<br>'.$pd_location_approach_img_date; ?></td> <td> </td> </tr>
|
<tr> <td><?php echo $pd_location_approach_img_location .'<br>'.$pd_location_approach_img_date; ?></td> <td> </td> </tr>
|
||||||
</table>
|
</table>
|
||||||
@ -1029,7 +1050,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
if(strpos(strval($enduse), 'Others') === false) { $end_use.= $enduse.' and ';}else{ $end_use.=$loan_form['end_use_other'].' and'; }
|
if(strpos(strval($enduse), 'Others') === false) { $end_use.= $enduse.' and ';}else{ $end_use.=$loan_form['end_use_other'].' and'; }
|
||||||
}
|
}
|
||||||
$end_use = substr_replace($end_use, '', strrpos($end_use, 'and'),strlen($end_use));
|
$end_use = substr_replace($end_use, '', strrpos($end_use, 'and'),strlen($end_use));
|
||||||
|
$end_use = 'For '.$end_use;
|
||||||
$loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use);
|
$loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use);
|
||||||
|
|
||||||
if(strcasecmp($loan_form['is_transfer'],'no'))
|
if(strcasecmp($loan_form['is_transfer'],'no'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user