<legend> <h3>Demande de stationnement</h3> </legend> <div style="display:block" >'; printn('<label>Type de paiement :</label>' . printSelect(demande::PAYMENT_METHOD_FORM_FIELD, $demande->getPaymentMethod(), $demande->getPaymentErrorMessage()) . '<br/></br>'); createCheckBoxField(demande::CARPOOLING_FORM_FIELD, $demande->isCarpooling(), "Je prevois faire du covoiturage (si oui, indiquer le nom, prénom et matricule des personnes \n\t\t\t\t\t\tavec qui vous prevoyez covoiturer dans les notes concernant votre demande"); createCheckBoxField(demande::CARPOOLING_OTHERS_FORM_FIELD, $demande->isCarpoolingOthers(), 'Je serais interesse à trouver des personnes pour faire du covoiturage'); printn('<label class="formFieldFileLabel">Note concernant votre demande (optionnel) :</label><textarea name="' . demande::DETAILS_FORM_FIELD . '" style="max-width:65%" cols="40" rows="7">' . $demande->getDetails() . '</textarea><br/>'); print createDemandFileField('Preuve de permis de conduire', '(nom de fichier alphanumérique [a-z][0-9] sans espace)', '', 'file', demande::DRIVING_LICENSE_FORM_FIELD, '', demande::DRIVING_LICENSE_FORM_FIELD, $demande->getLicenseErrorMessage(), $demande->getLicense()); print createDemandFileField('Preuve de résidence', '(nom de fichier alphanumérique [a-z][0-9] sans espace)', '', 'file', demande::PROOF_OF_RESIDENCE_FORM_FIELD, '', demande::PROOF_OF_RESIDENCE_FORM_FIELD, $demande->getResidenceErrorMessage(), $demande->getResidenceProof()); print ' </div> </fieldset>'; // VOITURES ////////////////////////// createCarForm($demande->getFirstCar(), '1'); createCarForm($demande->getSecondCar(), '2 - optionnel'); print ' <div class="registerField" style="float: right;margin-top:8;margin-bottom:15 "> <input class="searchButton" style="font-size: 16" size="15" value="' . ($demande->hasExistingDemandInDB() ? "Enregistrer" : "Soumettre") . '" type="submit"' . (util::isWebsiteOpen() ? "" : "disabled") . '/> </div>'; print '</form>'; } else { require_once "header.php"; print "Vous devez être identifié pour pouvoir faire une demande ou consulter une demande en cours</br>"; require_once 'class.loginWidget.php'; print loginWidget::getWidget("http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}", $login); } readfile('light_footer.html'); exit(0); function createStatusForm(demandStatus $status) { if (!$status->hasStatus()) { return; }
<?php error_reporting(E_ALL); require_once "header.php"; require_once "class.util.php"; if (!util::isWebsiteOpen()) { print "<h3>Les demandes de stationnement sont présentemment fermés. Vous receverez un courriel de l'AEP lorsque la période de demande ouvrira.</h3>"; } else { readfile('informations.html'); } readfile('footer.html'); function printn($txt) { print $txt . "\n"; }
public static function toggleOpening() { if (util::isWebsiteOpen()) { util::closeWebsite(); } else { util::openWebsite(); } }
require_once 'class.authentification.php'; $auth = authentification::instance(); if (!$auth->estIdentifie() || !$auth->isUserAdmin()) { header("Location: index.php"); exit(0); } if (isset($_GET['toggle']) && $_GET['toggle'] == 1) { util::toggleOpening(); } if (isset($_GET['deleteOldRequests']) && $_GET['deleteOldRequests'] == 1) { util::deleteOldRequests(); } ?> <div style="height:25px"> <a style="color:orange;padding-left:30px;float:left" href="?toggle=1"><?php print util::isWebsiteOpen() ? "Fermer les inscriptions" : "Ouvrir les inscriptions"; ?> </a> <a style="color:orange;padding-left:30px;float:left;" href="javascript:deleteOldRequests()">Supprimer les anciennes demandes</a> <a style="color:orange;padding-right:30px;float:right" href="logout.php">Déconnexion</a> </div> <div id="main"> <div id="adminDemandWrapper"> <span id="statusSectionWrapper" > <div id="statusSectionContainer"> </div> </span> <div id="proofSectionWrapper" > <div id="proofSectionContainer"> <span id="initialMessage" style="opacity: 0.5; text-align:center; vertical-align: middle" >