Exemplo n.º 1
0
 public static function getPdoSlam1()
 {
     if (PdoSlam1::$monPdoSlam1 == null) {
         PdoSlam1::$monPdoSlam1 = new PdoSlam1();
     }
     return PdoSlam1::$monPdoSlam1;
 }
Exemplo n.º 2
0
<?php

session_start();
//Connection au serveur
require_once './js/pdoclass.php';
$pdo = PdoSlam1::getPdoSlam1();
?>
<!DOCTYPE html>
<html>
    <head>
        <title>A Simple Page with CKEditor</title>
        <!-- Make sure the path to CKEditor is correct. -->
        <script src="ckeditor/ckeditor.js"></script>
        <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
        <script src="js/jquery-2.1.0.min.js"></script>
        <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
        <link rel="stylesheet" href="css/bootstrap-theme.min.css" type="text/css">
        <script src="js/bootstrap.min.js"></script>
        <link rel="stylesheet" href='css/moncss.css' type='text/javascript'>
    </head>
    <body>

        <!-- Button trigger modal -->

        <span class='glyphicon glyphicon-envelope grey' data-toggle="modal" data-target="#myModal"></span>

        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">