\t\t\t <!-- Bootstrap Core CSS --> \t\t\t <link href="css/bootstrap.css" rel="stylesheet"> \t\t\t <!-- Custom CSS --> \t\t\t <link href="css/mine.css" rel="stylesheet"> \t\t\t</head> \t\t\t<body> END; include 'navbar.php'; $req = find_appart_prop($_SESSION['utilisateur']); $result = odbc_exec($conn, $req); while (odbc_fetch_row($result)) { $id = odbc_result($result, 1); $photo = odbc_result($result, 2); $titre = get_description_titre($conn, $id); imprimer($conn, $id, $titre, $photo); } odbc_close($conn); function imprimer($conn, $id, $titre, $photo) { echo ' <div class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="' . $photo . '" alt=""> <div class="caption"> <h3>' . utf8_decode($titre) . '</h3> <p> '; $res = louerpar($conn, $id); $nom = odbc_result($res, 1); $prenom = odbc_result($res, 2);
$name = odbc_result($result, 1); $surname = odbc_result($result, 2); print_r("$name $surname\n"); } odbc_close($conn);/* */ include 'requete_appart.php'; $req = find_appart(0); $result = odbc_exec($conn, $req); while (odbc_fetch_row($result)) { $id = odbc_result($result, 1); $photo = odbc_result($result, 2); $titre = get_description_titre($conn, $id); $description = get_description_total($conn, $id); imprimer($id, $titre, $photo, $description); } odbc_close($conn); function imprimer($id, $titre, $photo, $description) { echo ' <div class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="' . $photo . '" alt=""> <div class="caption"> <h3>' . utf8_decode($titre) . '</h3> <p> <a href="appartement.php?id=' . $id . '" class="btn btn-primary">Voir Infos</a> <a href="#"</a> </p> </div> </div>
modifier_candidature(); break; case 'modifier_motif': modifier_motif(); break; case 'lister_session': lister_session(); break; case 'importer': importer(); break; case 'exporter': exporter(); break; case 'imprimer': imprimer(); break; case 'rechercher_session': rechercher(); break; case 'visualiser_session': visualiser_session(); break; case 'session_rapide': session_rapide(); break; default: page404(); } /*page introuvable*/ function page404()
\t\t\t <link href="css/bootstrap.css" rel="stylesheet"> \t\t\t <!-- Custom CSS --> \t\t\t <link href="css/mine.css" rel="stylesheet"> \t\t\t</head> \t\t\t<body> END; include 'navbar.php'; $req = find_appart_loc(1); $result = odbc_exec($conn, $req); while (odbc_fetch_row($result)) { $id = odbc_result($result, 1); //$photo = odbc_result($result, 2); $titre = get_description_titre($conn, $id); $description = get_description_total($conn, $id); imprimer($conn, $id, $titre, $description); } odbc_close($conn); function imprimer($conn, $id, $titre, $description) { echo ' <div class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <div class="caption"> <h3>' . utf8_decode($titre) . '</h3> <p> <a href="appartement.php?id=' . $id . '" class="btn btn-primary">Louer</a> <a href="#" class="btn btn-default">More Info</a> <a href="payer.php?id=' . $id . '" class="btn btn-default">Payer</a> <a href="etretienChaudiere.php?id=' . $id . '" class="btn btn-default">Entretien Chaudiere</a> <a href="assurance.php?id=' . $id . '" class="btn btn-default">Assurance</a>';