$NoConfSuppr=$lc_NoConfSuppr; $_SESSION["NoConfSuppr"]=$NoConfSuppr; //session_register("NoConfSuppr"); // regarde s'il existe des filtres ou selection d'affichage de colonnes, que si pas de req custom if ($_REQUEST['lc_NM_TABLE'] != "__reqcust") { $qr = db_query("SELECT NM_CHAMP from $TBDname where NM_CHAMP!='$NmChDT' AND NM_TABLE='".$_REQUEST['lc_NM_TABLE']."' AND (VAL_DEFAUT".$GLOBALS['sqllenstr0']." OR TYP_CHP".$GLOBALS['sqllenstr0'].") AND TYPAFF_L".$GLOBALS['sqllenstr0']." order by ORDAFF_L, LIBELLE") ; // recupere libelle, ordre affichage et COMMENT, si type affichage ="HID", on affiche pas la table $nbrqr=db_num_rows($qr); } else { $tbargscust = parseArgsReq($reqcust); $nbrqr = count($tbargscust); } // sinon, va directement sur la liste de réponses if ($nbrqr==0) { $url = "list_table.php?lc_NM_TABLE=".$_REQUEST['lc_NM_TABLE']."&lc_where_sup=".urlencode($_REQUEST['lc_where_sup'])."&lc_nbligpp=$lc_nbligpp&lc_PgReq=0&lc_reqcust=".urlencode($_REQUEST['lc_reqcust']); outJS("window.location.replace('$url')",true) ; //header("location: $url"); die(); } $title=trad(REQ_query_on_table).$_REQUEST['lc_NM_TABLE']." , ".trad(COM_database).$DBName; include ("header.php");?> <div align="center"> <form action="list_table.php" method="post" name="theform" ENCTYPE="multipart/form-data"> <input type="hidden" name="lc_nbligpp" value="<?php echo $lc_nbligpp; ?> "> <input type="hidden" name="lc_where_sup"> <input type="hidden" name="lc_PgReq" value="1"> <? if (!$ss_parenv[noinfos]) {
function JStoggleAffOngl($totNum=10) { $ret .=" function ToggleAffOngl(theid) { for(var icid=1;icid<=$totNum;icid++) { if (document.getElementById('ongl' + icid)) { if (icid != theid) { document.getElementById('divongl' + icid).style.display='none'; document.getElementById('ongl' + icid).className='onglPassif'; } else { document.getElementById('divongl' + icid).style.display='block'; document.getElementById('ongl' + icid).className='onglActif'; document.getElementById('idOnglAct').value = icid; } } } } "; return(outJS($ret)); }