'; // DAO include('../vilesci/config.inc.php'); if (!$conn = @pg_pconnect(CONN_STRING)) $error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!'; // Orte holen $sql_query="Select tbl_mailgrp.mailgrp_kurzbz,tbl_mailgrp.studiengang_kz,tbl_mailgrp.beschreibung,tbl_mailgrp.sichtbar,tbl_mailgrp.generiert,tbl_mailgrp.aktiv, tbl_person.vornamen, tbl_person.nachname, (tbl_person.uid || '@technikum-wien.at') as email from tbl_mailgrp, tbl_personmailgrp, tbl_person where tbl_mailgrp.mailgrp_kurzbz=tbl_personmailgrp.mailgrp_kurzbz AND tbl_personmailgrp.uid=tbl_person.uid ORDER by mailgrp_kurzbz, nachname,vornamen"; if(!$result=pg_query($conn, $sql_query)) $error_msg.=pg_errormessage($conn); else $num_rows=@pg_numrows($result); $rdf_url='http://www.technikum-wien.at/vilesci/mailgrp'; ?> 0?pg_fetch_object($result,$i-1):null); $grp=pg_fetch_object($result,$i); $grpNEXT=(($i<$num_rows-1)?pg_fetch_object($result,$i+1):null); $currentgrp=$grp->mailgrp_kurzbz; $lastgrp=$grpLAST->mailgrp_kurzbz; $nextGRP=$grpNEXT->mailgrp_kurzbz; if ($lastgrp!=$currentgrp || $i==0) $descr.=' '.$grp->mailgrp_kurzbz.' '."\n"; $descr.=' '.$grp->email.' '.$grp->vornamen.' '.$grp->nachname.' '."\n"; if ($lastgrp!=$currentgrp) $sequenz.=' '."\n"; if ($nextGRP!=$currentgrp || $i==$num_rows-1) $sequenz.=' '."\n"; elseif ($lastgrp==$currentgrp || $nextGRP==$currentgrp || $num_rows==1) $sequenz.=''."\n"; } $sequenz=''."\n".$sequenz.' '; echo $descr; echo $sequenz; ?>