Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

survey-list-preview.part.php 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php if (is_array($survey)): ?>
  2. <div><small><?php echo $survey['surname'], ' ', $survey['name'], ' &nbsp;&nbsp;<i class="fa fa-calendar" aria-hidden="true"></i> ', $this->helper->getDateString($survey['birthdate'], false), ' &nbsp;&nbsp;<i class="fa fa-envelope-o" aria-hidden="true"></i> ', $survey['email'], ' &nbsp;&nbsp;<i class="fa fa-phone" aria-hidden="true"></i> ', $survey['phone']; ?></small></div>
  3. <hr>
  4. <div class="row margin-bottom-20">
  5. <?php if((int)$survey['bp_min'] > 0 && (int)$survey['bn_max'] > 0): ?>
  6. <div class="col text-center">
  7. <div><b><?php echo _('Blood Pressure'); ?></b></div>
  8. <div>
  9. <?php echo $survey['bn_max']; ?>/<?php echo $survey['bp_min']; ?></b> <sup>mmHg</sup>
  10. </div>
  11. </div>
  12. <?php endif; ?>
  13. <?php if((int)$survey['hrate'] > 0): ?>
  14. <div class="col text-center">
  15. <div><b><?php echo _('Heart Rate'); ?></b></div>
  16. <div>
  17. <?php echo $survey['hrate']; ?><sup>bpm</sup>
  18. </div>
  19. </div>
  20. <?php endif; ?>
  21. <?php if((int)$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 $survey['oxsat']; ?><sup>%</sup>
  26. </div>
  27. </div>
  28. <?php endif; ?>
  29. </div>
  30. <?php endif; ?>
  31. <?php if (is_array($data) && !empty($data)): ?>
  32. <?php foreach($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; ?>
  55. <?php if (is_array($attachs) && !empty($attachs)): ?>
  56. <div class="question-group">
  57. <div class="question-text"><?php echo _('Attachments'); ?></div>
  58. <?php foreach($attachs as $file): ?>
  59. <div class="question-answer"><i class="fa fa-file-o" aria-hidden="true"></i> <?php echo $file['file_title']; ?></div>
  60. <?php endforeach; ?>
  61. </div>
  62. <?php endif; ?>