Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

survey-preview.part-GHTLIGHT.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php if (is_array($this->view->survey)): ?>
  2. <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>
  3. <hr>
  4. <div class="row margin-bottom-20">
  5. <?php if((int)$this->view->survey['bp_min'] > 0 && (int)$this->view->survey['bn_max'] > 0): ?>
  6. <div class="col text-center">
  7. <div><b><?php echo _('Blood Pressure'); ?></b></div>
  8. <div>
  9. <?php echo $this->view->survey['bn_max']; ?>/<?php echo $this->view->survey['bp_min']; ?></b> <sup>mmHg</sup>
  10. </div>
  11. </div>
  12. <?php endif; ?>
  13. <?php if((int)$this->view->survey['hrate'] > 0): ?>
  14. <div class="col text-center">
  15. <div><b><?php echo _('Heart Rate'); ?></b></div>
  16. <div>
  17. <?php echo $this->view->survey['hrate']; ?><sup>bpm</sup>
  18. </div>
  19. </div>
  20. <?php endif; ?>
  21. <?php if((int)$this->view->survey['oxsat'] > 0): ?>
  22. <div class="col text-center">
  23. <div><b><?php echo vsprintf(_('%s Sat.'), 'O<sub>2</sub>'); ?></b></div>
  24. <div>
  25. <?php echo $this->view->survey['oxsat']; ?><sup>%</sup>
  26. </div>
  27. </div>
  28. <?php endif; ?>
  29. </div>
  30. <?php endif; ?>
  31. <?php if (is_array($this->view->survey['data']) && !empty($this->view->survey['data'])): ?>
  32. <?php foreach($this->view->survey['data'] as $index => $item): ?>
  33. <div class="question-group">
  34. <?php if($item['type'] == 'radio' || $item['type'] == 'checkbox'): ?>
  35. <div class="question-text"><?php echo $item['question']; ?></div>
  36. <div class="question-answer"><?php echo trim($item['answer']['value']) != '' ? $item['answer']['value'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
  37. <?php elseif($item['type'] == 'textarea'): ?>
  38. <div class="question-text"><?php echo $item['question']; ?></div>
  39. <div class="question-answer"><?php echo trim($item['answer']) != '' ? $item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
  40. <?php elseif($item['type'] == 'inputlist'): ?>
  41. <div class="question-text"><?php echo $item['question']; ?></div>
  42. <?php foreach($item['list'] as $list_item): ?>
  43. <div class="question-list-group">
  44. <div class="question-text-list"><?php echo $list_item['label']; ?></div>
  45. <div class="question-answer"><?php echo trim($list_item['answer']) ? $list_item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
  46. </div>
  47. <?php endforeach; ?>
  48. <?php else: ?>
  49. <div class="question-text"><?php echo $item['question']; ?></div>
  50. <div class="question-answer"><?php echo trim($item['answer']) != '' ? $item['answer'] : '<span class="survey-no-answer">'._('No answer').'</span>'; ?></div>
  51. <?php endif; ?>
  52. </div>
  53. <?php endforeach; ?>
  54. <?php endif; ?>