WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Accès aux maisons à  louer sous un système de gestion orienté web. Cas de la ville de Gisenyi au Rwanda

( Télécharger le fichier original )
par Jean- Claude HATEGEKIMANA
Institut supérieur d'informatique et de gestion Goma - Licence en informatique de gestion 2011
  

précédent sommaire suivant

Extinction Rebellion

F. Page de liste des bailleurs.

<html>

<head><title><h2>MAISON A LOUER </h2></title> <link rel="stylesheet"

type="text/css"href=../styles/coin.css></head>

<body>

<table height="1250" width="1300" bgcolor="gray" cellspacing="0" cellpadding="0"

border="0">

<tr height="50" width="200" bgcolor="#ccc"><td colspan="3" height="50" width="200"

bgcolor="#ccc">

<table height="230" width="1300" cellspacing="0" cellpadding="0" border="0"

background="../photo/MAISON.jpg">

<tr><td></td></tr>

</table> <table align="center" height="40" width="400">

<tr><td><form method="POST" action="">

<input type="text" Name=""> <input type="submit"

Value="Rechercher"></form></td></tr></table>

</td></tr>

<tr height="30" width="500" bgcolor="yellow"><td colspan="3">

<table height="30" align="center" width="400" cellspacing="0" cellpadding="0"

border="0"><tr><td> <a href="../index.php"> <h4 align="center">HOME</h4></a>

</td></tr><tr><td> <a href="locataire.php"> <h4 align="center">LOCATAIRE </h4></a>

</td><td> <a href="bailleur.php"> <h4 align="center"> BAILLEUR </h4> </a></td><td> <a

href="maison.php"> <h4 align="center"> MAISON </h4> </a></td> <td> <a

href="historique.html" rel="nofollow"> <h4 align="center"> HISTORIQUE </h4> </a></td></tr></table>

53

</td></tr>

</td> </tr>

</table>

<div style="width:1300px;height:1250px;">

<div style="width:450px;float:left;">

s

</div>

<div style="width:850px;float:left;">

<h2>LA LISTE DES BAILLEURS</h2>

<?php

$serveurlocal=@mysql_connect("localhost","root","") or die("Error connexion au serveur");

$db=@mysql_select_db("bdlocation",$serveurlocal) or die("erreur bd");

$rs=mysql_query("select * from bailleur",$serveurlocal);

$nbr=mysql_num_rows($rs);

echo'<table border=1px style="width:500px;">';

echo"<tr><td>Code bailleur</td><td>Nom bailleur</td><td>prenom bailleur</td><td>carte

bailleur </td><td>

Residence bailleur</td><td>Telephone</td></tr>";

while($rec=mysql_fetch_array($rs))

{

echo"<tr><td>".$rec['code_bailleur']."</td><td>".$rec['Nom_bailleur']."</td><td>".$rec['pre

nom_bailleur']."</td><td>".$rec['Num_carte_bailleur']." </td><td>".$rec

['Residence_bailleur']."</td><td>".$rec['Tel_bailleur']."</td></tr>";

}

echo'</table>';

mysql_close($serveurlocal);

?>

</div>

</div>

</body> </html>

54

G. Page de liste des demandeurs des maisons

<html>

55

<head><title><h2>MAISON A LOUER </h2></title> <link rel="stylesheet"

type="text/css"href=../styles/coin.css></head>

<body>

<table height="700" width="1300" bgcolor="gray" cellspacing="0" cellpadding="0"

border="0">

<tr height="100" width="1300" bgcolor="#006600"><td colspan="3">

<table height="230" width="1300" cellspacing="0" cellpadding="0" border="0"

background="../photo/MAISON.jpg">

<tr><td></td></tr>

</table> <table align="center" height="40" width="400">

<tr><td><form method="POST" action="">

<input type="text" Name=""> <input type="submit"

Value="Rechercher"></form></td></tr></table>

</td></tr>

<tr height="20" width="300" bgcolor="yellow"><td colspan="3">

<table height="15" align="center" width="600" cellspacing="0" cellpadding="0"

border="0" ><tr><td> <a href="../index.php"> <h4 align="center">HOME</h4></a> </td></tr><tr><td> <a href="../pages/locataire.php"> <h4 align="center">LOCATAIRE </h4></a> </td><td> <a href="../pages/bailleur.php"> <h4 align="center"> BAILLEUR </h4> </a></td><td> <a href="../pages/maison.php"> <h4 align="center"> MAISON </h4> </a></td> <td> <a href="historique.html" rel="nofollow"> <h4 align="center"> HISTORIQUE </h4> </a></td></tr></table>

</td></tr>

</td> </tr>

</table>

<div style="width:1300px;height:1250px;">

<div style="width:450px;float:left;">

s

</div>

<div style="width:850px;float:left;">

<h2>LA LISTE DES DEMANDEURS DES MAISONS</h2>

<?php

$serveurlocal=@mysql_connect("localhost","root","") or die("Error connexion au

serveur");

$db=@mysql_select_db("bdlocation",$serveurlocal) or die("erreur bd");

$rs=@mysql_query("select

c.Nom_loc,c.Prenom_loc,c.Te_loc,c.email,c.num_pc,d.numero_pc,d.images from locateur as

c inner join maison as d where c.num_pc=d.numero_pc",$serveurlocal) or die("erreur de

syntaxe");

$nbr=mysql_num_rows($rs);

echo'<table border=1px style="width:500px;">';

while($rec=mysql_fetch_array($rs))

{

$p=$rec['Nom_loc'];

$M=$rec['Prenom_loc'];

$nc=$rec['numero_pc'];

$ni=$rec['images'];

$email=$rec['email'];

$tel=$rec['Te_loc'];

56

echo"<tr><td style='width:300px; height:300px;'><img src='../photo/".$ni."'

style='width:500px; height:500px;' ></td></tr>";

//reception commentaire

echo"<tr><td style='width:300px; height:200px;'>Nom du demadeur location: $p

<br>Prenom du demandeur: $M<br>Numero parcelle: $nc<br> Email locataire:

$email<br>Telephone: $tel<br> <br><img src='../photo/".$ni."' style='width:100px;

height:100px; float:left;' ><br></td></tr>";

}

echo'</table>';

?>

</div>

</div>

</body>

</html>

Pour se connecter à la base de données avec différentes pages nous avons utilisé les codes suivants :

Connection de la page Bailleur

<?php

$code=$_POST["txtcodebailleur"];

$nom=$_POST["txtnombailleur"];

$prenom=$_POST["txtprenombailleur"];

$numcarte=$_POST["txtcartebailleur"];

$residence=$_POST["txtresidencebailleur"];

$tel=$_POST["txttelbailleur"];

echo $code;

echo $nom;

echo $prenom;

echo $numcarte;

echo $residence;

echo $tel;

$serveurlocal=@mysql_connect("localhost","root","") or die("Error connexion au serveur");

$db=@mysql_select_db("bdlocation",$serveurlocal) or die("erreur bd");

$rs=mysql_query("insert into

bailleur(code_bailleur,Nom_bailleur,Prenom_bailleur,Num_carte_bailleur,Residence_bailleur

,tel_bailleur) values('$code','$nom','$prenom','$numcarte','$residence','$tel')",$serveurlocal);

mysql_close($serveurlocal);

header('location:bailleur.php');

?>

Connection dela page maison

<?php

$num=$_POST["txtnumpc"];

$quartier=$_POST["txtquartier"];

$nbrch=$_POST["txtnbrchambre"];

$avenu=$_POST["txtnumavenue"];

$jd=$_POST["jourdebut"];

$md=$_POST["moisdebut"];

57

$ad=$_POST["anneedebut"];

$jf=$_POST["jourfin"];

$mf=$_POST["moisfin"];

$af=$_POST["annefin"];

$cbailleur=$_POST['codebailleur'];

$montant=$_POST['txtmontant'];

$obs=htmlentities(addslashes($_POST['observation']));

$taille_max=$_POST["max_size"];

if(!is_uploaded_file($_FILES['txtimage']['tmp_name']))

{

die("le fichier n'est pas transfere au serveur");

}

if($taille_max<$_FILES['txtimage']['size'])

{

die ("la taille de la photo de la maison est grande");

}

$ext=".";

if(strstr($_FILES['txtimage']['type'],"gif")) $ext.="gif";

if(strstr($_FILES['txtimage']['type'],"jpg")) $ext.="jpg";

if(strstr($_FILES['txtimage']['type'],"jpeg")) $ext.="jpg";

$photo=$_FILES['txtimage']['name'];

if(!move_uploaded_file($_FILES['txtimage']['tmp_name'],"../photo/".$photo))

{

die("La photo n'a pas ete ajoute");

}

$dated=$jd."/".$md."/"."$ad";

echo $dated;

echo"====";

$datef=$jf."/".$mf."/"."$af";

echo $datef;

echo"====";

echo $num;

echo"====";

echo $nbrch;

echo"====";

echo $avenu;

echo"====";

echo $cbailleur;

echo"====";

echo $photo;

echo"====";

echo $obs;

echo"====";

echo $montant;

echo date('d-m-y');

58

$serveurlocal=@mysql_connect("localhost","root","") or die("Error connexion au serveur"); $db=@mysql_select_db("bdlocation",$serveurlocal) or die("erreur bd");

$rs=@mysql_query("insert into

maison(numero_pc,quartier,nbr_chambre,num_avenue,date_entree,date_fin_contrat,code_bail leur,images,observation,Montant) values ('".$num."','".$quartier."','".$nbrch."','".$avenu."','".$dated."','".$datef."','".$cbailleur."','".$phot o."','".$obs."','".$montant."')",$serveurlocal) or

die("erreur insertion");

mysql_close($serveurlocal);

header('location:maison.php');

?>

Connection de la page locataire

<?php

$nom=$_POST["txtnomloc"];

$prenom=$_POST["txtprenomloc"]; $numcarte=$_POST["txtnumcarteloc"];

$residence=$_POST["txtresidenceloc"];

$tel=$_POST["txttelloc"]; $email=$_POST["txtemail"]; $pc=$_POST["txtparcelle"];

echo $nom;

echo $prenom;

echo $numcarte;

echo $residence;

echo $tel;

$serveurlocal=@mysql_connect("localhost","root","") or die("Error connexion au serveur");

$db=@mysql_select_db("bdlocation",$serveurlocal) or die("erreur bd");

$rs=mysql_query("insert into

locateur(Nom_loc,Prenom_loc,Num_carte_loc,Residence_loc,Te_loc,email,num_pc)

values('$nom','$prenom','$numcarte','$residence','$tel','$email','$pc')",$serveurlocal);

mysql_close($serveurlocal);

header('location:locataire.php');

?>

59

précédent sommaire suivant






Extinction Rebellion





Changeons ce systeme injuste, Soyez votre propre syndic





"Il ne faut pas de tout pour faire un monde. Il faut du bonheur et rien d'autre"   Paul Eluard