mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
This commit is contained in:
@@ -1,133 +1,133 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
<html><head>
|
||||
<title>Testtool Features</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; ">
|
||||
<meta http-equiv="Content-Language" content="de-at">
|
||||
<meta name="copyright" content="(c) FH Technikum Wien">
|
||||
<style>
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
margin:10px 10px 10px 20px;
|
||||
padding-left:13px;
|
||||
padding-right:17px;
|
||||
padding-top:25px;
|
||||
}
|
||||
body, div, p, td, th, h1, h2, a, a:link, a:hover, a:visited {
|
||||
background-color:transparent;
|
||||
color: #727B80;
|
||||
font-family:"Tahoma";
|
||||
font-size:15px;
|
||||
line-height:18px;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:link, a:hover, a:visited {
|
||||
color:#727B80;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
font-weight:bold;
|
||||
}
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
h1 {
|
||||
color:#459F8C;
|
||||
font-weight:bold;
|
||||
margin: 40px 0px 0px 0px;
|
||||
padding: 0px;
|
||||
font-size:medium;
|
||||
}
|
||||
h2 {
|
||||
margin:16px 0px 10px 30px;
|
||||
}
|
||||
p {
|
||||
padding:0px;
|
||||
margin-top:15px;
|
||||
}
|
||||
.eingerueckt {
|
||||
padding-left:15px;
|
||||
margin:16px 0px 10px 15px;
|
||||
}
|
||||
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="170" nowrap>
|
||||
<img src="http://cis.technikum-wien.at/skin/images/TWLogo_klein.jpg">
|
||||
</td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="10" valign="bottom">
|
||||
<img src="http://cis.technikum-wien.at/skin/images/header_line.gif" width="100%" height="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="width: 800px;">
|
||||
|
||||
<h1>Reihungstesttool - Neue Features</h1>
|
||||
<p>Folgende optionale Features stehen ab sofort im Testtool zur Verfügung:</p>
|
||||
<h2>Mehrsprachig</h2>
|
||||
<p class="eingerueckt">dzt. Deutsch oder Englisch (Vom Kandidaten frei wählbar oder fix vorgegeben)<br>
|
||||
Die Übersetzungen der Gebiete Mathematik und Schlussfolgerungen sind abgeschlossen.</p>
|
||||
|
||||
<h2>Zufallsfragen</h2>
|
||||
<p class="eingerueckt">Bei Beginn des Tests werden die Fragen in zufälliger Reihenfolge aus einem Fragenpool zusammengestellt. Damit fällt die bisherige Aufteilung in 2 Gruppen weg.
|
||||
</p>
|
||||
|
||||
<h2>Zufallsantworten</h2>
|
||||
<p class="eingerueckt">Die Reihenfolge der Antwortvorschläge wird zufällig vorgegeben.
|
||||
</p>
|
||||
|
||||
<h2>Multiple Response</h2>
|
||||
<p class="eingerueckt">Es können von nun an auch mehrere Antworten richtig sein.
|
||||
</p>
|
||||
|
||||
<h2>Punktewertung nach Antwort</h2>
|
||||
<p class="eingerueckt">Die Antworten pro Frage können mit unterschiedlichen Punkten bewertet werden.<br>
|
||||
So kann eine Antwort z.B. Richtig (volle Punkte), eine Antwort teilweise richtig (halbe Punkte), eine Antwort teilweise falsch, usw. sein.
|
||||
</p>
|
||||
|
||||
<h2>Audiofiles</h2>
|
||||
<p class="eingerueckt">Es ist nun auch möglich, Audiofiles (mp3) bei der Frage oder den Antworten einzubinden.
|
||||
</p>
|
||||
|
||||
<h2>Levelgleichverteilung (noch in der Testphase)</h2>
|
||||
<p class="eingerueckt">Es ist möglich, ein Teilgebiet aus einem Fragenpool unterschiedlich schwieriger Levels, mit im gleichen Verhältnis aufgeteilten Fragen, zusammensetzen zu lassen.
|
||||
(z.B.: sind sechs Fragen des Levels 1 im Pool vorhanden und drei Fragen des Levels 2 und die maximale Fragenanzahl im Test ist drei, dann kommen zwei Fragen mit Level 1 und eine Frage mit Level 2)
|
||||
</p>
|
||||
|
||||
<h2>Relative Fragestellung (noch in der Testphase)</h2>
|
||||
<p class="eingerueckt">Hier ist Vorraussetzung, dass ein Kandidat eine Frage nur einmal gestellt bekommt und diese danach nicht mehr korrigieren kann.
|
||||
Die folgende Frage wird dann - je nach gegebener Antwort - aus einem höheren oder einem niedrigeren Level gewählt.
|
||||
Der Levelanstieg/-abstieg erfolgt nach einer frei wählbaren Anzahl von Fragen (z.B. nach 3 richtig beantworteten Fragen = ein Level höher)
|
||||
</p>
|
||||
|
||||
<h2>Auswertung direkt ins FAS</h2>
|
||||
<p class="eingerueckt">Das Ergebnis des Tests (die Gesamtpunktezahl) kann von der Assistentin direkt ins FAS importiert werden.
|
||||
</p>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
<html><head>
|
||||
<title>Testtool Features</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; ">
|
||||
<meta http-equiv="Content-Language" content="de-at">
|
||||
<meta name="copyright" content="(c) FH Technikum Wien">
|
||||
<style>
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
margin:10px 10px 10px 20px;
|
||||
padding-left:13px;
|
||||
padding-right:17px;
|
||||
padding-top:25px;
|
||||
}
|
||||
body, div, p, td, th, h1, h2, a, a:link, a:hover, a:visited {
|
||||
background-color:transparent;
|
||||
color: #727B80;
|
||||
font-family:"Tahoma";
|
||||
font-size:15px;
|
||||
line-height:18px;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:link, a:hover, a:visited {
|
||||
color:#727B80;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
font-weight:bold;
|
||||
}
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
h1 {
|
||||
color:#459F8C;
|
||||
font-weight:bold;
|
||||
margin: 40px 0px 0px 0px;
|
||||
padding: 0px;
|
||||
font-size:medium;
|
||||
}
|
||||
h2 {
|
||||
margin:16px 0px 10px 30px;
|
||||
}
|
||||
p {
|
||||
padding:0px;
|
||||
margin-top:15px;
|
||||
}
|
||||
.eingerueckt {
|
||||
padding-left:15px;
|
||||
margin:16px 0px 10px 15px;
|
||||
}
|
||||
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="170" nowrap>
|
||||
<img src="http://cis.technikum-wien.at/skin/images/TWLogo_klein.jpg">
|
||||
</td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="10" valign="bottom">
|
||||
<img src="http://cis.technikum-wien.at/skin/images/header_line.gif" width="100%" height="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="width: 800px;">
|
||||
|
||||
<h1>Reihungstesttool - Neue Features</h1>
|
||||
<p>Folgende optionale Features stehen ab sofort im Testtool zur Verfügung:</p>
|
||||
<h2>Mehrsprachig</h2>
|
||||
<p class="eingerueckt">dzt. Deutsch oder Englisch (Vom Kandidaten frei wählbar oder fix vorgegeben)<br>
|
||||
Die Übersetzungen der Gebiete Mathematik und Schlussfolgerungen sind abgeschlossen.</p>
|
||||
|
||||
<h2>Zufallsfragen</h2>
|
||||
<p class="eingerueckt">Bei Beginn des Tests werden die Fragen in zufälliger Reihenfolge aus einem Fragenpool zusammengestellt. Damit fällt die bisherige Aufteilung in 2 Gruppen weg.
|
||||
</p>
|
||||
|
||||
<h2>Zufallsantworten</h2>
|
||||
<p class="eingerueckt">Die Reihenfolge der Antwortvorschläge wird zufällig vorgegeben.
|
||||
</p>
|
||||
|
||||
<h2>Multiple Response</h2>
|
||||
<p class="eingerueckt">Es können von nun an auch mehrere Antworten richtig sein.
|
||||
</p>
|
||||
|
||||
<h2>Punktewertung nach Antwort</h2>
|
||||
<p class="eingerueckt">Die Antworten pro Frage können mit unterschiedlichen Punkten bewertet werden.<br>
|
||||
So kann eine Antwort z.B. Richtig (volle Punkte), eine Antwort teilweise richtig (halbe Punkte), eine Antwort teilweise falsch, usw. sein.
|
||||
</p>
|
||||
|
||||
<h2>Audiofiles</h2>
|
||||
<p class="eingerueckt">Es ist nun auch möglich, Audiofiles (mp3) bei der Frage oder den Antworten einzubinden.
|
||||
</p>
|
||||
|
||||
<h2>Levelgleichverteilung (noch in der Testphase)</h2>
|
||||
<p class="eingerueckt">Es ist möglich, ein Teilgebiet aus einem Fragenpool unterschiedlich schwieriger Levels, mit im gleichen Verhältnis aufgeteilten Fragen, zusammensetzen zu lassen.
|
||||
(z.B.: sind sechs Fragen des Levels 1 im Pool vorhanden und drei Fragen des Levels 2 und die maximale Fragenanzahl im Test ist drei, dann kommen zwei Fragen mit Level 1 und eine Frage mit Level 2)
|
||||
</p>
|
||||
|
||||
<h2>Relative Fragestellung (noch in der Testphase)</h2>
|
||||
<p class="eingerueckt">Hier ist Vorraussetzung, dass ein Kandidat eine Frage nur einmal gestellt bekommt und diese danach nicht mehr korrigieren kann.
|
||||
Die folgende Frage wird dann - je nach gegebener Antwort - aus einem höheren oder einem niedrigeren Level gewählt.
|
||||
Der Levelanstieg/-abstieg erfolgt nach einer frei wählbaren Anzahl von Fragen (z.B. nach 3 richtig beantworteten Fragen = ein Level höher)
|
||||
</p>
|
||||
|
||||
<h2>Auswertung direkt ins FAS</h2>
|
||||
<p class="eingerueckt">Das Ergebnis des Tests (die Gesamtpunktezahl) kann von der Assistentin direkt ins FAS importiert werden.
|
||||
</p>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
</body></html>
|
||||
+344
-344
@@ -1,344 +1,344 @@
|
||||
<?php
|
||||
/* Copyright (C) 2009 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]>,
|
||||
* Rudolf Hangl <[email protected]> and
|
||||
* Gerald Simane-Sequens <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
|
||||
function sortByField($multArray,$sortField,$desc=true)
|
||||
{
|
||||
$tmpKey='';
|
||||
$ResArray=array();
|
||||
|
||||
if(!is_array($multArray))
|
||||
return array();
|
||||
|
||||
$maIndex=array_keys($multArray);
|
||||
$maSize=count($multArray)-1;
|
||||
|
||||
for($i=0; $i < $maSize ; $i++)
|
||||
{
|
||||
$minElement=$i;
|
||||
$tempMin=$multArray[$maIndex[$i]]->$sortField;
|
||||
$tmpKey=$maIndex[$i];
|
||||
for($j=$i+1; $j <= $maSize; $j++)
|
||||
if($multArray[$maIndex[$j]]->$sortField < $tempMin )
|
||||
{
|
||||
$minElement=$j;
|
||||
$tmpKey=$maIndex[$j];
|
||||
$tempMin=$multArray[$maIndex[$j]]->$sortField;
|
||||
}
|
||||
$maIndex[$minElement]=$maIndex[$i];
|
||||
$maIndex[$i]=$tmpKey;
|
||||
}
|
||||
|
||||
if($desc)
|
||||
for($j=0;$j<=$maSize;$j++)
|
||||
$ResArray[$maIndex[$j]]=$multArray[$maIndex[$j]];
|
||||
else
|
||||
for($j=$maSize;$j>=0;$j--)
|
||||
$ResArray[$maIndex[$j]]=$multArray[$maIndex[$j]];
|
||||
|
||||
return $ResArray;
|
||||
}
|
||||
|
||||
|
||||
// Verbindungsaufbau
|
||||
if (!$conn = pg_connect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
$ergebnis='';
|
||||
$gebiet=array();
|
||||
$kategorie=array();
|
||||
$erg_kat=array();
|
||||
|
||||
// Reihungstests laden
|
||||
$sql_query=";
|
||||
SELECT * FROM public.tbl_reihungstest WHERE date_part('year',datum)=date_part('year',now()) ORDER BY datum,uhrzeit";
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$rtest[$row->reihungstest_id]->reihungstest_id=$row->reihungstest_id;
|
||||
$rtest[$row->reihungstest_id]->studiengang_kz=$row->studiengang_kz;
|
||||
$rtest[$row->reihungstest_id]->ort_kurzbz=$row->ort_kurzbz;
|
||||
$rtest[$row->reihungstest_id]->anmerkung=$row->anmerkung;
|
||||
$rtest[$row->reihungstest_id]->datum=$row->datum;
|
||||
$rtest[$row->reihungstest_id]->uhrzeit=$row->uhrzeit;
|
||||
}
|
||||
|
||||
if (isset($_POST['reihungstest']))
|
||||
{
|
||||
// Vorkommende Gebiete laden
|
||||
$sql_query="SELECT DISTINCT gebiet_id, gebiet FROM testtool.vw_auswertung WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".addslashes($_POST['studiengang'])."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$gebiet[$row->gebiet_id]->name=$row->gebiet;
|
||||
$gebiet[$row->gebiet_id]->gebiet_id=$row->gebiet_id;
|
||||
}
|
||||
|
||||
// Alle Personen des Reihungstests laden
|
||||
$sql_query="SELECT
|
||||
*
|
||||
FROM
|
||||
testtool.vw_auswertung
|
||||
WHERE
|
||||
reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".addslashes($_POST['studiengang'])."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$ergebnis[$row->pruefling_id]->pruefling_id=$row->pruefling_id;
|
||||
$ergebnis[$row->pruefling_id]->nachname=$row->nachname;
|
||||
$ergebnis[$row->pruefling_id]->vorname=$row->vorname;
|
||||
$ergebnis[$row->pruefling_id]->gebdatum=$row->gebdatum;
|
||||
$ergebnis[$row->pruefling_id]->geschlecht=$row->geschlecht;
|
||||
$ergebnis[$row->pruefling_id]->idnachweis=$row->idnachweis;
|
||||
$ergebnis[$row->pruefling_id]->registriert=$row->registriert;
|
||||
$ergebnis[$row->pruefling_id]->stg_kurzbz=$row->stg_kurzbz;
|
||||
$ergebnis[$row->pruefling_id]->stg_bez=$row->stg_bez;
|
||||
$ergebnis[$row->pruefling_id]->semester=$row->semester;
|
||||
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->name=$row->gebiet;
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->punkte=(($row->punkte>=$row->maxpunkte)?$row->maxpunkte:$row->punkte);
|
||||
//wenn maxpunkte ueberschritten wurde -> 100%
|
||||
if($row->punkte>=$row->maxpunkte)
|
||||
$prozent=100;
|
||||
else
|
||||
$prozent = ($row->punkte/$row->maxpunkte)*100;
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->prozent=$prozent;
|
||||
|
||||
if (isset($ergebnis[$row->pruefling_id]->gesamt))
|
||||
$ergebnis[$row->pruefling_id]->gesamt+=$prozent*$row->gewicht;
|
||||
else
|
||||
$ergebnis[$row->pruefling_id]->gesamt=$prozent*$row->gewicht;
|
||||
}
|
||||
|
||||
$ergb=sortByField($ergebnis,'gesamt');
|
||||
|
||||
// Vorkommende Kategorien laden
|
||||
$sql_query="SELECT
|
||||
DISTINCT kategorie_kurzbz,
|
||||
(SELECT sum(punkte) FROM testtool.tbl_vorschlag JOIN testtool.tbl_frage USING(frage_id)
|
||||
WHERE tbl_frage.kategorie_kurzbz=vw_auswertung_kategorie.kategorie_kurzbz) as gesamtpunkte
|
||||
FROM testtool.vw_auswertung_kategorie
|
||||
WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".$_POST['studiengang']."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$gesamtpunkte=array();
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$gesamtpunkte[$row->kategorie_kurzbz]=$row->gesamtpunkte;
|
||||
$kategorie[$row->kategorie_kurzbz]->name=$row->kategorie_kurzbz;
|
||||
}
|
||||
|
||||
// Ergebnisse laden
|
||||
$sql_query="
|
||||
SELECT
|
||||
vw_auswertung_kategorie.*,
|
||||
(SELECT typ FROM testtool.tbl_kriterien
|
||||
WHERE gebiet_id=vw_auswertung_kategorie.gebiet_id AND punkte=vw_auswertung_kategorie.punkte
|
||||
AND kategorie_kurzbz=vw_auswertung_kategorie.kategorie_kurzbz) as typ
|
||||
FROM testtool.vw_auswertung_kategorie
|
||||
WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND studiengang_kz='".$_POST['studiengang']."'";
|
||||
|
||||
$sql_query.=" ORDER BY nachname, vorname";
|
||||
//echo $sql_query;
|
||||
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$erg_kat[$row->pruefling_id]->pruefling_id=$row->pruefling_id;
|
||||
$erg_kat[$row->pruefling_id]->nachname=$row->nachname;
|
||||
$erg_kat[$row->pruefling_id]->vorname=$row->vorname;
|
||||
$erg_kat[$row->pruefling_id]->gebdatum=$row->gebdatum;
|
||||
$erg_kat[$row->pruefling_id]->geschlecht=$row->geschlecht;
|
||||
$erg_kat[$row->pruefling_id]->idnachweis=$row->idnachweis;
|
||||
$erg_kat[$row->pruefling_id]->registriert=$row->registriert;
|
||||
$erg_kat[$row->pruefling_id]->stg_kurzbz=$row->stg_kurzbz;
|
||||
$erg_kat[$row->pruefling_id]->stg_bez=$row->stg_bez;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->name=$row->kategorie_kurzbz;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->typ=$row->typ;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->punkte=number_format($row->punkte,2).'/'.number_format($gesamtpunkte[$row->kategorie_kurzbz],2);
|
||||
}
|
||||
}
|
||||
|
||||
//Studiengaenge laden
|
||||
$stg_obj = new studiengang($conn);
|
||||
$stg_obj->getAll(null, false);
|
||||
$stg_arr = array();
|
||||
|
||||
foreach($stg_obj->result as $row)
|
||||
$stg_arr[$row->studiengang_kz]=$row->kuerzel;
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Testtool - Auswertung</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Auswertung Reihungstest</h1>
|
||||
<form method="POST">
|
||||
Reihungstest wählen:
|
||||
<SELECT name="reihungstest">';
|
||||
<?php
|
||||
foreach($rtest as $rt)
|
||||
{
|
||||
if(isset($_POST['reihungstest']) && $rt->reihungstest_id==$_POST['reihungstest'])
|
||||
$selected = 'selected';
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
echo '<OPTION value="'.$rt->reihungstest_id.'" '.$selected.'>'.$rt->datum.' '.(isset($stg_arr[$rt->studiengang_kz])?$stg_arr[$rt->studiengang_kz]:'').' '.$rt->ort_kurzbz.' '.$rt->anmerkung."</OPTION>\n";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
Studiengang:
|
||||
<SELECT name="studiengang">
|
||||
<OPTION value=''>Alle</OPTION>
|
||||
<?php
|
||||
foreach ($stg_arr as $kz=>$kurzbz)
|
||||
{
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']==$kz && $_POST['studiengang']!='')
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
echo '<OPTION value="'.$kz.'" '.$selected.'>'.$kurzbz.'</OPTION>';
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
<INPUT type="submit" value="Auswerten" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if (isset($_POST['reihungstest']))
|
||||
{
|
||||
?>
|
||||
<h1>Technischer Teil</h1>
|
||||
|
||||
<table id="zeitsperren">
|
||||
<tr>
|
||||
<th rowspan="2">ID</th><th rowspan="2">Nachname</th><th rowspan="2">Vornamen</th>
|
||||
<th rowspan="2">GebDatum</th><th rowspan="2">G</th>
|
||||
<!--<th rowspan="2">IdNachweis</th>-->
|
||||
<th rowspan="2">Registriert</th><th rowspan="2">STG</th><th rowspan="2">Studiengang</th>
|
||||
<?php
|
||||
foreach ($gebiet AS $gbt)
|
||||
echo "<th colspan='2'>$gbt->name</th>";
|
||||
?>
|
||||
<th>Gesamt</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($gebiet AS $gbt)
|
||||
echo "<th><small>Punkte</small></th><th><small>Prozent</small></th>";
|
||||
?>
|
||||
<th><small>Prozentpunkte</small></th>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($ergb))
|
||||
{
|
||||
foreach ($ergb AS $erg)
|
||||
{
|
||||
echo "<tr><td>$erg->pruefling_id</td><td>$erg->nachname</td><td>$erg->vorname</td><td>$erg->gebdatum</td><td>$erg->geschlecht</td>
|
||||
<td>$erg->registriert</td><td>$erg->stg_kurzbz</td><td>$erg->stg_bez</td>";
|
||||
//<td>$erg->idnachweis</td>
|
||||
foreach ($gebiet AS $gbt)
|
||||
if (isset($erg->gebiet[$gbt->gebiet_id]))
|
||||
echo '<td>'.number_format($erg->gebiet[$gbt->gebiet_id]->punkte,2,',',' ').'</td><td nowrap>'.number_format($erg->gebiet[$gbt->gebiet_id]->prozent,2,',',' ').' %</td>';
|
||||
else
|
||||
echo '<td></td><td></td>';
|
||||
echo '<td>'.number_format($erg->gesamt,2,',',' ').'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<h1>Kategorien</h1>
|
||||
|
||||
<table id="zeitsperren">
|
||||
<tr>
|
||||
<th rowspan="2">ID</th><th rowspan="2">Nachname</th><th rowspan="2">Vornamen</th>
|
||||
<th rowspan="2">GebDatum</th><th rowspan="2">G</th>
|
||||
<!--<th rowspan="2">IdNachweis</th>-->
|
||||
<th rowspan="2">Registriert</th><th rowspan="2">STG</th><th rowspan="2">Studiengang</th>
|
||||
<?php
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo "<th colspan='2'>$gbt->name</th>";
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo "<th><small>Punkte</small></th><th><small>Typ</small></th>";
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($erg_kat AS $erg)
|
||||
{
|
||||
echo "<tr><td>$erg->pruefling_id</td><td>$erg->nachname</td><td>$erg->vorname</td><td>$erg->gebdatum</td><td>$erg->geschlecht</td>
|
||||
<td>$erg->registriert</td><td>$erg->stg_kurzbz</td><td>$erg->stg_bez</td>";
|
||||
//<td>$erg->idnachweis</td>
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo '<td>'.$erg->kategorie[$gbt->name]->punkte.'</td><td>'.$erg->kategorie[$gbt->name]->typ.'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/* Copyright (C) 2009 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]>,
|
||||
* Rudolf Hangl <[email protected]> and
|
||||
* Gerald Simane-Sequens <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
|
||||
function sortByField($multArray,$sortField,$desc=true)
|
||||
{
|
||||
$tmpKey='';
|
||||
$ResArray=array();
|
||||
|
||||
if(!is_array($multArray))
|
||||
return array();
|
||||
|
||||
$maIndex=array_keys($multArray);
|
||||
$maSize=count($multArray)-1;
|
||||
|
||||
for($i=0; $i < $maSize ; $i++)
|
||||
{
|
||||
$minElement=$i;
|
||||
$tempMin=$multArray[$maIndex[$i]]->$sortField;
|
||||
$tmpKey=$maIndex[$i];
|
||||
for($j=$i+1; $j <= $maSize; $j++)
|
||||
if($multArray[$maIndex[$j]]->$sortField < $tempMin )
|
||||
{
|
||||
$minElement=$j;
|
||||
$tmpKey=$maIndex[$j];
|
||||
$tempMin=$multArray[$maIndex[$j]]->$sortField;
|
||||
}
|
||||
$maIndex[$minElement]=$maIndex[$i];
|
||||
$maIndex[$i]=$tmpKey;
|
||||
}
|
||||
|
||||
if($desc)
|
||||
for($j=0;$j<=$maSize;$j++)
|
||||
$ResArray[$maIndex[$j]]=$multArray[$maIndex[$j]];
|
||||
else
|
||||
for($j=$maSize;$j>=0;$j--)
|
||||
$ResArray[$maIndex[$j]]=$multArray[$maIndex[$j]];
|
||||
|
||||
return $ResArray;
|
||||
}
|
||||
|
||||
|
||||
// Verbindungsaufbau
|
||||
if (!$conn = pg_connect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
$ergebnis='';
|
||||
$gebiet=array();
|
||||
$kategorie=array();
|
||||
$erg_kat=array();
|
||||
|
||||
// Reihungstests laden
|
||||
$sql_query=";
|
||||
SELECT * FROM public.tbl_reihungstest WHERE date_part('year',datum)=date_part('year',now()) ORDER BY datum,uhrzeit";
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$rtest[$row->reihungstest_id]->reihungstest_id=$row->reihungstest_id;
|
||||
$rtest[$row->reihungstest_id]->studiengang_kz=$row->studiengang_kz;
|
||||
$rtest[$row->reihungstest_id]->ort_kurzbz=$row->ort_kurzbz;
|
||||
$rtest[$row->reihungstest_id]->anmerkung=$row->anmerkung;
|
||||
$rtest[$row->reihungstest_id]->datum=$row->datum;
|
||||
$rtest[$row->reihungstest_id]->uhrzeit=$row->uhrzeit;
|
||||
}
|
||||
|
||||
if (isset($_POST['reihungstest']))
|
||||
{
|
||||
// Vorkommende Gebiete laden
|
||||
$sql_query="SELECT DISTINCT gebiet_id, gebiet FROM testtool.vw_auswertung WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".addslashes($_POST['studiengang'])."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$gebiet[$row->gebiet_id]->name=$row->gebiet;
|
||||
$gebiet[$row->gebiet_id]->gebiet_id=$row->gebiet_id;
|
||||
}
|
||||
|
||||
// Alle Personen des Reihungstests laden
|
||||
$sql_query="SELECT
|
||||
*
|
||||
FROM
|
||||
testtool.vw_auswertung
|
||||
WHERE
|
||||
reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".addslashes($_POST['studiengang'])."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$ergebnis[$row->pruefling_id]->pruefling_id=$row->pruefling_id;
|
||||
$ergebnis[$row->pruefling_id]->nachname=$row->nachname;
|
||||
$ergebnis[$row->pruefling_id]->vorname=$row->vorname;
|
||||
$ergebnis[$row->pruefling_id]->gebdatum=$row->gebdatum;
|
||||
$ergebnis[$row->pruefling_id]->geschlecht=$row->geschlecht;
|
||||
$ergebnis[$row->pruefling_id]->idnachweis=$row->idnachweis;
|
||||
$ergebnis[$row->pruefling_id]->registriert=$row->registriert;
|
||||
$ergebnis[$row->pruefling_id]->stg_kurzbz=$row->stg_kurzbz;
|
||||
$ergebnis[$row->pruefling_id]->stg_bez=$row->stg_bez;
|
||||
$ergebnis[$row->pruefling_id]->semester=$row->semester;
|
||||
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->name=$row->gebiet;
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->punkte=(($row->punkte>=$row->maxpunkte)?$row->maxpunkte:$row->punkte);
|
||||
//wenn maxpunkte ueberschritten wurde -> 100%
|
||||
if($row->punkte>=$row->maxpunkte)
|
||||
$prozent=100;
|
||||
else
|
||||
$prozent = ($row->punkte/$row->maxpunkte)*100;
|
||||
$ergebnis[$row->pruefling_id]->gebiet[$row->gebiet_id]->prozent=$prozent;
|
||||
|
||||
if (isset($ergebnis[$row->pruefling_id]->gesamt))
|
||||
$ergebnis[$row->pruefling_id]->gesamt+=$prozent*$row->gewicht;
|
||||
else
|
||||
$ergebnis[$row->pruefling_id]->gesamt=$prozent*$row->gewicht;
|
||||
}
|
||||
|
||||
$ergb=sortByField($ergebnis,'gesamt');
|
||||
|
||||
// Vorkommende Kategorien laden
|
||||
$sql_query="SELECT
|
||||
DISTINCT kategorie_kurzbz,
|
||||
(SELECT sum(punkte) FROM testtool.tbl_vorschlag JOIN testtool.tbl_frage USING(frage_id)
|
||||
WHERE tbl_frage.kategorie_kurzbz=vw_auswertung_kategorie.kategorie_kurzbz) as gesamtpunkte
|
||||
FROM testtool.vw_auswertung_kategorie
|
||||
WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND tbl_prestudent.studiengang_kz='".$_POST['studiengang']."'";
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$gesamtpunkte=array();
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$gesamtpunkte[$row->kategorie_kurzbz]=$row->gesamtpunkte;
|
||||
$kategorie[$row->kategorie_kurzbz]->name=$row->kategorie_kurzbz;
|
||||
}
|
||||
|
||||
// Ergebnisse laden
|
||||
$sql_query="
|
||||
SELECT
|
||||
vw_auswertung_kategorie.*,
|
||||
(SELECT typ FROM testtool.tbl_kriterien
|
||||
WHERE gebiet_id=vw_auswertung_kategorie.gebiet_id AND punkte=vw_auswertung_kategorie.punkte
|
||||
AND kategorie_kurzbz=vw_auswertung_kategorie.kategorie_kurzbz) as typ
|
||||
FROM testtool.vw_auswertung_kategorie
|
||||
WHERE reihungstest_id='".addslashes($_POST['reihungstest'])."'";
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']!='')
|
||||
$sql_query.=" AND studiengang_kz='".$_POST['studiengang']."'";
|
||||
|
||||
$sql_query.=" ORDER BY nachname, vorname";
|
||||
//echo $sql_query;
|
||||
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
while ($row=pg_fetch_object($result))
|
||||
{
|
||||
$erg_kat[$row->pruefling_id]->pruefling_id=$row->pruefling_id;
|
||||
$erg_kat[$row->pruefling_id]->nachname=$row->nachname;
|
||||
$erg_kat[$row->pruefling_id]->vorname=$row->vorname;
|
||||
$erg_kat[$row->pruefling_id]->gebdatum=$row->gebdatum;
|
||||
$erg_kat[$row->pruefling_id]->geschlecht=$row->geschlecht;
|
||||
$erg_kat[$row->pruefling_id]->idnachweis=$row->idnachweis;
|
||||
$erg_kat[$row->pruefling_id]->registriert=$row->registriert;
|
||||
$erg_kat[$row->pruefling_id]->stg_kurzbz=$row->stg_kurzbz;
|
||||
$erg_kat[$row->pruefling_id]->stg_bez=$row->stg_bez;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->name=$row->kategorie_kurzbz;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->typ=$row->typ;
|
||||
$erg_kat[$row->pruefling_id]->kategorie[$row->kategorie_kurzbz]->punkte=number_format($row->punkte,2).'/'.number_format($gesamtpunkte[$row->kategorie_kurzbz],2);
|
||||
}
|
||||
}
|
||||
|
||||
//Studiengaenge laden
|
||||
$stg_obj = new studiengang($conn);
|
||||
$stg_obj->getAll(null, false);
|
||||
$stg_arr = array();
|
||||
|
||||
foreach($stg_obj->result as $row)
|
||||
$stg_arr[$row->studiengang_kz]=$row->kuerzel;
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Testtool - Auswertung</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Auswertung Reihungstest</h1>
|
||||
<form method="POST">
|
||||
Reihungstest wählen:
|
||||
<SELECT name="reihungstest">';
|
||||
<?php
|
||||
foreach($rtest as $rt)
|
||||
{
|
||||
if(isset($_POST['reihungstest']) && $rt->reihungstest_id==$_POST['reihungstest'])
|
||||
$selected = 'selected';
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
echo '<OPTION value="'.$rt->reihungstest_id.'" '.$selected.'>'.$rt->datum.' '.(isset($stg_arr[$rt->studiengang_kz])?$stg_arr[$rt->studiengang_kz]:'').' '.$rt->ort_kurzbz.' '.$rt->anmerkung."</OPTION>\n";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
Studiengang:
|
||||
<SELECT name="studiengang">
|
||||
<OPTION value=''>Alle</OPTION>
|
||||
<?php
|
||||
foreach ($stg_arr as $kz=>$kurzbz)
|
||||
{
|
||||
if(isset($_POST['studiengang']) && $_POST['studiengang']==$kz && $_POST['studiengang']!='')
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
echo '<OPTION value="'.$kz.'" '.$selected.'>'.$kurzbz.'</OPTION>';
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
<INPUT type="submit" value="Auswerten" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if (isset($_POST['reihungstest']))
|
||||
{
|
||||
?>
|
||||
<h1>Technischer Teil</h1>
|
||||
|
||||
<table id="zeitsperren">
|
||||
<tr>
|
||||
<th rowspan="2">ID</th><th rowspan="2">Nachname</th><th rowspan="2">Vornamen</th>
|
||||
<th rowspan="2">GebDatum</th><th rowspan="2">G</th>
|
||||
<!--<th rowspan="2">IdNachweis</th>-->
|
||||
<th rowspan="2">Registriert</th><th rowspan="2">STG</th><th rowspan="2">Studiengang</th>
|
||||
<?php
|
||||
foreach ($gebiet AS $gbt)
|
||||
echo "<th colspan='2'>$gbt->name</th>";
|
||||
?>
|
||||
<th>Gesamt</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($gebiet AS $gbt)
|
||||
echo "<th><small>Punkte</small></th><th><small>Prozent</small></th>";
|
||||
?>
|
||||
<th><small>Prozentpunkte</small></th>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($ergb))
|
||||
{
|
||||
foreach ($ergb AS $erg)
|
||||
{
|
||||
echo "<tr><td>$erg->pruefling_id</td><td>$erg->nachname</td><td>$erg->vorname</td><td>$erg->gebdatum</td><td>$erg->geschlecht</td>
|
||||
<td>$erg->registriert</td><td>$erg->stg_kurzbz</td><td>$erg->stg_bez</td>";
|
||||
//<td>$erg->idnachweis</td>
|
||||
foreach ($gebiet AS $gbt)
|
||||
if (isset($erg->gebiet[$gbt->gebiet_id]))
|
||||
echo '<td>'.number_format($erg->gebiet[$gbt->gebiet_id]->punkte,2,',',' ').'</td><td nowrap>'.number_format($erg->gebiet[$gbt->gebiet_id]->prozent,2,',',' ').' %</td>';
|
||||
else
|
||||
echo '<td></td><td></td>';
|
||||
echo '<td>'.number_format($erg->gesamt,2,',',' ').'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<h1>Kategorien</h1>
|
||||
|
||||
<table id="zeitsperren">
|
||||
<tr>
|
||||
<th rowspan="2">ID</th><th rowspan="2">Nachname</th><th rowspan="2">Vornamen</th>
|
||||
<th rowspan="2">GebDatum</th><th rowspan="2">G</th>
|
||||
<!--<th rowspan="2">IdNachweis</th>-->
|
||||
<th rowspan="2">Registriert</th><th rowspan="2">STG</th><th rowspan="2">Studiengang</th>
|
||||
<?php
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo "<th colspan='2'>$gbt->name</th>";
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo "<th><small>Punkte</small></th><th><small>Typ</small></th>";
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($erg_kat AS $erg)
|
||||
{
|
||||
echo "<tr><td>$erg->pruefling_id</td><td>$erg->nachname</td><td>$erg->vorname</td><td>$erg->gebdatum</td><td>$erg->geschlecht</td>
|
||||
<td>$erg->registriert</td><td>$erg->stg_kurzbz</td><td>$erg->stg_bez</td>";
|
||||
//<td>$erg->idnachweis</td>
|
||||
foreach ($kategorie AS $gbt)
|
||||
echo '<td>'.$erg->kategorie[$gbt->name]->punkte.'</td><td>'.$erg->kategorie[$gbt->name]->typ.'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+181
-181
@@ -1,182 +1,182 @@
|
||||
<?php
|
||||
/* Copyright (C) 2009 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]>,
|
||||
* Rudolf Hangl <[email protected]> and
|
||||
* Gerald Simane-Sequens <[email protected]>
|
||||
*/
|
||||
/**
|
||||
* Seite zum Editieren von Testtool-Gebieten
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/gebiet.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
if(!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim Connecten zur DB');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung($conn);
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
echo '
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
';
|
||||
|
||||
if(isset($_GET['gebiet_id']))
|
||||
$gebiet_id=$_GET['gebiet_id'];
|
||||
else
|
||||
$gebiet_id='';
|
||||
|
||||
|
||||
echo '<h1> Gebiet bearbeiten</h1>';
|
||||
|
||||
if(!$rechte->isBerechtigt('admin'))
|
||||
die('Sie haben keine Berechtigung fuer diese Seite');
|
||||
|
||||
$gebiet = new gebiet($conn);
|
||||
$gebiet->getAll();
|
||||
|
||||
echo '<a href="index.php?gebiet_id='.$gebiet_id.'" class="Item">Zurück zur Admin Seite</a><br /><br />';
|
||||
|
||||
//Liste der Gebiete anzeigen
|
||||
echo '<form id="gebiet_form" action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
||||
echo 'Gebiet: <SELECT name="gebiet_id" onchange="document.getElementById(\'gebiet_form\').submit();">';
|
||||
|
||||
foreach ($gebiet->result as $row)
|
||||
{
|
||||
if($gebiet_id=='')
|
||||
$gebiet_id=$row->gebiet_id;
|
||||
|
||||
if($gebiet_id==$row->gebiet_id)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
echo '<OPTION value="'.$row->gebiet_id.'" '.$selected.'>'.$row->bezeichnung.'</OPTION>';
|
||||
}
|
||||
echo '</SELECT>
|
||||
<input type="submit" value="Bearbeiten">
|
||||
</form>';
|
||||
|
||||
echo '<br /><br />';
|
||||
|
||||
//Speichern der Daten
|
||||
if(isset($_POST['speichern']))
|
||||
{
|
||||
$gebiet = new gebiet($conn);
|
||||
if($gebiet->load($gebiet_id))
|
||||
{
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
$gebiet->zeit = $_POST['zeit'];
|
||||
$gebiet->multipleresponse = isset($_POST['multipleresponse']);
|
||||
$gebiet->kategorien = isset($_POST['kategorien']);
|
||||
$gebiet->zufallfrage = isset($_POST['zufallfrage']);
|
||||
$gebiet->zufallvorschlag = isset($_POST['zufallvorschlag']);
|
||||
$gebiet->levelgleichverteilung = isset($_POST['levelgleichverteilung']);
|
||||
$gebiet->maxpunkte = $_POST['maxpunkte'];
|
||||
$gebiet->maxfragen = $_POST['maxfragen'];
|
||||
$gebiet->level_start = $_POST['level_start'];
|
||||
$gebiet->level_sprung_auf = $_POST['level_sprung_auf'];
|
||||
$gebiet->level_sprung_ab = $_POST['level_sprung_ab'];
|
||||
$gebiet->updateamum = date('Y-m-d H:i:s');
|
||||
$gebiet->updatevon = $user;
|
||||
$gebiet->antwortenprozeile = $_POST['antwortenprozeile'];
|
||||
|
||||
if($gebiet->save(false))
|
||||
{
|
||||
echo 'Daten erfolgreich gespeichert';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Speichern: '.$gebiet->errormsg.'</span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Laden des Gebiets</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if($gebiet_id!='')
|
||||
{
|
||||
$gebiet = new gebiet($conn, $gebiet_id);
|
||||
|
||||
echo "<hr />";
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?gebiet_id='.$gebiet_id.'" method="POST">';
|
||||
echo '<table>';
|
||||
|
||||
echo '<tr>';
|
||||
//Kurzbz
|
||||
echo '<td>Kurzbz</td><td><input type="text" maxlength="10" size="10" name="kurzbz" value="'.htmlentities($gebiet->kurzbz).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
//Bezeichnung
|
||||
echo '<td>Bezeichnung</td><td><input type="text" maxlength="50" name="bezeichnung" value="'.htmlentities($gebiet->bezeichnung).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
//Beschreibung
|
||||
echo '<td>Beschreibung</td><td><textarea name="beschreibung">'.htmlentities($gebiet->beschreibung).'</textarea></td>';
|
||||
echo '</tr><tr>';
|
||||
//Zeit
|
||||
echo '<td>Zeit</td><td><input type="text" name="zeit" size="8" maxlength="8" value="'.htmlentities($gebiet->zeit).'"> hh:mm:ss</td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Multiple Response</td><td><input type="checkbox" name="multipleresponse" '.($gebiet->multipleresponse?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Kategorien</td><td><input type="checkbox" name="kategorien" '.($gebiet->kategorien?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Zufällige Fragereihenfolge</td><td><input type="checkbox" name="zufallfrage" '.($gebiet->zufallfrage?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Zufällige Vorschlagreihenfolge</td><td><input type="checkbox" name="zufallvorschlag" '.($gebiet->zufallvorschlag?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Levelgleichverteilung</td><td><input type="checkbox" name="levelgleichverteilung" '.($gebiet->levelgleichverteilung?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
// empfohlene maximalpunkte berechnen und anzeigen
|
||||
$maximalpunkte = $gebiet->berechneMaximalpunkte($gebiet_id);
|
||||
if($gebiet->maxpunkte!=$maximalpunkte)
|
||||
$hinweis = '<span class="error">empfohlene Maximalpunkteanzahl: '.$maximalpunkte.'</span>';
|
||||
else
|
||||
$hinweis ='';
|
||||
echo '<td>Maximale Punkteanzahl</td><td><input type="text" size="5" maxlength="5" name="maxpunkte" value="'.htmlentities($gebiet->maxpunkte).'">'.$hinweis.'</td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Maximale Fragenanzahl</td><td><input type="text" size="5" maxlength="5" name="maxfragen" value="'.htmlentities($gebiet->maxfragen).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Antworten pro Zeile</td><td><input type="text" size="5" maxlength="5" name="antwortenprozeile" value="'.htmlentities($gebiet->antwortenprozeile).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Start Level</td><td><input type="text" size="5" maxlength="5" name="level_start" value="'.htmlentities($gebiet->level_start).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Richtige Fragen bis Levelaufstieg</td><td><input type="text" size="5" maxlength="5" name="level_sprung_auf" value="'.htmlentities($gebiet->level_sprung_auf).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Falsche Fragen bis Levelabstieg</td><td><input type="text" size="5" maxlength="5" name="level_sprung_ab" value="'.htmlentities($gebiet->level_sprung_ab).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td></td><td><input type="submit" name="speichern" value="Speichern"></td>';
|
||||
echo '</tr></table>';
|
||||
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
echo '</body></html>';
|
||||
<?php
|
||||
/* Copyright (C) 2009 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]>,
|
||||
* Rudolf Hangl <[email protected]> and
|
||||
* Gerald Simane-Sequens <[email protected]>
|
||||
*/
|
||||
/**
|
||||
* Seite zum Editieren von Testtool-Gebieten
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/gebiet.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
if(!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim Connecten zur DB');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung($conn);
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
echo '
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
';
|
||||
|
||||
if(isset($_GET['gebiet_id']))
|
||||
$gebiet_id=$_GET['gebiet_id'];
|
||||
else
|
||||
$gebiet_id='';
|
||||
|
||||
|
||||
echo '<h1> Gebiet bearbeiten</h1>';
|
||||
|
||||
if(!$rechte->isBerechtigt('admin'))
|
||||
die('Sie haben keine Berechtigung fuer diese Seite');
|
||||
|
||||
$gebiet = new gebiet($conn);
|
||||
$gebiet->getAll();
|
||||
|
||||
echo '<a href="index.php?gebiet_id='.$gebiet_id.'" class="Item">Zurück zur Admin Seite</a><br /><br />';
|
||||
|
||||
//Liste der Gebiete anzeigen
|
||||
echo '<form id="gebiet_form" action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
||||
echo 'Gebiet: <SELECT name="gebiet_id" onchange="document.getElementById(\'gebiet_form\').submit();">';
|
||||
|
||||
foreach ($gebiet->result as $row)
|
||||
{
|
||||
if($gebiet_id=='')
|
||||
$gebiet_id=$row->gebiet_id;
|
||||
|
||||
if($gebiet_id==$row->gebiet_id)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
echo '<OPTION value="'.$row->gebiet_id.'" '.$selected.'>'.$row->bezeichnung.'</OPTION>';
|
||||
}
|
||||
echo '</SELECT>
|
||||
<input type="submit" value="Bearbeiten">
|
||||
</form>';
|
||||
|
||||
echo '<br /><br />';
|
||||
|
||||
//Speichern der Daten
|
||||
if(isset($_POST['speichern']))
|
||||
{
|
||||
$gebiet = new gebiet($conn);
|
||||
if($gebiet->load($gebiet_id))
|
||||
{
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
$gebiet->zeit = $_POST['zeit'];
|
||||
$gebiet->multipleresponse = isset($_POST['multipleresponse']);
|
||||
$gebiet->kategorien = isset($_POST['kategorien']);
|
||||
$gebiet->zufallfrage = isset($_POST['zufallfrage']);
|
||||
$gebiet->zufallvorschlag = isset($_POST['zufallvorschlag']);
|
||||
$gebiet->levelgleichverteilung = isset($_POST['levelgleichverteilung']);
|
||||
$gebiet->maxpunkte = $_POST['maxpunkte'];
|
||||
$gebiet->maxfragen = $_POST['maxfragen'];
|
||||
$gebiet->level_start = $_POST['level_start'];
|
||||
$gebiet->level_sprung_auf = $_POST['level_sprung_auf'];
|
||||
$gebiet->level_sprung_ab = $_POST['level_sprung_ab'];
|
||||
$gebiet->updateamum = date('Y-m-d H:i:s');
|
||||
$gebiet->updatevon = $user;
|
||||
$gebiet->antwortenprozeile = $_POST['antwortenprozeile'];
|
||||
|
||||
if($gebiet->save(false))
|
||||
{
|
||||
echo 'Daten erfolgreich gespeichert';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Speichern: '.$gebiet->errormsg.'</span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Laden des Gebiets</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if($gebiet_id!='')
|
||||
{
|
||||
$gebiet = new gebiet($conn, $gebiet_id);
|
||||
|
||||
echo "<hr />";
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?gebiet_id='.$gebiet_id.'" method="POST">';
|
||||
echo '<table>';
|
||||
|
||||
echo '<tr>';
|
||||
//Kurzbz
|
||||
echo '<td>Kurzbz</td><td><input type="text" maxlength="10" size="10" name="kurzbz" value="'.htmlentities($gebiet->kurzbz).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
//Bezeichnung
|
||||
echo '<td>Bezeichnung</td><td><input type="text" maxlength="50" name="bezeichnung" value="'.htmlentities($gebiet->bezeichnung).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
//Beschreibung
|
||||
echo '<td>Beschreibung</td><td><textarea name="beschreibung">'.htmlentities($gebiet->beschreibung).'</textarea></td>';
|
||||
echo '</tr><tr>';
|
||||
//Zeit
|
||||
echo '<td>Zeit</td><td><input type="text" name="zeit" size="8" maxlength="8" value="'.htmlentities($gebiet->zeit).'"> hh:mm:ss</td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Multiple Response</td><td><input type="checkbox" name="multipleresponse" '.($gebiet->multipleresponse?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Kategorien</td><td><input type="checkbox" name="kategorien" '.($gebiet->kategorien?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Zufällige Fragereihenfolge</td><td><input type="checkbox" name="zufallfrage" '.($gebiet->zufallfrage?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Zufällige Vorschlagreihenfolge</td><td><input type="checkbox" name="zufallvorschlag" '.($gebiet->zufallvorschlag?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Levelgleichverteilung</td><td><input type="checkbox" name="levelgleichverteilung" '.($gebiet->levelgleichverteilung?'checked="checked"':'').'></td>';
|
||||
echo '</tr><tr>';
|
||||
// empfohlene maximalpunkte berechnen und anzeigen
|
||||
$maximalpunkte = $gebiet->berechneMaximalpunkte($gebiet_id);
|
||||
if($gebiet->maxpunkte!=$maximalpunkte)
|
||||
$hinweis = '<span class="error">empfohlene Maximalpunkteanzahl: '.$maximalpunkte.'</span>';
|
||||
else
|
||||
$hinweis ='';
|
||||
echo '<td>Maximale Punkteanzahl</td><td><input type="text" size="5" maxlength="5" name="maxpunkte" value="'.htmlentities($gebiet->maxpunkte).'">'.$hinweis.'</td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Maximale Fragenanzahl</td><td><input type="text" size="5" maxlength="5" name="maxfragen" value="'.htmlentities($gebiet->maxfragen).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Antworten pro Zeile</td><td><input type="text" size="5" maxlength="5" name="antwortenprozeile" value="'.htmlentities($gebiet->antwortenprozeile).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Start Level</td><td><input type="text" size="5" maxlength="5" name="level_start" value="'.htmlentities($gebiet->level_start).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Richtige Fragen bis Levelaufstieg</td><td><input type="text" size="5" maxlength="5" name="level_sprung_auf" value="'.htmlentities($gebiet->level_sprung_auf).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td>Falsche Fragen bis Levelabstieg</td><td><input type="text" size="5" maxlength="5" name="level_sprung_ab" value="'.htmlentities($gebiet->level_sprung_ab).'"></td>';
|
||||
echo '</tr><tr>';
|
||||
echo '<td></td><td><input type="submit" name="speichern" value="Speichern"></td>';
|
||||
echo '</tr></table>';
|
||||
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
echo '</body></html>';
|
||||
?>
|
||||
+510
-510
File diff suppressed because it is too large
Load Diff
@@ -1,36 +1,36 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br><br><br>
|
||||
<center><b>Die Maximalzeit für dieses Gebiet ist bereits abgelaufen!</b></center>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br><br><br>
|
||||
<center><b>Die Maximalzeit für dieses Gebiet ist bereits abgelaufen!</b></center>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+21
-21
@@ -1,21 +1,21 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>TestTool - FH Technikum Wien</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<frameset rows="77,*,1" cols="*" frameborder="NO" border="0" framespacing="0">
|
||||
<frame src="topbar.html" name="topbar" scrolling="NO" noresize>
|
||||
<frameset rows="*" cols="200,*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="menu.php" name="menu" scrolling="AUTO" noresize>
|
||||
<frame src="login.php" name="content">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body>
|
||||
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht unterstützt.</p>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>TestTool - FH Technikum Wien</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<frameset rows="77,*,1" cols="*" frameborder="NO" border="0" framespacing="0">
|
||||
<frame src="topbar.html" name="topbar" scrolling="NO" noresize>
|
||||
<frameset rows="*" cols="200,*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="menu.php" name="menu" scrolling="AUTO" noresize>
|
||||
<frame src="login.php" name="content">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body>
|
||||
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht unterstützt.</p>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
||||
|
||||
+272
-272
@@ -1,272 +1,272 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
require_once('../../include/pruefling.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
|
||||
session_start();
|
||||
$reload=false;
|
||||
$reload_parent=false;
|
||||
|
||||
if (isset($_GET['logout']))
|
||||
{
|
||||
if(isset($_SESSION['prestudent_id']))
|
||||
{
|
||||
$reload = true;
|
||||
session_destroy();
|
||||
}
|
||||
}
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
|
||||
if(isset($_POST['tag']) && isset($_POST['monat']) && isset($_POST['jahr']))
|
||||
{
|
||||
if($_POST['tag']!='' && $_POST['monat']!='' && $_POST['jahr']!='')
|
||||
$gebdatum = $_POST['jahr'].'-'.$_POST['monat'].'-'.$_POST['tag'];
|
||||
else
|
||||
$gebdatum='';
|
||||
}
|
||||
|
||||
if (isset($_POST['prestudent']) && isset($gebdatum))
|
||||
{
|
||||
$ps=new prestudent($db_conn,$_POST['prestudent']);
|
||||
if ($gebdatum==$ps->gebdatum)
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($pruefling->getPruefling($ps->prestudent_id))
|
||||
{
|
||||
$studiengang = $pruefling->studiengang_kz;
|
||||
$semester = $pruefling->semester;
|
||||
}
|
||||
else
|
||||
{
|
||||
$studiengang = $ps->studiengang_kz;
|
||||
$ps->getLastStatus($ps->prestudent_id);
|
||||
$semester = $ps->ausbildungssemester;
|
||||
}
|
||||
if($semester=='')
|
||||
$semester=1;
|
||||
|
||||
$_SESSION['prestudent_id']=$_POST['prestudent'];
|
||||
$_SESSION['studiengang_kz']=$studiengang;
|
||||
$_SESSION['nachname']=$ps->nachname;
|
||||
$_SESSION['vorname']=$ps->vorname;
|
||||
$_SESSION['gebdatum']=$ps->gebdatum;
|
||||
$stg_obj = new studiengang($db_conn, $studiengang);
|
||||
$_SESSION['sprache']=$stg_obj->sprache;
|
||||
|
||||
$_SESSION['semester']=$semester;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Ihr Geburtsdatum stimmt nicht mit unseren Daten überein</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_SESSION['prestudent_id']))
|
||||
$prestudent_id=$_SESSION['prestudent_id'];
|
||||
else
|
||||
{
|
||||
//$prestudent_id=null;
|
||||
$ps=new prestudent($db_conn);
|
||||
$datum=date('Y-m-d');
|
||||
$ps->getPrestudentRT($datum,true);
|
||||
if ($ps->num_rows==0)
|
||||
$ps->getPrestudentRT($datum);
|
||||
}
|
||||
|
||||
if(isset($_GET['type']) && $_GET['type']=='sprachechange' && isset($_GET['sprache']))
|
||||
{
|
||||
$_SESSION['sprache']=$_GET['sprache'];
|
||||
}
|
||||
|
||||
if(isset($_SESSION['prestudent_id']) && !isset($_SESSION['pruefling_id']))
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
|
||||
if(!$pruefling->getPruefling($_SESSION['prestudent_id']))
|
||||
{
|
||||
$pruefling->new = true;
|
||||
|
||||
$pruefling->studiengang_kz = $_SESSION['studiengang_kz'];
|
||||
$pruefling->semester = $_SESSION['semester'];
|
||||
|
||||
$pruefling->idnachweis = '';
|
||||
$pruefling->registriert = date('Y-m-d H:i:s');
|
||||
$pruefling->prestudent_id = $_SESSION['prestudent_id'];
|
||||
if($pruefling->save())
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
$reload_parent=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['save']) && isset($_SESSION['prestudent_id']))
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($_POST['pruefling_id']!='')
|
||||
if(!$pruefling->load($_POST['pruefling_id']))
|
||||
die('Pruefling wurde nicht gefunden');
|
||||
else
|
||||
$pruefling->new=false;
|
||||
else
|
||||
$pruefling->new=true;
|
||||
|
||||
$pruefling->studiengang_kz = $_SESSION['studiengang_kz'];
|
||||
$pruefling->idnachweis = $_POST['idnachweis'];
|
||||
$pruefling->registriert = date('Y-m-d H:i:s');
|
||||
$pruefling->prestudent_id = $_SESSION['prestudent_id'];
|
||||
$pruefling->semester = $_POST['semester'];
|
||||
if($pruefling->save())
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
$_SESSION['semester']=$pruefling->semester;
|
||||
$reload_parent=true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<?php
|
||||
if($reload_parent)
|
||||
echo '<script language="Javascript">parent.menu.location.reload()</script>';
|
||||
if($reload)
|
||||
echo "<script language=\"Javascript\">parent.location.reload();</script>";
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Login</h1>
|
||||
<?php
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
echo '<form method="GET">';
|
||||
echo '<br>Sie sind angemeldet als '.$_SESSION['vorname'].' '.$_SESSION['nachname'];
|
||||
echo ' ('.$_SESSION['gebdatum'].') ID: '.$_SESSION['prestudent_id'];
|
||||
echo ' <INPUT type="submit" value="Logout" name="logout" />';
|
||||
echo '</form>';
|
||||
echo '<br><br>';
|
||||
|
||||
$prestudent = new prestudent($db_conn, $prestudent_id);
|
||||
$stg_obj = new studiengang($db_conn, $prestudent->studiengang_kz);
|
||||
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($pruefling->getPruefling($prestudent_id))
|
||||
{
|
||||
|
||||
echo '<FORM METHOD="POST">';
|
||||
echo '<input type="hidden" name="pruefling_id" value="'.$pruefling->pruefling_id.'">';
|
||||
echo '<table>';
|
||||
echo '<tr><td>Semester:</td><td><input type="text" name="semester" size="1" maxlength="1" value="'.htmlentities($pruefling->semester).'"></td></tr>';
|
||||
echo '<tr><td>ID Nachweis:</td><td><INPUT type="text" maxsize="50" name="idnachweis" value="'.htmlentities($pruefling->idnachweis).'"></td></tr>';
|
||||
echo '<tr><td></td><td><input type="submit" name="save" value="OK"></td>';
|
||||
echo '</table>';
|
||||
echo '</FORM><br><br>';
|
||||
|
||||
//Wenn die Sprachwahl fuer diesen Studiengang aktiviert ist, dann die Sprachen anzeigen
|
||||
if($stg_obj->testtool_sprachwahl)
|
||||
{
|
||||
//Liste der Sprachen
|
||||
$qry = "SELECT distinct sprache
|
||||
FROM
|
||||
testtool.tbl_pruefling
|
||||
JOIN testtool.tbl_ablauf USING(studiengang_kz)
|
||||
JOIN testtool.tbl_frage USING(gebiet_id)
|
||||
JOIN testtool.tbl_frage_sprache USING(frage_id)
|
||||
WHERE
|
||||
tbl_pruefling.pruefling_id='".addslashes($pruefling->pruefling_id)."'
|
||||
ORDER BY sprache DESC";
|
||||
echo 'Sprache:';
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
if($_SESSION['sprache']==$row->sprache)
|
||||
$selected='style="border:1px solid black;"';
|
||||
else
|
||||
$selected='';
|
||||
echo " <a href='".$_SERVER['PHP_SELF']."?type=sprachechange&sprache=$row->sprache' class='Item' $selected><img src='bild.php?src=flag&sprache=$row->sprache' alt='$row->sprache' title='$row->sprache'/></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($pruefling->pruefling_id!='')
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
echo '<script language="Javascript">parent.menu.location.reload()</script>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Kein Pueflingseintrag vorhanden';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<form method="post">
|
||||
<SELECT name="prestudent">';
|
||||
echo '<OPTION value="13478">Dummy Dieter</OPTION>\n';
|
||||
foreach($ps->result as $prestd)
|
||||
echo '<OPTION value="'.$prestd->prestudent_id.'">'.$prestd->nachname.' '.$prestd->vorname."</OPTION>\n";
|
||||
echo '</SELECT>';
|
||||
echo ' Geburtsdatum: ';
|
||||
//<INPUT type="text" maxlength="10" size="10" name="gebdatum" />(YYYY-MM-TT)';
|
||||
echo ' <SELECT name="tag">';
|
||||
echo '<OPTION value="">Tag</OPTION>';
|
||||
for($i=1;$i<=31;$i++)
|
||||
echo '<OPTION value="'.($i<10?'0':'').$i.'">'.$i.'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <SELECT name="monat">';
|
||||
echo '<OPTION value="">Monat</OPTION>';
|
||||
for($i=1;$i<=12;$i++)
|
||||
echo '<OPTION value="'.($i<10?'0':'').$i.'">'.date('F',mktime(0,0,0,$i,1,date('Y'))).'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <SELECT name="jahr">';
|
||||
echo '<OPTION value="">Jahr</OPTION>';
|
||||
for($i=date('Y');$i>date('Y')-99;$i--)
|
||||
echo '<OPTION value="'.$i.'">'.$i.'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <INPUT type="submit" value="Login" />';
|
||||
echo '</form>';
|
||||
|
||||
echo '<br /><br /><br />
|
||||
<center>
|
||||
<span style="font-size: 1.2em; font-style: italic;">
|
||||
Herzlich Willkommen zum Reihungstest der Fachhochschule Technikum-Wien<br /><br />
|
||||
Bitte warten Sie mit dem Login auf die Anweisung der Aufsichtsperson<br /><br />
|
||||
Wir wünschen Ihnen einen erfolgreichen Start ins Studium
|
||||
</span>
|
||||
</center>';
|
||||
}
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
require_once('../../include/pruefling.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
|
||||
session_start();
|
||||
$reload=false;
|
||||
$reload_parent=false;
|
||||
|
||||
if (isset($_GET['logout']))
|
||||
{
|
||||
if(isset($_SESSION['prestudent_id']))
|
||||
{
|
||||
$reload = true;
|
||||
session_destroy();
|
||||
}
|
||||
}
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
|
||||
if(isset($_POST['tag']) && isset($_POST['monat']) && isset($_POST['jahr']))
|
||||
{
|
||||
if($_POST['tag']!='' && $_POST['monat']!='' && $_POST['jahr']!='')
|
||||
$gebdatum = $_POST['jahr'].'-'.$_POST['monat'].'-'.$_POST['tag'];
|
||||
else
|
||||
$gebdatum='';
|
||||
}
|
||||
|
||||
if (isset($_POST['prestudent']) && isset($gebdatum))
|
||||
{
|
||||
$ps=new prestudent($db_conn,$_POST['prestudent']);
|
||||
if ($gebdatum==$ps->gebdatum)
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($pruefling->getPruefling($ps->prestudent_id))
|
||||
{
|
||||
$studiengang = $pruefling->studiengang_kz;
|
||||
$semester = $pruefling->semester;
|
||||
}
|
||||
else
|
||||
{
|
||||
$studiengang = $ps->studiengang_kz;
|
||||
$ps->getLastStatus($ps->prestudent_id);
|
||||
$semester = $ps->ausbildungssemester;
|
||||
}
|
||||
if($semester=='')
|
||||
$semester=1;
|
||||
|
||||
$_SESSION['prestudent_id']=$_POST['prestudent'];
|
||||
$_SESSION['studiengang_kz']=$studiengang;
|
||||
$_SESSION['nachname']=$ps->nachname;
|
||||
$_SESSION['vorname']=$ps->vorname;
|
||||
$_SESSION['gebdatum']=$ps->gebdatum;
|
||||
$stg_obj = new studiengang($db_conn, $studiengang);
|
||||
$_SESSION['sprache']=$stg_obj->sprache;
|
||||
|
||||
$_SESSION['semester']=$semester;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Ihr Geburtsdatum stimmt nicht mit unseren Daten überein</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_SESSION['prestudent_id']))
|
||||
$prestudent_id=$_SESSION['prestudent_id'];
|
||||
else
|
||||
{
|
||||
//$prestudent_id=null;
|
||||
$ps=new prestudent($db_conn);
|
||||
$datum=date('Y-m-d');
|
||||
$ps->getPrestudentRT($datum,true);
|
||||
if ($ps->num_rows==0)
|
||||
$ps->getPrestudentRT($datum);
|
||||
}
|
||||
|
||||
if(isset($_GET['type']) && $_GET['type']=='sprachechange' && isset($_GET['sprache']))
|
||||
{
|
||||
$_SESSION['sprache']=$_GET['sprache'];
|
||||
}
|
||||
|
||||
if(isset($_SESSION['prestudent_id']) && !isset($_SESSION['pruefling_id']))
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
|
||||
if(!$pruefling->getPruefling($_SESSION['prestudent_id']))
|
||||
{
|
||||
$pruefling->new = true;
|
||||
|
||||
$pruefling->studiengang_kz = $_SESSION['studiengang_kz'];
|
||||
$pruefling->semester = $_SESSION['semester'];
|
||||
|
||||
$pruefling->idnachweis = '';
|
||||
$pruefling->registriert = date('Y-m-d H:i:s');
|
||||
$pruefling->prestudent_id = $_SESSION['prestudent_id'];
|
||||
if($pruefling->save())
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
$reload_parent=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['save']) && isset($_SESSION['prestudent_id']))
|
||||
{
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($_POST['pruefling_id']!='')
|
||||
if(!$pruefling->load($_POST['pruefling_id']))
|
||||
die('Pruefling wurde nicht gefunden');
|
||||
else
|
||||
$pruefling->new=false;
|
||||
else
|
||||
$pruefling->new=true;
|
||||
|
||||
$pruefling->studiengang_kz = $_SESSION['studiengang_kz'];
|
||||
$pruefling->idnachweis = $_POST['idnachweis'];
|
||||
$pruefling->registriert = date('Y-m-d H:i:s');
|
||||
$pruefling->prestudent_id = $_SESSION['prestudent_id'];
|
||||
$pruefling->semester = $_POST['semester'];
|
||||
if($pruefling->save())
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
$_SESSION['semester']=$pruefling->semester;
|
||||
$reload_parent=true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<?php
|
||||
if($reload_parent)
|
||||
echo '<script language="Javascript">parent.menu.location.reload()</script>';
|
||||
if($reload)
|
||||
echo "<script language=\"Javascript\">parent.location.reload();</script>";
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Login</h1>
|
||||
<?php
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
echo '<form method="GET">';
|
||||
echo '<br>Sie sind angemeldet als '.$_SESSION['vorname'].' '.$_SESSION['nachname'];
|
||||
echo ' ('.$_SESSION['gebdatum'].') ID: '.$_SESSION['prestudent_id'];
|
||||
echo ' <INPUT type="submit" value="Logout" name="logout" />';
|
||||
echo '</form>';
|
||||
echo '<br><br>';
|
||||
|
||||
$prestudent = new prestudent($db_conn, $prestudent_id);
|
||||
$stg_obj = new studiengang($db_conn, $prestudent->studiengang_kz);
|
||||
|
||||
$pruefling = new pruefling($db_conn);
|
||||
if($pruefling->getPruefling($prestudent_id))
|
||||
{
|
||||
|
||||
echo '<FORM METHOD="POST">';
|
||||
echo '<input type="hidden" name="pruefling_id" value="'.$pruefling->pruefling_id.'">';
|
||||
echo '<table>';
|
||||
echo '<tr><td>Semester:</td><td><input type="text" name="semester" size="1" maxlength="1" value="'.htmlentities($pruefling->semester).'"></td></tr>';
|
||||
echo '<tr><td>ID Nachweis:</td><td><INPUT type="text" maxsize="50" name="idnachweis" value="'.htmlentities($pruefling->idnachweis).'"></td></tr>';
|
||||
echo '<tr><td></td><td><input type="submit" name="save" value="OK"></td>';
|
||||
echo '</table>';
|
||||
echo '</FORM><br><br>';
|
||||
|
||||
//Wenn die Sprachwahl fuer diesen Studiengang aktiviert ist, dann die Sprachen anzeigen
|
||||
if($stg_obj->testtool_sprachwahl)
|
||||
{
|
||||
//Liste der Sprachen
|
||||
$qry = "SELECT distinct sprache
|
||||
FROM
|
||||
testtool.tbl_pruefling
|
||||
JOIN testtool.tbl_ablauf USING(studiengang_kz)
|
||||
JOIN testtool.tbl_frage USING(gebiet_id)
|
||||
JOIN testtool.tbl_frage_sprache USING(frage_id)
|
||||
WHERE
|
||||
tbl_pruefling.pruefling_id='".addslashes($pruefling->pruefling_id)."'
|
||||
ORDER BY sprache DESC";
|
||||
echo 'Sprache:';
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
if($_SESSION['sprache']==$row->sprache)
|
||||
$selected='style="border:1px solid black;"';
|
||||
else
|
||||
$selected='';
|
||||
echo " <a href='".$_SERVER['PHP_SELF']."?type=sprachechange&sprache=$row->sprache' class='Item' $selected><img src='bild.php?src=flag&sprache=$row->sprache' alt='$row->sprache' title='$row->sprache'/></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($pruefling->pruefling_id!='')
|
||||
{
|
||||
$_SESSION['pruefling_id']=$pruefling->pruefling_id;
|
||||
echo '<script language="Javascript">parent.menu.location.reload()</script>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Kein Pueflingseintrag vorhanden';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<form method="post">
|
||||
<SELECT name="prestudent">';
|
||||
echo '<OPTION value="13478">Dummy Dieter</OPTION>\n';
|
||||
foreach($ps->result as $prestd)
|
||||
echo '<OPTION value="'.$prestd->prestudent_id.'">'.$prestd->nachname.' '.$prestd->vorname."</OPTION>\n";
|
||||
echo '</SELECT>';
|
||||
echo ' Geburtsdatum: ';
|
||||
//<INPUT type="text" maxlength="10" size="10" name="gebdatum" />(YYYY-MM-TT)';
|
||||
echo ' <SELECT name="tag">';
|
||||
echo '<OPTION value="">Tag</OPTION>';
|
||||
for($i=1;$i<=31;$i++)
|
||||
echo '<OPTION value="'.($i<10?'0':'').$i.'">'.$i.'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <SELECT name="monat">';
|
||||
echo '<OPTION value="">Monat</OPTION>';
|
||||
for($i=1;$i<=12;$i++)
|
||||
echo '<OPTION value="'.($i<10?'0':'').$i.'">'.date('F',mktime(0,0,0,$i,1,date('Y'))).'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <SELECT name="jahr">';
|
||||
echo '<OPTION value="">Jahr</OPTION>';
|
||||
for($i=date('Y');$i>date('Y')-99;$i--)
|
||||
echo '<OPTION value="'.$i.'">'.$i.'</OPTION>';
|
||||
echo '</SELECT>';
|
||||
echo ' <INPUT type="submit" value="Login" />';
|
||||
echo '</form>';
|
||||
|
||||
echo '<br /><br /><br />
|
||||
<center>
|
||||
<span style="font-size: 1.2em; font-style: italic;">
|
||||
Herzlich Willkommen zum Reihungstest der Fachhochschule Technikum-Wien<br /><br />
|
||||
Bitte warten Sie mit dem Login auf die Anweisung der Aufsichtsperson<br /><br />
|
||||
Wir wünschen Ihnen einen erfolgreichen Start ins Studium
|
||||
</span>
|
||||
</center>';
|
||||
}
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+97
-97
@@ -1,97 +1,97 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/gebiet.class.php');
|
||||
|
||||
session_start();
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
if (isset($_SESSION['pruefling_id']))
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="MenuItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Home
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '<tr><td nowrap><img src="../../skin/images/menu_item.gif" width="7" height="9"> Gebiet</td></tr>';
|
||||
echo '<tr><td nowrap>';
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Gebiet" style="display: visible;">';
|
||||
|
||||
$qry = "SELECT * FROM testtool.vw_ablauf WHERE studiengang_kz='".addslashes($_SESSION['studiengang_kz'])."' AND semester='".addslashes($_SESSION['semester'])."' ORDER BY reihung";
|
||||
//echo $qry;
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
$gebiet = new gebiet($db_conn);
|
||||
if($gebiet->check_gebiet($row->gebiet_id))
|
||||
{
|
||||
echo '<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a class="Item" href="frage.php?gebiet_id='.$row->gebiet_id.'" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.'</a>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<span class="error"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.' (invalid)</span>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="HyperItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Login
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/gebiet.class.php');
|
||||
|
||||
session_start();
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
if (isset($_SESSION['pruefling_id']))
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="MenuItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Home
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '<tr><td nowrap><img src="../../skin/images/menu_item.gif" width="7" height="9"> Gebiet</td></tr>';
|
||||
echo '<tr><td nowrap>';
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Gebiet" style="display: visible;">';
|
||||
|
||||
$qry = "SELECT * FROM testtool.vw_ablauf WHERE studiengang_kz='".addslashes($_SESSION['studiengang_kz'])."' AND semester='".addslashes($_SESSION['semester'])."' ORDER BY reihung";
|
||||
//echo $qry;
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
$gebiet = new gebiet($db_conn);
|
||||
if($gebiet->check_gebiet($row->gebiet_id))
|
||||
{
|
||||
echo '<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a class="Item" href="frage.php?gebiet_id='.$row->gebiet_id.'" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.'</a>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<span class="error"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.' (invalid)</span>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="HyperItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Login
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+33
-33
@@ -1,37 +1,37 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="170" nowrap>
|
||||
<a href="index.html" target="_top">
|
||||
<img src="../../skin/images/TWLogo_klein.jpg">
|
||||
</a>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="170" nowrap>
|
||||
<a href="index.html" target="_top">
|
||||
<img src="../../skin/images/TWLogo_klein.jpg">
|
||||
</a>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="10" valign="bottom">
|
||||
<img src="../../skin/images/header_line.gif" width="100%" height="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">TestTool</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">TestTool</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user