SALES PD BAC END CHANGES SATELLITE IMG UN FUNCTION PROD ISSUES

This commit is contained in:
Velz2020 2019-11-29 16:43:53 +05:30
parent 8f6c482cf5
commit 0f5eac6cbc
7 changed files with 94 additions and 86 deletions

View File

@ -19,7 +19,7 @@ class PD_Controller extends REST_Controller {
//class level variable declaration
protected $external_path;
//protected $external_path;
function __construct()
{
@ -34,6 +34,7 @@ class PD_Controller extends REST_Controller {
$this->load->helper('GETPDFORMDETAILS');
$this->load->helper('GETPROCESSEDJSON');
$this->load->helper('MYUTIL');
$this->load->helper('satellite_image');
$this->load->library('pdfgenerator');
//$this->load->library('excel');
$this->load->library('phpmailer_library');
@ -862,7 +863,8 @@ class PD_Controller extends REST_Controller {
}
unset($pd_details['is_revert_status']);
//get satellite image blob and store it in DB
$pd_details['satellite_image_base64_blob'] = $this->getSatelliteImage($pd_details['pd_id']);
//$pd_details['satellite_image_base64_blob'] = $this->getSatelliteImage($pd_details['pd_id']);
$pd_details['satellite_image_base64_blob'] = satellite_image::getSatelliteImage($pd_details['pd_id']);
//die();
//If it is Addtional PD ,then update 'COMPLETE' status for primary and all other addtional PD's
if($exist_pd_details[0]['is_child'] == 1)
@ -5669,7 +5671,7 @@ public function getPDFormDetailsJSON_post()
//PDALERTS::sendMail($this,'vitvelz@gmail.com','PDGENIE TEST',array());die();
//$this->load->helper('applicantname_grabber');
// print_r(APPLICANTNAME_GRABBER::getLatestApplicantsName(1390));die();
//satellite_image::getSatelliteImage(1442);die();
$records = $this->post('records');
$pdid = $records['pd_id'];
@ -6096,7 +6098,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
$form_array[] = array('form_id' => 1,'form_name' => 'Supplier Details');
$form_array[] = array('form_id' => 2,'form_name' => 'Client Details');
$form_array[] = array('form_id' => 11,'form_name' => 'Stock Details');
if(!strcasecmp($lender_short_name, 'CLIX') || (!strcasecmp($lender_short_name, 'MWISE')) && !strcasecmp($product_abbr,'LFMP'))
if(!strcasecmp($lender_short_name, 'CLIX') || (!strcasecmp($lender_short_name, 'MWISE')))
{
$form_array[] = array('form_id' => 23,'form_name' => 'Future Plans & Business Environments');
}
@ -6113,7 +6115,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
$form_array[] = array('form_id' => 2,'form_name' => 'Client Details');
$form_array[] = array('form_id' => 11,'form_name' => 'Stock Details');
$form_array[] = array('form_id' => 16,'form_name' => 'Assessed Income');
if(!strcasecmp($lender_short_name, 'CLIX') || (!strcasecmp($lender_short_name, 'MWISE')) && !strcasecmp($product_abbr,'LFMP'))
if(!strcasecmp($lender_short_name, 'CLIX') || (!strcasecmp($lender_short_name, 'MWISE')) )// && !strcasecmp($product_abbr,'LFMP'))
{
$form_array[] = array('form_id' => 23,'form_name' => 'Future Plans & Business Environments');
}

View File

@ -21,6 +21,8 @@ class Sales_PD_Controller extends REST_Controller {
$this->external_path = $this->config->item('external_data_path');
$this->load->library('AWS_S3');
$this->load->library('pdfgenerator');
$this->load->helper('satellite_image');
}
@ -55,10 +57,7 @@ class Sales_PD_Controller extends REST_Controller {
$applicant_name = '';
$applicant_id = '';
$officer = '';
//die();
//satellite_image::getSatelliteImage(22,2);die();
foreach (json_decode($records['pd_json'],true) as $key => $value)
{
//print_r($value);die();
@ -120,6 +119,7 @@ class Sales_PD_Controller extends REST_Controller {
//end generate sales pd serial no
$records['sales_pd_sno'] = $salepd_serial_no;
$id = $this->Sales_PD_Model->saveRecords($records,SALES_PD_DATA);
satellite_image::getSatelliteImage($id,2);
}
else
{
@ -187,7 +187,8 @@ class Sales_PD_Controller extends REST_Controller {
$view_data['section'.$section['section_id'] ] = $this->processSalesPDJSON($section);
}
$view_data['section9'] = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id),SALEPD_DOCS);
$view_data['section9'] = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id,'img_name !=' => 'satellite'),SALEPD_DOCS);
$view_data['satellite_image'] = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id,'img_name' => 'satellite'),SALEPD_DOCS);
$view_data['product_id'] = $sales_pd_data[0]['product_id'];
//print_r($this->db->last_query());die();
//$view_name = $sales_pd_data[0]['short_name'].'_'.$sales_pd_data[0]['abbr'];
@ -198,7 +199,8 @@ class Sales_PD_Controller extends REST_Controller {
//End of PDF Gen using DOM PDF
$output_file = $this->external_path ."/sales_pd/" . $sales_pd_id . "/temp.pdf";
$bytes = file_put_contents($output_file, $pdf_doc);
//die();
// echo $bytes;
// die();
$bucket_data = array('bucket_name'=>$bucket_name,'key'=>$key,'sourcefile'=>$this->external_path.'/sales_pd/'.$sales_pd_id.'/temp.pdf');
$s3result= $this->aws_s3->uploadFileToS3Bucket($bucket_data);

View File

@ -216,11 +216,12 @@ class AssessedIncome
$sales_item_wise_header_row .= "<th>Gross Margin %</th><th>Gross Profit</th>";
}
//print_r($ai_core_details['sales_calculated_by_itemwise']);die();
foreach($ai_core_details['sales_calculated_by_itemwise'] as $itemwise)
{
$temp['sale_item'] = strcasecmp($itemwise['sales_item'],'others') ? $itemwise['sales_item'] : $itemwise['other_sales_item'];
$temp['sales_qty'] = $itemwise['sales_qty'] != 0 ? $itemwise['sales_qty']: '-';
$temp['uom'] = $itemwise['uom_name'] ? $itemwise['uom_name'] : '-';
$temp['uom'] = $itemwise['uom_other'] ? $itemwise['uom_other'] : ($itemwise['uom_name'] ? $itemwise['uom_name'] : '-');
$temp['frequency'] = $itemwise['frequency_name'] ? $itemwise['frequency_name'] : '-';
$temp['annual_sale_value'] = $itemwise['annual_sale_value'];
$temp['rate_per_unit'] = $itemwise['rate_per_unit'];

View File

@ -21,7 +21,7 @@ class EXTERNAL_DIR_CHECK
mkdir($path,0761);
}
$array = array($path.'/ci_logs',$path.'/api_request_logs',$path.'/app_logs',$path.'/pd_reports',$path.'/sales_pd');
$array = array($path.'/ci_logs',$path.'/api_request_logs',$path.'/app_logs',$path.'/pd_reports',$path.'/sales_pd',$path.'/sales_pd_logs');
foreach ($array as $key => $value)
{
if(!file_exists($value))

View File

@ -54,15 +54,15 @@ class MYLOG
}
public static function logPD($dynamic = null,$pd_id = null) //$msg,$data,$log_type
public static function logSalesPD($pd_id = null) //$msg,$data,$log_type
{
$CI =& get_instance();
$channel = $dynamic ? $dynamic : 'pdgenie_logger';
$log_folder = $dynamic ? $CI->config->item('external_data_path').'/api_request_logs': $CI->config->item('external_data_path').'/app_logs';
$channel = 'pdgenie_logger';
$log_folder = $CI->config->item('external_data_path').'/sales_pd_logs';
$logger = new \Monolog\Logger($channel);
$path_file_name = $log_folder.'/ssa_app_'.date('Y-m-d').'.html';
if($pd_id != null) { $path_file_name = $log_folder.'/'.$pd_id.'.html';}
$streamHandler = new \Monolog\Handler\StreamHandler($path_file_name, $logger::DEBUG);
$streamHandler->setFormatter(new \Monolog\Formatter\HtmlFormatter());
$logger->pushHandler($streamHandler);

View File

@ -3536,7 +3536,7 @@ if($total_no_of_business > 0) {
echo $ai_core_details_processed['sales_calculated_by_itemwise_header'];
echo '</thead>';
echo '<tbody>';
//print_r($ai_core_details_processed['sales_item_wise_to_diaplay']);die();
foreach($ai_core_details_processed['sales_item_wise_to_diaplay'] as $sid)
{
//print_r($sid);
@ -4250,7 +4250,7 @@ if($total_no_of_business > 0) {
{
echo '<div class="intelligence">';
echo '<b>Personal feedback or market intelligence on the case (if any):</b>';
echo '<br><br><b>'.$final_remark_data['market_intelligence'].'</b>';
echo '<br><br>'.$final_remark_data['market_intelligence'];
echo '</div>';
echo '<br>';
}

View File

@ -97,11 +97,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Powered by PDGenie
<img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/>
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://www.smcfinance.com/images/logo-small.jpg'/></div>
<hr>
</header>
@ -109,31 +109,31 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<tr>
<th class="thlargefont" colspan="10" >Personal Discussion Sheet - <?php echo $product_name; ?> (For Sales Team)</th>
<th class="thlargefont" colspan="10" >Personal Discussion by Sales Team - <?php echo $product_name; ?> </th>
</tr>
<tr>
<td colspan="3"> Application ID</td>
<td colspan="7"> <?php echo $section1['application_id']?> </td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['application_id']?> </td>
</tr>
<tr>
<td colspan="3"> Name of the Company/Firm</td>
<td colspan="7"> <?php echo $section1['company_name']?></td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['company_name']?></td>
</tr>
<tr>
<td colspan="3">Name of Person Met during visit</td>
<td colspan="7"><?php echo $section1['person_met_during_visit']?></td>
<td class = "tdcenteralign" colspan="7"><?php echo $section1['person_met_during_visit']?></td>
</tr>
<tr>
<td colspan="3" rowspan="2" >Address Visited</td>
<td colspan="7"><?php echo $section1['address_visited']?></td>
<td class = "tdcenteralign" colspan="7"><?php echo $section1['address_visited']?></td>
</tr>
<tr>
<td>City</td>
<td><?php echo $section1['state']?></td>
<td class = "tdcenteralign"><?php echo $section1['state']?></td>
<td>State</td>
<td><?php echo $section1['city']?></td>
<td class = "tdcenteralign"><?php echo $section1['city']?></td>
<td>PIN</td>
<td colspan="2"><?php echo $section1['pincode']?></td>
<td class = "tdcenteralign" colspan="2"><?php echo $section1['pincode']?></td>
</tr>
</tbody>
</table>
@ -145,15 +145,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr>
<tr>
<td colspan="3" >Loan Amount Applied for (Rs)</td>
<td colspan="3" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section2['loan_amount_applied'])?></td>
<td class = "tdcenteralign" colspan="3" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section2['loan_amount_applied'])?></td>
<td colspan="2">Total Fund Requirement (Rs)</td>
<td colspan="2"> <?php echo $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($section2['total_fund_requirement'])?></td>
<td class = "tdcenteralign" colspan="2"> <?php echo $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($section2['total_fund_requirement'])?></td>
</tr>
<tr>
<td colspan="3" >Loan Tenure (Months)</td>
<td colspan="3" ><?php echo $section2['loan_tenure']?></td>
<td class = "tdcenteralign" colspan="3" ><?php echo $section2['loan_tenure']?></td>
<td colspan="2" >Loan Purpose (End-Use)</td>
<td colspan="2" ><?php echo $section2['loan_purpose']?></td>
<td class = "tdcenteralign" colspan="2" ><?php echo $section2['loan_purpose']?></td>
</tr>
</tbody>
</table>
@ -181,7 +181,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
'<td class="tdcenteralign" colspan="1">'.$section3_value['share_holding'].'%</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['vintage_in_current_biz'].'</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['total_work_exp'].'</td>'.
'<td class="tdcenteralign" colspan="3">'.$section3_value['previous_experience_details'].'</td>'.
'<td class="tdcenteralign" colspan="3">'.($section3_value['previous_experience_details'] ? $section3_value['previous_experience_details'] : 'NA' ).'</td>'.
'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section3_value['started_biz'].'</td>'.
'</tr>';
}
@ -194,25 +194,24 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<th class="thlargefont" colspan="10" >Brief of the Business / Service</th>
</tr>
<tr>
<td colspan="10" ><?php echo $section4['brief_business_service']?></td>
<td colspan="10" style="text-align: justify;"><?php echo $section4['brief_business_service']?></td>
</tr>
<!-- <tr></tr><tr></tr><tr></tr> -->
</tbody></table>
<!-- <div id="page_break"></div> -->
<br>
<div id="page_break"></div>
<table class="scorecard_table">
<tr>
<th class="thlargefont" colspan="10" >Financial Information</th>
</tr>
<tr>
<td colspan="6" >Name of the Company / Firm whose financials are noted </td>
<td colspan="4" ><?php echo $section1['company_name']?></td>
<td class = "tdcenteralign" colspan="4" ><?php echo $section1['company_name']?></td>
</tr>
</tbody></table>
<table class="scorecard_table"><tbody>
<tr>
<th colspan="7">Particulars of Financials as per books of Accounts (Can be captured prior to PD)</th>
<th colspan="7">Particulars of Financials as per books of Accounts</th>
<?php
//print_r($section5[0]);die();
$totol = 0;
@ -290,7 +289,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$sales_over_py = round( ((($fy_value['sales_revenue'] - $pre_year_sales) / $pre_year_sales ) * 100),2);
echo '<td colspan="1"class="tdcenteralign" >'. ((($sales_over_py == 0 ) ? $dash :( $sales_over_py > 0 ? $uparrow : $downarrow))).'' . abs($sales_over_py). ' </td>';
echo '<td colspan="1"class="tdcenteralign" >'. ((($sales_over_py == 0 ) ? $dash :( $sales_over_py > 0 ? $uparrow : $downarrow))).'' . abs($sales_over_py). ' %</td>';
}
$pre_year_sales = $fy_value['sales_revenue'];
@ -314,7 +313,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
else
{
$net_profit_over_py = round( ((($fy_value['net_profit'] - $pre_year_net_profit) / $pre_year_net_profit ) * 100),2);
echo '<td colspan="1" class="tdcenteralign">'. ((($net_profit_over_py == 0 ) ? $dash :( $net_profit_over_py > 0 ? $uparrow : $downarrow))).' ' . abs($net_profit_over_py). ' </td>';
echo '<td colspan="1" class="tdcenteralign">'. ((($net_profit_over_py == 0 ) ? $dash :( $net_profit_over_py > 0 ? $uparrow : $downarrow))).' ' . abs($net_profit_over_py). '% </td>';
}
$pre_year_net_profit = $fy_value['net_profit'];
@ -340,7 +339,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$year_net_pro_loss_per_over_py = round( ((( (($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ) - $pre_year_net_pro_loss_per) / $pre_year_net_pro_loss_per ) * 100),2);
echo '<td colspan="1" class="tdcenteralign">'. ((($year_net_pro_loss_per_over_py == 0 ) ? $dash :( $year_net_pro_loss_per_over_py > 0 ? $uparrow : $downarrow))).' ' . abs($year_net_pro_loss_per_over_py). ' </td>';
echo '<td colspan="1" class="tdcenteralign">'. ((($year_net_pro_loss_per_over_py == 0 ) ? $dash :( $year_net_pro_loss_per_over_py > 0 ? $uparrow : $downarrow))).' ' . abs($year_net_pro_loss_per_over_py). '% </td>';
// echo '<td colspan="1" >'. (($year_net_pro_loss_per_over_py > 0 )? '<span style="color:green;">↑</span>' : '<span style="color:red;">↓</span>').' ( ' . $year_net_pro_loss_per_over_py. ' )</td>'; //(($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 )
}
@ -354,15 +353,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table class="scorecard_table">
<tr>
<td colspan="3">Income to be Considered (Rs Per Annum) </td>
<td colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section5['income_considered'] )?></td>
<td class="tdcenteralign" colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section5['income_considered'] )?></td>
<td colspan="3" >Income Considered (Rs Per Mth) </td>
<td colspan="2"><?php echo MYUTIL::customIndianNumberFormat( round(($section5['income_considered'] / 12 ),2) );?></td>
<td class="tdcenteralign" colspan="2"><?php echo MYUTIL::customIndianNumberFormat( round(($section5['income_considered'] / 12 ),2) );?></td>
</tr>
<tr>
<td colspan="3">Income assessment Program Recommended </td>
<td colspan="2"><?php echo $section5['income_assessment_program_recommended']?></td>
<td class="tdcenteralign" colspan="2"><?php echo $section5['income_assessment_program_recommended']?></td>
<td colspan="3" >Fixed Obligations (Rs per month) </td>
<td colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $section5['fixed_obligations'] )?></td>
<td class="tdcenteralign" colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $section5['fixed_obligations'] )?></td>
</tr>
</tbody></table>
@ -379,29 +378,29 @@ if(isset($section6))
</tr>
<tr>
<td colspan="1" >Property Address (With Landmark &amp; PIN)</td>
<td colspan="9" ><?php echo $section6['property_address']?></td>
<td class="tdcenteralign" colspan="9" ><?php echo $section6['property_address']?></td>
</tr>
<tr>
<td colspan="1" >Property Type</td>
<td colspan="4" ><?php echo $section6['property_type']?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $section6['property_type']?></td>
<td colspan="1" >Occupancy Status</td>
<td colspan="4" ><?php echo $section6['occupancy_status']?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $section6['occupancy_status']?></td>
</tr>
<tr>
<td colspan="1" >Permitted Property Usage</td>
<td colspan="4" ><?php echo $section6['permitted_property_usage']?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $section6['permitted_property_usage']?></td>
<td colspan="1" >Actual Property Usage</td>
<td colspan="4" ><?php echo $section6['actual_property_usage']?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $section6['actual_property_usage']?></td>
</tr>
<tr>
<td colspan="1" >Built-Up Area (Sq. Ft.)</td>
<td colspan="4" ><?php echo $section6['built_up_area']?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $section6['built_up_area']?></td>
<td colspan="1" >Approx Mkt. Val (Rs)</td>
<td colspan="4" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section6['approx_mkt_val'])?></td>
<td class="tdcenteralign" colspan="4" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section6['approx_mkt_val'])?></td>
</tr>
<tr>
<td colspan="1" >Property Ownership Status (Enter the names of the Property Owner(s) and their relationships)</td>
<td colspan="9"><?php echo $section6['Property_Ownership_Status']?></td>
<td class="tdcenteralign" colspan="9"><?php echo $section6['Property_Ownership_Status']?></td>
</tr>
</tbody>
</table>
@ -411,49 +410,28 @@ if(isset($section6))
<table class="scorecard_table">
<tbody>
<tr>
<th class="thlargefont" colspan="10" >Final Remarks of PD officer</th>
<th class="thlargefont" colspan="10" >Final Remarks of Sales officer</th>
</tr>
<tr>
<td colspan="4" >Business activity seen during visit (Yes / No)</td>
<td ><?php echo $section7['business_activity_seen']?></td>
<td class="tdcenteralign" ><?php echo $section7['business_activity_seen']?></td>
<td colspan="4" >Location of workplace suits the business (Yes/No)</td>
<td ><?php echo $section7['location_workplace_suits_business']?></td>
<td class="tdcenteralign" ><?php echo $section7['location_workplace_suits_business']?></td>
</tr>
<tr>
<td colspan="4" >Overall Assessment (Positive / Negative)</td>
<td ><?php echo $section7['overall_assessment']?></td>
<td class="tdcenteralign" <?php if($section7['overall_assessment'] == 'Positive') { echo 'style="color:green;"';}else{ echo 'style="color:red;"';} ?> ><?php echo $section7['overall_assessment']?></td>
<td colspan="4" >Recommended ROI for the case</td>
<td ><?php echo $section7['recommended_roi']?></td>
<td class="tdcenteralign" ><?php echo $section7['recommended_roi']?></td>
</tr>
<tr>
<td colspan="2" >Any Other remarks </td>
<td class="tdcenteralign" colspan="8" ><?php echo $section7['any_other_remarks']?></td>
<td colspan="2" >Any Other remarks </td>
<td style="text-align: justify;" colspan="8" ><?php echo $section7['any_other_remarks']?></td>
</tr>
</tbody>
</table>
<br><br>
<table class="scorecard_table">
<tbody>
<tr>
<td colspan="3" >Name of Sales Team Member </td>
<td colspan="7" ><?php echo $section8['name_of_sales_team_member']?></td>
</tr>
<tr>
<td colspan="3" >Designation of Sales Team Member </td>
<td colspan="7" ><?php echo $section8['designation']?></td>
</tr>
<tr>
<td colspan="3" >Date of PD Visit </td>
<td colspan="7" ><?php echo $section8['date']?></td>
</tr>
<tr>
<td colspan="3">Signature of PD Officer </td>
<td colspan="7" ></td>
</tr>
</tbody>
</table>
<br>
<?php
@ -479,17 +457,19 @@ if(isset($section6))
// }
// }
//print_r($photos);die();
//print_r($photos);die();satellite_image
?>
<br><table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Satellite Image of PD Location</th></tr></table><br>
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite_image[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
<?php
$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');
$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','satellite1' => 'satellite');
// if(count($photos))
$tot_rows = ceil(count($section9) / 3);
if(count($section9))
{
echo '<div id="page_break"></div>';
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
for($row = 0;$row < $tot_rows; $row++)
@ -512,6 +492,29 @@ if(isset($section6))
echo '</tbody></table>';
}
?>
<br>
<table class="scorecard_table">
<tbody>
<tr>
<td colspan="3" >Name of Sales Team Member </td>
<td class="tdcenteralign" colspan="7" ><?php echo $section8['name_of_sales_team_member']?></td>
</tr>
<tr>
<td colspan="3" >Designation of Sales Team Member </td>
<td class="tdcenteralign" colspan="7" ><?php echo $section8['designation']?></td>
</tr>
<tr>
<td colspan="3" >Date of PD Visit </td>
<td class="tdcenteralign" colspan="7" ><?php echo $section8['date']?></td>
</tr>
<!-- <tr>
<td colspan="3">Signature of PD Officer </td>
<td colspan="7" ></td>
</tr> -->
</tbody>
</table>