diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-30 15:43:52 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-30 15:43:52 +0100 |
commit | 8ea6ea6db019f68436a69f36aae55a9f205efa35 (patch) | |
tree | 5c367520523c42b1935491d199b4e8f3c17b4708 /doc/niels-diplom/Dateistruktur/results/admin_result.php | |
parent | ec6e82dbcdc153b9973240cdff91a03b6d2dc886 (diff) | |
download | sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.gz sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.bz2 sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.zip |
doc: Nils Weber doesnt have an 'e' in his firstname
Diffstat (limited to 'doc/niels-diplom/Dateistruktur/results/admin_result.php')
-rwxr-xr-x | doc/niels-diplom/Dateistruktur/results/admin_result.php | 489 |
1 files changed, 0 insertions, 489 deletions
diff --git a/doc/niels-diplom/Dateistruktur/results/admin_result.php b/doc/niels-diplom/Dateistruktur/results/admin_result.php deleted file mode 100755 index 00a6863..0000000 --- a/doc/niels-diplom/Dateistruktur/results/admin_result.php +++ /dev/null @@ -1,489 +0,0 @@ -<?php - - include("../header.php"); - - $user = $_SESSION['user']; - - if (! isset($_GET['ID'])) - {$message="Um Details anzuzeigen klicken sie bitte in der Übersicht den entsprechenden Link";} - - $sql = "SELECT count(lesson_id) FROM lessons where aktiv=1"; // wieviele Aufgabe sind derzeit aktiv - - $stmt = dbconnect($sql); - - OCIExecute($stmt); - - $nrows = OCIFetchStatement($stmt,$results); - - if ( $nrows == 1 ) - { - OCIExecute($stmt); - - while(OCIFetch($stmt)) - { - $max = OCIResult($stmt, $results); // Anzahl der zu lösenden Aufgaben - } - } - - //.....Info zu allen AKTIVIERTEN Nutzern....... - - $sql = "select F_name as VORNAME, NAME, tmp.STATUS, S.STUD_ID as DEATILS from STUDENTS S JOIN (SELECT Count(distinct LESSON_ID) as STATUS, stud_ID from logon group by stud_ID) tmp on s.STUD_ID = tmp.STUD_ID and S.AKTIV=1"; - - $stmt = dbconnect($sql); - - OCIExecute($stmt); - -?> - - - <tr > - <td><div class=titel_15>AUSWERTUNGEN</div></td> - </tr> - - <tr> - <td><br></td> - </tr> - - <tr> - <td bgcolor=#e99900 colspan=2><div class=text>Übersicht über alle Studenten - Klick in die Spalte Detail zeigt die Einzelauswertung der Studenten im unteren Bereich der Seite....</div></td> - </tr> - - <tr> - <td> - - - - - - -<? - - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - -if ( $nrows > 0 ) - { - print "<BR><TABLE BORDER=\"1\" class=text>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) - { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - $col=0; - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) - { - $data = $column['value']; - - if ($col==2) - { - $percent = round($data[$i] * 100/$max); - - if ($percent <= 25) - print "<td width=300> <img src=\"/dipl/css/balken_rot.gif\" width=$percent height=10 > $data[$i] Aufgaben gelöst ($percent %)</td>"; - if ($percent > 25 and $percent < 50) - print "<td width=300> <img src=\"/dipl/css/balken_orange.gif\" width=$percent height=10 > $data[$i] Aufgaben gelöst ($percent %)</td>"; - if ($percent >= 50) - print "<td width=300> <img src=\"/dipl/css/balken_gelb.gif\" width=$percent height=10 > $data[$i] Aufgaben gelöst ($percent %)</td>"; - if ($percent == 100) - print "<td width=300> <img src=\"/dipl/css/abgeschlossen.gif\"> Alle Aufgaben erfolgreich gelöst.</td>"; - } - - else if ($col==3) - print "<TD><a href=\"/dipl/results/admin_result.php?ID=$data[$i]&" . SID . "\"\">>></a></TD>"; - else - print "<TD>$data[$i]</TD>\n"; // Name und vorname ausgeben.... - $col++; - } - print "</TR>\n"; - } - print "<tr><td colspan=3 class=text>$nrows Studenten sind derzeit im Praktikum aktiv.<BR></td></tr>"; - print "</TABLE><BR>"; -} - - -$id = $_GET['ID']; - -$sql="select F_NAME, NAME from STUDENTS WHERE STUD_ID='$id'"; // Namen des STUDEnten auswählen, dessen DETaILs angezeigt werden sollen... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -while(OCIFetch($stmt)) - { - $fname = OCIResult($stmt, "F_NAME"); - $name = OCIResult($stmt, "NAME"); - } - -?> - -<br><br> -</td> -</tr> - -<? - - $sql = "SELECT distinct STUDENTS.F_NAME as VORNAME, STUDENTS.NAME, STUDENTS.GROUPS as GRUPPE, STUDENTS.DATUM as \"zugelassen seit:\", count(ERROR_LOG.STUD_ID) as Versuche from STUDENTS, ERROR_LOG where STUDENTS.STUD_ID not in (select distinct STUD_ID from LOGON) and TYP = 0 and ERROR_LOG.STUD_ID (+) = STUDENTS.STUD_ID group by STUDENTS.STUD_ID, STUDENTS.NAME, STUDENTS.F_NAME, STUDENTS.GROUPS, STUDENTS.DATUM"; - - $stmt = dbconnect($sql); - - OCIExecute($stmt); - -?> - - <tr> - <td bgcolor=#e99900 colspan=2><div class=text>Übersicht über alle Studenten die fürs Praktikum aktiviert sind, jedoch noch keine Aufgabe gelöst haben....</div></td> - </tr> - - <tr> - <td> - -<? - - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - -if ( $nrows > 0 ) - { - print "<BR><TABLE BORDER=\"1\" class=text>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) - { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) - { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; // Name und vorname ausgeben.... - } - print "</TR>\n"; - } - print "<tr><td colspan=3 class=text>$nrows Studenten sind derzeit im Praktikum zugelassen ohne Aufgaben gelöst zu haben...<BR></td></tr>"; - print "</TABLE><BR>"; -} - -?> - -<br><br> -</td> -</tr> -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#e99900 colspan=2><div class=text>DETAILS von <b><? print $fname . " " . $name;?></b>:</div></td> -</tr> -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#F7F7F7 colspan=2><div class=text><b>Die richtigen Lösungen:</b></div></td> -</tr> - -<tr> -<td> - -<? - -$id = $_GET['ID']; - - -$sql="select LO.NR, tmp.STATEMENT from LESSON_ORDER LO join (select L.LESSON_ID, L.STATEMENT from LOGON L where STUD_ID='$id')tmp on LO.LESSON_ID=tmp.LESSON_ID order by LO.NR"; // wähle alle studenten aus, die fertig sind... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - - -if ( $nrows > 0 ) { - print "<BR><TABLE BORDER=\"1\" class=text width=560>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; - } - print "</TR>\n"; - } - print "</TABLE><BR>"; -} else - { - if (isset($_GET['ID'])) - { - $message = "Es sind noch keine Aufgaben gelöst worden...."; - } - - print "<tr><td class=text>" . $message . "<BR></tr></td>"; - } - - - -?> - -</td> -</tr> - - -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#F7F7F7 colspan=2><div class=text><b>Aufgaben, die bisher noch nicht bearbeitet wurden:</b></div></td> -</tr> -<tr> -<td> - -<? - - -$sql="select LO.NR from LESSON_ORDER LO join (select LESSON_ID from LESSONS where AKTIV=1 and LESSON_ID not in (select LESSON_ID from ERROR_LOG where STUD_ID='$id' union select LESSON_ID from LOGON where STUD_ID='$id'))tmp on LO.LESSON_ID=tmp.LESSON_ID group by LO.NR"; // wähle alle studenten aus, die fertig sind... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - - -if (isset($_GET['ID']) and $nrows > 0 ) { - print "<BR><TABLE BORDER=\"1\" class=text width=560>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; - } - print "</TR>\n"; - } - print "</TABLE><BR>"; -} else - { - if (isset($_GET['ID'])) - { - $message = "Es sind alle Aufgaben schon versucht worden zu lösen...."; - } - - print "<tr><td class=text>" . $message . "<BR></tr></td>"; - } - - - -?> - -</td> -</tr> -<tr> -<td colspan=2><div class=text> </div></td> -</tr> - -<tr> -<td bgcolor=#FFDE00 colspan=2><div class=text><b>Lösungsversuche:</b></div></td> -</tr> - - -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#F7F7F7 colspan=2><div class=text><b>Aufgaben, die beim ersten Versuch gelöst wurden:</b></div></td> -</tr> -<tr> -<td> - -<? - -$sql="select LO.NR from LESSON_ORDER LO join (select distinct LESSON_ID from LOGON where STUD_ID='$id' and LESSON_ID not in (select LESSON_ID FROM ERROR_LOG where STUD_ID='$id'))tmp on LO.LESSON_ID=tmp.LESSON_ID order by LO.NR"; // Versuche pro Aufgabe... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - - -if ( $nrows > 0 ) { - print "<br><TABLE BORDER=\"1\" class=text width=560>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; - } - print "</TR>\n"; - } - print "</TABLE><BR>"; -} else - { - if (isset($_GET['ID'])) - { - $message = "Es sind noch keine Aufgaben beim ersten Versuch gelöst worden...."; - } - - print "<tr><td class=text>" . $message . "<BR></tr></td>"; - } - -?> - - -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#F7F7F7 colspan=2><div class=text><b>Lösungsversuche pro Aufgabe:</b></div></td> -</tr> -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td> - -<? - -$sql="select LO.NR, sum(tmp.versuche) as VERSUCHE from LESSON_ORDER LO join (select LESSON_ID, count(LESSON_ID) as versuche from ERROR_LOG where STUD_ID='$id' group by LESSON_ID union select distinct LESSON_ID, count(LESSON_ID) as versuche from LOGON where STUD_ID='$id' group by LESSON_ID)tmp on LO.LESSON_ID=tmp.LESSON_ID group by LO.NR"; // Versuche pro Aufgabe... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - - -if ( $nrows > 0 ) { - print "<TABLE BORDER=\"1\" class=text width=560>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; - } - print "</TR>\n"; - } - print "</TABLE><BR>\n"; -} else - { - if (isset($_GET['ID'])) - { - $message = "Es sind noch keine Aufgaben gelöst worden...."; - } - - print "<tr><td class=text>" . $message . "<BR></tr></td>"; - } - - - -?> - -</td> -</tr> - -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td bgcolor=#F7F7F7 colspan=2><div class=text><b>Die fehlerhaften Statements nach Aufgabe sortiert:</b></div></td> -</tr> -<tr> -<td colspan=2><div class=text> </div></td> -</tr> -<tr> -<td> - -<? - -$sql="select LO.NR, tmp.STATEMENT from LESSON_ORDER LO join (select L.LESSON_ID, L.STATEMENT from ERROR_LOG L where STUD_ID='$id')tmp on LO.LESSON_ID=tmp.LESSON_ID order by LO.NR"; // wähle alle studenten aus, die fertig sind... - -$stmt = dbconnect($sql); - -OCIExecute($stmt); - -$nrows = OCIFetchStatement($stmt,$results); //Ergebnisse in Array eintragen... - - -if ( $nrows > 0 ) { - print "<TABLE BORDER=\"1\" class=text width=560>\n"; - print "<TR>\n"; - while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; - } - print "</TR>\n"; - - for ( $i = 0; $i < $nrows; $i++ ) { - reset($results); - print "<TR>\n"; - while ( $column = each($results) ) { - $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; - } - print "</TR>\n"; - - } - print "<tr><td colspan=3 class=text>Bisher wurden $nrows Anfragen abgesetzt.<BR></td></tr>"; - print "</TABLE>\n"; -} else - { - if (isset($_GET['ID'])) - { - $message = "Es sind noch keine Aufgaben gelöst worden...."; - } - - print "<tr><td class=text>" . $message . "<BR></tr></td>"; - } - - -?> - -</td> -</tr> - -</table> -</table> -</table> - - -<? -include("../footer.php"); -?> - - - |