From 8ea6ea6db019f68436a69f36aae55a9f205efa35 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 30 Jan 2013 15:43:52 +0100 Subject: doc: Nils Weber doesnt have an 'e' in his firstname --- .../Dateistruktur/results/admin_result.php | 489 +++++++++++++++++++++ 1 file changed, 489 insertions(+) create mode 100755 doc/nils-diplom/Dateistruktur/results/admin_result.php (limited to 'doc/nils-diplom/Dateistruktur/results/admin_result.php') diff --git a/doc/nils-diplom/Dateistruktur/results/admin_result.php b/doc/nils-diplom/Dateistruktur/results/admin_result.php new file mode 100755 index 0000000..00a6863 --- /dev/null +++ b/doc/nils-diplom/Dateistruktur/results/admin_result.php @@ -0,0 +1,489 @@ + + + + +
AUSWERTUNGEN
+ + + +
+ + + +
Übersicht über alle Studenten - Klick in die Spalte Detail zeigt die Einzelauswertung der Studenten im unteren Bereich der Seite....
+ + + + + + + + + + + 0 ) + { + print "
\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) + { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + $col=0; + reset($results); + print "\n"; + while ( $column = each($results) ) + { + $data = $column['value']; + + if ($col==2) + { + $percent = round($data[$i] * 100/$max); + + if ($percent <= 25) + print ""; + if ($percent > 25 and $percent < 50) + print ""; + if ($percent >= 50) + print ""; + if ($percent == 100) + print ""; + } + + else if ($col==3) + print ""; + else + print "\n"; // Name und vorname ausgeben.... + $col++; + } + print "\n"; + } + print ""; + print "
$key
  $data[$i] Aufgaben gelöst ($percent %)  $data[$i] Aufgaben gelöst ($percent %)  $data[$i] Aufgaben gelöst ($percent %)  Alle Aufgaben erfolgreich gelöst.>>$data[$i]
$nrows Studenten sind derzeit im Praktikum aktiv.

"; +} + + +$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"); + } + +?> + +

+ + + + + + +
Übersicht über alle Studenten die fürs Praktikum aktiviert sind, jedoch noch keine Aufgabe gelöst haben....
+ + + + + + 0 ) + { + print "
\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) + { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + + reset($results); + print "\n"; + while ( $column = each($results) ) + { + $data = $column['value']; + print "\n"; // Name und vorname ausgeben.... + } + print "\n"; + } + print ""; + print "
$key
$data[$i]
$nrows Studenten sind derzeit im Praktikum zugelassen ohne Aufgaben gelöst zu haben...

"; +} + +?> + +

+ + + +
 
+ + +
DETAILS von :
+ + +
 
+ + +
Die richtigen Lösungen:
+ + + + + + 0 ) { + print "
\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + reset($results); + print "\n"; + while ( $column = each($results) ) { + $data = $column['value']; + print "\n"; + } + print "\n"; + } + print "
$key
$data[$i]

"; +} else + { + if (isset($_GET['ID'])) + { + $message = "Es sind noch keine Aufgaben gelöst worden...."; + } + + print "" . $message . "
"; + } + + + +?> + + + + + + +
 
+ + +
Aufgaben, die bisher noch nicht bearbeitet wurden:
+ + + + + 0 ) { + print "
\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + reset($results); + print "\n"; + while ( $column = each($results) ) { + $data = $column['value']; + print "\n"; + } + print "\n"; + } + print "
$key
$data[$i]

"; +} else + { + if (isset($_GET['ID'])) + { + $message = "Es sind alle Aufgaben schon versucht worden zu lösen...."; + } + + print "" . $message . "
"; + } + + + +?> + + + + +
 
+ + + +
Lösungsversuche:
+ + + + +
 
+ + +
Aufgaben, die beim ersten Versuch gelöst wurden:
+ + + + + 0 ) { + print "
\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + reset($results); + print "\n"; + while ( $column = each($results) ) { + $data = $column['value']; + print "\n"; + } + print "\n"; + } + print "
$key
$data[$i]

"; +} else + { + if (isset($_GET['ID'])) + { + $message = "Es sind noch keine Aufgaben beim ersten Versuch gelöst worden...."; + } + + print "" . $message . "
"; + } + +?> + + + +
 
+ + +
Lösungsversuche pro Aufgabe:
+ + +
 
+ + + + + 0 ) { + print "\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + reset($results); + print "\n"; + while ( $column = each($results) ) { + $data = $column['value']; + print "\n"; + } + print "\n"; + } + print "
$key
$data[$i]

\n"; +} else + { + if (isset($_GET['ID'])) + { + $message = "Es sind noch keine Aufgaben gelöst worden...."; + } + + print "" . $message . "
"; + } + + + +?> + + + + + +
 
+ + +
Die fehlerhaften Statements nach Aufgabe sortiert:
+ + +
 
+ + + + + 0 ) { + print "\n"; + print "\n"; + while ( list( $key, $val ) = each( $results ) ) { + print "\n"; + } + print "\n"; + + for ( $i = 0; $i < $nrows; $i++ ) { + reset($results); + print "\n"; + while ( $column = each($results) ) { + $data = $column['value']; + print "\n"; + } + print "\n"; + + } + print ""; + print "
$key
$data[$i]
Bisher wurden $nrows Anfragen abgesetzt.
\n"; +} else + { + if (isset($_GET['ID'])) + { + $message = "Es sind noch keine Aufgaben gelöst worden...."; + } + + print "" . $message . "
"; + } + + +?> + + + + + + + + + + + + + -- cgit