$FCobj->EchoFilt();
		echo '<input type="hidden" name="nvc_'.$tbpropPya['NmChamp'].'" value="'.$nolig.'">';
		echo "</TD><TD>";
		$FCobj->EchoCSA();
		echo "</TD></TR>\n";
	}
	echo '<input type="hidden" name="tblvarrqc" value="'.implode(",",$tblvarrqc).'">';

	
}
?>
<tr><td colspan="3" align="center"><br>
<?php 
echo trad(LT_nblig_aff_ppage);
?>
 <input type="text" name="lc_nbligpp" size="3" maxlength="3" value="<? echo ($nbligpp>0 ? $nbligpp : $nbligpp_def) ?>"><br><?php 
echo ret_adrr($_SERVER["PHP_SELF"], true, 'REQ_retLT');
?>
<img src="./shim.gif" height="1" width="10">
<input type="submit" value="<?php 
echo trad('BT_valider');
?>
" class="fxbutton"/> 
</td></tr>
</TABLE>
</form>
</div>
<? include ("footer.php");
?>

        if ($_REQUEST['modif'] == -1) {
            // suppression de l'enregistrement
            $rqncs = msq("select " . $PYAoMAJ->NmChamp . " from " . $PYAoMAJ->NmTable . " where " . stripslashes($_REQUEST['key']));
            $rwncs = db_fetch_row($rqncs);
            $PYAoMAJ->Fname = $rwncs[0];
        }
    }
    $tbset = array_merge($tbset, $PYAoMAJ->RetSet($keycopy, true));
    // key copy sert �la gestion des fichiers li�
    // la gestion des fichiers est faite aussi l�dedans
}
// fin boucle sur les champs
//echovar("tbset");
$_REQUEST['key'] = stripslashes($_REQUEST['key']);
//echo "Cl� $_REQUEST['key'] <BR>";
// GROS BUG  $where=" where ".$_REQUEST['key'].($where_sup=="" ? "" : " and $where_sup");
$where = " where " . $_REQUEST['key'];
if ($_REQUEST['modif'] == 1) {
    $strqaj = "UPDATE {$CSpIC}{$NM_TABLE}{$CSpIC} SET " . tbset2set($tbset) . " {$where}";
} else {
    if ($_REQUEST['modif'] == -1) {
        $strqaj = "DELETE FROM {$CSpIC}{$NM_TABLE}{$CSpIC} {$where}";
    } else {
        // Ajout dans la table Mysql
        $strqaj = "INSERT INTO {$CSpIC}{$NM_TABLE}{$CSpIC} " . tbset2insert($tbset);
    }
}
//echo "requete sql: $strqaj";
db_query($strqaj);
header("location:" . ($lc_adrramact ? $lc_adrramact : ret_adrr("edit_table.php") . "?cfp=amact"));
// lc_adrramact=sp�ial e-toil*/
echo $title;
?>
</H1>
	<?php 
echo trad("LB_txtacc");
?>
	<H2><?php 
echo trad("LB_baselist");
?>
</H2>
	<UL>
	</UL>
	</span>
	<br>
	<a href="<?php 
echo ret_adrr($_SERVER["PHP_SELF"]);
?>
" class="fxbutton"><?php 
echo trad("BT_retour");
?>
</A>
	<br><br>
	<?php 
echo $theecho;
?>
	<br><br>
	<? if ($ss_parenv[blair]!="1"  && $ss_parenv[ro]!=true) {
	JSprotectlnk();?>
	<small><?php 
echo trad("BT_click");
?>
     echo "</TD>\n<TD>";

    $PYAObj->EchoEditAll(false); // n'affiche pas les champs caches!!!!!!!!!!!!!!!! //

     echo "</TD>\n</TR>"; //finit la ligne du tableau
   } else
        $PYAObj->EchoEditAll(true); // !!!!!!!!!!!!!!!! /

  } // fin while
?>
</table>

<div ALIGN="center">
<br>
<a href="<?php 
echo ret_adrr($_SERVER["PHP_SELF"]) . "?cfp=edit";
?>
" class="fxbutton"><?php 
echo $ss_parenv['ro'] != true ? "Annuler tous les changement et " : "";
?>
fermer</A>
<? // boutons valider et annuler que quand read only false
    if ($ss_parenv['ro']!=true) { ?>
        &nbsp;&nbsp;&nbsp;&nbsp;
		<a href="<?php 
echo $poplex ? "closepop();" : "";
?>
javascript:ConfReset()" class="fxbutton"> <?php 
echo trad('BT_reset');
?>
 </a>
?>
');"><?php 
echo trad('BT_here');
?>
</a> <?php 
echo trad(LT_change_table_edit_prop);
?>
</small>
    <br>

    <? } // fin si pas blaireau ni lecture seule
  if ($ss_parenv['blair']!="1") { // si pas blaireau seulement
     ?>
    <br>
      <?php 
echo ret_adrr($_SERVER["PHP_SELF"], true, "LT_retLB");
?>
<br><br>
     <?
     } // fin si pas blaireau
    } // fin si admadm<>1
   else
   { // admadm=1
	echo "<p>&nbsp;&nbsp;<a href=\"javascript:js_create_vtb('newvtable');\" title=\"".trad('LT_creer_vtb')."\"> Nouvel table alias (\"virtuelle\") <IMG SRC=\"vtb_icon.png\" border=\"0\"> </a></p>";

   ?>
  <small><br><br>&#149; <?php 
echo trad('BT_click');
?>
 <A class="fxsmallbutton" HREF="LIST_TABLES.php?admadm=0"><?php 
echo trad('BT_here');
</a>

  <?
  if ($FirstEnr>0) {
    echo "&nbsp;&nbsp;&nbsp;<A class=\"fxbutton\" style=\"padding-top: 7px\" HREF=\"list_table.php?lc_FirstEnr=".max(0,$FirstEnr-$nbligpp)."\" title=\"".trad('LT_display_the').$nbligpp.trad('LT_preced_recs')."\"> <img src=\"preced.png\" border=\"0\"> </A>&nbsp;&nbsp;&nbsp;";
    }
  if (($FirstEnr+$nbligpp)<$nbrows) {
    echo "&nbsp;&nbsp;&nbsp;<A class=\"fxbutton\" style=\"padding-top: 7px\"  HREF=\"list_table.php?lc_FirstEnr=".($FirstEnr+$nbligpp)."\" title=\"".trad('LT_display_the').$nbligpp.trad('LT_follow_recs')."\"> <img src=\"suivant.png\" border=\"0\"> </A>";
    }
	?>
  &nbsp;&nbsp;&nbsp;<?php 
echo trad(LT_nblig_aff_ppage);
?>
 <input type="text" name="lc_nbligpp" size="3" maxlength="3" value="<? echo ($nbligpp>0 ? $nbligpp : $nbligpp_def) ?>">
  <br><br><?php 
echo ret_adrr($_SERVER["PHP_SELF"], true);
?>
    <? if ($PgReq==1) { ?>
       &nbsp;&nbsp;&nbsp;<a class="fxbutton" title="<?php 
echo trad('LR_query_back_bulle');
?>
" href="req_table.php?lc_NM_TABLE=<?php 
echo $NM_TABLE;
?>
"> <?php 
echo trad('LR_query_back');
?>
 </a>
<?  } if ($nbrows>0) {?>
  <img src="shim.gif" height="1" width="50"><a class="fxbutton" href="extraction.php?whodb=<?php 
echo urlencode($where . " " . $orderb);