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