diff --git a/admin/fas/check_fas_diplomarbeit.php b/admin/fas/check_fas_diplomarbeit.php index a9a3a6cda..985dd2e76 100644 --- a/admin/fas/check_fas_diplomarbeit.php +++ b/admin/fas/check_fas_diplomarbeit.php @@ -18,7 +18,6 @@ $anzahl_quelle=0; $anzahl_eingefuegt=0; $anzahl_fehler=0; $i=0; -$k=0; $qry1=''; $zweitbetreuer=''; $combobox[]=""; @@ -35,7 +34,13 @@ $nachname[]=""; '; +} if(isset($_POST['da'])) { if(isset($_POST['erst']) AND trim($_POST['erst'])!='') @@ -73,14 +78,6 @@ if(isset($_POST['da'])) } } -//ob_flush(); -//flush(); - -/*$qryvilesci="SELECT titelpre, nachname, vorname, titelpost, person_id FROM public.tbl_person WHERE - (person_id IN (SELECT person_id FROM public.tbl_benutzer, public.tbl_mitarbeiter WHERE public.tbl_benutzer.uid=public.tbl_mitarbeiter.mitarbeiter_uid) - OR trim(updatevon)='Administrator') - AND trim(nachname)!='Account' AND trim(nachname)!='Lektor' AND trim(vorname)!='Lektor' - ORDER BY nachname;";*/ $qryvilesci="SELECT titelpre, nachname, vorname, titelpost, person_id FROM public.tbl_person WHERE trim(updatevon)='Administrator'"; $qryvilesci.=" UNION SELECT titelpre, nachname, vorname, titelpost, person_id @@ -112,7 +109,7 @@ if($result = pg_query($conn_fas, $qry)) echo '
Verbleibend: '.$row->anz.' Diplomarbeiten
'; } -echo ""; +echo "
FASVilesci
"; $qry="SELECT *, trim(substring(trim(erstbegutachter) from ' [A-ü]*$')) as erst, trim(substring(trim(zweitbegutachter) from ' [A-ü]*$')) as zweit, trim(substring(trim(betreuer) from ' [A-ü]*$')) as dritt, @@ -129,28 +126,19 @@ $qry="SELECT *, trim(substring(trim(erstbegutachter) from ' [A- ORDER BY diplomarbeit_pk LIMIT 10;"; //ORDER BY diplomarbeit_pk + if($result = pg_query($conn_fas, $qry)) { - while($row = pg_fetch_object($result)) + for($k=0;$row=pg_fetch_object($result);$k++) { - /*$qryselect="SELECT trim(substring(trim(zweitbegutachter) from ' [A-ü]*$')) as zweit, trim(substring(trim(betreuer) from ' [A-ü]*$')) as dritt, - trim(substring(trim(firmenbetreuer) from ' [A-ü]*$')) as viert, trim(substring(trim(pruefer) from ' [A-ü]*$')) as fuenft, - trim(substring(trim(vorsitzender) from ' [A-ü]*$')) as sechst, trim(substring(trim(pruefer1) from ' [A-ü]*$')) as siebent - FROM diplomarbeit WHERE diplomarbeit_pk='".$row->diplomarbeit_pk."';"; - $resultselect = pg_query($conn_fas, $qryselect); - $rowselect = pg_fetch_object($resultselect);*/ - - $k++; if($row->vilesci_erstbegutachter=='' AND $row->erstbegutachter!='') { echo ""; echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if($row->vilesci_zweitbegutachter=='' AND $row->zweitbegutachter!='') { echo ""; echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if(($row->vilesci_betreuer=='' OR $row->vilesci_betreuer==NULL) AND trim($row->betreuer)!='') { echo ""; echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if(($row->vilesci_firmenbetreuer=='' OR $row->vilesci_firmenbetreuer==NULL) AND trim($row->firmenbetreuer)!='') { echo ""; echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if(($row->vilesci_pruefer=='' OR $row->vilesci_pruefer==NULL) AND trim($row->pruefer)!='') { echo ""; - echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if(($row->vilesci_vorsitzender=='' OR $row->vilesci_vorsitzender==NULL) AND trim($row->vorsitzender)!='') { echo ""; - echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } if(($row->vilesci_pruefer1=='' OR $row->vilesci_pruefer1==NULL) AND trim($row->pruefer1)!='') { echo ""; - echo ""; - echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; } + } } echo "
FASVilesciTitel/Vorname/Nachname
'".$row->erstbegutachter."'"; echo ""; - echo "'".$row->erstbegutachter."'
'".$row->zweitbegutachter."'"; echo ""; - echo "'".$row->zweitbegutachter."'
'".$row->betreuer."'"; echo ""; - echo "'".$row->betreuer."'
'".$row->firmenbetreuer."'"; echo ""; - echo "'".$row->firmenbetreuer."'
'".$row->pruefer."'"; + echo ""; echo ""; - echo "'".$row->pruefer."'
'".$row->vorsitzender."'"; + echo ""; echo ""; - echo "'".$row->vorsitzender."'
'".$row->pruefer1."'"; + echo ""; echo ""; - echo "'".$row->pruefer1."'
";