| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php if (is_array($this->view->survey)): ?>
- <div><small><?php echo $this->view->survey['surname'], ' ', $this->view->survey['name'], ', ', $this->helper->getDateString($this->view->survey['birthdate'], false), ', ', $this->view->survey['email'], ', ', $this->view->survey['phone']; ?></small></div>
- <hr>
- <div class="row margin-bottom-20">
- <?php if((int)$this->view->survey['bp_min'] > 0 && (int)$this->view->survey['bn_max'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo _('Blood Pressure'); ?></b></div>
- <div>
- <?php echo $this->view->survey['bn_max']; ?>/<?php echo $this->view->survey['bp_min']; ?></b> <sup>mmHg</sup>
- </div>
- </div>
- <?php endif; ?>
-
- <?php if((int)$this->view->survey['hrate'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo _('Heart Rate'); ?></b></div>
- <div>
- <?php echo $this->view->survey['hrate']; ?><sup>bpm</sup>
- </div>
- </div>
- <?php endif; ?>
-
- <?php if((int)$this->view->survey['oxsat'] > 0): ?>
- <div class="col text-center">
- <div><b><?php echo vsprintf(_('%s Sat.'), 'O<sub>2</sub>'); ?></b></div>
- <div>
- <?php echo $this->view->survey['oxsat']; ?><sup>%</sup>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <?php endif; ?>
-
- <?php if (is_array($this->view->survey['data']) && !empty($this->view->survey['data'])): ?>
- <?php foreach($this->view->survey['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; ?>
|