Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.view.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <div class="page-header pb-10 page-header-dark bg-gradient-primary-to-secondary">
  2. <?php echo $this->partial('Layout/header-public'); ?>
  3. </div>
  4. <style>
  5. .custom-file-input ~ .custom-file-label::after {
  6. content: "<?php echo _('Browse'); ?>";
  7. }
  8. /* Chrome, Safari, Edge, Opera */
  9. input::-webkit-outer-spin-button,
  10. input::-webkit-inner-spin-button {
  11. -webkit-appearance: none;
  12. margin: 0;
  13. }
  14. /* Firefox */
  15. input[type=number] {
  16. -moz-appearance: textfield;
  17. }
  18. </style>
  19. <div class="container mt-n10">
  20. <div class="card card-shadow">
  21. <?php //debug($this->view->debug); ?>
  22. <?php if(!is_null($this->view->survey_title)): ?>
  23. <div class="card-header card-header-large text-center">
  24. <h1><?php echo $this->view->survey_title; ?></h1>
  25. </div>
  26. <div class="card-body">
  27. <?php if($this->view->is_download): ?>
  28. <?php if($this->view->passcode_checked == 0): ?>
  29. <?php echo $this->partial('Survey/mobile-code-box'); ?>
  30. <?php else: ?>
  31. <?php if (is_array($this->view->attachList) && !empty($this->view->attachList)): ?>
  32. <div class="survey-patient-row"><small><?php echo $this->view->survey_patient_string; ?></small></div>
  33. <hr>
  34. <?php foreach($this->view->attachList as $email_id => $item): ?>
  35. <h5><i class="fa fa-envelope-o" aria-hidden="true"></i> <?php echo $this->helper->getDateString($item['created_at'], false); ?></h5>
  36. <?php if(is_array($item['data'])): ?>
  37. <div class="download-wrapper">
  38. <?php foreach($item['data'] as $index_data => $data_item): ?>
  39. <div <?php echo $index_data == 0 ? 'style="padding: 5px; background-color:#f5f5f5;"' : ''; ?>><?php echo $index_data > 0 ? '<i class="fa fa-file-o" aria-hidden="true"></i>' : ''; ?> <a class="btn-check-passcode-status" data-surveycode="<?php echo $this->view->survey_code; ?>" data-src="<?php echo $this->view->remotePlatformUrl; ?>d6d/?ft=<?php echo $data_item['name']; ?>&fn=<?php echo $data_item['file_name']; ?>" href="#"><?php echo $data_item['name']; ?></a></div>
  40. <?php endforeach; ?>
  41. </div>
  42. <?php endif; ?>
  43. <hr>
  44. <?php endforeach; ?>
  45. <?php else: ?>
  46. <div class="alert alert-warning"><?php echo _('There are no files yet for this questionnaire.'); ?></div>
  47. <?php endif; ?>
  48. <?php endif; ?>
  49. <?php else: ?>
  50. <?php if(!$this->view->survey_delayed): ?>
  51. <?php if(!is_null($this->view->structure)): ?>
  52. <?php if (!$this->view->survey_answered): ?>
  53. <?php if($this->view->passcode_checked == 0): ?>
  54. <?php echo $this->partial('Survey/mobile-code-box'); ?>
  55. <?php else: ?>
  56. <div><small><?php echo $this->view->survey_patient_string; ?></small></div>
  57. <hr>
  58. <div id="survey-form-container">
  59. <form id="public-survey-send">
  60. <input type="hidden" name="survey_code" value="<?php echo $this->view->survey_code; ?>">
  61. <?php echo $this->partial('Survey/form'); ?>
  62. <!--<hr>-->
  63. <div class="clearfix">
  64. <button type="button" class="btn btn-primary btn-public-survey-send float-right"><?php echo _('Send'); ?></button>
  65. </div>
  66. </form>
  67. </div>
  68. <div class="alert alert-success margin-top-20" id="survey-success-msg"><?php echo _('The questionnaire has been completed correctly, you will receive a reply as soon as possible.'); ?></div>
  69. <?php endif; ?>
  70. <?php else: ?>
  71. <div class="alert alert-warning margin-top-20"><?php echo _('This questionnaire has already been completed and sent on:'); ?> <?php echo $this->helper->getDateString($this->view->survey_date); ?>.</div>
  72. <?php endif; ?>
  73. <?php else: ?>
  74. <div class="alert alert-danger"><?php echo _('Invalid questionnaire.'); ?></div>
  75. <?php endif; ?>
  76. <?php else: ?>
  77. <div class="alert alert-danger"><?php echo _('This questionnaire is not accessible at the moment, you will receive the instructions for completing it in the manner required by your health situation.'); ?></div>
  78. <?php endif; ?>
  79. <?php endif; ?>
  80. </div>
  81. <?php else: ?>
  82. <div class="card-body">
  83. <div class="alert alert-danger"><?php echo _('Information not available for this questionnaire.'); ?></div>
  84. </div>
  85. <?php endif; ?>
  86. </div>
  87. </div>
  88. <?php echo $this->partial('Layout/credits'); ?>