diff --git a/admin/fas/check_fas_diplomarbeit.php b/admin/fas/check_fas_diplomarbeit.php index c371e02af..ddfefe317 100644 --- a/admin/fas/check_fas_diplomarbeit.php +++ b/admin/fas/check_fas_diplomarbeit.php @@ -34,24 +34,14 @@ $nachname[]=""; - Verbleibend: '.$row->anz.' Diplomarbeiten
'; +} + echo ""; -$qry="SELECT * FROM diplomarbeit WHERE - ((vilesci_zweitbegutachter IS NULL AND trim(zweitbegutachter)!='') OR + +$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, + 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 + ((vilesci_erstbegutachter IS NULL AND trim(erstbegutachter)!='') OR + (vilesci_zweitbegutachter IS NULL AND trim(zweitbegutachter)!='') OR (vilesci_betreuer IS NULL AND trim(betreuer)!='') OR (vilesci_firmenbetreuer IS NULL AND trim(firmenbetreuer)!='') OR (vilesci_pruefer IS NULL AND trim(pruefer)!='') OR (vilesci_vorsitzender IS NULL AND trim(vorsitzender)!='') OR (vilesci_pruefer1 IS NULL AND trim(pruefer1)!='')) - ORDER BY diplomarbeit_pk - LIMIT 10;"; - + ORDER BY diplomarbeit_pk + LIMIT 5;"; +//ORDER BY diplomarbeit_pk if($result = pg_query($conn_fas, $qry)) { while($row = pg_fetch_object($result)) { - $qryselect="SELECT trim(substring(trim(zweitbegutachter) from ' [A-ü]*$')) as zweit, trim(substring(trim(betreuer) from ' [A-ü]*$')) as dritt, + /*$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 + 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); - + $rowselect = pg_fetch_object($resultselect);*/ + $k++; + if($row->vilesci_erstbegutachter=='' AND $row->erstbegutachter!='') + { + 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 ""; @@ -183,7 +237,7 @@ if($result = pg_query($conn_fas, $qry)) if(($row->vilesci_firmenbetreuer=='' OR $row->vilesci_firmenbetreuer==NULL) AND trim($row->firmenbetreuer)!='') { echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -210,7 +268,7 @@ if($result = pg_query($conn_fas, $qry)) if(($row->vilesci_pruefer=='' OR $row->vilesci_pruefer==NULL) AND trim($row->pruefer)!='') { echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -237,7 +299,7 @@ if($result = pg_query($conn_fas, $qry)) if(($row->vilesci_vorsitzender=='' OR $row->vilesci_vorsitzender==NULL) AND trim($row->vorsitzender)!='') { echo ""; - echo ""; + echo ""; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; echo ""; - echo ""; + echo ""; } } }
FASVilesci
'".$row->erstbegutachter."'"; + echo ""; + echo ""; + echo "
'".$row->zweitbegutachter."'"; echo ""; @@ -138,11 +184,15 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->zweit) + if($nachname[$j]==$row->zweit) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->zweit)) + { + echo""; + } + else if($_GET['all']==true) { echo""; } @@ -156,7 +206,7 @@ if($result = pg_query($conn_fas, $qry)) if(($row->vilesci_betreuer=='' OR $row->vilesci_betreuer==NULL) AND trim($row->betreuer)!='') { echo "
'".$row->betreuer."'"; echo ""; @@ -165,15 +215,19 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->dritt) + if($nachname[$j]==$row->dritt) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->dritt)) { echo""; } - } + else if($_GET['all']==true) + { + echo""; + } + } echo""; echo "
'".$row->firmenbetreuer."'"; echo ""; @@ -192,15 +246,19 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->viert) + if($nachname[$j]==$row->viert) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->viert)) { echo""; } - } + else if($_GET['all']==true) + { + echo""; + } + } echo""; echo "
'".$row->pruefer."'"; echo ""; @@ -219,15 +277,19 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->fuenft) + if($nachname[$j]==$row->fuenft) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->fuenft)) { echo""; } - } + else if($_GET['all']==true) + { + echo""; + } + } echo""; echo "
'".$row->vorsitzender."'"; echo ""; @@ -246,11 +308,15 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->sechst) + if($nachname[$j]==$row->sechst) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->sechst)) + { + echo""; + } + else if($_GET['all']==true) { echo""; } @@ -264,7 +330,7 @@ if($result = pg_query($conn_fas, $qry)) if(($row->vilesci_pruefer1=='' OR $row->vilesci_pruefer1==NULL) AND trim($row->pruefer1)!='') { echo "
'".$row->pruefer1."'"; echo ""; @@ -273,20 +339,24 @@ if($result = pg_query($conn_fas, $qry)) echo""; for($j=0;$j<$i;$j++) { - if($nachname[$j]==$rowselect->siebent) + if($nachname[$j]==$row->siebent) { echo""; } - else + else if(soundex($nachname[$j])==soundex($row->siebent)) { echo""; } - } + else if($_GET['all']==true) + { + echo""; + } + } echo""; echo "