1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
| <table class="agenda">
<th></th>
<?php
for ($nb = 0; $nb <= $_SESSION['duree']; $nb++) {
?>
<th class="<?= date('D', strtotime("" . $_SESSION['date'] . " + $nb day")) . $_SESSION['tailleCase'] ?>Haut"><?= utf8_encode(strftime('%a<br/>%d/%m', strtotime("" . $_SESSION['date'] . " + $nb day"))) ?></th>
<?php
if ($nb == $_SESSION['duree']) { ?>
</tr>
<?php
}
}
foreach ($membre as $do) {
?>
<tr>
<th class="nomAgent"><?= $do['nom'] ?></th>
<?php
for ($nb = 0; $nb <= $_SESSION['duree']; $nb++) {
$jourCalendrier = date('Y-m-d', strtotime("" . $_SESSION['date'] . " + $nb day ")); ?>
<td class="<?= date('D', strtotime("" . $_SESSION['date'] . " + $nb day")) . $_SESSION['tailleCase'] ?>">
<?php
$jourWekEnd = date('D', strtotime("" . $_SESSION['date'] . " + $nb day "));
if ($jourWekEnd == "Sat" or $jourWekEnd == "Sun") {
} else {
?>
<div class="<?= $_SESSION['tailleCase'] ?>OrgaEvt">
<form action="index.php" method="POST">
<div class="hautDeCase">
<input type="submit" name="voirJournee" class="submitEvtUnique">
<input type="hidden" name="hiddenId" value="<?= $do['nni'] ?>">
<input type="hidden" name="hiddenJour" value="<?= $jourCalendrier ?>">
<input type="hidden" name="hiddenNom" value="<?= $do['nom'] ?>">
</div>
<?php
}
foreach ($retourEtude as $etude) {
if (
$do['nni'] === ($etude['ID_affecter']) and
$jourCalendrier === ($etude['jour'])
) { ?>
<div class="Etude<?= $_SESSION['tailleCase'] ?>">
<p>Etude</p>
<?php
}
}
while ($liste = odbc_fetch_array($afficheOdbc)) {
if (
($liste['ag_nni_etu_dev'] == $do['nni'] and
$jourCalendrier = date('Y-m-d', strtotime($liste['aff_dt_etd_dev_prev']))) or
($liste['ag_nni_etu_tech'] == $do['nni'] and
$jourCalendrier= date('Y-m-d', strtotime($liste['aff_dt_etd_tech_prev'])) )
) {
?>
<div class="Etude<?= $_SESSION['tailleCase'] ?>">
<p>Etude</p>
<?php
}
}
foreach ($retourEtude as $etude) {
if (
$do['nni'] == ($etude['ID_affecter']) and
$jourCalendrier == ($etude['jour'])
) { ?>
<ul class="EvtPlus<?= $_SESSION['tailleCase'] ?>">
<li><?= $etude['heure'] ?><br />
<?= $etude['titre'] ?></li>
</ul>
<?php
}
}
while ($liste = odbc_fetch_array($afficheOdbc2)) {
if (
($liste['ag_nni_etu_dev'] == $do['nni'] and
$jourCalendrier = date('Y-m-d', strtotime($liste['aff_dt_etd_dev_prev']))) or
($liste['ag_nni_etu_tech'] == $do['nni'] and
$jourCalendrier = date('Y-m-d', strtotime($liste['aff_dt_etd_tech_prev'])) )
) {
?>
<ul class="EvtPlus<?= $_SESSION['tailleCase'] ?>">
<li><?php if (preg_match("#^[0-9]+h|heure|:[0-5]+$#i", $liste['etude_devis_com'])) {
echo $liste['etude_devis_com'];
}
if (preg_match("#^[0-9]+h|heure|:[0-5]+$#i", $liste['etude_tech_com'])) {
echo $liste['etude_tech_com'];
}
?><br />
<?= $liste['aff_code'] ?> <?= $liste['aff_lib'] ?><br />
<span class="spanComAg"><?= $liste['nom'] ?></span></li>
</ul>
<?php
}
}
?>
</div>
</div>
</form>
</td>
<?php
if ($nb == $_SESSION['duree']) {
?>
</tr>
<?php
}
}
}
?> |
Partager