- Diverse RegisterGlobals Fixes

- Incomming/Outgoing Modul Erstversion
This commit is contained in:
Andreas Österreicher
2007-06-04 15:57:45 +00:00
parent 1e7ea2b4f0
commit 31dff2c18a
14 changed files with 594 additions and 61 deletions
+3 -5
View File
@@ -26,19 +26,17 @@ include('../include/functions.inc.php');
include('../include/fas/benutzer.class.php');
// Testumgebung
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$user=get_uid();
$uid=$REMOTE_USER;
$error_msg='';
//Variablen laden
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
$error_msg.=loadVariables($conn,$REMOTE_USER);
$error_msg.=loadVariables($conn,$user);
$benutzer = new benutzer($conn);
if(!$benutzer->loadVariables($uid))
if(!$benutzer->loadVariables($user))
$error_msg = $benutzer->errormsg;
/*echo '<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>';*/
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/tempus.css" type="text/css"?>';
+31 -20
View File
@@ -23,6 +23,13 @@ require_once('../../vilesci/config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/studiengang.class.php');
echo '
<html>
<head>
<title>Koordinatorstunden</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">';
// Datenbank Verbindung
if (!$conn = pg_pconnect(CONN_STRING))
die('Es konnte keine Verbindung zum Server aufgebaut werden!');
@@ -30,24 +37,28 @@ if (!$conn = pg_pconnect(CONN_STRING))
$user = get_uid();
loadVariables($conn, $user);
if(!isset($_GET['fachbereich_kurzbz']))
die('Falsche Parameteruebergabe');
else
if(isset($_GET['fachbereich_kurzbz']))
$fachbereich_kurzbz = $_GET['fachbereich_kurzbz'];
else
die('Falsche Parameteruebergabe');
echo '<html><body>';
echo '<b>Fachbereich: '.$fachbereich_kurzbz.'</b><br><br>';
echo '<h1>Koordinatorstunden - Fachbereich '.$fachbereich_kurzbz.'</h1>';
$stg_arr = array();
$data = array();
$name = array();
//alle Studiengaenge holen
$studiengang = new studiengang($conn);
$studiengang->getAll();
$stg_arr = array();
foreach ($studiengang->result as $row)
$stg_arr[$row->studiengang_kz]=$row->kuerzel;
//Alle Fachbereichsleiter des uebergebenen Studienganges holen und
//Die Anzahl der Stunden die dieser in den einzelnen Studiengaengen haelt ermitteln
$qry = "SET CLIENT_ENCODING TO 'UNICODE';SELECT
$qry = "SET CLIENT_ENCODING TO 'UNICODE';
SELECT
distinct on(tbl_lehreinheit.lehreinheit_id)
tbl_benutzerfunktion.uid,
tbl_lehreinheitmitarbeiter.semesterstunden,
@@ -62,20 +73,17 @@ $qry = "SET CLIENT_ENCODING TO 'UNICODE';SELECT
public.tbl_benutzer,
public.tbl_person
WHERE
tbl_benutzerfunktion.uid=tbl_lehreinheitmitarbeiter.mitarbeiter_uid AND
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND
tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_lehreinheit.lehrveranstaltung_id AND
tbl_benutzerfunktion.fachbereich_kurzbz='".addslashes($fachbereich_kurzbz)."' AND
tbl_benutzerfunktion.funktion_kurzbz='fbk' AND
tbl_benutzerfunktion.uid=tbl_benutzer.uid AND
tbl_benutzer.person_id=tbl_person.person_id AND
tbl_lehreinheit.studiensemester_kurzbz='$semester_aktuell'
tbl_benutzerfunktion.uid=tbl_lehreinheitmitarbeiter.mitarbeiter_uid AND
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND
tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_lehreinheit.lehrveranstaltung_id AND
tbl_benutzerfunktion.fachbereich_kurzbz='".addslashes($fachbereich_kurzbz)."' AND
tbl_benutzerfunktion.funktion_kurzbz='fbk' AND
tbl_benutzerfunktion.uid=tbl_benutzer.uid AND
tbl_benutzer.person_id=tbl_person.person_id AND
tbl_lehreinheit.studiensemester_kurzbz='$semester_aktuell'
ORDER BY tbl_lehreinheit.lehreinheit_id, nachname, vorname
";
$data = array();
$name = array();
if($result = pg_query($conn, $qry))
{
while($row = pg_fetch_object($result))
@@ -97,13 +105,16 @@ if($result = pg_query($conn, $qry))
}
}
echo '<table border="1"><tr><th>Name</th><th>Studiengang</th><th>Stunden</th></tr>';
echo '<table class="liste"><tr class="liste"><th>Name</th><th>Studiengang</th><th>Stunden</th></tr>';
$i=0;
foreach ($name as $uid=>$row)
{
foreach ($data[$uid] as $stg=>$row2)
{
echo '<tr><td>'.$name[$uid]['vorname'].' '.$name[$uid]['nachname'].'</td><td>'.$stg_arr[$stg].'</td><td>'.$row2.'</td></tr>';
echo '<tr class="liste'.($i%2).'"><td>'.$name[$uid]['vorname'].' '.$name[$uid]['nachname'].
'</td><td>'.$stg_arr[$stg].'</td><td>'.$row2.'</td></tr>';
$i++;
}
}
echo '</table>';
+3
View File
@@ -33,6 +33,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentdetailoverlay.xul.p
echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentzeugnisoverlay.xul.php"?>';
echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentkontooverlay.xul.php"?>';
echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentbetriebsmitteloverlay.xul.php"?>';
echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentiooverlay.xul.php"?>';
?>
<!DOCTYPE overlay >
@@ -180,6 +181,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentbetriebsmitteloverl
<tab id="student-tab-konto" label="Konto" />
<tab id="student-tab-zeugnis" label="Zeugnis" />
<tab id="student-tab-betriebsmittel" label="Betriebsmittel" />
<tab id="student-tab-io" label="Incomming/Outgoing" />
</tabs>
<tabpanels id="student-tabpanels-main" flex="1">
<vbox id="student-detail" style="margin-top:10px;" />
@@ -187,6 +189,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/student/studentbetriebsmitteloverl
<vbox id="student-konto" style="margin-top:10px;" />
<vbox id="student-zeugnis" style="margin-top:10px;" />
<vbox id="student-betriebsmittel" style="margin-top:10px;" />
<vbox id="student-io" style="margin-top:10px;" />
</tabpanels>
</tabbox>
</vbox>
+205
View File
@@ -0,0 +1,205 @@
<?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 <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
header("Content-type: application/vnd.mozilla.xul+xml");
require_once('../../vilesci/config.inc.php');
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
?>
<overlay id="ioDetailOverlay"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<!-- Incomming/Outgoing DETAILS -->
<vbox id="student-io" style="margin:0px;" flex="1">
<popupset>
<popup id="student-io-tree-popup">
<menuitem label="Entfernen" oncommand="StudentIODelete();" id="student-io-tree-popup-delete" hidden="false"/>
</popup>
</popupset>
<hbox flex="1">
<grid id="student-io-grid-detail" style="overflow:auto;margin:4px;" flex="1">
<columns >
<column flex="1"/>
<column flex="1"/>
</columns>
<rows>
<!--
<row>
<hbox>
<spacer flex="1" />
<button id="student-io-button-filter" value="alle" oncommand="StudentIOFilter()" label="offene" disabled="true"/>
</hbox>
<spacer />
</row>
-->
<row>
<tree id="student-io-tree" seltype="single" hidecolumnpicker="false" flex="1"
datasources="rdf:null" ref="http://www.technikum-wien.at/io/liste"
style="margin-left:10px;margin-right:10px;margin-bottom:5px;margin-top: 10px;" height="100px" enableColumnDrag="true"
onselect="StudentIOAuswahl()"
context="student-io-tree-popup"
>
<treecols>
<treecol id="student-io-tree-mobilitaetsprogramm_kurzbz" label="Kurzbz" flex="2" hidden="false" primary="true"
class="sortDirectionIndicator"
sortActive="true"
sortDirection="ascending"
sort="rdf:http://www.technikum-wien.at/io/rdf#mobilitaetsprogramm_kurzbz"/>
<splitter class="tree-splitter"/>
<treecol id="student-io-tree-nation_code" label="Gastnation" flex="5" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/io/rdf#nation_code"/>
<splitter class="tree-splitter"/>
<treecol id="student-io-tree-von" label="Von" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/io/rdf#von" />
<splitter class="tree-splitter"/>
<treecol id="student-io-tree-bis" label="Bis" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/io/rdf#bis" />
<splitter class="tree-splitter"/>
<treecol id="student-io-tree-zweck_kurzbz" label="Zweck" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/io/rdf#zweck_bezeichnung" />
<splitter class="tree-splitter"/>
<treecol id="student-io-tree-bisio_id" label="bisio_id" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/io/rdf#bisio_id" />
<splitter class="tree-splitter"/>
</treecols>
<template>
<treechildren flex="1" >
<treeitem uri="rdf:*">
<treerow>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#mobilitaetsprogramm_kurzbz"/>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#nation_code"/>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#von"/>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#bis"/>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#zweck_bezeichnung"/>
<treecell label="rdf:http://www.technikum-wien.at/io/rdf#bisio_id"/>
</treerow>
</treeitem>
</treechildren>
</template>
</tree>
<vbox>
<hbox>
<button id="student-io-button-neu" label="Neu" oncommand="StudentIONeu();" disabled="true"/>
<button id="student-io-button-loeschen" label="Loeschen" oncommand="StudentIODelete();" disabled="true"/>
</hbox>
<vbox hidden="true">
<label value="Neu"/>
<checkbox id="student-io-detail-checkbox-new" checked="true" />
<label value="Uid"/>
<textbox id="student-io-detail-textbox-uid" disabled="true"/>
<label value="BisIO ID"/>
<textbox id="student-io-detail-textbox-bisio_id" disabled="true"/>
</vbox>
<groupbox id="student-io-groupbox" flex="1">
<caption label="Details"/>
<grid id="student-io-grid-detail" style="overflow:auto;margin:4px;" flex="1">
<columns >
<column flex="1"/>
<column flex="5"/>
</columns>
<rows>
<row>
<label value="Von" control="student-io-textbox-von"/>
<hbox>
<textbox id="student-io-textbox-von" disabled="true" maxlength="9" size="9"/>
<spacer flex="1" />
</hbox>
</row>
<row>
<label value="Bis" control="student-io-textbox-bis"/>
<hbox>
<textbox id="student-io-textbox-bis" disabled="true" maxlength="10" size="10"/>
<spacer flex="1" />
</hbox>
</row>
<row>
<label value="Mobilitaetsprogramm" control="student-io-menulist-mobilitaetsprogramm"/>
<menulist id="student-io-menulist-mobilitaetsprogramm" disabled="true"
datasources="<?php echo APP_ROOT ?>rdf/mobilitaetsprogramm.rdf.php" flex="1"
ref="http://www.technikum-wien.at/mobilitaetsprogramm/liste" >
<template>
<menupopup>
<menuitem value="rdf:http://www.technikum-wien.at/mobilitaetsprogramm/rdf#mobilitaetsprogramm_code"
label="rdf:http://www.technikum-wien.at/mobilitaetsprogramm/rdf#mobilitaetsprogramm_kurzbz"
uri="rdf:*"/>
</menupopup>
</template>
</menulist>
</row>
<row>
<label value="Gastnation" control="student-io-menulist-nation"/>
<menulist id="student-io-menulist-nation" disabled="true"
datasources="<?php echo APP_ROOT ?>rdf/nation.rdf.php" flex="1"
ref="http://www.technikum-wien.at/nation/liste" >
<template>
<menupopup>
<menuitem value="rdf:http://www.technikum-wien.at/nation/rdf#nation_code"
label="rdf:http://www.technikum-wien.at/nation/rdf#kurztext"
uri="rdf:*"/>
</menupopup>
</template>
</menulist>
</row>
<row>
<label value="Zweck" control="student-io-menulist-zweck"/>
<menulist id="student-io-menulist-zweck" disabled="true"
datasources="<?php echo APP_ROOT ?>rdf/zweck.rdf.php" flex="1"
ref="http://www.technikum-wien.at/zweck/liste" >
<template>
<menupopup>
<menuitem value="rdf:http://www.technikum-wien.at/zweck/rdf#zweck_code"
label="rdf:http://www.technikum-wien.at/zweck/rdf#kurzbz"
uri="rdf:*"/>
</menupopup>
</template>
</menulist>
</row>
</rows>
</grid>
<hbox>
<spacer flex="1" />
<button id="student-io-button-speichern" oncommand="StudentIODetailSpeichern()" label="Speichern" disabled="true"/>
</hbox>
</groupbox>
</vbox>
</row>
</rows>
</grid>
</hbox>
<spacer flex="1" />
</vbox>
</overlay>
+194
View File
@@ -1743,4 +1743,198 @@ function StudentPrintInskriptionsbestaetigung()
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=student.rdf.php&xsl=Inskription&uid='+paramList,'Inskriptionsbestaetigung', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
else
alert('Bitte einen Studenten auswaehlen');
}
// **************** Incomming/Outgoing ******************
// ****
// * Wenn ein IO Eintrag Ausgewaehlt wird, dann werden
// * die Details geladen und angezeigt
// ****
function StudentIOAuswahl()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var tree = document.getElementById('student-io-tree');
if (tree.currentIndex==-1) return;
StudentIODetailDisableFields(false);
document.getElementById('student-io-checkbox-neu').checked=false;
//Ausgewaehlte Nr holen
var col = tree.columns ? tree.columns["student-io-tree-bisio_id"] : "student-io-tree-bisio_id";
var bisio_id=tree.view.getCellText(tree.currentIndex,col);
//Daten holen
var url = '<?php echo APP_ROOT ?>rdf/bisio.rdf.php?bisio_id='+bisio_id+'&'+gettimestamp();
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].
getService(Components.interfaces.nsIRDFService);
var dsource = rdfService.GetDataSourceBlocking(url);
var subject = rdfService.GetResource("http://www.technikum-wien.at/bisio/" + bisio_id);
var predicateNS = "http://www.technikum-wien.at/bisio/rdf";
//Daten holen
mobilitaetsprogramm_code = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#mobilitaetsprogramm_code" ));
nation_code = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#nation_code" ));
von = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#von" ));
bis = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#bis" ));
zweck_code = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#zweck_code" ));
student_uid = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#student_uid" ));
document.getElementById('student-io-menulist-mobilitaetsprogramm').value=mobilitaetsprogramm_code;
document.getElementById('student-io-menulist-nation_code').value=nation_code;
document.getElementById('student-io-textbox-von').value=von;
document.getElementById('student-io-textbox-bis').value=bis;
document.getElementById('student-io-menulist-zweck').value=zweck_code;
document.getElementById('student-io-textbox-uid').value=uid;
}
// ****
// * Aktiviert / Deaktiviert die IO Felder
// ****
function StudentIODisableFields(val)
{
document.getElementById('student-io-button-neu').disabled=val;
document.getElementById('student-io-button-loeschen').disabled=val;
StudentIODetailDisableFields(true);
}
// ****
// * Aktiviert / Deaktiviert die IO-Detail Felder
// ****
function StudentIODetailDisableFields(val)
{
document.getElementById('student-io-textbox-von').disabled=val;
document.getElementById('student-io-textbox-bis').disabled=val;
document.getElementById('student-io-menulist-mobilitaetsprogramm').disabled=val;
document.getElementById('student-io-menulist-nation_code').disabled=val;
document.getElementById('student-io-menulist-zweck_code').disabled=val;
document.getElementById('student-io-button-speichern').disabled=val;
}
// *****
// * Resettet die Werte in den Detailfeldern des Incomming/Outgoing Moduls
// *****
function StudentIOResetFileds()
{
document.getElementByID('student-io-textbox-von').value='';
document.getElementById('student-io-textbox-bis').value='';
document.getElementById('student-io-menulist-mobilitaetsprogramm').value='6';
document.getElementById('student-io-menulist-zweck').value='1';
document.getElementById('student-io-menulist-nation').value='A';
}
// ****
// * Speichert den IO Datensatz
// ****
function StudentIODetailSpeichern()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
von = document.getElementById('student-io-textbox-von').value;
bis = document.getElementById('student-io-textbox-bis').value;
mobilitaetsprogramm = document.getElementById('student-io-menulist-mobilitaetsprogramm').value;
nation_code = document.getElementById('student-io-menulist-nation').value;
zweck_code = document.getElementById('student-io-menulist-zweck').value;
uid = document.getElementById('student-io-textbox-uid').value;
neu = document.getElementById('student-io-checkbox-neu').checked;
bisio_id = document.getElementById('student-io-textbox-bisio_id').value;
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
var req = new phpRequest(url,'','');
req.add('type', 'saveio');
if(neu)
req.add('bisio_id', bisio_id);
req.add('neu', neu);
req.add('von', von);
req.add('bis', bis);
req.add('mobilitaetsprogramm', mobilitaetsprogramm);
req.add('nation_code', nation_code);
req.add('zweck_code', zweck_code);
req.add('uid', uid);
var response = req.executePOST();
var val = new ParseReturnValue(response)
if (!val.dbdml_return)
{
if(val.dbdml_errormsg=='')
alert(response)
else
alert(val.dbdml_errormsg)
}
else
{
StudentIOSelectID=bisio_id;
StudentIOTreeDatasource.Refresh(false); //non blocking
SetStatusBarText('Daten wurden gespeichert');
}
}
// ****
// * Loescht eines IO Eintrages
// ****
function StudentIODelete()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var tree = document.getElementById('student-io-tree');
if (tree.currentIndex==-1) return;
StudentIODetailDisableFields(false);
//Ausgewaehlte Nr holen
var col = tree.columns ? tree.columns["student-io-tree-bisio_id"] : "student-io-tree-bisio_id";
var bisio_id=tree.view.getCellText(tree.currentIndex,col);
if(confirm('Diesen Eintrag wirklich loeschen?'))
{
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
var req = new phpRequest(url,'','');
req.add('type', 'deleteio');
req.add('bisio_id', bisio_id);
var response = req.executePOST();
var val = new ParseReturnValue(response)
if (!val.dbdml_return)
{
if(val.dbdml_errormsg=='')
alert(response)
else
alert(val.dbdml_errormsg)
}
else
{
StudentIOSelectID=bisio_id;
StudentIOTreeDatasource.Refresh(false); //non blocking
SetStatusBarText('Daten wurden geloescht');
}
}
}
// ****
// * Aktiviert die Felder zum Anlegen eines neuen Eintrages
// ****
function StudentIONeu()
{
//Felder Resetten und Aktivieren
StudentIOResetFileds();
StudentIODetailDisableFields(false);
//UID ins Textfeld schreiben
document.getElementById('student-io-textbox-uid').value=document.getElementById('student-detail-textbox-uid').value;
document.getElementById('student-io-checkbox-neu').checked=true;
}
+1 -4
View File
@@ -20,10 +20,7 @@ require_once('../include/functions.inc.php');
require_once('../include/lehreinheit.class.php');
require_once('../include/benutzerberechtigung.class.php');
// Testumgebung
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
$error_msg='';
if (!$conn = pg_pconnect(CONN_STRING))
+4 -6
View File
@@ -15,9 +15,9 @@ header("Content-type: application/vnd.mozilla.xul+xml");
// xml
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
include('../cis/config.inc.php');
include('../include/functions.inc.php');
include('../include/lehrstunde.class.php');
require_once('../cis/config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/lehrstunde.class.php');
function checkID($needle)
{
@@ -40,9 +40,7 @@ if (isset($stundenplan_id0))
//print_r($idList);
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
if (isset($_GET['datum']))
$datum=$_GET['datum'];
+2 -4
View File
@@ -20,10 +20,8 @@ include_once('../include/functions.inc.php');
include_once('../include/lehrveranstaltung.class.php');
include_once('../include/berechtigung.class.php');
// Testumgebung
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
$error_msg='';
if (!$conn = @pg_pconnect(CONN_STRING))
+6 -7
View File
@@ -1,15 +1,14 @@
<?php
header("Content-type: application/vnd.mozilla.xul+xml");
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
include('../vilesci/config.inc.php');
include('../include/benutzerberechtigung.class.php');
include('../include/studiensemester.class.php');
require_once('../vilesci/config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/studiensemester.class.php');
$rdf_url='http://www.technikum-wien.at/lehrverbandsgruppe/';
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
if (!$conn = pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
@@ -34,7 +33,7 @@ $sql_query="SET search_path TO public;
LEFT OUTER JOIN tbl_gruppe ON (tbl_lehrverband.studiengang_kz=tbl_gruppe.studiengang_kz AND tbl_lehrverband.semester=tbl_gruppe.semester AND (tbl_lehrverband.verband=''))
WHERE tbl_lehrverband.aktiv $stg_kz_query
ORDER BY erhalter_kz,typ, kurzbz, semester,verband,gruppe, gruppe_kurzbz;";
//echo $sql_query;
if(!$result=pg_query($conn, $sql_query))
$error_msg.=pg_errormessage($conn);
else
+67
View File
@@ -0,0 +1,67 @@
<?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 <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
// header für no cache
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
// content type setzen
header("Content-type: application/xhtml+xml");
// xml
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
// DAO
require_once('../vilesci/config.inc.php');
// Datenbank Verbindung
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
$rdf_url='http://www.technikum-wien.at/mobilitaetsprogramm';
?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:MOB="<?php echo $rdf_url; ?>/rdf#"
>
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
<?php
$qry = "SELECT * FROM bis.tbl_mobilitaetsprogramm ORDER BY kurzbz";
if($result = pg_query($conn, $qry))
{
while($row = pg_fetch_object($result))
{
echo '
<RDF:li>
<RDF:Description id="'.$row->mobilitaetsprogramm_code.'" about="'.$rdf_url.'/'.$row->mobilitaetsprogramm_code.'" >
<MOB:mobilitaetsprogramm_code><![CDATA['.$row->mobilitaetsprogramm_code.']]></MOB:mobilitaetsprogramm_code>
<MOB:kurzbz><![CDATA['.$row->kurzbz.']]></MOB:kurzbz>
<MOB:beschreibung><![CDATA['.$row->beschreibung.']]></MOB:beschreibung>
</RDF:Description>
</RDF:li>';
}
}
?>
</RDF:Seq>
</RDF:RDF>
+4 -5
View File
@@ -1,14 +1,13 @@
<?php
header("Content-type: application/vnd.mozilla.xul+xml");
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
include('../vilesci/config.inc.php');
include('../include/berechtigung.class.php');
require_once('../vilesci/config.inc.php');
require_once('../include/berechtigung.class.php');
require_once('../include/functions.inc.php');
$rdf_url='http://www.tempus-student-verbaende.at/';
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
+4 -5
View File
@@ -1,14 +1,13 @@
<?php
header("Content-type: application/vnd.mozilla.xul+xml");
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
include('../vilesci/config.inc.php');
include('../include/berechtigung.class.php');
require_once('../vilesci/config.inc.php');
require_once('../include/berechtigung.class.php');
require_once('../include/functions.inc.php');
$rdf_url='http://www.technikum-wien.at/student-verband/';
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
if (!$conn = pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
+1 -5
View File
@@ -13,11 +13,7 @@ include('../include/functions.inc.php');
include('../include/lehrstunde.class.php');
include('../include/stundenplan.class.php');
// Testumgebung
if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
$uid=get_uid();
// Variablen uebernehmen
if (isset($_GET[aktion]))
+69
View File
@@ -0,0 +1,69 @@
<?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 <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
// header für no cache
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
// content type setzen
header("Content-type: application/xhtml+xml");
// xml
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
// DAO
require_once('../vilesci/config.inc.php');
// Datenbank Verbindung
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
$rdf_url='http://www.technikum-wien.at/zweck';
?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ZWECK="<?php echo $rdf_url; ?>/rdf#"
>
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
<?php
$qry = "SELECT * FROM bis.tbl_zweck ORDER BY kurzbz";
if($result = pg_query($conn, $qry))
{
while($row = pg_fetch_object($result))
{
?>
<RDF:li>
<RDF:Description id="<?php echo $row->zweck_code; ?>" about="<?php echo $rdf_url.'/'.$row->zweck_code; ?>" >
<ZWECK:zweck_code><![CDATA[<?php echo $row->zweck_code ?>]]></ZWECK:zweck_code>
<ZWECK:kurzbz><![CDATA[<?php echo $row->kurzbz ?>]]></ZWECK:kurzbz>
<ZWECK:bezeichnung><![CDATA[<?php echo $row->bezeichnung ?>]]></ZWECK:bezeichnung>
</RDF:Description>
</RDF:li>
<?php
}
}
?>
</RDF:Seq>
</RDF:RDF>