Check(); echo JS_BUD_SCRIPT; require_once('class_dossier.php'); $gDossier=dossier::id(); $c_comment=""; $c_class=""; $condition=""; $cn=new Database($gDossier); extract ($_GET); if ( isset($_GET['search']) ) { $condition=""; if ( isset($p_comment) && strlen(trim($p_comment)) != 0 ) { $condition=" where (upper(pcm_lib) like upper('%$p_comment%') or ". " pcm_val::text like '$p_comment%') ". " and (pcm_val::text like '7%' or pcm_val::text like '6%') "; } else { $condition="where pcm_val::text like '7%' or pcm_val::text like '6%' "; } } // Control to update in the calling doc. if ( isset($_GET['p_ctl'])) { $p_ctl=$_GET['p_ctl']; } echo '
'; // if request search if ( isset($_GET['search'])){ $Res=$cn->exec_sql("select pcm_val,pcm_lib from tmp_pcmn $condition order by pcm_val::text"); $MaxLine=Database::num_row($Res); if ( $MaxLine==0) { html_page_stop(); return; } echo '| '; $slabel=FormatString($l_line['pcm_lib']); echo ''; echo ' | '; } echo ''; echo $l_line['pcm_val']; echo ' | '; echo ''; echo $l_line['pcm_lib']; echo ' | '; echo "