FI report Code Reverted : ps
This commit is contained in:
parent
12867c2dd4
commit
f0285773d2
@ -4631,7 +4631,7 @@ class PD_Controller extends REST_Controller
|
||||
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
|
||||
$data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid);
|
||||
|
||||
if ($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI" && $data['pd_master_details'][0]['fk_pd_type'] != 4)) {
|
||||
if ($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI")) {
|
||||
$data['pd_score'] = $this->calculateScore($pdid);
|
||||
$score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'], 1) : 0;
|
||||
//echo $score_for_chart;
|
||||
|
||||
@ -655,7 +655,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 3);
|
||||
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>';
|
||||
@ -672,7 +672,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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>';
|
||||
}
|
||||
}else{ echo '<td> </td>';}
|
||||
|
||||
//unset($p_key);
|
||||
}
|
||||
|
||||
@ -605,7 +605,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 3);
|
||||
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>';
|
||||
@ -622,7 +622,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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>';
|
||||
}
|
||||
}else{ echo '<td> </td>';}
|
||||
|
||||
//unset($p_key);
|
||||
}
|
||||
|
||||
@ -656,7 +656,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 3);
|
||||
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>';
|
||||
@ -673,7 +673,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
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>';
|
||||
}
|
||||
}else{ echo '<td> </td>';}
|
||||
|
||||
//unset($p_key);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user