upload boulot devs
This commit is contained in:
248
promoInfo/vues/proceduresJava.js
Normal file
248
promoInfo/vues/proceduresJava.js
Normal 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){
|
||||
leCodePostal = document.getElementById(codePostal).value;
|
||||
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');
|
||||
}
|
45
promoInfo/vues/v_choixEleve.php
Normal file
45
promoInfo/vues/v_choixEleve.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- choix d'un eleve/Derniere modif. le 27 avril 2023 par Pascal Blain -->
|
||||
<?php
|
||||
$nbL=count($lesLignes);
|
||||
echo '
|
||||
<div id="contenu">
|
||||
<form name="choixP" action="index.php?choixTraitement=eleves&action=voir" method="post">
|
||||
<h2>'.$titre; ?>
|
||||
<select name="lstEleves" STYLE="width:350px;" onchange="submit();">
|
||||
<?php
|
||||
if (!isset($_REQUEST['lstEleves'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstEleves'];}
|
||||
$i=1;
|
||||
foreach ($lesLignes as $uneLigne)
|
||||
{
|
||||
if($uneLigne['EL_NUM'] == $choix or $choix == 'premier')
|
||||
{echo "<option selected value=\"".$uneLigne['EL_NUM']."\">".$uneLigne['EL_NOM']." ".$uneLigne['EL_PRENOM']."</option>\n ";
|
||||
$choix = $uneLigne['EL_NUM'];
|
||||
$noL=$i;
|
||||
}
|
||||
else
|
||||
{echo "<option value=\"".$uneLigne['EL_NUM']."\">".$uneLigne['EL_NOM']." ".$uneLigne['EL_PRENOM']."</option>\n ";
|
||||
$i=$i+1;}
|
||||
}
|
||||
echo '
|
||||
</select>
|
||||
</h2>'
|
||||
?>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id='navigation'>
|
||||
<input type="image" id="zNouveau" title="Ajouter" src="images/ajout.gif" onclick="faire('choixP', 'ajouter')">
|
||||
<input type="image" id="zModif" title="Modifier" src="images/modif.gif" onclick="faire('choixP', 'modifier')">
|
||||
<input type="image" id="zSupprime" title="Supprimer" src="images/supprimer.gif" onclick="faire('choixP', 'supprimer')">
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixP','lstEleves')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixP','lstEleves')">
|
||||
<?php echo '
|
||||
<input type="text" id="zNumero" value="'.$noL.'/'.$nbL.'" 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','lstEleves')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixP','lstEleves')">
|
||||
</div>
|
||||
<input type="hidden" name="action" value="<?php if($_REQUEST['action']=="liste") {echo "voir";} else {echo $_REQUEST['action'];}?>">
|
||||
<input type="hidden" name="type" value="*">
|
||||
<input type="hidden" name="zType" value="*">
|
||||
<input type="hidden" name="zIndice" value="*">
|
||||
<input type="hidden" name="zColonne" value="*">
|
||||
</form>
|
||||
<!-- fin liste de choix -->
|
44
promoInfo/vues/v_choixParam.php
Normal file
44
promoInfo/vues/v_choixParam.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- choix d'un parametre / Derniere modification le 27 avril 2023 par Pascal Blain -->
|
||||
<?php
|
||||
$nbP=count($lesParametres);
|
||||
echo '
|
||||
<div id="contenu">
|
||||
<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é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 -->
|
19
promoInfo/vues/v_connexion.php
Normal file
19
promoInfo/vues/v_connexion.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<div id="contenu">
|
||||
<h2>Merci de vous identifier pour accé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 *</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>
|
41
promoInfo/vues/v_entete.php
Normal file
41
promoInfo/vues/v_entete.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<!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>LYCEE LE CASTEL</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
|
||||
if (isset($_REQUEST['zFormulaire'])) {$formulaire=$_REQUEST['zFormulaire'];}
|
||||
if (isset($_REQUEST['zChamp'])) {$champ =$_REQUEST['zChamp'];}
|
||||
if (!isset($titre)) {$titre ="";}
|
||||
?>
|
||||
<body onload="donner_focus('<?php echo $formulaire."','".$champ;?>');">
|
||||
<div id="page">
|
||||
<div id="entete">
|
||||
<img src="./images/logo.png" id="logo" alt="Le Castel" title="section BTS SIO" />
|
||||
<div id="sommaire">
|
||||
<?php if (isset($_SESSION['idUtilisateur']))
|
||||
{echo '
|
||||
<ul>
|
||||
<li><a href="index.php?choixTraitement=choix1&action=voir" title="choix1">choix 1</a>|</li>
|
||||
<li><a href="index.php?choixTraitement=choix2&action=voir" title="choix2">choix 2</a>|</li>
|
||||
<li><a href="index.php?choixTraitement=choix3&action=voir" title="choix3">choix 3</a>|</li>
|
||||
<li><a href="index.php?choixTraitement=eleves&action=voir&type=a">eleves</a>|</li>';
|
||||
if ($_SESSION['statut']==0)
|
||||
{echo '<li><a href="index.php?choixTraitement=param&action=voir" title="Parametres">Parametres</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éconnecter"><img alt="déconnexion" src="images/deconnexion.png" border="0" height="26px"></a></li>
|
||||
</ul>';
|
||||
}
|
||||
?>
|
||||
<h1>LE CASTEL : Application de démonstration MVC</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- fin affichage du menu -->
|
10
promoInfo/vues/v_erreurs.php
Normal file
10
promoInfo/vues/v_erreurs.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class ="erreur">
|
||||
<ul>
|
||||
<?php
|
||||
foreach($_REQUEST['erreurs'] as $erreur)
|
||||
{
|
||||
echo "<li>$erreur</li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
79
promoInfo/vues/v_ficheEleve.php
Normal file
79
promoInfo/vues/v_ficheEleve.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<!-- affichage du detail de la fiche eleve / Derniere modification le 27 avril 2023 par Pascal BLAIN -->
|
||||
<?php
|
||||
$titre="caractéristiques de l'élève";
|
||||
echo (' <div id="fiche">
|
||||
<ul class="lesOnglets">
|
||||
<li class="actif onglet" id="onglet1" onclick="javascript:Affiche(\'1\',2);">'.$titre.'</li>
|
||||
<li class="inactif onglet" id="onglet2" onclick="javascript:Affiche(\'2\',2);">Coordonnées des parents</li>
|
||||
</ul>');
|
||||
/*================================================================================================== COORDONNEES (1) */
|
||||
$titre="Prénom";
|
||||
if ($lesInfosEleve['EL_TELPERSO']>1) {$tel=substr($lesInfosEleve['EL_TELPERSO'],0,2).".".substr($lesInfosEleve['EL_TELPERSO'],3,2).".".substr($lesInfosEleve['EL_TELPERSO'],6,2).".".substr($lesInfosEleve['EL_TELPERSO'],9,2).".".substr($lesInfosEleve['EL_TELPERSO'],12,2);} else {$tel=Null;}
|
||||
echo ("
|
||||
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonnées de l'élève</legend>
|
||||
<table>
|
||||
<tr><th style='width:80px;'>Nom</th> <td style='width:150px;'>".$lesInfosEleve['EL_NOM']."</td> </tr>
|
||||
<tr><th>Prénom</th> <td>".$lesInfosEleve['EL_PRENOM']."</td></tr>
|
||||
<tr><th>Adresse</th> <td>".$lesInfosEleve['EL_RUE']."</td></tr>
|
||||
<tr><th>Code postal</th> <td>".$lesInfosEleve['EL_CP']."</td></tr>
|
||||
<tr><th>Ville</th> <td>".$lesInfosEleve['EL_VILLE']."</td></tr>
|
||||
<tr><th>Téléphone</th> <td>".$tel."</td></tr>
|
||||
<tr><th>Statut</th> <td>".$lesInfosEleve['wStatut']."</td></tr>
|
||||
<tr><th>Adresse électronique</th><td>".$lesInfosEleve['EL_EMAIL']."</td></tr>
|
||||
<tr><th>Nom de compte</th> <td>".$lesInfosEleve['EL_LOGIN']."</td></tr>");
|
||||
echo (" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr><td>.".$lesInfosEleve['commentaire']."</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>");
|
||||
/*================================================================================================== SUIVI (2)*/
|
||||
if ($lesInfosEleve['P_TEL']>1) {$tel=substr($lesInfosEleve['P_TEL'],0,2).".".substr($lesInfosEleve['P_TEL'],3,2).".".substr($lesInfosEleve['P_TEL'],6,2).".".substr($lesInfosEleve['P_TEL'],9,2).".".substr($lesInfosEleve['P_TEL'],12,2);} else {$tel=Null;}
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet2'>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonnées des parents</legend>
|
||||
<table>
|
||||
<tr><th style='width:80px;'>Nom</th> <td style='width:150px;'>".$lesInfosEleve['P_NOM']."</td> </tr>
|
||||
<tr><th>Prénom</th> <td>".$lesInfosEleve['P_PRENOM']."</td></tr>
|
||||
<tr><th>Adresse</th> <td>".$lesInfosEleve['P_RUE']."</td></tr>
|
||||
<tr><th>Code postal</th> <td>".$lesInfosEleve['P_CP']."</td></tr>
|
||||
<tr><th>Ville</th> <td>".$lesInfosEleve['P_VILLE']."</td></tr>
|
||||
<tr><th>Téléphone</th> <td>".$tel."</td></tr>
|
||||
<tr><th></th> <td></td></tr>
|
||||
<tr><th></th> <td></td></tr>
|
||||
<tr><th></th> <td></td></tr>");
|
||||
echo (" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr><td>.".$lesInfosEleve['commentaire']."</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>");
|
||||
/*================================================================================================== XXXXX */
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOngletX'>
|
||||
<fieldset><legend>XXXX</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>.....</th></tr>
|
||||
<tr><td>xxxx</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
93
promoInfo/vues/v_ficheParametre.php
Normal file
93
promoInfo/vues/v_ficheParametre.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<!-- affichage du détail d'un parametre / Dernière modification le 27 avril 2023 par Pascal BLAIN -->
|
||||
<?php
|
||||
echo('
|
||||
<div id="fiche">
|
||||
');
|
||||
/*================================================================================================== */
|
||||
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:30px;'>Code</th><th>Description</th><th>Booléen</th><th>Choix multiples</th></tr>
|
||||
<tr><td> </td><td>".$enteteParametre['tlId']."</td><td>".$enteteParametre['tlLibelle']."</td><td>".$enteteParametre['tlBooleen']."</td><td>".$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<9)
|
||||
{$numPa=$numPa+1;
|
||||
$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: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<9)
|
||||
{
|
||||
echo("<tr> <th style='width:25px;'>...</th> <td> </td><td> </td><td> </td><td> </td> </tr>");
|
||||
$numPa=$numPa+1;
|
||||
}
|
||||
|
||||
echo(" </table>
|
||||
</fieldset></td>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>(suite)</legend>
|
||||
<table>");
|
||||
$numP=1;
|
||||
foreach ($lesInfosParametre as $uneLigne)
|
||||
{
|
||||
if ($numP>=9)
|
||||
{
|
||||
$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<9) {$numP=9;}
|
||||
while ($numP<17)
|
||||
{
|
||||
echo("<tr> <th style='width:20px;text-align:center;'>...</th> <td> </td><td> </td><td> </td><td> </td> </tr>");
|
||||
$numP=$numP+1;
|
||||
}
|
||||
echo(" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td>...</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
5
promoInfo/vues/v_pied.php
Normal file
5
promoInfo/vues/v_pied.php
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
<!-- Division pour le pied de page -->
|
||||
<hr /><p style="text-align:center;"><?php echo "Lycée Le Castel à Dijon - BTS SIO 1 - v2.1(c)avril 2023 Blain Pascal";?></p>
|
||||
</body>
|
||||
</html>
|
114
promoInfo/vues/v_unEleve.php
Normal file
114
promoInfo/vues/v_unEleve.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<!-- Derniere modification le 27 avril 2023 par Pascal Blain -->
|
||||
<div id="contenu">
|
||||
<?php
|
||||
if ($_REQUEST['action']=="supprimer")
|
||||
{ echo '<h2>SUPPRESSION DE L\'ELEVE '.$lesInfosEleve['EL_NOM'].' '.$lesInfosEleve['EL_PRENOM'].'</h2>';
|
||||
echo '<form name="frmA" action="index.php?choixTraitement=eleves&action=validerSupprimer&type='.$type.'&eleve='.$lesInfosEleve['EL_NUM'].'" method="post">';}
|
||||
if ($_REQUEST['action']=="modifier")
|
||||
{ echo '<h2>MODIFICATION DE L\'ELEVE '.$lesInfosEleve['EL_NOM'].' '.$lesInfosEleve['EL_PRENOM'].'</h2>';
|
||||
echo '<form name="frmA" action="index.php?choixTraitement=eleves&action=validerModifier&type='.$type.'&eleve='.$lesInfosEleve['EL_NUM'].'" method="post">';}
|
||||
if ($_REQUEST['action']=="ajouter")
|
||||
{ echo "<h2>AJOUT D'UN NOUVEL ELEVE</h2>";
|
||||
echo '
|
||||
<form name="frmA" action="index.php?choixTraitement=eleves&action=validerAjouter&lstEleves=premier" method="post" onsubmit="return valider(this)">';}
|
||||
echo ("
|
||||
<fieldset><legend>Coordonnées</legend>
|
||||
<table>");
|
||||
if ($_REQUEST['action']=="supprimer") //-------------------------------------------------------- cas suppression
|
||||
{ echo ("
|
||||
<tr><th style='width:130px;'>Nom</th> <td style='width:130px;'>".$lesInfosEleve['EL_NOM']."</td> </tr>
|
||||
<tr><th>Prénom</th> <td>".$lesInfosEleve['EL_PRENOM']."</td> </tr>
|
||||
<tr><th>Adresse</th> <td>".$lesInfosEleve['EL_RUE']."</td> </tr>
|
||||
<tr><th>Code postal</th> <td>".$lesInfosEleve['EL_CP']."</td> </tr>
|
||||
<tr><th>Ville</th> <td>".$lesInfosEleve['EL_VILLE']."</td> </tr> <tr><th>Statut</th> <td>".$lesInfosEleve['wStatut']."</td> </tr>
|
||||
<tr><th>Adresse électronique</th><td>".$lesInfosEleve['EL_EMAIL']."</td> </tr>
|
||||
<tr><th>Téléphone</th> <td>".$lesInfosEleve['EL_TELPERSO']."</td> </tr>
|
||||
<tr><th>Nom de compte</th> <td>".$lesInfosEleve['EL_LOGIN']."</td></tr>
|
||||
</table>
|
||||
</fieldset>");
|
||||
}
|
||||
else //------------------------------------------------------------------------------------ cas ajout ou modification
|
||||
{ if ($_REQUEST['action']=="ajouter")
|
||||
{ unset($lesInfosEleve);
|
||||
$tel=Null;
|
||||
echo ('
|
||||
<tr><th style="width:130px;">Code de l\'eleve (initiales, 3 lettres maxi)</th><td style="width:130px;">
|
||||
<input class="controle" type="text" name="eleve" id="eleve" onblur="verifTexte(this.form, this, 3)"></td></tr>
|
||||
<tr><th style="width:130px;">Nom</th> <td style="width:130px;">
|
||||
<input class="controleLong" type="text" name="ztNom" id="Nom" onblur="verifTexte(this.form, this, 55)" required></td> </tr>
|
||||
<tr><th>Prénom</th> <td><input class="controleLong" type="text" name="ztPrenom" id="prenom" onblur="verifTexte(this.form, this, 25)"></td> </tr>
|
||||
<tr><th>Adresse</th> <td><input class="controleLong" type="text" name="ztAdresse"></td> </tr>
|
||||
<tr><th>Code postal</th> <td><input class="controle" type="text" pattern="[0-9]{5}" id="Code postal" name="ztCP"></td> </tr>
|
||||
<tr><th>Ville</th> <td><input class="controleLong" type="text" name="ztVille"</td></tr>
|
||||
<tr><th>Statut</th> <td><select name = "ldrStatut" style="width:200px;">');
|
||||
foreach ($lesStatuts as $unStatut)
|
||||
{ echo '
|
||||
<option value="'.$unStatut['pIndice'].'">'.$unStatut['pLibelle'].'</option>';
|
||||
}
|
||||
echo ('
|
||||
</select></td></tr>
|
||||
<tr><th>Téléphone</th> <td><input class="controleLong" type="tel" pattern="^(?:0|\(?\+33\)?\s?|0033\s?)[1-79](?:[\.\-\s]?\d\d){4}$" name="ztTel" id="Telephone"></td></tr>');
|
||||
|
||||
|
||||
echo ('
|
||||
<tr><th>Adresse électronique</th><td><input class="controleLong" type="email" name="ztMail" id="Adresse electronique"></td></tr>
|
||||
<tr><th>Nom de compte</th> <td><input class="controleLong" type="text" name="ztLogin" id"NomCompte" onblur="verifTexte(this.form, this, 15)"></td></tr>
|
||||
<tr><th>Mot de passe</th> <td><input class="controleLong" type="text" name="ztMdp" id="Mdp"></td></tr>
|
||||
');
|
||||
}
|
||||
else //------------------------------------------------------------- cas modification
|
||||
{
|
||||
echo ('
|
||||
<tr><th style="width:130px;">Nom</th><td style="width:130px;">
|
||||
<input class="controleLong" type="text" name="ztNom" id="Nom" onblur="verifTexte(this.form, this, 55)" required value="'.$lesInfosEleve['EL_NOM'].'"></td> </tr>
|
||||
<tr><th>Prénom</th> <td><input class="controleLong" type="text" name="ztPrenom" id="prenom" onblur="verifTexte(this.form, this, 25)" value="'.$lesInfosEleve['EL_PRENOM'].'"></td> </tr>
|
||||
<tr><th>Adresse</th> <td style="width:150px;"><input class="controleLong" type="text" name="ztAdresse" value="'.$lesInfosEleve['EL_RUE'].'"></td> </tr>
|
||||
<tr><th>Code postal</th> <td><input class="controle" type="text" pattern="[0-9]{5}" id="Code postal" name="ztCP" value="'.$lesInfosEleve['EL_CP'].'" >');
|
||||
echo ("
|
||||
<a href=\"javascript:openCodesPostaux('ztCP','ztVille');\" title='Trouvez un code postal en France'>
|
||||
<img src='images/cp.gif' width='16' height='13' alt='codes postaux' title='Séléctionnez votre code postal grâce à www.codes-postaux.org'></a></td> </tr>
|
||||
<tr><th>Ville</th> <td><input class='controleLong' type='text' name='ztVille' value='".$lesInfosEleve['EL_VILLE']."'></td></tr>");
|
||||
|
||||
if ($lesInfosEleve['EL_TELPERSO']>1) {$tel=substr($lesInfosEleve['EL_TELPERSO'],0,2).".".substr($lesInfosEleve['EL_TELPERSO'],3,2).".".substr($lesInfosEleve['EL_TELPERSO'],6,2).".".substr($lesInfosEleve['EL_TELPERSO'],9,2).".".substr($lesInfosEleve['EL_TELPERSO'],12,2);} else {$tel=Null;}
|
||||
|
||||
echo ("
|
||||
<tr><th>Téléphone</th> <td>
|
||||
<input class='controleLong' type='tel' pattern='^(?:0|\(?\+33\)?\s?|0033\s?)[1-79](?:[\.\-\s]?\d\d){4}$' name='ztTel' id='Telephone' value='".$tel."'></td> </tr>
|
||||
<tr> <th>Statut</th> <td><select name = 'ldrStatut' style='width:200px;'>");
|
||||
foreach ($lesStatuts as $unStatut)
|
||||
{
|
||||
if (isset($lesInfosEleve['EL_STATUT']))
|
||||
{if ($unStatut['pIndice']===$lesInfosEleve['EL_STATUT']){$selected = "selected";} else {$selected = null;}}
|
||||
echo '
|
||||
<option '.$selected.' value="'.$unStatut['pIndice'].'">'.$unStatut['pLibelle'].'</option>';
|
||||
}
|
||||
echo ("
|
||||
</select></td> </tr>
|
||||
<tr><th>Adresse électronique</th> <td>
|
||||
<input class='controleLong' type='email' name='ztMail' id='Adresse electronique' value='".$lesInfosEleve['EL_EMAIL']."'></td></tr>
|
||||
<tr><th>Nom de compte</th> <td>
|
||||
<input class='controleLong' type='text' name='ztLogin' id='Nom de compte' onblur='verifTexte(this.form, this, 15)' value='".$lesInfosEleve['EL_LOGIN']."'></td></tr>
|
||||
<tr><th>Nouveau mot de passe ?</th> <td><input type='radio' name='brMdp' value='0' checked>Non <input type='radio' name='brMdp' value='1'>Oui</td></tr>");
|
||||
}
|
||||
echo ("
|
||||
</table>
|
||||
</fieldset>");
|
||||
}
|
||||
?>
|
||||
<table style='border: 0px solid white; '>
|
||||
<tr>
|
||||
<td style='border: 0px solid white;'>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<textarea name='ztObs' cols='70' rows='1'><?php
|
||||
if ($_REQUEST['action']!="ajouter") {echo $lesInfosEleve['commentaire'];}?></textarea>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td style='border: 0px solid white; witdh:130px; text-align:right;'>
|
||||
<input type="hidden" name="zTypeAdm" value="<?php if ($type=="adm") {echo ("true");} else {echo ("false");} ?>">
|
||||
<input type="hidden" name="zOk" value="OK">
|
||||
<input type="image" name="btValider" alt="Valider" src="images/valider.jpg" value="OK" >
|
||||
<input type="image" name="btAnnuler" alt="Annuler" src="images/annuler.jpg" value="nonOK" onclick="annuler('frmA');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
94
promoInfo/vues/v_unParam.php
Normal file
94
promoInfo/vues/v_unParam.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<!-- Derniere modification le 27 avril 2023 par Pascal Blain -->
|
||||
<div id="contenu">
|
||||
<?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é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é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é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>
|
Reference in New Issue
Block a user