commit
908ec8ebf4
@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
class CtrlUser{
|
|
||||||
function __construct(){
|
|
||||||
$rep=__DIR__.'/../';
|
|
||||||
|
|
||||||
$dVueErreur = array ();
|
|
||||||
try{
|
|
||||||
$action=$_REQUEST['action'];
|
|
||||||
|
|
||||||
switch($action) {
|
|
||||||
case NULL:
|
|
||||||
$this->Reinit();
|
|
||||||
break;
|
|
||||||
case "validationFormulaire":
|
|
||||||
$this->ValidationFormulaire($dVueEreur);
|
|
||||||
break;
|
|
||||||
//mauvaise action
|
|
||||||
default:
|
|
||||||
$dVueEreur[] = "Erreur d'appel php";
|
|
||||||
require ($rep.$vues['vuephp1']);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} catch (PDOException $e)
|
|
||||||
{
|
|
||||||
//si erreur BD, pas le cas ici
|
|
||||||
$dVueEreur[] = "Erreur inattendue!!! ";
|
|
||||||
require ($rep.$vues['erreur']);
|
|
||||||
}
|
|
||||||
catch (Exception $e2)
|
|
||||||
{
|
|
||||||
$dVueEreur[] = "Erreur inattendue!!! ";
|
|
||||||
require ($rep.$vues['erreur']);
|
|
||||||
}
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
static $user = 'nifranco';
|
static $user = 'anboudoul';
|
||||||
static $pass = 'achanger';
|
static $pass = 'achanger';
|
||||||
?>
|
?>
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
<?php
|
<!DOCTYPE html>
|
||||||
echo '<head>
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
|
||||||
rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
</head>';
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
echo '<h1>'.$name.'</h1><center>';
|
echo '<h1>'.$name.'</h1><center>';
|
||||||
echo '<div class="list-group list-group-light">';
|
echo '<div class="list-group list-group-light">';
|
||||||
foreach($TabList as $liste){
|
foreach($TabList as $liste){
|
||||||
echo '<button type="button" class="list-group-item list-group-item-action px-3 border-0">'.$liste->get_nom().'</button>';
|
echo '<button type="button" class="list-group-item list-group-item-action px-3 border-0">'.$liste->get_nom().'</button>';
|
||||||
}
|
}
|
||||||
echo '</div></center>';
|
echo '</div></center>';
|
||||||
?>
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
Reference in new issue