query('select ID,HEADLINE_'.strtoupper($l).' as NAME from '.$dbt['tppub'].' where TRIM(HEADLINE_'.strtoupper($l).')!=\'\' and VISIBLE=1 AND ITEMTYPE=1 AND ID_CAT=\''.$idc.'\' ORDER BY ORD ASC LIMIT 1'); } else { $db->query('select ID,HEADLINE_'.strtoupper($l).' as NAME from '.$dbt['tppub'].' where TRIM(HEADLINE_'.strtoupper($l).')!=\'\' and VISIBLE=1 AND ID=\''.$id.'\' ORDER BY ORD ASC LIMIT 1'); } if($db->resultCount()>0) { $fr1=$db->fetchRow(); $id=$fr1['ID']; } if(isset($id) && trim($id)!='') { $db->query('select * from '.$dbt['tppub'].' WHERE TRIM(HEADLINE_'.strtoupper($l).')!=\'\' AND ITEMTYPE=1 AND ID=\''.$id.'\' limit 1'); if($db->resultCount()>0) { $pb=$db->fetchRow(); $recv=stripslashes($pb['REQ_'.strtoupper($l)]); $sd=$pb['STARTDATE']; $fd=$pb['ENDDATE']; } } ?>
 
 
 

query($sab1); if($db->resultCount()>1) { $sab1r=$db->getResult(); for($j=0;$j
 
0) { ?>
   
|