bug corrected

This commit is contained in:
Flavien Haas 2019-05-21 14:27:20 +02:00
parent 62d31524a1
commit 0158d822c1
2 changed files with 0 additions and 11 deletions

View File

@ -41,7 +41,6 @@ function addVoiture($db, $matricule, $marque, $modele, $nbplaces, $anneefab){
function changeVoiture($db, $matricule, $marque, $modele, $nbplaces, $anneefab){
$requete = "UPDATE public.voiture SET (matricule, marque, modele, nbplaces, anneefab) = ('" . $matricule . "','" . $marque . "','" . $modele . "','" . $nbplaces . "','" . $anneefab . "') WHERE mail = '" . $_SESSION['mail'] . "';";
echo "requete =" . $requete;
pg_query($db, $requete);
}
@ -54,7 +53,6 @@ function showVoiture($db){
echo "modele = ".$res['modele']."<br>";
echo "nombre de places = ".$res['nbplaces']."<br>";
echo "année de fabrication = ".$res['anneefab']."<br>";
//return "matricule = ".$res['matricule']."<br>"."marque = " . $res['marque'] . "<br>"."modele = " . $res['modele'] . "<br>"."nombre de places = " . $res['nbplaces'] . "<br>"."année de fabrication = " . $res['anneefab'] . "<br>";
}
}
}
@ -147,7 +145,6 @@ if (isset($_POST['login']) || isset($_FILES['avatar'])){
<div id="divImgProfil">
<img id="imgProfil" src="<?php echo getPathImgProfil($mail); ?>">
</div>
<script type="text/javascript">
function visibilite(thingId){
var targetElement;
@ -167,13 +164,10 @@ if (isset($_POST['login']) || isset($_FILES['avatar'])){
}
}
</script>
<ul class="profil-nav">
<li class="FT"><a href="" onclick="javascript:visibilite('profilgeneral'); return false;">Profil général</a></li>
<li class="FT"><a href="" onclick="javascript:visibilite('profilvoiture'); return false;">Profil voiture</a></li>
</ul>
<div id="profilgeneral" class="Element" style="display:none;">
<form method="post" action="profil.php" enctype="multipart/form-data">
<div class="line">
@ -223,9 +217,6 @@ if (isset($_POST['login']) || isset($_FILES['avatar'])){
<input id="submit" class="button" type="submit" value="Modifier">
</form>
</div>
<div id="profilvoiture" class="Element" style="display:none;">
<script type="text/javascript">
function ShowTab(E) {

View File

@ -1,10 +1,8 @@
<?php
$path = "..";
if (file_exists("./inscription.php")) {
$path = ".";
}
?>
<div id="menuDiv">
<nav id="menu">