Beispiel #1
0
<?php

use Bourse\Views\Forms\FormBootstrap;
$post = isset($_SESSION['post']) ? $_SESSION['post'] : null;
$form = new FormBootstrap($post);
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
    unset($_SESSION['post']);
}
if (isset($_SESSION['errors']['envoi'])) {
    echo '<p class="bg-danger">' . $_SESSION['errors']['envoi'] . '</p>';
    unset($_SESSION['errors']['envoi']);
}
?>
<div class="col-md-11">
    <p>Pour nous contacter veuillez remplir tous les champs obligatoires marqués par (*)</p>

    <form class="form-horizontal" method="post" action="index.php?p=contacter">
            <?php 
echo $form->hidden('formContact');
?>
        <div class="form-group">
                <?php 
echo $form->label('sujet');
?>
            <div class="col-sm-8">
                <?php 
echo $form->input('sujet');
?>
                <?php 
Beispiel #2
0
<?php

var_dump($_SESSION);
use Bourse\Views\Forms\FormBootstrap;
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
$form = new FormBootstrap($post);
?>
<div>


    <h3> J’ai oublié mon mot de passe</h3>

    <p>Saisissez l'adresse email de votre compte web puis cliquez sur valider.
        Vous recevrez ensuite par e-mail un lien. Une fois ce lien cliqué, vous pourrez 
        facilement créer votre nouveau mot de passe.</p>
    <?php 
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['error'])) {
    echo '<p class="bg-danger">' . $_SESSION['error'] . '</p>';
    unset($_SESSION['error']);
}
?>
    <form action="index.php?p=traitementForgot" method="post" class="form-horizontal">
        <div class="form-group">
            <?php 
Beispiel #3
0
//donne le droit d'access a l'espace admin
$controller->allow("admin");
$post = null;
/*
 if (isset($_SESSION['post'])) {
 $post = $_SESSION['post'];
 $id = isset($post['id'])?$post['id']:'';
 }
*/
if (isset($data['post'])) {
    $post = $data['post'];
}
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
$form = new FormBootstrap($post);
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['error'])) {
    echo '<p class="bg-danger">' . $_SESSION['error'] . '</p>';
    unset($_SESSION['error']);
}
?>


<h3>Modifer   un  utilisateur</h3>


Beispiel #4
0
<?php

use Bourse\Views\Forms\FormBootstrap;
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
$form = new FormBootstrap($post);
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['errors']['Errorinscription'])) {
    echo '<p class="bg-danger">' . $_SESSION['errors']['Errorinscription'] . '</p>';
    unset($_SESSION['errors']['Errorinscription']);
}
?>

<div class="col-md-11">
    <p>Pour s'inscrire a notre site veuillez remplir tous les champs obligatoires marqués par (*)</p>

    <form class="form-horizontal" method="post" action="index.php?p=sinscrire">
            <?php 
echo $form->hidden('formInscription');
?>

        <div class="form-group">
                <?php 
echo $form->label('nom');
?>
            <div class="col-sm-8">
Beispiel #5
0
<?php

use Bourse\Views\Forms\FormBootstrap;
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
$form = new FormBootstrap($post);
?>
<div class="col-md-12">
   <?php 
if (isset($_SESSION['errors']['connexion'])) {
    echo '<p class="bg-danger">' . $_SESSION['errors']['connexion'] . '</p>';
    unset($_SESSION['errors']['connexion']);
}
?>
<p>formulaire connexion</p>
<form class="form-horizontal" method="post" action="index.php?p=seconnecter">
     <?php 
echo $form->hidden('connexion');
?>
  <div class="form-group">
     <?php 
echo $form->label('login');
?>
    <div class="col-sm-8">
     <?php 
echo $form->input('loginCon');
?>
        
    </div>
Beispiel #6
0
use Bourse\Views\Forms\FormBootstrap;
require_once '../../../index_header.php';
/* recuperer les  valeurs niveaux d'access */
$levels = (require '../../../Config/ConfigLevel.php');
$controller = new Controller();
//donne le droit d'access a l'espace admin
$controller->allow("admin");
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
if (isset($data['post'])) {
    var_dump($data['post']);
    $post = $data['post'];
}
$form = new FormBootstrap($post);
if (isset($_COOKIE['success'])) {
    echo '<p class="bg-success">' . $_COOKIE['success'] . '</p>';
}
if (isset($_SESSION['errors']['Errorinscription'])) {
    echo '<p class="bg-danger">' . $_SESSION['errors']['Errorinscription'] . '</p>';
}
?>


<h3>Ajouter   une nouvele societe</h3>


<style>
    #div1{
        border: solid 1px black;
Beispiel #7
0
use Bourse\Views\Forms\FormBootstrap;
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['error'])) {
    echo '<p class="bg-danger">' . $_SESSION['error'] . '</p>';
    unset($_SESSION['error']);
}
$id = isset($_GET['id']) ? $_GET['id'] : null;
$token = isset($_GET['token']) ? $_GET['token'] : null;
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
$form = new FormBootstrap($post);
?>
    <div style="border:1px solid black;">


        <h2>Votre nouveau mot de passe</h2>
        <p>Pour réinitialiser votre mot de passe, veuillez compléter les champs ci-dessous.</p>


        <form class="form-horizontal" method="post" action="index.php?p=reinisialiserPass">
            <?php 
echo $form->hidden('changePassword');
?>
            <?php 
echo $form->hidden('id', $id);
?>
Beispiel #8
0
use Bourse\Controllers\Controller;
use Bourse\Views\Forms\FormBootstrap;
require_once '../../../index_header.php';
/*recuperer les  valeurs niveaux d'access*/
$levels = (require '../../../Config/ConfigLevel.php');
$controller = new Controller();
//donne le droit d'access a l'espace admin
$controller->allow("admin");
$post = null;
if (isset($_SESSION['post'])) {
    $post = $_SESSION['post'];
}
if (isset($data['post'])) {
    $post = $data['post'];
}
$form = new FormBootstrap($post);
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['errors']['Errorinscription'])) {
    echo '<p class="bg-danger">' . $_SESSION['errors']['Errorinscription'] . '</p>';
    unset($_SESSION['errors']['Errorinscription']);
}
?>


<h3>Ajouter   un nouveau utilisateur</h3>

<div class="col-md-11">