Compare commits
2 Commits
085432c35e
...
3efdacbbb0
Author | SHA1 | Date | |
---|---|---|---|
|
3efdacbbb0 | ||
|
c2687df8fc |
50
gsb/controleurs/c_utilisateur.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
// ****************************************'
|
||||
// Le CASTEL-BTS SIO/ PROJET démonstration'
|
||||
// Programme: c_param.php '
|
||||
// Objet : gestion des parametres '
|
||||
// Client : Bts SIO1 '
|
||||
// Version : 22.03 '
|
||||
// Date : 09 mars 2022 à 19H51 '
|
||||
// Auteur : pascal-blain@wanadoo.fr '
|
||||
//*****************************************'
|
||||
|
||||
$action = $_REQUEST['action'];
|
||||
|
||||
|
||||
switch($action) {
|
||||
case 'voir':
|
||||
{
|
||||
include("vues/v_entete.php");
|
||||
$lesInfosProfil = $pdo->getInfosUtilisateur("*",$_SESSION['idUtilisateur']);
|
||||
include("vues/v_ficheProfil.php");
|
||||
break;
|
||||
}
|
||||
|
||||
//----------------------------------------- /MODIFICATION/
|
||||
|
||||
case 'modifier':
|
||||
|
||||
{
|
||||
include("vues/v_entete.php");
|
||||
$infosParam = $pdo->getInfosParam($type, $valeur);
|
||||
include("vues/v_unParam.php");
|
||||
break;
|
||||
}
|
||||
|
||||
//----------------------------------------- VALIDATION MODIFICATION
|
||||
case 'validerModifier':
|
||||
{
|
||||
if ($_REQUEST['zOk']=="OK") {$pdo->majParametre($type, $valeur, addslashes ($_REQUEST['zLibelle']), $_REQUEST['zTerritoire'], $_REQUEST['zDep'], $plancher, $plafond);}
|
||||
header ('location: index.php?choixTraitement=param&action=voir&lstParam='.$type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
default :
|
||||
{
|
||||
echo 'erreur d\'aiguillage !'.$action;
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -12,8 +12,8 @@ class PdoBD
|
||||
{
|
||||
private static $serveur='mysql:host=localhost';
|
||||
private static $bdd='dbname=gsb2022';
|
||||
private static $user='sio';
|
||||
private static $mdp='Sio2023';
|
||||
private static $user='gsbadmn';
|
||||
private static $mdp='gsbadmn';
|
||||
private static $monPdo;
|
||||
private static $monPdoBD=null;
|
||||
|
501
gsb/styles/styles.css
Normal file
@@ -0,0 +1,501 @@
|
||||
/* Styles des divisions principales de la page */
|
||||
#navigation {
|
||||
position: relative;
|
||||
float: right;
|
||||
top : -2.75em;
|
||||
right: 2em;
|
||||
padding: 0em;
|
||||
color: rgb(0,85,227);
|
||||
}
|
||||
#sommaire {
|
||||
float: right;
|
||||
margin-top : 20px;
|
||||
margin-right: -20px;
|
||||
padding: 0em;
|
||||
color: rgb(0,85,227);
|
||||
}
|
||||
#sommaire ul {
|
||||
padding:0;
|
||||
margin:0;
|
||||
list-style-type:none;
|
||||
}
|
||||
#sommaire li
|
||||
{
|
||||
vertical-align: middle;
|
||||
margin-left:2px;
|
||||
float:left; /*pour IE*/
|
||||
}
|
||||
|
||||
#sommaire ul li a
|
||||
{
|
||||
vertical-align: middle;
|
||||
display:block;
|
||||
float:left;
|
||||
width:80px;
|
||||
text-decoration:none;
|
||||
text-align:center;
|
||||
/*background-color:#6495ED;
|
||||
color:black;
|
||||
//padding:5px;
|
||||
border-width:2px;
|
||||
border-style:solid;
|
||||
border-color:#DCDCDC #696969 #696969 #DCDCDC; /*pour avoir un effet "outset" avec IE */
|
||||
}
|
||||
#sommaire ul li a:hover
|
||||
{
|
||||
color: purple; /*rgb(0,85,227);*/
|
||||
font-size: 16px;
|
||||
/*background-color:#D3D3D3;
|
||||
border-color: #696969 #DCDCDC #DCDCDC #696969; */
|
||||
}
|
||||
#sommaire ul li ul {
|
||||
display:none;
|
||||
}
|
||||
#sommaire ul li:hover ul {
|
||||
display:block;
|
||||
}
|
||||
#sommaire li:hover ul li {
|
||||
float:none;
|
||||
}
|
||||
#sommaire li ul {
|
||||
position:absolute;
|
||||
}
|
||||
|
||||
#stats {
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
left: 0.5em;
|
||||
background-color: #ffff00;
|
||||
font-size:0.75em;
|
||||
}
|
||||
body{
|
||||
background-color: #77AADD;
|
||||
//background-image: url(imgs/FONDGLOBAL.jpg);
|
||||
background-repeat: repeat-x;
|
||||
margin:0% 0%;
|
||||
padding : 0.6em;
|
||||
font-family:"Trebuchet MS",Verdana,Geneva,Arial,Helvetica,sans-serif;
|
||||
font-size:0.8em;
|
||||
}
|
||||
#page {
|
||||
background-color:white;
|
||||
width : 65%;
|
||||
margin : auto ;
|
||||
border : 0.2em solid black;
|
||||
padding : 0.1em;
|
||||
}
|
||||
#entete{
|
||||
background-color:rgb(72,198,236);
|
||||
color : #980101;
|
||||
border: solid 0.1em #980101;
|
||||
height: 122px;
|
||||
padding: 0em;
|
||||
border-collapse: separate;
|
||||
}
|
||||
#pied{
|
||||
clear : both;
|
||||
border : solid 0.2em #980101;
|
||||
margin-left : 18%;
|
||||
margin-top : 1em;
|
||||
padding:0.4em;
|
||||
padding: 0.2em;
|
||||
border-collapse: separate;
|
||||
}
|
||||
#menu{
|
||||
position: relative;
|
||||
float:right;
|
||||
right: 0px;
|
||||
margin-top : -240px;
|
||||
margin-left: -10px;
|
||||
padding: 0em;
|
||||
background-color:transparent;
|
||||
color: rgb(0,85,227);
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
#contenu{
|
||||
border: none;
|
||||
padding: 1.1em;
|
||||
background-color: white;
|
||||
border-left : groove 0.8em #980101;
|
||||
margin-top : 1.1em;
|
||||
margin-left: 162px; /*18%; */
|
||||
/* permet de fixer une hauteur mini sur les navigateurs modernes */
|
||||
min-height:27em;
|
||||
/* pour obtenir le même effet sur IE, sachant que si le contenu dépasse, il "poussera" la hauteur en ne respectant pas la norme. On se joue de ses lacunes */
|
||||
height:27em;
|
||||
}
|
||||
|
||||
/* pour rétablir le mauvais effet sur les nav. modernes */
|
||||
html>body #contenu{
|
||||
height:auto;
|
||||
}
|
||||
|
||||
/* style à appliquer à la balise ul d'identifiant menulist */
|
||||
ul#menuList{
|
||||
list-style:none;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
width:98%;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* style à appliquer aux éléments de la balise ul d'identifiant menulist */
|
||||
ul#menuList li {
|
||||
position:relative;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
/* apparences des liens dans listes et sous-listes non numérotées */
|
||||
ul#menuList a {
|
||||
color:rgb(0,85,227);
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
width:100%;
|
||||
}
|
||||
ul#menuList a:hover {
|
||||
background: rgb(0,85,227);
|
||||
color: white;
|
||||
}
|
||||
|
||||
#entete #logo {
|
||||
float : left;
|
||||
width : 160px;
|
||||
height : 122px;
|
||||
}
|
||||
|
||||
#entete h1 {
|
||||
margin-top : 50px;
|
||||
margin-right: 20px;
|
||||
font-size : x-large;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#contenu pre {
|
||||
width:95%;
|
||||
overflow : scroll;
|
||||
}
|
||||
#contenu h2 {
|
||||
font-size : large;
|
||||
text-align:left;
|
||||
margin:0;
|
||||
margin-bottom:0.5em;
|
||||
}
|
||||
|
||||
.logoValidW3c {
|
||||
display: inline;
|
||||
}
|
||||
#libValidW3c{
|
||||
display : inline;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
/* Style des formulaires */
|
||||
.corpsForm {
|
||||
border : solid 0.1em #000;
|
||||
border-bottom-width:1px;
|
||||
margin-bottom : 0em;
|
||||
width : 95%;
|
||||
}
|
||||
.piedForm {
|
||||
border-bottom-width : 0.1em;
|
||||
border-left-width : 0.1em;
|
||||
border-right-width : 0.1em;
|
||||
border-top-width : 0em;
|
||||
border-style : solid;
|
||||
border-color : #000;
|
||||
text-align:right ;
|
||||
width : 95%;
|
||||
margin-top:0em;
|
||||
}
|
||||
form {
|
||||
margin-bottom:1em;
|
||||
}
|
||||
.corpsForm legend {
|
||||
font-weight:bold;
|
||||
font-size:1.2em;
|
||||
}
|
||||
.corpsForm label{
|
||||
float: left;
|
||||
text-align:right;
|
||||
width:33%;
|
||||
margin: 0;
|
||||
padding: 0 .5em 0 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
input, button, textarea, select{
|
||||
font-family:"Trebuchet MS", sans-serif;
|
||||
font-size : 1em;
|
||||
}
|
||||
|
||||
input:focus{
|
||||
background-color: #ECB2E4;
|
||||
}
|
||||
button{
|
||||
width : 60px;
|
||||
height : 30px;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
}
|
||||
input:hover, textarea:hover, select:hover{
|
||||
background-color : #FAFAE6;
|
||||
cursor : pointer;
|
||||
}
|
||||
.controle {
|
||||
width:75px;
|
||||
}
|
||||
.controleLong {
|
||||
width:195px;
|
||||
}
|
||||
.stNb {
|
||||
width:40px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.stNb a:link {
|
||||
color: red;
|
||||
|
||||
}
|
||||
|
||||
.stTitre {
|
||||
width:40px;
|
||||
text-align:center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.stTitre2 {
|
||||
width:80px;
|
||||
text-align:center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Le texte des messages d'erreur est de couleur rose sur fond ocre et de
|
||||
taille de caractères légèrement supérieure à la normale */
|
||||
.erreur{
|
||||
background-color:rgb(237,210,229);
|
||||
color:rgb(203,28,128);
|
||||
font-size:1.1em;
|
||||
margin-left:200px;
|
||||
width:75%;
|
||||
}
|
||||
.centre {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.info {
|
||||
background-color:rgb(178,207,81);
|
||||
color : white;
|
||||
font-size:1.1em;
|
||||
width : 95%
|
||||
}
|
||||
|
||||
.encadre {
|
||||
border : solid 0.1em #000;
|
||||
width : 100%;
|
||||
}
|
||||
/* Style pour les liens de la page principale */
|
||||
#contenu .corpsTexte {
|
||||
width:80%;
|
||||
font-size:1.2em;
|
||||
}
|
||||
|
||||
/* Style pour les liens de la page principale */
|
||||
#contenu a {
|
||||
font-size : 1.1em;
|
||||
color:gray;
|
||||
text-decoration:none;
|
||||
}
|
||||
#contenu a:hover {
|
||||
text-decoration:underline;
|
||||
background-color : #D9BB7A;
|
||||
font-size : 1em;
|
||||
}
|
||||
|
||||
/* Style pour les parties importantes de la page principale */
|
||||
#contenu strong {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
/* Styles pour les tableaux de la page principale */
|
||||
#contenu table {
|
||||
background-color:#FFF;
|
||||
border : 0.1em solid #777777;
|
||||
color:black;
|
||||
margin-right : auto ;
|
||||
margin-left:0.2em;
|
||||
border-collapse : collapse;
|
||||
}
|
||||
|
||||
/* Style pour les lignes d'en-tête des tableaux */
|
||||
#contenu th {
|
||||
background-color:#E9F1FE; //bleu clair ou bleu plus soutenu : #77AADD;
|
||||
width: 130px;
|
||||
height: 21px;
|
||||
text-align: left;
|
||||
vertical-align:top;
|
||||
/*font-weight:bold;*/
|
||||
border-bottom:0.1em solid #777777;
|
||||
//font-size:1.1em;
|
||||
}
|
||||
|
||||
#contenu td {
|
||||
border :1px solid #777777;
|
||||
//font-size:1.1em;
|
||||
}
|
||||
|
||||
#contenu h3 {
|
||||
font-size : 1.2em;
|
||||
}
|
||||
|
||||
table{
|
||||
width:100%;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
fieldset{
|
||||
border-radius : 12px;
|
||||
border:2px solid ;
|
||||
border-color: purple;
|
||||
}
|
||||
legend{
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
table.listeLegere {
|
||||
margin-bottom : 0.3em;
|
||||
}
|
||||
|
||||
table.stats {
|
||||
width: 150px;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
|
||||
table.stats th {
|
||||
border : dotted rgb(178,207,81) 0.1em;
|
||||
background-color:#E9F1FE; //bleu clair
|
||||
padding: 0em;
|
||||
text-align: center;
|
||||
vertical-align : top;
|
||||
witdh: 33%;
|
||||
}
|
||||
|
||||
table.stats td {
|
||||
border : dotted rgb(178,207,81) 0.1em;
|
||||
padding: 0em;
|
||||
text-align: center;
|
||||
vertical-align : top;
|
||||
witdh: 33%;
|
||||
}
|
||||
|
||||
/* Tableaux quadrillés utilisés pour l'affichage de listes avec contenu léger*/
|
||||
table.listeLegere th, table.listeLegere td {
|
||||
border : dotted rgb(178,207,81) 0.1em;
|
||||
padding:0.2em;
|
||||
vertical-align : top;
|
||||
}
|
||||
|
||||
table.listeLegere caption {
|
||||
font-size : 1.1em;
|
||||
text-align : left;
|
||||
margin-bottom : 0.2em;
|
||||
}
|
||||
table.listeLegere td {
|
||||
width: 100px;
|
||||
vertical-align:top;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
#contenu h2 {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #1D2941;
|
||||
text-decoration: none;
|
||||
border : 1px solid #6988BE;
|
||||
padding-left: 25px;
|
||||
background-color: #E9F1FE;
|
||||
height : 28px;
|
||||
}
|
||||
|
||||
#contenu img {
|
||||
height : 21px;
|
||||
border-style: none;
|
||||
float : left;
|
||||
}
|
||||
|
||||
#contenu li img:hover {
|
||||
height : 26px;
|
||||
}
|
||||
|
||||
.lesOnglets
|
||||
{
|
||||
margin: 0;
|
||||
padding:0 0 0 5px;
|
||||
}
|
||||
|
||||
.unOnglet
|
||||
{
|
||||
background-color:white;
|
||||
margin-top:-1px;
|
||||
padding:5px;
|
||||
display:none;
|
||||
border:1px solid #AAA;
|
||||
border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
-moz-border-radius:4px;
|
||||
color:#555;
|
||||
cursor: text;
|
||||
}
|
||||
.onglet
|
||||
{
|
||||
display:inline-block;
|
||||
margin:5px 2px 0 2px;
|
||||
padding:5px 10px ;
|
||||
border:1px solid #AAA;
|
||||
border-bottom:none;
|
||||
border-radius:5px 5px 0 0;
|
||||
-webkit-border-radius:4px 4px 0 0;
|
||||
-moz-border-radius:4px 4px 0 0;
|
||||
color:#555;
|
||||
cursor: pointer;
|
||||
font-weight:bold;
|
||||
}
|
||||
.inactif
|
||||
{
|
||||
background:#EEE;
|
||||
}
|
||||
.inactif:hover
|
||||
{
|
||||
background:#AAA;
|
||||
}
|
||||
.actif
|
||||
{
|
||||
background:white;
|
||||
border-bottom:2px solid white;
|
||||
padding-bottom:4px;
|
||||
cursor:text;
|
||||
}
|
||||
.fdroite {
|
||||
display: inline-block;
|
||||
border-bottom: 7px solid #FFFFFF;
|
||||
border-top: 7px solid #FFFFFF;
|
||||
border-left: 10px solid #9743CC;
|
||||
}
|
||||
.fbas {
|
||||
display: inline-block;
|
||||
border-left: 7px solid #FFFFFF;
|
||||
border-right: 7px solid #FFFFFF;
|
||||
border-top: 10px solid #AABBCC;
|
||||
}
|
||||
.fgauche {
|
||||
display: inline-block;
|
||||
border-bottom: 7px solid #FFFFFF;
|
||||
border-right: 10px solid #9743CC;
|
||||
border-top: 7px solid #FFFFFF;
|
||||
}
|
||||
.fhaut {
|
||||
display: inline-block;
|
||||
border-bottom: 10px solid #AABBCC;
|
||||
border-left: 7px solid #FFFFFF;
|
||||
border-right: 7px solid #FFFFFF;
|
||||
}
|
44
gsb/vues/v_choixCR.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- choix d'un parametre / Derniere modification le 26 mars 2020 par Pascal Blain -->
|
||||
<?php
|
||||
$nbP=count($lesVisites);
|
||||
echo '
|
||||
|
||||
<form name="choixP" action="visites.php" method="post">
|
||||
<h2>'.$titre; ?>
|
||||
<select name="lstPraticiens" STYLE="width:350px;" onchange="submit();">
|
||||
<?php
|
||||
if (!isset($_REQUEST['lstPraticiens'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstPraticiens'];}
|
||||
|
||||
$i=1;
|
||||
foreach ($lesVisites as $unPraticiens)
|
||||
{
|
||||
if($unPraticiens['pNum'] == $choix or $choix == 'premier')
|
||||
{echo "<option selected value=\"".$unPraticiens['pNum']."\">".$unPraticiens['pNom']."</option>\n ";
|
||||
$choix = $unPraticiens['pNum'];
|
||||
$titre1= $unPraticiens['pNom'];
|
||||
$noP=$i;
|
||||
}
|
||||
else
|
||||
{echo "<option value=\"".$unPraticiens['pNum']."\">".$unParametre['pNom']."</option>\n ";
|
||||
$i=$i+1;}
|
||||
}
|
||||
if ($_REQUEST['action']<>"liste") {$action = $_REQUEST['action'];} else {$action = "voir";}
|
||||
echo '
|
||||
</select></h2>
|
||||
<input type="hidden" name="choixTraitement" value="param">
|
||||
<input type="hidden" name="action" value="'.$action.'">
|
||||
<input type="hidden" name="zType" value="*">
|
||||
<input type="hidden" name="zIndice" value="0">
|
||||
<input type="hidden" name="zColonne" value="0">';
|
||||
?>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id='navigation'>
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixP','lstParam')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixP','lstParam')">
|
||||
<?php echo ' <input type="text" id="zNumero" value="'.$noP.'/'.$nbP.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">'; ?>
|
||||
<input type="image" id="zSuivant" title="suivant" src="images/goSuivant.gif" onclick="suivant('choixP','lstParam')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixP','lstParam')">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- fin liste de choix -->
|
43
gsb/vues/v_ficheProfil.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
*auteur : Hadrien Rommel, lycée le castel à
|
||||
*dernière modif : 17/03/2022**/
|
||||
|
||||
echo("
|
||||
<div>
|
||||
<fieldset><legend>Coordonnées de l'utilisateur</legend>
|
||||
<table>");
|
||||
|
||||
echo("<tr> <th style='width:20px;text-align:center;'>Nom</th>
|
||||
<td>".$lesInfosProfil['uNom']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Prenom</th>
|
||||
<td>".$lesInfosProfil['uPrenom']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Adresse</th>
|
||||
<td>".$lesInfosProfil['uAdresse']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Code Postal</th>
|
||||
<td>".$lesInfosProfil['uCP']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Ville</th>
|
||||
<td>".$lesInfosProfil['uVille']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Statut</th>
|
||||
<td>".$lesInfosProfil['wStatut']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Nom de compte</th>
|
||||
<td>".$lesInfosProfil['uLogin']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Region</th>
|
||||
<td>".$lesInfosProfil['wRegion']."</td></tr>
|
||||
<tr> <th style='width:20px;text-align:center;'>Secteur</th>
|
||||
<td>".$lesInfosProfil['wSecteur']."</td></tr>
|
||||
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Laboratoire</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td><tr>
|
||||
<td>".$lesInfosProfil['lNom']."</td></tr> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
");
|
97
gsb/vues/v_modifProfil.php
Normal file
@@ -0,0 +1,97 @@
|
||||
<!-- Derniere modification le 29 mars 2022 par Laureline Grand -->
|
||||
|
||||
<?php
|
||||
if ($action==="modifier")
|
||||
{echo '<h2>MODIFICATION DE L\'UTILISATEUR</h2>';
|
||||
echo "<form name='frmVisiteur' action='index.php?choixTraitement=utilisateur&action=validerModifier' method='post'>";}
|
||||
?>
|
||||
<!-- Affichage des valeurs dans un tableau récapitulatif. -->
|
||||
|
||||
<div>
|
||||
<?php
|
||||
echo("
|
||||
<fieldset><legend>Coordonnées de l'utilisateur
|
||||
<td style='width:10px;text-align:center;'></td>
|
||||
</legend>
|
||||
<table>
|
||||
|
||||
<tr> <th style='width:100px;text-align:center;'>Nom</th>
|
||||
<td><input style='width:100px class='controle' type='text' name='zNom' value='".$lesInfosProfil['uNom']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Prénom</th>
|
||||
<td><input style='width:100px class='controle' type='text' name='zPrenom' value='".$lesInfosProfil['uPrenom']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Adresse</th>
|
||||
<td><input style='width:100px class='controle' type='text' name='zAdresse' value='".$lesInfosProfil['uAdresse']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Code postal</th>
|
||||
<td><input type='image' name='cp' src='images/cp.gif'><input class='controle' type='text' name='zCP' value='".$lesInfosProfil['uCP']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Ville</th>
|
||||
<td><input style='width:100px' class='controle' type='text' name='zVille' value='".$lesInfosProfil['uVille']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Statut</th>
|
||||
<td><select name='lstStatue' style='width:153px;' onchange='submit();' >");
|
||||
if (!isset($_REQUEST['lstStatut'])) {$choix = 'premier';}
|
||||
$i=1;
|
||||
foreach ($infoStatut as $unStatut)
|
||||
{
|
||||
if($unStatut['pIndice'] == $choix or $choix == 'premier')
|
||||
{echo "<option value=\"".$unStatut['pIndice']."\">".$unStatut['pLibelle']."</option>\n ";
|
||||
$choix = $unStatut['pIndice'];
|
||||
|
||||
$nop=$i;
|
||||
}
|
||||
else
|
||||
{echo"<option value=\"".$unStatut['pIndice']."\">".$unStatut['pLibelle']."</option>\n";
|
||||
$i=$i+1;}
|
||||
}
|
||||
if($_REQUEST['action']<>"liste") {$action = $REQUEST['action'];} else {$action = "voir";}
|
||||
echo("</td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Nom de compte</th>
|
||||
<td><input style='width:100px class='controle' type='text' name='zLogin' value='".$lesInfosProfil['uLogin']."'></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Nouveau mot de passe ?</th>
|
||||
<td><input type='radio' id='non' name='rdbMDP' value='non' checked><label for='non'>Non</label><input type='radio' id='oui' name='rdbMDP' value='oui' ><label for='oui'>Oui </label><input style='width:100px class='controle' type='text' name='zMDP' ></td> </tr>
|
||||
<tr> <th style='width:100px;text-align:center;'>Region</th>
|
||||
<td><select name='lstRegion' style='width:153px;' onchange='submit();' >");
|
||||
if (!isset($_REQUEST['lstRegion'])) {$choix = 'premier';}
|
||||
$i=1;
|
||||
foreach ($infoRegion as $uneRegion)
|
||||
{
|
||||
if($uneRegion['pIndice'] == $choix or $choix == 'premier')
|
||||
{echo "<option value=\"".$uneRegion['pIndice']."\">".$uneRegion['pLibelle']."</option>\n ";
|
||||
$choix = $uneRegion['pIndice'];
|
||||
|
||||
$nop=$i;
|
||||
}
|
||||
else
|
||||
{echo"<option value=\"".$uneRegion['pIndice']."\">".$uneRegion['pLibelle']."</option>\n";
|
||||
$i=$i+1;}
|
||||
}
|
||||
if($_REQUEST['action']<>"liste") {$action = $REQUEST['action'];} else {$action = "voir";}
|
||||
echo("</td> </tr>
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
");
|
||||
|
||||
//Laboratoire
|
||||
echo("
|
||||
<fieldset><legend>Laboratoire
|
||||
<td style='width:10px;text-align:center;'></td>
|
||||
</legend>
|
||||
<table>
|
||||
|
||||
<select name='lstLabo' style='width:153px'>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</fieldset>
|
||||
")
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<p align="left">
|
||||
<input type="hidden" name="zOk" value="OK">
|
||||
<input type="image" name="btValider" alt="Valider" src="images/valider.jpg" onclick="this.form.submit();">
|
||||
<input type="image" name="btAnnuler" alt="Annuler" src="images/annuler.jpg" onclick="annuler('frmParam');">
|
||||
</p>
|
||||
</form>
|