jagogordonne
Invité n'ayant pas de compte PHPfrance
31 mars 2010, 15:49
<SCRIPT language="JavaScript">
function four1() {
var url="http://127.0.0.1/supervision/requetes_abattage_ajax.php";
var http_request = false;
if (window.XMLHttpRequest) {// Firefox et autres
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if(window.ActiveXObject) { // Internet Explorer
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Abandon : (Impossible de créer une instance XMLHTTP)');
return false;
}
http_request.onreadystatechange = function () {
traitementReponseFOUR(http_request); }
http_request.open('POST',url,true);
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
var parametre = document.getElementById('matricule_four_prerempli').value;
http_request.send('parametre='+parametre+'&action=REMP_four');
}
function traitementReponseFOUR(http_request) {
var affich="";
if (http_request.readyState == 4) {
if (http_request.status == 200) {
results = http_request.responseText.split(",");
if (results[1] == 1) {
document.getElementById('titre_four_prerempli').selectedIndex = 0;
}
if (results[1] == 2) {
document.getElementById('titre_four_prerempli').selectedIndex = 1;
}
if (results[1] == 3) {
document.getElementById('titre_four_prerempli').selectedIndex = 2;
}
document.getElementById('nom_four_prerempli').value=results[2];
document.getElementById('prenom_four_prerempli').value=results[3];
document.getElementById('tel_four_prerempli').value=results[4];
document.getElementById('rue_four_prerempli').value=results[5];
document.getElementById('CP_four_prerempli').value=results[6];
document.getElementById('Ville_four_prerempli').value=results[7];
document.getElementById('proprio_four_prerempli').checked=false;
document.getElementById('exploitant_four_prerempli').checked=false;
if (results[8]=="Y") {
document.getElementById('exploitant_four_prerempli').checked=true;
}
if (results[9]=="Y") {
document.getElementById('proprio_four_prerempli').checked=true;
}
} else {
alert(http_request.status);
alert('Un problème est survenu avec la requête.');
}
}
}
function buch1() {
var url="http://127.0.0.1/supervision/requetes_abattage_ajax.php";
var http_request = false;
if (window.XMLHttpRequest) {// Firefox et autres
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if(window.ActiveXObject) { // Internet Explorer
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Abandon : (Impossible de créer une instance XMLHTTP)');
return false;
}
http_request.onreadystatechange = function () {
traitementReponseBUCH(http_request); }
http_request.open('POST',url,true);
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
var parametre = document.getElementById('matricule_buch_prerempli').value;
http_request.send('parametre='+parametre+'&action=REMP_buch');
}
function traitementReponseBUCH(http_request) {
var affich="";
if (http_request.readyState == 4) {
if (http_request.status == 200) {
results = http_request.responseText.split(",");
if (results[1] == 1) {
document.getElementById('titre_buch_prerempli').selectedIndex = 0;
}
if (results[1] == 2) {
document.getElementById('titre_buch_prerempli').selectedIndex = 1;
}
if (results[1] == 3) {
document.getElementById('titre_buch_prerempli').selectedIndex = 2;
}
document.getElementById('nom_buch_prerempli').value=results[2];
document.getElementById('prenom_buch_prerempli').value=results[3];
document.getElementById('tel_buch_prerempli').value=results[4];
document.getElementById('rue_buch_prerempli').value=results[5];
document.getElementById('CP_buch_prerempli').value=results[6];
document.getElementById('Ville_buch_prerempli').value=results[7];
document.getElementById('prix_buch_prerempli').value=results[8];
} else {
alert(http_request.status);
alert('Un problème est survenu avec la requête.');
}
}
}
function lot1() {
var url="http://127.0.0.1/supervision/requetes_abattage_ajax.php";
var http_request = false;
if (window.XMLHttpRequest) {// Firefox et autres
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if(window.ActiveXObject) { // Internet Explorer
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Abandon : (Impossible de créer une instance XMLHTTP)');
return false;
}
http_request.onreadystatechange = function () {
traitementReponseLOT(http_request); }
http_request.open('POST',url,true);
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
var parametre = document.getElementById('num_lot_prerempli').value;
test= function () {
sucrer_espaces(parametre); }
http_request.send('parametre='+escape(parametre) +'&action=REMP_lot');
}
function traitementReponseLOT(http_request) {
var results="";
if (http_request.readyState == 4) {
if (http_request.status == 200) {
results = http_request.responseText.split(",");
alert("Reponse de PHP"+results);
document.getElementById('code_entreprise_prerempli').value=results[0];
document.getElementById('rue_lot_prerempli').value=results[1];
document.getElementById('CP_lot_prerempli').value=results[2];
document.getElementById('Ville_lot_prerempli').value=results[3];
document.getElementById('prix_achat_prerempli').value=results[4];
document.getElementById('Date_achat_lot_prerempli').value=results[5];
document.getElementById('nombre_arbre_prerempli').value=results[6];
document.getElementById('estim_cubage_prerempli').value=results[7];
document.getElementById('commentaire_prerempli').value=results[8];
document.getElementById('matricule_four_prerempli').selectedIndex=results[9];
} else {
alert(http_request.status);
alert('Un problème est survenu avec la requête.');
}
}
}
function sucrer_espaces(zone) {
var res=zone.replace (/^\s*/g,"");
res=res.replace (/\s*$/g,"");
return res;
}
function remp_arbre() {
var tableau = document.getElementById('arbre');
var ligne = tableau.insertRow(-1);
var colonne1 = ligne.insertCell(0);
colonne1.innerHTML += document.getElementById('arbre_prerempli').value;
var colonne2 = ligne.insertCell(1);
colonne2.innerHTML += document.getElementById('Longueur_prerempli').value;
var colonne3 = ligne.insertCell(2);
colonne3.innerHTML += document.getElementById('cir_prerempli').value;
var colonne4 = ligne.insertCell(3);
colonne4.innerHTML += document.getElementById('diam_prerempli').value;
var colonne5 = ligne.insertCell(4);
colonne5.innerHTML += document.getElementById('volume_prerempli').value;
}
function calcul() {
alert("on rentre dans la fonction");
var url="http://127.0.0.1/supervision/mapage.php";
var http_request = false;
if (window.XMLHttpRequest) {// Firefox et autres
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if(window.ActiveXObject) { // Internet Explorer
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Abandon : (Impossible de créer une instance XMLHTTP)');
return false;
}
http_request.onreadystatechange = function () {
traitementReponseABAT(http_request); }
http_request.open('POST',url,true);
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
var nb_arbre = document.getElementById('nombre_arbre_prerempli').value;
var lot = document.getElementById('num_lot_prerempli').value;
alert(lot);
alert(nb_arbre);
http_request.send('lot='+lot +'&nb_arbre='+nb_arbre);
alert(('lot='+lot +'&nb_arbre='+nb_arbre));
//document.all.iframe.src="mapage.php";
}
function traitementReponseABAT(http_request) {
var affich="";
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var affich=http_request.responseText;
alert("Reponse de PHP"+affich);
obj=document.getElementById('id_list_arbre');
//obj.innerHTML=affich;
alert("fin de la fonction");
} else {
alert(http_request.status);
alert('Un problème est survenu avec la requête.');
}
}
}
function select_arbre2() {
alert("on rentre dans la deuxieme fonction");
}
function ligne_arbre() {
alert ("toto");
var arret = document.getElementById('nombre_arbre_prerempli').value;
alert(arret);
var parametre = document.getElementById('nombre_arbre_prerempli').value;
alert(parametre);
document.getElementById('arret').value=arret;
alert(arret);
}
</script>
<?php
print '<pre>';
print_r($_SESSION);
print '</pre>';
session_start();
include("Connexion_Sitaff.php");
$indice_abat=$indice;
$connexionBDD = mysql_connect($host, $login, $mdp);
if(isset($_POST['Submit_x'])){
$Tableau=$_POST;
$message="";
$num_abattage=($Tableau['num_abattage_prerempli']);
if ($num_abattage=="") {
$message .= sprintf('Error num_abattage');
}
$date_abattage=($Tableau['date_abattage_prerempli']);
if ($date_abattage=="") {
$message .= sprintf('Error date_abattage');
}
$prix_abattage=($Tableau['prix_abattage_prerempli']);
if ($prix_abattage=="") {
$message .= sprintf('Error prix_abattage');
}
$volume_reel=($Tableau['volume_reel_prerempli']);
if ($volume_reel=="") {
$message .= sprintf('Error volume_reel');
}
$volume_moyen=($Tableau['volume_moyen_prerempli']);
if ($volume_moyen=="") {
$message .= sprintf('Error volume_moyen');
}
$buch_abattage=($Tableau['matricule_buch_prerempli']);
if ($buch_abattage=="") {
$message .= sprintf('Error buch_abattage');
}
$lot_abattage=($Tableau['num_lot_prerempli']);
if ($lot_abattage=="") {
$message .= sprintf('Error lot_abattage');
}
$lot_abattage=trim($lot_abattage);
if ($action=="MODIF") {
$req_upd_1 = "UPDATE $bdd.`tbl_abattage` SET
num_abattage='$num_abattage',date_abattage='$date_abattage',prix_abattage='$prix_abattage',volume_reel='$volume_reel',volume_moyen='$volume_moyen',buch_abattage='$buch_abattage',lot_abattage='$lot_abattage'
WHERE num_abattage = '$indice_abat'";
echo $req_upd_1;
$reponse_upd_1 = mysql_query($req_upd_1);
echo mysql_error();
$reponse_upd_1="OK";
} else $reponse_upd_1=mysql_error();
echo $reponse_upd_1;
if ($action=="AJOUT"){
$req_ins_1="INSERT INTO $bdd.`tbl_abattage` VALUES (
NULL,'$date_abattage','$prix_abattage','$volume_reel','$volume_moyen','$buch_abattage','$lot_abattage')";
$reponse_ins1 = mysql_query($req_ins_1);
echo mysql_error();
echo $req_ins1;
}
}
if ($action=="AJOUT"){ //valeurs par défaut
$donnees_abat ['num_abattage']="";
$donnees_abat ['date_abattage']="";
$donnees_abat ['prix_abattage']="";
$donnees_abat ['volume_reel']="";
$donnees_abat ['volume_moyen']="";
$donnees_abat ['buch_abattage']="";
$donnees_abat ['lot_abattage']="";
}
else { // Recup user
$req = "
SELECT * FROM $bdd.`tbl_abattage`
WHERE num_abattage='$indice'
ORDER BY `num_abattage` ASC
";
$reponse = mysql_query($req);
$donnees_abat = mysql_fetch_array($reponse);
}
mysql_close();
$lot_id=$donnees_abat['lot_abattage'];
$connexionBDD = mysql_connect($host, $login, $mdp);
$req2 = "
SELECT * FROM $bdd.`tbl_lot`
WHERE Num_lot='$lot_id'
ORDER BY `Num_lot` ASC
";
$reponse = mysql_query($req2);
$donnees_lot = mysql_fetch_array($reponse);
mysql_close();
$buch_id=$donnees_abat['buch_abattage'];
$connexionBDD = mysql_connect($host, $login, $mdp);
$req2 = "
SELECT * FROM $bdd.`tbl_bucheron`
WHERE matricule_buch='$buch_id'
ORDER BY `matricule_buch` ASC
";
$reponse = mysql_query($req2);
$donnees_buch = mysql_fetch_array($reponse);
mysql_close();
?>
<form method="POST" name="saisie_abattage" action="global.php?page=saisie_abattage">
<h3>Saisie des abattages<h3>
<table width="100%" style="border: 1px solid black">
<tr>
<td align="right">
<a href='global.php?page=recherche_abattage'>
<img src='Images/back.bmp' border='0' alt='Back' width='20' height='20'/></a>
<INPUT border=0 src="./Images/save.png " type=image
Value=submit
name="Submit" width='16' height='20' >
</td>
</tr>
</table>
<br>
<b>
<input type="checkbox" onClick="
if (this.checked==true) {
document.getElementById('lot').style.display='';
} else {
document.getElementById('lot').style.display='none';
}
"
checked/><font color="B22222"> Données spécifique au lot</font>
</b>
<table width="100%" style="border: 1px solid black" style="background-color : #DDDDDD" id="lot">
<tr>
<td><b>Lot :<b></td>
</tr>
<tr>
<td>Code Entreprise :</td>
<td>
<input type="text" id="code_entreprise_prerempli" name="code_entreprise_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['code_entreprise']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Numéro de Lot :</td>
<td>
<select id="num_lot_prerempli" name="num_lot_prerempli" style="width:200px" style="font-style:italic" style="background-color : #DDDDDD"
onChange="lot1()"
<?php if ($action=="VISU") echo " disabled";?>
>
<option value ="">choisir</option>
<?php
$connexionBDD = mysql_connect($host, $login, $mdp);
$reponse = mysql_query("
SELECT * FROM $bdd.`tbl_lot`
");
if (! $reponse) {
echo " Erreur requete";
exit;
}
while ($donnees = mysql_fetch_array($reponse)) {
?>
<option value =" <?php echo $donnees['Num_lot'];?>"
<?php
if ($donnees['Num_lot']==$donnees_abat['lot_abattage']) {
echo " selected";
}
?>
>
<?php echo $donnees['Num_lot']; ?> </option>
<?php ;}
?>
<?php mysql_close();?>
</select>
</td>
</tr>
<tr>
<td>Lieu-dit:</td>
<td>
<input type="text" id="rue_lot_prerempli" name="rue_lot_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['rue_lot']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>CP :</td>
<td>
<input type="text" id="CP_lot_prerempli" name="CP_lot_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['CP_lot']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Ville :</td>
<td>
<input type="text" id="Ville_lot_prerempli" name="Ville_lot_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['Ville_lot']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
<tr>
<td>Nombre d'arbres :</td>
<td>
<input type="text" id="nombre_arbre_prerempli" name="nombre_arbre_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['nombre_arbre']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
<tr>
<td>Date d'achat :</td>
<td>
<input type="text" id="Date_achat_lot_prerempli" name="Date_achat_lot_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['Date_achat_lot']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Prix d'achat</td>
<td>
<input type="text" id="prix_achat_prerempli" name="prix_achat_prerempli" style="width:50px" maxlength="35"
<?php
echo " value='".$donnees_lot['prix_achat']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Matricule fournisseur :</td>
<td>
<select id="matricule_four_prerempli" name="matricule_four_prerempli" style="width:200px" style="font-style:italic" style="background-color : #DDDDDD"
<?php if ($action=="VISU") echo " disabled";?>
>
<option value ="">choisir</option>
<?php
$connexionBDD = mysql_connect($host, $login, $mdp);
$reponse = mysql_query("
SELECT * FROM $bdd.`tbl_fournisseur`
");
if (! $reponse) {
echo " Erreur requete";
exit;
}
while ($donnees = mysql_fetch_array($reponse)) {
?>
<option value =" <?php echo $donnees['matricule_four'];?>" >
<?php echo $donnees['nom_four']; ?> </option>
<?php ;}
?>
<?php mysql_close();?>
</select>
</td>
</tr>
<tr>
<?php if ($action=="AJOUT") {?>
<textarea id="commentaire_prerempli" name="commentaire_prerempli" rows="7" style="width:100%;border:1"></textarea>
<?php } ?>
<?php if ($action=="MODIF") {?>
<textarea id="commentaire_prerempli" name="commentaire_prerempli" rows="7" style="width:100%;border:1"><?php echo $donnees_lot['commentaire'];?></textarea>
<?php } ?>
<?php if ($action=="VISU") {?>
<textarea id="commentaire_prerempli" name="commentaire_prerempli" rows="7" style="width:100%;border:1" disabled><?php echo $donnees_lot['commentaire'];?></textarea>
<?php } ?>
</tr>
</table>
<br>
<b>
<input type="checkbox" onClick="
if (this.checked==true) {
document.getElementById('abattage').style.display='';
} else {
document.getElementById('abattage').style.display='none';
}
"
checked/><font color="B22222"> Données spécifique au abattage</font>
</b>
<table width="100%" style="border: 1px solid black" style="background-color : #DDDDDD" id="abattage">
<tr>
<td>Date d'abattage :</td>
<td>
<input type="text" id="date_abattage_prerempli" name="date_abattage_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_abat['estim_cubage']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Prix d'abattage :</td>
<td>
<input type="text" id="prix_abattage_prerempli" name="prix_abattage_prerempli" style="width:150px" maxlength="35"
<?php
$prix_abattage=$donnees_abat['volume_reel']*$donnees_buch['prix_buch'];
echo " value='$prix_abattage' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Estimation cubage :</td>
<td>
<input type="text" id="estim_cubage_prerempli" name="estim_cubage_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_lot['estim_cubage']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
<tr>
<td>Volume réel :</td>
<td>
<input type="text" id="volume_reel_prerempli" name="volume_reel_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_abat['estim_cubage']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Volume moyen :</td>
<td>
<input type="text" id="volume_moyen_prerempli" name="volume_moyen_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_abat['estim_cubage']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
</table>
</br>
<b>
<input type="checkbox" onClick="
if (this.checked==true) {
document.getElementById('bucheron').style.display='';
} else {
document.getElementById('bucheron').style.display='none';
}
"
checked/><font color="B22222">Données spécifique au bucheron</font>
</b>
<table width="100%" style="border: 1px solid black" style="background-color : #DDDDDD"id="bucheron">
<tr>
<td>Numéro de bucheron :</td>
<td>
<select id="matricule_buch_prerempli" name="matricule_buch_prerempli" style="width:200px" style="font-style:italic" style="background-color : #DDDDDD"
onChange="buch1()"
<?php if ($action=="VISU") echo " disabled";?>
>
<option value ="">choisir</option>
<?php
$connexionBDD = mysql_connect($host, $login, $mdp);
$reponse = mysql_query("
SELECT * FROM $bdd.`tbl_bucheron`
");
if (! $reponse) {
echo " Erreur requete";
exit;
}
while ($donnees = mysql_fetch_array($reponse)) {
?>
<option value =" <?php echo $donnees['matricule_buch'];?>"
<?php
if ($donnees['matricule_buch']==$donnees_abat['buch_abattage']) {
echo " selected";
}
?>
>
<?php echo $donnees['nom_buch']; ?> </option>
<?php ;}
?>
<?php mysql_close();?>
</select>
</td>
</tr>
<tr>
<td>Titre :</td>
<td>
<select name="titre_buch_prerempli" id="titre_buch_prerempli" onchange="<?php echo $url;?>"
<?php if ($action=="VISU") echo " disabled";?> >
<option value="Mr"
<?php
if ($donnees_buch['titre_buch']==1) echo " selected";
?>
>Mr</option>
<option value="Mme"
<?php
if ($donnees_buch['titre_buch']==2) echo " selected";
?>
>Mme</option>
<option value="Mlle"
<?php
if ($donnees_buch['titre_buch']==3) echo " selected";
?>
>Mlle</option>
</td>
<td>Nom :</td>
<td>
<input type="text" id="nom_buch_prerempli" name="nom_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['nom_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Prénom :</td>
<td>
<input type="text" id="prenom_buch_prerempli" name="prenom_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['prenom_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
<tr>
<td>Rue :</td>
<td>
<input type="text" id="rue_buch_prerempli" name="rue_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['rue_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>CP :</td>
<td>
<input type="text" id="CP_buch_prerempli" name="CP_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['CP_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Ville :</td>
<td>
<input type="text" id="Ville_buch_prerempli" name="Ville_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['Ville_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
<tr>
<td>Téléphone :</td>
<td>
<input type="text" id="tel_buch_prerempli" name="tel_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['tel_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
<td>Prix :</td>
<td>
<input type="text" id="prix_buch_prerempli" name="prix_buch_prerempli" style="width:150px" maxlength="35"
<?php
echo " value='".$donnees_buch['prix_buch']."' ";
?>
<?php if ($action=="VISU") echo " disabled";?>
/>
</td>
</tr>
</table>
<br>
<input type="button" class="btnk2" onClick="calcul()" value="calcul"/>
<br>
<br>
<div id="id_list_arbre">
</div>
<?php /*<iframe width="100%" height="400px" name="iframe" src="mapage.php"></iframe>
<table width="30%" style="border: 1px solid black" align="right" style="background-color : #DDDDDD">
<tr>
<td align="center">
<input type="text" id="arbre_prerempli" name="arbre_prerempli" style="width:50px" maxlength="35">
</td>
<td align="center">
<input type="text" id="Longueur_prerempli" name="Longueur_prerempli" style="width:50px" maxlength="35">
</td>
<td align="center">
<input type="text" id="cir_prerempli" name="cir_prerempli" style="width:50px" maxlength="35">
</td>
<td align="center">
<input type="text" id="diam_prerempli" name="diam_prerempli" style="width:50px" maxlength="35">
</td>
<td align="center">
<input type="text" id="volume_prerempli" name="volume_prerempli" style="width:50px" maxlength="35">
</td>
<td align="center">
<INPUT border=0 src="./Images/ok_small.gif " type=button onclick="remp_arbre()" name="save" width="12" height="16" />
</td>
</tr>
</table>
*/ ?>
<input type="hidden" id="F1_action" name="F1_action" value="<?php echo $action;?>" />
<input type="hidden" id="F1_id" name="F1_id" value="<?php echo $indice_abat;?>" />
<input type="hidden" id="indice" name="indice" value="<?php echo $indice;?>" />
</form>