Esempio n. 1
0
    <!--[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 {
    drupal_goto('inscription.php');
Esempio n. 2
0
    <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 {
                ?>
                <a  href="permis.php?id=<?php print trom($data['id'])?>">
Esempio n. 3
0
<!-- 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">

        <div class="center" style="width: 120px;">
            <H1 class="title">INSCRIPTION</H1>
        </div>
    </div>
    <div class="divider-small-px">
        <div class="row bar-title">