feat: Enhance print functionality and add success modal for mass updates
This commit is contained in:
55
cartest.php
55
cartest.php
@@ -129,41 +129,42 @@ $view .='<div class="content-block order-details">
|
||||
</div>';
|
||||
|
||||
$view .= '</div>';
|
||||
$view .= '<div class="content-block">
|
||||
|
||||
//Retrieve questions and awnsers
|
||||
if ($version == 0){
|
||||
$view .= '<div class="content-block">
|
||||
<div class="block-header">
|
||||
<i class="fa-solid fa-bars fa-sm"></i>'.$cartest_questions_text.'
|
||||
</div>
|
||||
<div class="table order-table">
|
||||
<table>';
|
||||
|
||||
//Retrieve questions and awnsers
|
||||
|
||||
if ($version == 0){
|
||||
|
||||
foreach ($cartest_questions as $key => $value){
|
||||
$view .= '<tr>
|
||||
<td style="width:25%;">'.$key.'</td>
|
||||
<td>'.((!empty($value)|| $value !='')?$value:$not_specified).'</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {
|
||||
//CREATE OUTPUT BASED ON ARRAY
|
||||
$view .= '<div class="tabs">';
|
||||
foreach($arrayQuestions_cartest as $group){
|
||||
if ($group['Group_sequence'] == 1){
|
||||
$view .= '<a href="#" class="active">'.$group['Group'].'</a>';
|
||||
} else {
|
||||
$view .= '<a href="#">'.$group['Group'].'</a>';
|
||||
}
|
||||
}
|
||||
$view .= '</div>';
|
||||
foreach ($cartest_questions as $key => $value){
|
||||
$view .= '<tr>
|
||||
<td style="width:25%;">'.$key.'</td>
|
||||
<td>'.((!empty($value)|| $value !='')?$value:$not_specified).'</td>
|
||||
</tr>';
|
||||
}
|
||||
$view .= '
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
} else {
|
||||
//CREATE OUTPUT BASED ON ARRAY
|
||||
|
||||
foreach($arrayQuestions_cartest as $group){
|
||||
|
||||
if ($group['Group_sequence'] == 1){
|
||||
$view .= '<div class="tabs">
|
||||
<a href="#" class="active">'.$group['Group'].'</a>
|
||||
</div>';
|
||||
$view .= '<div class="content-block tab-content active">
|
||||
<div class="form responsive-width-100">';
|
||||
} else {
|
||||
$view .= '<div class="tabs">
|
||||
<a href="#">'.$group['Group'].'</a>
|
||||
</div>';
|
||||
$view .= '<div class="content-block tab-content">
|
||||
<div class="form responsive-width-100">';
|
||||
}
|
||||
@@ -197,14 +198,8 @@ $view .= '<div class="content-block">
|
||||
}
|
||||
$view .= ' </div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
}
|
||||
$view .= '
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($cartest_datapoints) && $cartest_datapoints !=''){
|
||||
$view .= '<div class="content-block">
|
||||
|
||||
Reference in New Issue
Block a user