SALES PD IMG ROW

This commit is contained in:
Velz2020 2019-11-16 19:29:54 +05:30
parent dd4da8056b
commit 3591435d7b
3 changed files with 31 additions and 24 deletions

View File

@ -87,8 +87,8 @@ class Sales_PD_Controller extends REST_Controller {
}
}
$records['applicant_id'] = $applicant_name;
$records['applicant_name'] = $applicant_id;
$records['applicant_id'] = $applicant_id;
$records['applicant_name'] = $applicant_name;
$records['officer_name'] = $officer;
$id = null;
if(!$records['sales_pd_id'])
@ -162,7 +162,7 @@ class Sales_PD_Controller extends REST_Controller {
}
$view_data['section9'] = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id),SALEPD_DOCS);
//print_r($view_data);die();
//print_r($this->db->last_query());die();
//$view_name = $sales_pd_data[0]['short_name'].'_'.$sales_pd_data[0]['abbr'];
$view_name = $sales_pd_data[0]['short_name'];
$html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true);

View File

@ -1867,7 +1867,7 @@ if($total_no_of_business > 0) {
echo '<tr> <th>Name of the Financial Insitution</th> <th>TID Number of POS machine</th> </tr>';
foreach($fetchRow['pos_machines_details'] as $pos)
{
echo '<tr> <td class="customtd">'.$pos['pos_machines_financial_institution_name'].'</td> <td class="customtd">'.$pos['tid_no_of_pos_machine'].'</td> </tr>';
echo '<tr> <td class="customtd">'.($pos['pos_machines_financial_institution_name'] ? $pos['pos_machines_financial_institution_name'] : 'Not Provided').'</td> <td class="customtd">'.$pos['tid_no_of_pos_machine'].'</td> </tr>';
}
echo '</table>';
}
@ -3995,7 +3995,7 @@ if($total_no_of_business > 0) {
The table below lists the details of Existing Loan Obligations of the Loan Applicants.
<!-- The table below lists the details of Existing Loan Obligations of the Loan Applicants.
<table class="scorecard_table_resonal_assest">
<thead>
<tr>
@ -4003,23 +4003,23 @@ if($total_no_of_business > 0) {
<?php for($header = 1;$header <= $existLoanResult['total_header']; $header++ ) {echo "<th>Loan $header</th>";}?>
</tr>
</thead>
<tbody>
<tbody> -->
<?php
echo $existLoanResult['first_row'];
echo $existLoanResult['second_row'];
//echo $existLoanResult['third_row'];
echo $existLoanResult['fourth_row'];
echo $existLoanResult['fifth_row'];
echo $existLoanResult['sixth_row'];
echo $existLoanResult['seventh_row'];
echo $existLoanResult['eigth_row'];
echo $existLoanResult['ninth_row'];
echo $existLoanResult['tenth_row'];
// echo $existLoanResult['first_row'];
// echo $existLoanResult['second_row'];
// //echo $existLoanResult['third_row'];
// echo $existLoanResult['fourth_row'];
// echo $existLoanResult['fifth_row'];
// echo $existLoanResult['sixth_row'];
// echo $existLoanResult['seventh_row'];
// echo $existLoanResult['eigth_row'];
// echo $existLoanResult['ninth_row'];
// echo $existLoanResult['tenth_row'];
?>
</tbody>
</table>
<!-- </tbody>
</table> -->
<?php
//
}

View File

@ -483,18 +483,25 @@ if(isset($section6))
$iter = 0;
$photo_names = array('selfie_with_person_met' => 'Selfie with person met','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','workplace_interior_image' => 'Workplace interior image');
//if(count($photos))
$tot_rows = ceil(count($section9) / 3);
if(count($section9))
{
echo '<table class="scorecard_table"><tr><th colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
foreach ($section9 as $p_key => $p_value)
for($row = 0;$row < $tot_rows; $row++)
{
if(!($iter % 3)) { echo '<tr>'; }
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$p_value['img'].'" height = "200" width="200"/><br>'.$photo_names [ $p_value['img_name'] ].'</td>';
echo '<tr>';
$from = $row == 0 ? $row : ($row+2);
$to = ($from + 2);
for($i = $from ; $i <= $to; $i++)
{
if(!($iter % 3) && $iter != 0) { echo '</tr>'; }
$iter++;
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$section9[$i]['img'].'" height = "200" width="200"/><br>'.$photo_names [ $section9[$i]['img_name'] ].'</td>';
//unset($p_key);
}
echo '</tr>';
}
echo '</tbody></table>';
}