| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php if (is_array($survey)): ?>
- <div><small><?php echo $survey['surname'], ' ', $survey['name'], ' <i class="fa fa-calendar" aria-hidden="true"></i> ', $this->helper->getDateString($survey['birthdate'], false), ' <i class="fa fa-envelope-o" aria-hidden="true"></i> ', $survey['email'], ' <i class="fa fa-phone" aria-hidden="true"></i> ', $survey['phone']; ?></small></div>
- <hr>
- <div class="row margin-bottom-20">
- <?php if((int)$survey['bp_min'] > 0 && (int)$survey['bn_max'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo _('Blood Pressure'); ?></b></div>
- <div>
- <?php echo $survey['bn_max']; ?>/<?php echo $survey['bp_min']; ?></b> <sup>mmHg</sup>
- </div>
- </div>
- <?php endif; ?>
-
- <?php if((int)$survey['hrate'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo _('Heart Rate'); ?></b></div>
- <div>
- <?php echo $survey['hrate']; ?><sup>bpm</sup>
- </div>
- </div>
- <?php endif; ?>
-
- <?php if((int)$survey['oxsat'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo vsprintf(_('%s Sat.'), 'O<sub>2</sub>'); ?></b></div>
- <div>
- <?php echo $survey['oxsat']; ?><sup>%</sup>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <?php endif; ?>
-
- <?php if (is_array($data) && !empty($data)): ?>
- <?php foreach($data as $index => $item): ?>
- <div class="question-group">
- <?php if($item['type'] == 'radio' || $item['type'] == 'checkbox'): ?>
-
- <div class="question-text"><?php echo $item['question']; ?></div>
- <div class="question-answer"><?php echo trim($item['answer']['value']) != '' ? $item['answer']['value'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
-
- <?php elseif($item['type'] == 'textarea'): ?>
-
- <div class="question-text"><?php echo $item['question']; ?></div>
- <div class="question-answer"><?php echo trim($item['answer']) != '' ? $item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
-
- <?php elseif($item['type'] == 'inputlist'): ?>
- <div class="question-text"><?php echo $item['question']; ?></div>
- <?php foreach($item['list'] as $list_item): ?>
-
- <div class="question-list-group">
- <div class="question-text-list"><?php echo $list_item['label']; ?></div>
- <div class="question-answer"><?php echo trim($list_item['answer']) ? $list_item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
- </div>
-
- <?php endforeach; ?>
-
- <?php else: ?>
- <div class="question-text"><?php echo $item['question']; ?></div>
- <div class="question-answer"><?php echo trim($item['answer']) != '' ? $item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
- <?php endif; ?>
- </div>
- <?php endforeach; ?>
- <?php endif; ?>
-
- <?php if (is_array($attachs) && !empty($attachs)): ?>
- <div class="question-group">
- <div class="question-text"><?php echo _('Attachments'); ?></div>
- <?php foreach($attachs as $file): ?>
- <div class="question-answer"><i class="fa fa-file-o" aria-hidden="true"></i> <?php echo $file['file_title']; ?></div>
- <?php endforeach; ?>
- </div>
- <?php endif; ?>
|