コード例 #1
0
<?php

include_once 'autoload.inc.php';
include_once 'init.inc.php';
$p = new webpage("Administration");
$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");
$p->appendCssUrl("style/searchEngine.css");
$p->appendJsUrl("js/request.js");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
$p->appendContent(<<<HTML
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Panel heading</div>

  <!-- Table -->
  <table class="table">
  <tr><th scope="col">N°</th><th scope="col">Numéro convention</th><th scope="col">Entreprise</th><th scope="col">Enseignant réferent</th></tr>
HTML
);
require_once 'myPDO.include.php';
$db = myPDO::getInstance();
コード例 #2
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 = "";
コード例 #3
0
ファイル: index.php プロジェクト: Globuss/GestionnaireStage-1
<?php

include 'autoload.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");
$p->appendCssUrl("navbar-static/-top.css");
$p->appendContent(<<<HTML
    <!-- Static navbar -->
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>