コード例 #1
0
<?php

require_once 'class/entreprise.class.php';
require_once "autoload.inc.php";
require_once "init.inc.php";
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
if (isset($_REQUEST['id']) && ($entreprise = Entreprise::creatFromId($_REQUEST['id'])) != null) {
    $nom = htmlspecialchars($entreprise->getNom());
    $adr = htmlspecialchars($entreprise->getAdresse());
    $tel = htmlspecialchars($entreprise->getTel());
    $typeJurydique = htmlspecialchars($entreprise->getTypeJuridique());
    $site = htmlspecialchars($entreprise->getSite() != null ? $entreprise->getSite() : "");
    $pays = htmlspecialchars($entreprise->getPays());
    $siret = htmlspecialchars($entreprise->getSIRET());
    $siren = htmlspecialchars($entreprise->getSIREN());
    $ville = htmlspecialchars($entreprise->getVille());
    $codePostal = htmlspecialchars($entreprise->getCodePostal());
    //Affiche tous les avis sur l'entreprise
    $commentaires = "";