Exemplo n.º 1
0
                $database->requete("UPDATE st_user_metadata \n\t                \t\t\t\tSET \n\t                \t\t\t\tlastname='" . $lastName . "',\n\t                \t\t\t\tfirstname='" . $firstName . "',\n\t                \t\t\t\taddress='" . $address . "',\n\t                \t\t\t\tcity='" . $city . "',\n\t                \t\t\t\tzipcode='" . $postalCode . "',\n\t                \t\t\t\ttel_1='" . $phone . "',\n\t                \t\t\t\temail='" . $email . "' \n\t                \t\t\t\tWHERE matricule='" . $matricule . "'");
                updateTripInfo($address, $city, $postalCode, $matricule);
                $database->commitTransaction();
            }
        } catch (Exception $e) {
            $database->abortTransaction();
        }
    }
}
require_once 'header.php';
require_once 'class.authentification.php';
require_once 'class.userData.php';
$objAuth = authentification::instance();
$user = new userData($objAuth->getUsager());
if ($user->getCurrentUserData()) {
    $matricule = $user->getMatricule();
    $email = $user->getEmail();
    $firstName = $user->getFirstName();
    $lastName = $user->getLastName();
    $phone = $user->getPhone();
    $address = $user->getAddress();
    $city = $user->getCity();
    $postalCode = $user->getZipCode();
    $submissionValue = 'update';
    $readonly = 'readonly';
}
print '<fieldset  >
		<legend> <h3>Informations</h3> </legend>
		<div style="float:left" >
			<form method="post" name="register">
				<input type="hidden" name="submissionType" value="' . $submissionValue . '"/>';
Exemplo n.º 2
0
    $resultArray = mysql_fetch_array($result);
    $demande->getStatus()->setToPrinted(util::cleanUTF8($resultArray[demandStatus::STATUS_DESC_DB_FIELD]));
    print '<body>';
} else {
    print '<body onload="javascript:window.print()">';
}
?>
<img src="AEP.gif"/>
<h2>Demande de stationnement</h2>
<p>
<fieldset>
<legend><h3>Informations personnelles</h3></legend>
<div style="display:block;margin-top:10px">
    <table>
    <?php 
printTableRow("Matricule", $user->getMatricule());
printTableRow("Nom", $user->getLastName());
printTableRow("Prenom", $user->getFirstName());
printTableRow("Adresse", $user->getAddress());
printTableRow("Ville", $user->getCity());
printTableRow("Code postal", $user->getZipCode());
printTableRow("Tel", $user->getPhone());
printTableRow("Courriel", $user->getEmail());
?>
    </table>
</div>
</fieldset>

<fieldset>
<legend><h3>Informations sur la demande</h3></legend>
<div style="display:block;margin-top:10px">