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
|
<form action="recoit-y-c4_2.php" method="POST" >
<input type"text" name="infos" value="
<?php
$date = priv_reg_glob_calendar('date');
if ($date == '') {
print
$month;
}
else {
?> <br /><br /><?php
print 'DATE : ';
print
$day = substr($date, 6, 2);print '/';
print ' '; print
$month = substr($date, 4 ,2); print '/';
print ' '; print
$year = substr($date, 0 ,4);print '--->';
print ''; print 'Référence : '; print $timestamp = mktime(0, 0, 0, $month, $day, $year); print '--->'; ?><?php print 'De : '; ?>">
<select name="liste1">
<option value="9 heures">9 heures
<option value="10 heures">10 heures
<option value="11 heures">11 heures
<option value="12 heures">12 heures
<option value="13 heures">13 heures
<option value="14 heures">14 heures
<option value="15 heures">15 heures
<option value="16 heures">16 heures
<option value="17 heures">17 heures
<option value="18 heures">18 heures
</select>
<select name="liste2">
<option value="00 mn A ">00 mn
<option value="15 mn A ">15 mn
<option value="30 mn A ">30 mn
<option value="45 mn A ">45 mn
A :
</select>
<select name="liste3">
<option value="9 heures">9 heures
<option value="10 heures">10 heures
<option value="11 heures">11 heures
<option value="12 heures">12 heures
<option value="13 heures">13 heures
<option value="14 heures">14 heures
<option value="15 heures">15 heures
<option value="16 heures">16 heures
<option value="17 heures">17 heures
<option value="18 heures">18 heures
</select>
<select name="liste4">
<option value="00 mn">00 mn
<option value="15 mn">15 mn
<option value="30 mn">30 mn
<option value="45 mn">45 mn
</select>
-La salle sera retenue <input type"text" name="personnel" value="Salle retenue par -> <?php
print ' (nom du responsable) <br/>---------------------------<br />' ?>">
<?php
if(empty($personnel)){ print 'vous n avez pas rempli tous les champs'; } else { print 'ok'; }
?>
<input type="submit" value="Valider">
</form>
<form method="POST">
Référence date : <input type="text" name="ref" value="<?php print $timestamp; ?>"/><br/>
<input type="submit" value="Rechercher" />
<?php
if (!empty($_POST['ref'])) {
define('FICHIER', 'texte0.php');
$resultats =array();
@ $fp = fopen(FICHIER, 'r') or die('Ouverture en lecture de "' . FICHIER . '" impossible !');
while (!feof($fp)) {
$ligne = fgets($fp, '224');
if (preg_match('|\b' . preg_quote($_POST['ref']) . '\b|i', $ligne)) {
$resultats[] = $ligne;
}
}
fclose($fp);
$nb = count($resultats);
if ($nb > 0 ) {
echo "<ul><li><div style='background:#88C678;border:dashed 1px blue;'><span style='color:#000033;'><u><b>CETTE REFERENCE DE DATE A ETE TROUVEE ! VEUILLEZ VERIFIER.</b></u></span> </div></li>";
echo "'$ref' trouvé $nb fois : "; print '<br />';
foreach ($resultats as $v); {
echo "$v";
}
} else {
echo("<br/><font color='#336633'>CETTE SALLE A CETTE DATE NE FAIT PAS ENCORE L'OBJET D'UNE RESERVATION.</font><br/>
Vous pouvez proposer votre réservation en toute tranquilité.<br/>");
}
}
?>
</form>
</div><!-- fin css = y-c1 --> |
Partager