<meta name="generator" content="Bootply" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link href="css/styles.css" rel="stylesheet"> </head> <body> <!-- Wrap all page content here --> <div id="wrap"> <?php include("header.php"); ?> <?php $contenu = new db_contenu(); $data = $contenu->get_by_id($_GET['id']); $data = array_pop($data); ?> <div class="row right"> <br> <div class="col-sm-10 col-sm-offset-10"> <?php if (trom($data['bloc_m'])) { ?> <button type="button" class="btn btn-info " data-toggle="modal" data-target="#myModal"><img src="inscription.png" width="200px"></button> <?php }else {
<link href="css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link href="css/styles.css" rel="stylesheet"> </head> <body> <!-- Wrap all page content here --> <div id="wrap"> <?php include "header.php"; ?> <?php $dbContenu = new db_contenu(); $contenu = $dbContenu->get_by_id($_SESSION['stage']); $contenu = array_pop($contenu); $stages = new db_stage(); $stages = $stages->get_by_id($_POST['id_stage']); $stages = array_pop($stages); global $user; if ($user->uid) { $stagiaire = new db_stagiaires(); $stagiaire = $stagiaire->get_by_fields(array('id_drupal_user' => $user->uid)); $data = array_pop($stagiaire); } if ($_POST['id_stage'] && $data['id']) { $dbInscription = new db_inscription(); $dbInscription->insert(array('id_stage' => $_POST['id_stage'], 'id_stagiaire' => $data['id'], 'statut' => 1)); } else {
<?php define('DRUPAL_ROOT', realpath(dirname(__FILE__).'/gestion/')); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); require_once 'gestion/sites/all/modules/custom/hardis/hardis_controller.inc'; $con = new db_contenu(); $permis = $con->get_by_fields(array('type' => 2)); $stages = $con->get_by_fields(array('type' => 1)); global $user; function trom($data){ $data = str_replace('<pre>','',$data); $data = str_replace('</pre>','',$data); return $data; } ?> <header class="masthead"> <div class="container"> <div class="row"> <div class="col-sm-6 header"> <a href="index.php"> <img src="logo.png" class="logo"> <a>
<link href="css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link href="css/styles.css" rel="stylesheet"> </head> <body> <!-- Wrap all page content here --> <div id="wrap"> <?php include("header.php"); ?> <?php $dbContenu = new db_contenu(); if ($_GET['id']){ $id = $_GET['id']; }else{ $id = $_SESSION['stage']; } $contenu = $dbContenu->get_by_id($id); $contenu = array_pop($contenu); $stages = new db_stage(); $stages = $stages->get_by_fields(array('id_contenu' => $contenu['id'])); ?> <!-- Projects Row --> <div class="row bg-ctIn">