SALES PD FEDBACK 2
This commit is contained in:
parent
f7e51d62e2
commit
671497563f
@ -65,20 +65,23 @@ class Sales_PD_Controller extends REST_Controller {
|
||||
{
|
||||
if($g_value['question_key'] == 'application_id')
|
||||
{
|
||||
$applicant_id = $g_value['answer_value'];
|
||||
$applicant_id = $g_value['answer_value'] ? $g_value['answer_value'] : 'Not Provided';
|
||||
}
|
||||
|
||||
if($g_value['question_key'] == 'person_met_during_visit')
|
||||
{
|
||||
$applicant_name = $g_value['answer_value'];
|
||||
|
||||
}
|
||||
if($records['product_id'] == 4)
|
||||
{
|
||||
if($g_value['question_key'] == 'company_name')
|
||||
{
|
||||
$applicant_name = $g_value['answer_value'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($g_value['question_key'] == 'person_met_during_visit')
|
||||
{
|
||||
$applicant_name = $g_value['answer_value'];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -427,7 +427,7 @@ if(isset($section6))
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" >Any Other remarks </td>
|
||||
<td colspan="8" ><?php echo $section7['any_other_remarks']?></td>
|
||||
<td class="tdcenteralign" colspan="8" ><?php echo $section7['any_other_remarks']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -486,29 +486,31 @@ if(isset($section6))
|
||||
<?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');
|
||||
//if(count($photos))
|
||||
// $tot_rows = ceil(count($section9) / 3);
|
||||
// if(count($section9))
|
||||
// {
|
||||
// echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||
// if(count($photos))
|
||||
$tot_rows = ceil(count($section9) / 3);
|
||||
if(count($section9))
|
||||
{
|
||||
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++)
|
||||
// {
|
||||
// echo '<tr>';
|
||||
// $from = $row == 0 ? $row : ($row+2);
|
||||
// $to = ($from + 2);
|
||||
// for($i = $from ; $i <= $to; $i++)
|
||||
// {
|
||||
for($row = 0;$row < $tot_rows; $row++)
|
||||
{
|
||||
echo '<tr>';
|
||||
$from = $row == 0 ? $row : ($row+2);
|
||||
$to = ($from + 2);
|
||||
for($i = $from ; $i <= $to; $i++)
|
||||
{
|
||||
|
||||
if(isset($section9[$i]))
|
||||
{
|
||||
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>';
|
||||
}
|
||||
|
||||
// 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>';
|
||||
// }
|
||||
//unset($p_key);
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user