ajout de la partie slam dans le dossier web

This commit is contained in:
root
2022-03-10 11:56:26 +01:00
parent 31d3052792
commit e375c4f088
4847 changed files with 325719 additions and 0 deletions

View File

@@ -0,0 +1,248 @@
// version modifi<66>e le 17 decembre 2013 par Pascal Blain
var ongletActif=1;
// ========================= passer le focus <20> un champ
function donner_focus(frm,champ) {
document.forms[frm].elements[champ].focus();
}
// ========================= fonctions de navigation dans la liste de choix
function premier(frm, liste) {
document.forms[frm].elements[liste].value = document.forms[frm].elements[liste].options[0].value;
document.forms[frm].submit();
}
function precedent(frm, liste) {
document.forms[frm].elements[liste].value = document.forms[frm].elements[liste].options[Math.max(0,document.forms[frm].elements[liste].selectedIndex-1)].value;
document.forms[frm].submit();
}
function suivant(frm, liste) {
document.forms[frm].elements[liste].value = document.forms[frm].elements[liste].options[(Math.min((document.forms[frm].elements[liste].options.length-1),document.forms[frm].elements[liste].selectedIndex+1))].value;
document.forms[frm].submit();
}
function dernier(frm, liste) {
document.forms[frm].elements[liste].value = document.forms[frm].elements[liste].options[(document.forms[frm].elements[liste].options.length-1)].value;
document.forms[frm].submit();
}
// =========================
function faire(frm, action) {
document.forms[frm].action.value = action;
if(action=="supprimer") {alert("ATTENTION : \n demande de suppression \n cette action est irreversible !");}
document.forms[frm].submit();
}
// =========================
function validerAutre(frm, ordreAc, ordreCe, onglet)
{
document.getElementById("zOrdreAc").value=ordreAc;
document.getElementById("zOrdreCe").value=ordreCe;
document.getElementById("zOnglet").value=onglet;
document.forms[frm].submit();
}
// =========================
function voirListe(type, indice, colonne)
{
document.forms["choixP"].zType.value=type;
document.forms["choixP"].zIndice.value=indice;
document.forms["choixP"].zColonne.value=colonne;
document.forms["choixP"].action.value = "liste";
document.forms["choixP"].submit();
}
// ========================= fonction annulation de saisie ou modification
function annuler(frm){
document.forms[frm].elements["zOk"].value="nonOk";
document.forms[frm].submit();
}
// ========================= validation des donn<6E>es d'un usager (version 2)
function validerUsager(frm)
{ //var champ=frm.elements["ztNom"];
if(!verifTexte(frm, frm.elements["ztNom"], 40)) {return false;}
else {if(!verifTexte(frm, frm.elements["ztPrenom"], 24)) {return false;}
else {if(!verifMail(frm, frm.elements["ztEMail"])) {return false;}
else {return true;}
}
}
}
// =========================
function verifMail(frm, champ)
{
var regex = /^[a-zA-Z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$/;
if(regex.test(champ.value) || champ.value.length<1)
{surligne(champ, false); return true;}
else
{surligne(champ, true); return false;}
}
// ========================= fonctions de controle de validit<69> d'un champ
function surligne(frm, champ, erreur)
{
if(erreur)
{champ.style.backgroundColor = "#f55"; alert("Champ '"+champ.id+"' incorrect ...\nMerci de corriger"); document.getElementById(champ.id).focus(); frm.elements["zOk"].value="nonOk";}
else
{champ.style.backgroundColor = "#fff"; frm.elements["zOk"].value="OK";}
}
// ========================= fonctions de controle de validit<69> d'un champ texte (longueur)
function verifTexte(frm, champ,longueur)
{
if(champ.value.length < 2 || champ.value.length > longueur)
{surligne(frm, champ, true); return false;}
else
{surligne(frm, champ, false); return true;}
}
// ========================= fonctions de controle de validit<69> du code postal
function verifCP(frm, champ)
{ var str = champ.value;
var insee = str.substring(0,5);
var dep = str.substring(0,2);
var cPostal = str.substring(6,11);
var secteur= str.substring(12,16);
var ville = str.substring(17,57);
var cp = parseInt(cPostal);
if(isNaN(cp) || cp < 1000 || cp > 99999) {surligne(frm, champ, true); alert(cp); return false;} //
else { surligne(frm, champ, false);
frm.elements["ztCP"].value =cPostal;
frm.elements["ztVille"].value =ville;
frm.elements["ztCommune"].value =insee;
frm.elements["departement"].value =dep;
if(frm.name="frmUsager")
{
for (var i=0;i<frm.elements["ldrSecteur"].length;i++)
{
if(frm.elements["ldrSecteur"].options[i].value==secteur) {frm.elements["ldrSecteur"].selectedIndex=i; i=9999;}
}
}
return true;}
}
// ========================= fonctions de controle de validit<69> d'une date
function verifDate(laDate)
{
var ok=true;
var d=laDate.value;
laDate.style.backgroundColor="#fff";
if(d != null && d != "")
{
var amini=1900; // ann<6E>e mini
var amax=2030; // ann<6E>e maxi
var separateur="/"; // separateur entre jour/mois/annee
var j=(d.substring(0,2));
var m=(d.substring(3,5));
var a=(d.substring(6));
if ( ((isNaN(j))||(j<1)||(j>31)) && (ok==1) ) {alert(j+" n'est pas un jour correct..."); laDate.style.backgroundColor="#f55"; ok=false;}
if ( ((isNaN(m))||(m<1)||(m>12)) && (ok==1) ) {alert(m+" n'est pas un mois correct ..."); laDate.style.backgroundColor="#f55"; ok=false;}
if ( ((isNaN(a))||(a<amini)||(a>amax)) && (ok==1) ) {alert(a+" n'est pas une ann<6E>e correcte: utiliser 4 chiffres, \n elle doit <20>tre comprise entre "+amini+" et "+amax); laDate.style.backgroundColor="#f55"; ok=false;}
if ( ((d.substring(2,3)!=separateur)||(d.substring(5,6)!=separateur)) && (ok==1) ) {alert("Les s<>parateurs doivent <20>tre des "+separateur); laDate.style.backgroundColor="#f55"; ok=false;}
if (ok==true) {
var d2=new Date(a,m-1,j);
j2=d2.getDate();
m2=d2.getMonth()+1;
a2=d2.getFullYear();
if (a2<=100) {a2=1900+a2}
if ( (j!=j2)||(m!=m2)||(a!=a2) ) {alert("La date "+d+" n'existe pas !"); laDate.style.backgroundColor="#f55"; ok=false;}
}
}
return ok;
}
// ========================= formate un nombre avec 2 chiffres apr<70>s la virgule et un espace separateur de milliers
function format_euro(valeur) {
var ndecimal=2;
var separateur=' ';
var deci=Math.round( Math.pow(10,ndecimal)*(Math.abs(valeur)-Math.floor(Math.abs(valeur)))) ;
var val=Math.floor(Math.abs(valeur));
if ((ndecimal==0)||(deci==Math.pow(10,ndecimal))) {val=Math.floor(Math.abs(valeur)); deci=0;}
var val_format=val+"";
var nb=val_format.length;
for (var i=1;i<4;i++)
{
if (val>=Math.pow(10,(3*i)))
{
val_format=val_format.substring(0,nb-(3*i))+separateur+val_format.substring(nb-(3*i));
}
}
if (ndecimal>0)
{
var decim="";
for (var j=0;j<(ndecimal-deci.toString().length);j++) {decim+="0";}
deci=decim+deci.toString();
val_format=val_format+","+deci;
}
if (parseFloat(valeur)<0) {val_format="-"+val_format;}
return val_format;
}
// ========================= affiche l'onglet choisi
function Affiche(ongletChoisi, nb)
{
for(i=1;i<nb+1;i++)
{
document.getElementById('onglet'+i).className = 'inactif onglet';
document.getElementById('contenuOnglet'+i).style.display = 'none';
}
document.getElementById('onglet'+ongletChoisi).className = 'actif onglet';
document.getElementById('contenuOnglet'+ongletChoisi).style.display = 'block';
document.getElementById('zOnglet').value=ongletChoisi;
document.getElementById('zNbOnglets').value=nb;
ongletActif=ongletChoisi;
}
// ========================= transfert des donn<6E>es d<>une liste <20> une autre
function deplacer_elements(frm, origine, destination) {
if (origine.options.selectedIndex >= 0)
{
while (origine.options.selectedIndex >= 0) /* boucle tant qu'il reste des <20>l<EFBFBD>ments s<>lectionn<6E>s */
{
valeur = origine.options[origine.options.selectedIndex].value; /* valeur de l'<27>l<EFBFBD>ment s<>lectionn<6E> */
texte = origine.options[origine.options.selectedIndex].text; /* texte de l'<27>l<EFBFBD>ment s<>lectionn<6E> */
origine.options[origine.options.selectedIndex] = null; /* suppression de l'element selectione dans la liste d'origine */
destination.options[destination.options.length] = new Option(texte, valeur);/* ajout dans la liste destination */
}
var nbElements=destination.length;
var tbl = new Array(nbElements, 2)
for(ligne=0;ligne<nbElements;ligne++){
tbl[ligne] = new Array(destination.options[ligne].text, destination.options[ligne].value);
}
tbl.sort(triAlpha);
destination.options.length=0; /* efface la liste */
for(ligne=0;ligne<nbElements;ligne++){
destination.options[destination.options.length]=new Option(tbl[ligne][0],tbl[ligne][1]); //rempli la liste avec les donn<6E>es triees
}
}
else
alert("choisissez au moins un participant !");
return(false);
}
// =========================
function triAlpha(a,b) {
a = a[0];
b = b[0];
return a == b ? 0 : (a < b ? -1 : 1)
}
// =========================
function tester(frm, liste) {
var nbElements=liste.length;
var tbl = new Array(nbElements, 2)
for(ligne=0;ligne<nbElements;ligne++){
tbl[ligne] = new Array(liste.options[ligne].text, liste.options[ligne].value);
//alert("Valeur : " + tbl[ligne][1] + " Texte :" + tbl[ligne][0]);
}
tbl.sort(triAlpha);
liste.options.length=0; //efface la liste
for(ligne=0;ligne<nbElements;ligne++){
liste.options[liste.options.length]=new Option(tbl[ligne][0],tbl[ligne][1]); //rempli la liste avec les donn<6E>es triees
// alert("Valeur : " + tbl[element,1] + " libell<6C> : " + tbl[element,0]);
}
result = tbl.join('\n');
alert(result);
return (false);
}
// =========================trouver un code postal en france, ou une commune
// parametres d'entr<74>e : (L'un des 2 champs ne doit pas <20>tre vide. Sinon, c'est Paris qui est pris par d<>faut.)
// - codePostal : l'ID du champs contenant le code postal
// - ville : l'ID du champs contenant le nom de la commune
function openCodesPostaux(codePostal, ville){
var leCodePostal = document.getElementById(codePostal).value;
var laVille = document.getElementById(ville).value;
if(laVille == ""){ laVille = leCodePostal;}
window.open( 'http://www.codes-postaux.org/outils/module.php?Choix=' + escape(laVille) ,'CodePostal','scrollbars=yes, width=300, height=550');
}

View File

@@ -0,0 +1,44 @@
<!-- choix d'un parametre / Derniere modification le 26 mars 2020 par Pascal Blain -->
<?php
$nbP=count($lesParametres);
echo '
<form name="choixP" action="index.php" method="post">
<h2>'.$titre; ?>
<select name="lstParam" STYLE="width:350px;" onchange="submit();">
<?php
if (!isset($_REQUEST['lstParam'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstParam'];}
$i=1;
foreach ($lesParametres as $unParametre)
{
if($unParametre['tlId'] == $choix or $choix == 'premier')
{echo "<option selected value=\"".$unParametre['tlId']."\">".$unParametre['tlLibelle']."</option>\n ";
$choix = $unParametre['tlId'];
$titre1= $unParametre['tlLibelle'];
$noP=$i;
}
else
{echo "<option value=\"".$unParametre['tlId']."\">".$unParametre['tlLibelle']."</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&eacute;c&eacute;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 -->

View File

@@ -0,0 +1,19 @@
<h2>Merci de vous identifier pour acc&eacute;der aux dossiers</h2>
<form name="frmIdentification" method="POST" action="index.php?choixTraitement=connexion&action=valideConnexion">
<fieldset><legend>Identification utilisateur</legend>
<br /><br />
<label for="nom">Nom du compte*</label>
<input id="login" type="text" name="login" size="30" maxlength="45" placeholder="Entrez votre nom d'Utilisateur">
</p>
<p>
<label for="mdp">Mot de passe&nbsp;&nbsp;&nbsp;&nbsp;*</label>
<input id="mdp" type="password" name="mdp" size="30" maxlength="45" placeholder="Entrez votre Mot de Passe">
</p><br /><br />
<input type="submit" name="valider" value="Valider">
<input type="reset" name="annuler" value="Annuler">
</p>
</fieldset>
</form>
<br /><br />
</div>

View File

@@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Galaxy Swiss Bourdin</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="./styles/styles.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico" />
<script src="./vues/proceduresJava.js" type="text/javascript"></script>
</head>
<?php
(isset($_REQUEST['zFormulaire'])) ?$formulaire=$_REQUEST['zFormulaire']:$formulaire="choixP";
(isset($_REQUEST['zChamp'])) ?$champ=$_REQUEST['zChamp']:$champ="lstParam";
if (!isset($titre)) {$titre ="";}
?>
<body onload="donner_focus('<?php echo $formulaire."','".$champ;?>');">
<div id="page">
<div id="entete">
<img src="./images/logoGSB.jpg" id="logo" alt="Laboratoire Galaxy Swiss Bourdin" title="Gestion des comptes-rendus de visites" />
<div id="sommaire">
<?php if (isset($_SESSION['idUtilisateur']))
{echo '
<ul>
<li><a href="index.php?choixTraitement=visite&action=voir" title="Visites">Visites</a>|</li>
<li><a href="index.php?choixTraitement=praticien&action=voir" title="Praticiens">Praticiens</a>|</li>
<li><a href="index.php?choixTraitement=statistiques&action=voir" title="Statistiques">Statistiques</a>|</li>';
if ($_SESSION['statut']==0)
{echo '
<li><a href="index.php?choixTraitement=utilisateur&action=voir&type=a">Visiteurs</a>|</li>
<li><a href="index.php?choixTraitement=param&action=voir" title="Parametres">Parametres</a>|</li>';
}
else
{echo '
<li><a href="index.php?choixTraitement=utilisateur&action=voir&type=a">Mon profil</a>|</li>';
}
echo '
<li><b>Bienvenue '.$_SESSION['prenom'].' '.strtoupper($_SESSION['nom']).' </b></li>
<li style="text-align:left;"><a href="index.php?choixTraitement=connexion&action=demandeConnexion" title="Se d&eacute;connecter"><img alt="déconnexion" src="images/deconnexion.png" border="0" height="26px"></a></li>
</ul>';
}
?>
<h1>Gestion des Comptes-Rendus de visites</h1>
</div>
</div>
<div id="contenu">
<!-- fin affichage du menu -->

View File

@@ -0,0 +1,10 @@
<div class ="erreur">
<ul>
<?php
foreach($_REQUEST['erreurs'] as $erreur)
{
echo "<li>$erreur</li>";
}
?>
</ul>
</div>

View File

@@ -0,0 +1,100 @@
<!-- affichage du détail d'un type de parametre / Dernière modification le 11 avril 2020 par Pascal BLAIN -->
<?php
echo('
<div id="fiche">
');
/*================================================================================================== */
$nbP=count($lesInfosParametre);
echo("
<div>
<fieldset><legend>Parametre</legend>
<table>
<tr><th style='width:25px;text-align:center;'><a href='index.php?choixTraitement=param&action=ajouter&type=".$enteteParametre['tlId']."&valeur=NULL'><img title='Ajouter une valeur' src='images/ajout.gif'></a></th><th style='width:25px;'>Code</th><th style='text-align:center;'>Description</th><th style='width:70px;'>Booléen</th><th style='width:70px;'>Choix multiples</th></tr>
<tr><td>&nbsp;</td><td>".$enteteParametre['tlId']."</td><td>".$enteteParametre['tlLibelle']."</td><td style='text-align:center;'>".$enteteParametre['tlBooleen']."</td><td style='text-align:center;'>".$enteteParametre['tlChoixMultiple']."</td></tr>
</table>
</fieldset><br />
<table style='border: 0px solid white;'>
<tr>
<td style='border :0px;'>
<fieldset><legend>Valeurs</legend>
<table>");
$numPa=1;
foreach ($lesInfosParametre as $uneLigne)
{
if ($numPa<10)
{$numPa=$numPa+1;
$type = $choix;
$indice = $uneLigne['pIndice'];
echo("<tr> <th style='width:20px;text-align:center;'>".$uneLigne['pIndice']."</th> <td>".$uneLigne['pLibelle']."</td>
<td style='width:20px;text-align:center;'>");
echo("</td>
<td style='width:10px;text-align:center;'><a href='index.php?choixTraitement=param&action=modifier&type=".$enteteParametre['tlId']."&valeur=".$uneLigne['pIndice']."'><img src='images/modif.gif' title='modifier'></a></td>
<td style='width:10px;text-align:center;'>");
echo ("
<a href='index.php?choixTraitement=param&action=supprimer&type=".$enteteParametre['tlId']."&valeur=".$uneLigne['pIndice']."'><img title='Supprimer' src='images/supprimer.gif'></a>");
echo ("
</td></tr>");
}
}
while ($numPa<10)
{
echo("<tr> <th style='width:25px;'>&nbsp;</th> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> </tr>");
$numPa=$numPa+1;
}
echo("
</table>
</fieldset></td>");
if ($nbP>=10)
{
echo("
<td style='border :0px;'>
<fieldset><legend>(suite)</legend>
<table>");
$numP=1;
foreach ($lesInfosParametre as $uneLigne)
{
if ($numP>=10)
{
$type = $choix;
$indice = $uneLigne['pIndice'];
echo("<tr> <th style='width:20px;text-align:center;'>".$uneLigne['pIndice']."</th> <td style='width:140px;'>".$uneLigne['pLibelle']."</td>
<td style='width:20px;text-align:center;'>");
echo("</td>
<td style='width:20px;text-align:center;'><a href='index.php?choixTraitement=param&action=modifier&type=".$enteteParametre['tlId']."&valeur=".$uneLigne['pIndice']."'><img src='images/modif.gif' title='modifier'></a></td>
<td style='width:20px;text-align:center;'>");
echo ("
<a href='index.php?choixTraitement=param&action=supprimer&type=".$enteteParametre['tlId']."&valeur=".$uneLigne['pIndice']."'><img title='Supprimer' src='images/supprimer.gif'></a>");
echo ("
</td></tr>");
}
$numP=$numP+1;
}
if ($numP<10) {$numP=10;}
while ($numP<19)
{
echo("<tr> <th style='width:20px;text-align:center;'>&nbsp;</th> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> </tr>");
$numP=$numP+1;
}
echo("
</table>
</fieldset>
</td>");
}
echo("
</tr>
</table>
<fieldset><legend>Observations</legend>
<table style='border: 0px solid white;'>
<tr>
<td>...</td>
</tr>
</table>
</fieldset>
</div>
</div>");
?>

5
ap23/web/vues/v_pied.php Normal file
View File

@@ -0,0 +1,5 @@
<!-- Division pour le pied de page -->
<hr /><p style="text-align:center;"><?php echo "Lyc&eacute;e Le Castel &agrave; Dijon - BTS SIO 1 - (c)2022 Blain Pascal";?></p>
</body>
</html>

View File

@@ -0,0 +1,94 @@
<!-- Derniere modification le 9 avril 2020 par Pascal Blain -->
<?php
if ($action==="supprimer")
{echo '<h2>SUPPRESSION DE LA VALEUR D\'UN PARAMETRE</h2>';
echo "<form name='frmParam' action='index.php?choixTraitement=param&action=validerSupprimer&type=".$infosParam['pType']."&valeur=".$infosParam['pIndice']."' method='post'>";}
if ($action==="modifier")
{echo '<h2>MODIFICATION DE LA VALEUR D\'UN PARAMETRE</h2>';
echo "<form name='frmParam' action='index.php?choixTraitement=param&action=validerModifier&type=".$infosParam['pType']."&valeur=".$infosParam['pIndice']."' method='post'>";}
if ($action==="ajouter")
{echo '<h2>AJOUT DE LA VALEUR D\'UN PARAMETRE</h2>';
echo "<form name='frmParam' action='index.php?choixTraitement=param&action=validerAjouter&type=".$infosParam['pType']."' method='post'>";}
?>
<!-- Affichage des valeurs dans un tableau r&eacute;capitulatif. -->
<div>
<table style='border: 0px solid white;'>
<tr><td style='border :0px;'>
<fieldset><legend><?php echo $infosParam['tlLibelle'] ?></legend>
<?php
if ($infosParam['pType']==="secteur")
{
echo (" <table>
<tr> <th>Indice</th> <td>");
if ($_REQUEST['action']==="ajouter") {echo "<input class='controle' type='text' name='valeur' value='".$infosParam['pIndice']."'>";}
else {echo $infosParam['pIndice'];}
echo (" </td> </tr>
<tr> <th>Valeur</th> <td>");
if ($_REQUEST['action']==="ajouter") {echo "<input class='controleLong' type='text' name='zLibelle'>";}
if ($_REQUEST['action']==="modifier") {echo "<input class='controleLong' type='text' name='zLibelle' value='".$infosParam['pLibelle']."'>";}
if ($_REQUEST['action']==="supprimer") {echo $infosParam['pLibelle'];}
echo (" </td> </tr>
<tr> <th>Territoire</th> <td>");
if ($_REQUEST['action']==="ajouter") {echo "<input class='controle' type='text' name='zTerritoire'>";}
if ($_REQUEST['action']==="modifier") {echo "<input class='controle' type='text' name='zTerritoire' value='".$infosParam['territoire']."'>";}
if ($_REQUEST['action']==="supprimer") {echo $infosParam['territoire'];}
echo (" </td> </tr>
<tr> <th>D&eacute;partement</th> <td>");
if ($_REQUEST['action']==="ajouter") {echo "<input class='controle' type='text' name='zDep'>";}
if ($_REQUEST['action']==="modifier") {echo "<input class='controle' type='text' name='zDep' value='".$infosParam['dep']."'>";}
if ($_REQUEST['action']==="supprimer") {echo $infosParam['dep'];}
echo (" </td> </tr>
<INPUT type='hidden' name='choixOrientation' value='0'>
<INPUT type='hidden' name='zPlancher' value='0'>
<INPUT type='hidden' name='zPlafond' value='0'>
</table>");
}
else
{
echo (" <table>
<tr> <th>Indice</th> <td>");
if ($action==="ajouter") {echo "<input class='controle' type='text' name='valeur' value='".$infosParam['pIndice']."'>";}
else {echo $infosParam['pIndice'];}
echo (" </td> </tr>
<tr> <th>Valeur</th> <td>");
if ($action==="ajouter") {echo "<input class='controle' type='text' name='zLibelle'>";$actif=null;}
if ($action==="modifier") {echo "<input class='controleLong' type='text' name='zLibelle' value='".$infosParam['pLibelle']."'>";$actif=null;}
if ($action==="supprimer") {echo $infosParam['pLibelle'];$actif="disabled='disabled'";}
echo (" </td> </tr>");
if($infosParam['pType'] === "motifSo")
{
echo ("<tr> <th>R&eacute;orientation </th> <td>");
if($infosParam['pPlancher'] == 1)
{echo ("
<INPUT type='radio' name='choixOrientation' value='1' ".$actif." checked>oui
<INPUT type='radio' name='choixOrientation' value='0' ".$actif.">Non</td> </tr>");}
else
{echo ("
<INPUT type='radio' name='choixOrientation' value='1' ".$actif.">oui
<INPUT type='radio' name='choixOrientation' value='0' ".$actif." checked>Non</td> </tr>");}
echo (" <INPUT type='hidden' name='zPlancher' value='0'>
<INPUT type='hidden' name='zPlafond' value='0'>");
}
else
{ echo ("
<tr> <th>Plancher</th> <td><input class='controle' type='text' name='zPlancher' value='".$infosParam['pPlancher']."'></td> </tr>
<tr> <th>Plafond</th> <td><input class='controle' type='text' name='zPlafond' value='".$infosParam['pPlafond']."'></td> </tr>");}
echo ("
</table>
<input type='hidden' name='zTerritoire' value='NULL'><input type='hidden' name='zDep' value='NULL'>");
} ?>
</fieldset>
</td>
</tr>
</table>
</div>
<p align="right">
<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>
</div>