2
0

cms.alertes-emails.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. $paramAlert = cron::getParameter();
  3. ?>
  4. <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
  5. <h2 class="bd-title" id="content">
  6. <span>Paramètrer l'envoie des alertes emails</span>
  7. </h2>
  8. </header>
  9. <?php
  10. echo core::filAriane(array(
  11. "current" => "Paramétrage des jours/heures",
  12. "arbo" => array(
  13. "Vos règles d'alertes" => NULL,
  14. "Paramétrage des jours/heures" => "/alertes.html"
  15. )
  16. ));
  17. ?>
  18. <style>
  19. .table thead th {
  20. text-align: center;
  21. }
  22. .table td, .table th {
  23. text-align: center;
  24. }
  25. .hour-column {
  26. font-weight: bold;
  27. }
  28. </style>
  29. <div class="bd-callout bd-callout-info">
  30. <h4>Description</h4>
  31. <p>Cet espace permet de sélectionner les moments ou vous voulez générer et recevoir les alertes emails provenant du CMS. A ce jour cela ne concerne que les <a href="/documents-my-assign.html">documents à traiter</a>.</p>
  32. </div>
  33. <div class="tab-content">
  34. <div class="form-group">
  35. <form method="post" action="/submit.php">
  36. <input type="hidden" name="from" value="alertes-emails">
  37. <table class="table table-bordered table-striped">
  38. <thead>
  39. <tr>
  40. <th></th>
  41. <th>Lundi</th>
  42. <th>Mardi</th>
  43. <th>Mercredi</th>
  44. <th>Jeudi</th>
  45. <th>Vendredi</th>
  46. <th>Samedi</th>
  47. <th>Dimanche</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <!-- Heures de 00:00 à 23:00 -->
  52. <?php for ($i = 0; $i < 24; $i++): ?>
  53. <tr>
  54. <td class="hour-column"><?= str_pad($i, 2, '0', STR_PAD_LEFT) ?>:00</td>
  55. <?php for ($j = 0; $j < 7; $j++): ?>
  56. <td>
  57. <input type="checkbox" name="heure[<?= $i ?>][<?= $j ?>]" value="1" <?php if(isset($paramAlert[$i][$j])){ echo "checked"; } ?>>
  58. </td>
  59. <?php endfor; ?>
  60. </tr>
  61. <?php endfor; ?>
  62. <tr>
  63. <td></td>
  64. <td class="fw-bold">Lundi</th>
  65. <th class="fw-bold">Mardi</td>
  66. <td class="fw-bold">Mercredi</td>
  67. <td class="fw-bold">Jeudi</td>
  68. <td class="fw-bold">Vendredi</td>
  69. <td class="fw-bold">Samedi</td>
  70. <td class="fw-bold">Dimanche</td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <button class="btn btn-primary btn-lg" style="width: 100%" type="submit">Enregistrer</button>
  75. </form>
  76. </div>
  77. </div>
  78. <br />