Veraltete Files entfernt

This commit is contained in:
Andreas Österreicher
2015-01-16 07:38:37 +00:00
parent bfc056842d
commit 6d55c148d1
102 changed files with 0 additions and 50022 deletions
-53
View File
@@ -1,53 +0,0 @@
<?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>.
*/
// ---------------- Kommunen Standart Include Dateien einbinden
echo "<html><body>";
$contentOUTPUT='';
//Bei Upload des Bildes
if(isset($_POST['submitbild']))
{
if(isset($_FILES['bild']['tmp_name']))
{
$filename = $_FILES['bild']['tmp_name'];
//File oeffnen
$fp = fopen($filename,'r');
//auslesen
$content = fread($fp, filesize($filename));
fclose($fp);
//in HEX-Werte umrechnen
$contentOUTPUT='';
$contentOUTPUT.="<p>Orig.Name :: ".$_FILES['bild']['name'] ." Type :: ".$_FILES['bild']['type']."</p>";
$contentOUTPUT.='<textarea cols="80" rows="10" wrap="soft">'.base64_encode($content).'</textarea>';
}
}
echo " <form method='POST' enctype='multipart/form-data' action='".$_SERVER['PHP_SELF']."'>
Bild: <input type='file' name='bild' />
<input type='submit' name='submitbild' value='Upload' />
</form>";
echo 'HexWert:<br />';
echo '<br />'.$contentOUTPUT;
?>
</body>
</html>
-10
View File
@@ -1,10 +0,0 @@
<html>
<head>
<META http-equiv="refresh" content="0;URL=index.php">
<title>Stundenplan</title>
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
</head>
<body>
Sie werden nicht weitergeleitet? <a class="Item" href="index.php">(Klick here)</a>
</body>
</html>
-491
View File
@@ -1,491 +0,0 @@
<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
// ---------------- Konstante
// ---------------- Datenbank - Schema der Kommune, Wettbewerbe
// Max. Wettbewerbe je Zeile am Starttemplate
if (!defined('constMaxWettbwerbeZeile')) define('constMaxWettbwerbeZeile',5 );
// Hoehe der Benutzer Foto
if (!defined('constBenutzerFotoHigh')) define('constBenutzerFotoHigh',60 );
// Pflichteingabefelder Defaultwert
if (!defined('constEingabeFehlt')) define('constEingabeFehlt','Eingabe !' );
// ------ Anzeige - Display Include HTML Datenerzeugen
// Auswahl Kommunen Template :: Anzeigenauswahl :: Definition mit constKommuneParmSetWork
if (!defined('constKommuneParmSetWork')) define('constKommuneParmSetWork','usersel');
// Auswahl Kommunen Template :: Anzeigenauswahl :: Definition mit constKommuneParmSetWork
if (!defined('constKommuneAnzeigeDEFAULT')) define('constKommuneAnzeigeDEFAULT','kommune_template_start');
// Anzeige Wettbewerb Team(s) in Pyramidenform
if (!defined('constKommuneAnzeigeWETTBEWERBTEAM')) define('constKommuneAnzeigeWETTBEWERBTEAM','kommune_template_pyramiden');
// Neuanlage Teamspieler zu einem Wettbewerb
if (!defined('constKommuneWartungUID')) define('constKommuneWartungUID','kommune_wartung_team' );
if (!defined('constKommuneWartungWettbewerbtyp')) define('constKommuneWartungWettbewerbtyp','kommune_wartung_wettbewerbtypen' );
if (!defined('constKommuneWartungWettbewerb')) define('constKommuneWartungWettbewerb','kommune_wartung_wettbewerb' );
// Neuanlage Teamspieler zu einem Wettbewerb
if (!defined('constKommuneEinladenTEAM')) define('constKommuneEinladenTEAM','kommune_einladen_team' );
// Bildausgabe lt.Datenbank
if (!defined('constKommuneDisplayIMAGE')) define('constKommuneDisplayIMAGE','kommune_hex_img' );
// Statistik - Bestenliste - Sonstiges
if (!defined('constKommuneSTATISTIK')) define('constKommuneSTATISTIK','kommune_template_statistik' );
// XML User Liste
if (!defined('constKommuneUserXML')) define('constKommuneUserXML','kommune_user_xml' );
// ---------------- CIS Include Dateien einbinden
require_once('../../../config/cis.config.inc.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/globals.inc.php');
// ---------------- Datenbank-Verbindung
# include_once('../../../include/postgre_sql.class.php');
include_once('../../../include/komune_wettbewerb.class.php');
include_once('../../../include/komune_wettbewerbteam.class.php');
include_once('../../../include/komune_wettbewerbeinladungen.class.php');
include_once('../../../include/person.class.php');
include_once('../../../include/benutzer.class.php');
include_once('../../../include/benutzerberechtigung.class.php');
include_once('../../../include/mail.class.php');
// Kommunen Allg.Funktionen
include_once('kommune_funktionen.inc.php');
// ---------------- Anzeige/Ausgabe Variable Initialisieren
// Initialisieren Anzeige-Variable
$showHTML='';
// Kommunen - Wettbewerb - Datenobjekt -----------------------------------------------------------------------------------------------------------
// Datenobjekt - Alle Daten je Parameter werden gesammelt fuer die neachste Funktionn
$oWettbewerb= new stdClass;
# $oWettbewerb->clientENCODE='UTF8';
$oWettbewerb->sqlSCHEMA='kommune';
// Parameter Applikation - Template Auswahl
$oWettbewerb->workSITE = (isset($_REQUEST[constKommuneParmSetWork]) ? $_REQUEST[constKommuneParmSetWork] : constKommuneAnzeigeDEFAULT);
$oWettbewerb->workSITE = (!empty($oWettbewerb->workSITE) ? trim($oWettbewerb->workSITE):constKommuneAnzeigeDEFAULT);
// AktiverAnwender-----------------------------------------------------------------------------------------------------------
$user=(isset($_REQUEST['user']) ? $_REQUEST['user'] :get_uid() );
# $user='pam';
# $user='oesi';
# $user='ruhan';
# $user='kindlm';
$oWettbewerb->user=$user;
if (!kommune_funk_benutzerperson($oWettbewerb->user,@$oWettbewerb))
die(kommune_funk_show_error($oWettbewerb));
$benutzerberechtigung = new benutzerberechtigung($user);
$benutzerberechtigung->getBerechtigungen($user,true);
// Nur Lektoren oder Mitarbeiter duerfen alle Termine sehen , Studenten nur Freigegebene Kategorien
if($benutzerberechtigung->fix || $benutzerberechtigung->lektor)
$oWettbewerb->wartungsberechtigt=true;
else
$oWettbewerb->wartungsberechtigt=false;
// Teams -------------------------------------------------------------------------------------------------------------------
// Parameter Team (zum Wettbewerb)
$oWettbewerb->team_kurzbz=(isset($_REQUEST['team_kurzbz']) ? $_REQUEST['team_kurzbz']:'');
$oWettbewerb->team_kurzbz=(isset($_REQUEST['team_forderer']) ? $_REQUEST['team_forderer']:$oWettbewerb->team_kurzbz);
$oWettbewerb->team_kurzbz=trim($oWettbewerb->team_kurzbz);
// Spieler/Team Wartung
$oWettbewerb->team_kurzbz_old=(isset($_REQUEST['team_kurzbz_old']) ? $_REQUEST['team_kurzbz_old']:'');;
$oWettbewerb->team_kurzbz_old=trim($oWettbewerb->team_kurzbz_old);
// Einladung an Spieler/Team
$oWettbewerb->team_kurzbz_einladung=(isset($_REQUEST['einladen_team_kurzbz']) ? $_REQUEST['einladen_team_kurzbz']:'');
$oWettbewerb->team_kurzbz_einladung=(isset($_REQUEST['team_gefordert']) ? $_REQUEST['team_gefordert']:$oWettbewerb->team_kurzbz_einladung);
$oWettbewerb->team_kurzbz_einladung=(isset($_REQUEST['team_kurzbz_einladen']) ? $_REQUEST['team_kurzbz_einladen']:$oWettbewerb->team_kurzbz_einladung);
$oWettbewerb->team_kurzbz_einladung=trim($oWettbewerb->team_kurzbz_einladung);
// -------------------------------------------------------------------------------------------------------------------------
// Wettbewerb ---------------------------------------------------------------------------------------------------------------
// Parameter Wettbewerb - Type
$oWettbewerb->wbtyp_kurzbz=(isset($_REQUEST['wbtyp_kurzbz']) ? $_REQUEST['wbtyp_kurzbz']:'');
$oWettbewerb->wbtyp_kurzbz=trim($oWettbewerb->wbtyp_kurzbz);
// Parameter Wettbewerb
$oWettbewerb->wettbewerb_kurzbz=(isset($_REQUEST['wettbewerb_kurzbz']) ? $_REQUEST['wettbewerb_kurzbz']:'');
$oWettbewerb->wettbewerb_kurzbz=trim($oWettbewerb->wettbewerb_kurzbz);
// -------------------------------------------------------------------------------------------------------------------------
$oWettbewerb->WettbewerbTyp=array(); // Alle Daten des Wettbewerb
$oWettbewerb->Wettbewerb=array(); // Alle Daten des Wettbewerb
$oWettbewerb->EigeneWettbewerbe=array(); // Eigene Wettbewerbe auf UID Basis
//kommune_funk_teams
$oWettbewerb->TeamGesamt=array(); // Alle Teams in diesem Wettbewerb (=wettbewerb_kurzbz), oder Alle wenn wettbewerb_kurzbz leer ist
//kommune_funk_anwenderteams
$oWettbewerb->TeamAnwender=array(); // Alle Wettbewerbe zum angemeldeten Anwende (Alle Teams der uid)
// ----------- Team Key => team_kurzbz
//kommune_funk_teambenutzer 1x Datensatz je team_kurzbz
$oWettbewerb->Team=array(); // Alle Teams (ein DatenArray je Team Key => team_kurzbz) Achtung! nur ein Benutzer im Array (verwende TeamBenutzer) !
//kommune_funk_teambenutzer Alle Datensaetze je team_kurzbz
$oWettbewerb->TeamBenutzer=array(); // Alle Teammitglieder (ein Datensatz je Team Key => team_kurzbz)
// Match -------------------------------------------------------------------------------------------------------------------
$oWettbewerb->match_id=(isset($_REQUEST['match_id']) ? $_REQUEST['match_id']:'');
$oWettbewerb->match_id=trim($oWettbewerb->match_id);
$oWettbewerb->Einladung=array(); // Alle Daten zur Einladung
$oWettbewerb->EinladungVonTeam=array(); // Alle Teaminformation des Einladenten Teams
$oWettbewerb->EinladungAnTeam=array(); // Alle Teaminformation des Eingeladenen Teams
$oWettbewerb->Forderungen=array(); // Forderungen an Andere Teams
$oWettbewerb->Spiele=array(); // Forderungen
$oWettbewerb->Error=array(); // Fehlermeldungen
// Benutzer Personen Gen. -------------------------------------------------------------------------------------------------------------------
$oWettbewerb->PersonenBenutzer=array(); // Personendaten je Spieler ( Key => userid )
// ---------------- Kommunen Standart Include Dateien einbinden
// Anzeige Templates mittels Include Laden
if (trim($oWettbewerb->workSITE)!=constKommuneAnzeigeDEFAULT
&& trim($oWettbewerb->workSITE)!=constKommuneWartungWettbewerb
&& trim($oWettbewerb->workSITE)!=constKommuneWartungWettbewerbtyp )
{
$includeFILE=strtolower($oWettbewerb->workSITE.".inc.php");
if (file_exists($includeFILE))// Check ob das Verarbeitungs-Include File vorhanden ist
include_once($includeFILE);
}
// Fuer die Bildfunktion werden keine Datenbenoetigt, und nach Verarbeitung beenden
if (trim($oWettbewerb->workSITE)==constKommuneDisplayIMAGE)
{
createIMGfromHEX($oWettbewerb);
exit;
}
// Fuer die Bildfunktion werden keine Datenbenoetigt, und nach Verarbeitung beenden
if (trim($oWettbewerb->workSITE)==constKommuneUserXML)
{
if (empty($user))
exit('<noInfo>Keine Daten </noInfo>');
exit( (isset($pers->nachname)?$pers->nachname:"$user falsch!"));
}
// -------------------------------------------------------------------------------------------------------------------------
// HTML Ausgabe Datenstrom Teil I Header
$showHTML='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="DE" lang="DE">
<head>
<title>Kommune '.$oWettbewerb->workSITE.'</title>
<meta name="description" content="Kommune - Wettbewerbe '.$oWettbewerb->workSITE.'" />
<meta name="keywords" content="Kommune,Wettbewerbe,'.$oWettbewerb->workSITE.'" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
form {display:inline;}
.cursor_hand {cursor:pointer;vertical-align: top;white-space : nowrap;}
.ausblenden {display:none;}
.footer_zeile {color: silver;}
-->
</style>
<script language="JavaScript1.2" type="text/javascript">
<!--
function show_layer(x,obj)
{
if (document.getElementById && document.getElementById(x))
{
document.getElementById(x).style.visibility = \'visible\';
document.getElementById(x).style.display = \'inline\';
} else if (document.all && document.all[x]) {
document.all[x].visibility = \'visible\';
document.all[x].style.display=\'inline\';
} else if (document.layers && document.layers[x]) {
document.layers[x].visibility = \'show\';
document.layers[x].style.display=\'inline\';
}
if (document.getElementById && document.getElementById(x))
{
var DivHeight =document.getElementById(x).offsetHeight;
var DivWidth =document.getElementById(x).offsetWidth;
var hoch=0;
var weite=0;
if (!window.event) {
var top=document.getElementById(x).offsetTop;
var left=document.getElementById(x).offsetLeft;
var position=0;
// wenn Position Rechts und Hoehe der ID groesser der Screen Hoehe , dann Korr.
if ( (top + DivHeight) >Hoehe)
{
position=Hoehe-DivHeight;
document.getElementById(x).style.top=position + "px";
}
if ( (left + DivWidth) >Weite)
{
position=Weite-DivWidth;
// alert (Weite+" "+ DivWidth + " "+ position + " offset Left "+document.getElementById(x).offsetLeft);
document.getElementById(x).style.left=position + "px";
}
} else {
hoch=(Hoehe - ( DivHeight + window.event.clientY ))-2 ;
weite=(Weite - ( DivWidth + window.event.clientX ))-2 ;
if (hoch>0) hoch=0;
if (weite>0) weite=0;
with (window.event && document.getElementById(x).style) {
top=window.event.clientY + document.body.scrollTop+( 1 + hoch );
left=window.event.clientX + document.body.scrollLeft+( 1 + weite );
}
}
}
}
function clear_layer(wohin,obj)
{
if (obj) {
set_layer(\'\',wohin,obj);
} else if (wohin)
set_layer(\'\',wohin);
}
function hide_layer(x,obj)
{
if (document.getElementById && document.getElementById(x))
{
document.getElementById(x).style.visibility = \'hidden\';
document.getElementById(x).style.display = \'none\';
} else if (document.all && document.all[x]) {
document.all[x].visibility = \'hidden\';
document.all[x].style.display=\'none\';
} else if (document.layers && document.layers[x]) {
document.layers[x].visibility = \'hide\';
document.layers[x].style.display=\'none\';
}
}
function set_layer(was,wohin)
{
if (document.getElementById(wohin).innerHTML)
{
document.getElementById(wohin).innerHTML=was;
}
elseif (document.getElementById(wohin).value)
{
document.getElementById(wohin).value=was;
}
}
function Fensterweite () {
if (window.innerWidth) {
return window.innerWidth;
} else if (document.documentElement && document.documentElement.clientHeight) {
// Explorer 6 Strict Mode
return document.documentElement.clientWidth;
} else if (document.body && document.body.offsetWidth) {
return document.body.offsetWidth;
} else if (document.body && document.body.clientWidth) {
return document.body.clientWidth;
} else {
return 0;
}
}
function Fensterhoehe () {
if (window.innerHeight) {
return window.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) {
// Explorer 6 Strict Mode
return document.documentElement.clientHeight;
} else if (document.body && document.body.offsetHeight) {
return document.body.offsetHeight;
} else if (document.body && document.body.clientHeight) {
return document.body.clientHeight;
} else {
return 0;
}
}
function checkTeamAnzahl(obj,nameID,anz)
{
var ok=true;
var ii=0;
for (var i = 0; i < anz; i++) {
if (obj[nameID][i].value=="") {
obj[nameID][i].focus();
ii = i + 1;
alert("Es wurden erst "+ i +" Teamspieler eingegeben. Es muessen "+ anz +" eingegeben werden.");
return false;
}
}
return ok;
}
function doIt(user,nameID)
{
// alert(document.getElementById(nameID).innerHTML);
//erstellen des requests
var req = null;
try{
req = new XMLHttpRequest();
// req.http_request.overrideMimeType("text/html;"); // zu dieser Zeile siehe weiter unten
// req.http_request.overrideMimeType("text/xml;"); // zu dieser Zeile siehe weiter unten
}
catch (ms)// hier beginnt der IE Teil
{
try{
req = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (nonms)
{
try{
req = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (failed)
{
document.getElementById(nameID).innerHTML="Browser ohne Ajax Funktion";
req = null;
}
}
}
if (req == null)
document.getElementById(nameID).innerHTML="Error creating request object!";
//anfrage erstellen (GET, url ist localhost, request ist asynchron
var callURL=\''.(isset($_SERVER["HTTP_REFERER"])?str_replace(strstr($_SERVER["HTTP_REFERER"],'?'),'',$_SERVER["HTTP_REFERER"]):'').'\';
callURL=callURL+\'?userSel='.constKommuneUserXML.'&client_encode=UTF8&user=\'+user;
req.open("GET", callURL , true);
//Beim abschliessen des request wird diese Funktion ausgefuhrt
req.onreadystatechange = function(){
switch(req.readyState) {
case 4:
if(req.status!=200) {
document.getElementById(nameID).innerHTML=callURL+" Fehler: "+req.status;
}else{
if (document.getElementById(nameID).value)
document.getElementById(nameID).value=req.responseText;
else
document.getElementById(nameID).innerHTML=req.responseText;
}
break;
default:
if (document.getElementById(nameID).value)
document.getElementById(nameID).value="bitte warten! Suche nach "+user;
else
document.getElementById(nameID).innerHTML="bitte warten! Suche nach "+user;
break;
}
};
req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
req.send(null);
}
function neuAufbau () {
if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
location.href = location.href;
}
/* uberwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
window.onresize = neuAufbau;
Weite = Fensterweite();
Hoehe = Fensterhoehe();
}
-->
</script>
</head>
<body id="hauptbody">
<script type="text/javascript">
<!--
/* uberwachung von Internet Explorer initialisieren */
if (!window.Weite && document.body && document.body.offsetWidth)
{
window.onresize = neuAufbau;
Weite = Fensterweite();
Hoehe = Fensterhoehe();
}
// alert(Weite+ \' \'+Hoehe);
-->
</script>
';
//-------------- Datenlesen
// Daten Wettbewerb ermitteln /include kommune_funktionen.inc.php
kommune_funk_wettbewerb($oWettbewerb);
kommune_funk_eigene_wettbewerb($oWettbewerb);
kommune_funk_team_wettbewerbe($oWettbewerb);
// Daten Teams ermitteln /include kommune_funktionen.inc.php
kommune_funk_teams($oWettbewerb); // TeamGesamt
kommune_funk_anwenderteams($oWettbewerb); // TeamAnwender
kommune_funk_teambenutzer($oWettbewerb); // Team, TeamBenutzer
if (trim($oWettbewerb->workSITE)==constKommuneWartungWettbewerb
|| trim($oWettbewerb->workSITE)==constKommuneWartungWettbewerbtyp )
{
echo '[&nbsp;'.kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<input type="checkbox" value="" style="'.(!stristr($_SERVER['HTTP_USER_AGENT'],'OPERA') && !stristr($_SERVER['HTTP_USER_AGENT'],'Safari')?'display:none;':'').'font-size: 4pt;border:0px solid transparent;text-decoration:none; background-color: transparent;" onclick="this.checked=false;" onblur="this.checked=false;" name="callStartseite" />Startseite','Startseite&nbsp;').'&nbsp;]';
$includeFILE=strtolower($oWettbewerb->workSITE.".inc.php");
if (file_exists($includeFILE))// Check ob das Verarbeitungs-Include File vorhanden ist
include_once($includeFILE);
}
else
// Daten Anzeige und Verarbeitung
$showHTML.=showMenueFunktion($oWettbewerb);
// Fehler - Error Ausgabe
$showHTML.='<div id="errorKommune">'.kommune_funk_show_error($oWettbewerb).'</div>';
$showHTML.='</body></html>';
exit($showHTML);
?>
@@ -1,688 +0,0 @@
<?php
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamEinladung Spieler/Team einladung an einen anderen Spieler/Team zu einem Match
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return HTML Ausgabe der Seite mit Einladung,Best&auml;tigung, Erledigung
*
*/
function showTeamEinladung($oWettbewerb)
{
// Plausib
if (empty($oWettbewerb->team_kurzbz) && isset($oWettbewerb->EigeneWettbewerbe[0]))
$oWettbewerb->team_kurzbz=$oWettbewerb->EigeneWettbewerbe[0]['team_kurzbz'];
if (empty($oWettbewerb->team_kurzbz) && empty($oWettbewerb->user))
return "Keine Angaben &uuml;ber das Team gefunden!";
if (empty($oWettbewerb->wettbewerb_kurzbz))
return "Keine Angaben &uuml;ber den Wettbewerb gefunden!";
if (empty($oWettbewerb->team_kurzbz_einladung))
return 'Fehler bei der Einladung! Es fehlt das Eingeladene Team/Spieler.<br /> <a href="'. $_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'=" title="Startseite,Home,Beginn">zur Startseite </a>';
if ($oWettbewerb->team_kurzbz==$oWettbewerb->team_kurzbz_einladung)
return 'Fehler bei der Einladung! Eingeladene und Einladende Team/Spieler sind gleich!.<br /> <a href="'. $_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'=" title="Startseite,Home,Beginn">zur Startseite </a>';
// Initialisierung
$showHTML='';
// Wettbewerb-Teams
$WettbewerbTeam= new komune_wettbewerbteam('','',$oWettbewerb->wettbewerb_kurzbz);
// Einladung AN
$WettbewerbTeam->InitWettbewerbteam();
$WettbewerbTeam->setTeam_kurzbz($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeam->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
if ($WettbewerbTeam->loadWettbewerbteam())
$oWettbewerb->EinladungAnTeam=$WettbewerbTeam->getWettbewerbteam();
else
$oWettbewerb->Error[]=$WettbewerbTeam->getError();
// Einladung VON
$WettbewerbTeam->InitWettbewerbteam();
$WettbewerbTeam->setTeam_kurzbz($oWettbewerb->team_kurzbz);
$WettbewerbTeam->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
if ($WettbewerbTeam->loadWettbewerbteam())
$oWettbewerb->EinladungVonTeam=$WettbewerbTeam->getWettbewerbteam();
else
$oWettbewerb->Error[]=$WettbewerbTeam->getError();
if (isset($WettbewerbTeam)) unset($WettbewerbTeam);
// -------------------------- Verarbeitung Request
// Submit Verarbeiten :: Check - Request - Datenverarbeitung
$cTmpSubmitVerarbeitung = (isset($_REQUEST['einladen']) ? $_REQUEST['einladen']:'');
# echo $cTmpSubmitVerarbeitung;
# var_dump($_REQUEST);
# exit;
if ($cTmpSubmitVerarbeitung)
showTeamEinladung_submit($oWettbewerb,$cTmpSubmitVerarbeitung);
// -------------------------- HTML Anzeige
// Header
if (empty($oWettbewerb->match_id))
$showHTML.='<h1 style="text-align:center;"> Wettbewerb-Forderung (Einladung) </h1>';
else
$showHTML.='<h1 style="text-align:center;"> Wettbewerb-Daten </h1>';
// -------------------------- TEAM Information HTML Anzeige
$showHTML.='<table summary="Anzeige der Spieler oder Team">';
$showHTML.='<tr>';
$showHTML.='<td style="vertical-align: top;width:50%;">';
$showHTML.='<h3>forderndes Team / Spieler</h3>';
$showHTML.='</td>';
$showHTML.='<td style="vertical-align: top;width:50%;">';
$showHTML.='<h3>gefordertes Team / Spieler</h3>';
$showHTML.='</td>';
$showHTML.='</tr>';
if (isset($oWettbewerb->EinladungVonTeam[0]) && isset($oWettbewerb->EinladungAnTeam[0]) )
{
$showHTML.='<tr>';
$showHTML.='<td style="vertical-align: top;width:50%;">';
$iPopUp=2; // Anzeige der Teamspieler (ohne Spielergebnis, mit Teamspieler)
$cPopUpIDKey='EgWb_VonTeam_'.time();// Eindeutiger Key fuer PopUp IDs
#Alternative - Anzeige mit kommune_funk_show_wettbewerbteam ( der erste Datensatz genuegt )
reset($oWettbewerb->EinladungVonTeam);
$showHTML.=kommune_funk_show_wettbewerbteam($oWettbewerb->EinladungVonTeam[0],$oWettbewerb,$cPopUpIDKey."1",$iPopUp);
$showHTML.='</td>';
$showHTML.='<td style="vertical-align: top;width:50%;">';
$iPopUp=2; // Anzeige der Teamspieler (ohne Spielergebnis, mit Teamspieler)
$cPopUpIDKey='EgWb_AnTeam_'.time();// Eindeutiger Key fuer PopUp IDs
#Alternative - Anzeige mit kommune_funk_show_wettbewerbteam ( der erste Datensatz genuegt )
reset($oWettbewerb->EinladungAnTeam);
$showHTML.=kommune_funk_show_wettbewerbteam($oWettbewerb->EinladungAnTeam[0],$oWettbewerb,$cPopUpIDKey."2",$iPopUp);
$showHTML.='</td>';
$showHTML.='</tr>';
}
$showHTML.='</table>';
// -------------------------- INPUT HTML Anzeige
$showHTML.='<h3> bearbeiten aktuelles Match </h3>';
$showHTML.=showTeamEinladung_show($oWettbewerb);
$showHTML.=kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/moreright.gif" border="0" />&nbsp;zur&nbsp;Startseite&nbsp;','&nbsp;zur&nbsp;Startseite&nbsp;');
// Wettbewerbsinformation Ende
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamEinladung_show Anzeigenaufbau Input,Bestaetigungen
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return HTML Ausgabe der Seite mit Einladung,Best&auml;tigung, Erledigung
*
*/
function showTeamEinladung_show($oWettbewerb)
{
$showHTML='';
if (!isset($oWettbewerb->EigeneWettbewerbe[0]['team_kurzbz'])
&& !isset($oWettbewerb->EinladungAnTeam[0]['team_kurzbz']) )
return $showHTML;
// Ermitteln Spieler / Team welche gerade Online die Daten bearbeiten
$bTmpForderer=false;
$bTmpGeforderter=false;
// Wettbewerb-Teams
$WettbewerbTeam= new komune_wettbewerbteam('','',$oWettbewerb->wettbewerb_kurzbz);
// Ermitteln welcher Wettbewer gerade Online ist : Check mit Forder,EInladung
$WettbewerbTeam->InitWettbewerbteam();
$WettbewerbTeam->setTeam_kurzbz(trim($oWettbewerb->team_kurzbz_einladung));
$WettbewerbTeam->setWettbewerb_kurzbz(trim($oWettbewerb->wettbewerb_kurzbz));
$WettbewerbTeam->setUID($oWettbewerb->user);
if ($WettbewerbTeam->loadWettbewerbteam())
$bTmpGeforderter=true;
else
$bTmpForderer=true;
if (isset($WettbewerbTeam)) unset($WettbewerbTeam);
// Es konnte keine Partei (Forderer/Geforderter) ermittelt werden. Fehler!
if (!$bTmpForderer && !$bTmpGeforderter)
return '<p>Daten Forderer / Gefordertes Team-Spieler stimmen nicht !</p>';
// Erzeugen Link fuer SubmitForm
$paramURL=$_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'='.constKommuneEinladenTEAM.'&amp;team_kurzbz='.trim($oWettbewerb->team_kurzbz).'&amp;team_gefordert='.trim($oWettbewerb->team_kurzbz_einladung).'&amp;wbtyp_kurzbz='.trim($oWettbewerb->wbtyp_kurzbz).'&amp;wettbewerb_kurzbz='.trim($oWettbewerb->wettbewerb_kurzbz);
$showHTML.='<form action="'.$paramURL.'" enctype="multipart/form-data" method="post">';
$showHTML.='<fieldset>';
// Match Ende
if (isset($oWettbewerb->Einladung[0]['matchbestaetigtdatum']) && !empty($oWettbewerb->Einladung[0]['matchbestaetigtdatum']))
{
$cTmpHREF=kommune_funk_create_href(constKommuneAnzeigeWETTBEWERBTEAM,'',array('team_kurzbz'=>trim($oWettbewerb->team_kurzbz_einladung),'wettbewerb_kurzbz'=>trim($oWettbewerb->wettbewerb_kurzbz)),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;weiter zm Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz,$oWettbewerb->wettbewerb_kurzbz);
$showHTML.='<b>Spiel ist beendet mit '.$oWettbewerb->Einladung[0]['matchbestaetigtdatum'].'. Ergebnis :'.$oWettbewerb->Einladung[0]['ergebniss'].'</b>';
$showHTML.='<br />'.$cTmpHREF;
}
// Teil 1 Match Einladung und Bestaetigen
elseif ($bTmpForderer && (!isset($oWettbewerb->Einladung[0]['bestaetigtamum']) || empty($oWettbewerb->Einladung[0]['bestaetigtamum'])) )
{
$showHTML.='<legend>Match Ort und Zeitpunkt</legend>';
// Der Forderer kann bis zur Bestaetigung die Match Orts- und Zeitangaben aendern
$showHTML.=showTeamEinladung_show_ort_zeit($oWettbewerb);
}
// Teil 2 Match Einladung und Bestaetigen OFFEN
elseif ($bTmpGeforderter && !empty($oWettbewerb->match_id) && (!isset($oWettbewerb->Einladung[0]['bestaetigtamum']) || empty($oWettbewerb->Einladung[0]['bestaetigtamum'])) )
{
$showHTML.='<legend>Match Ort und Zeitpunkt best&auml;tigen</legend>';
$showHTML.='<br />'.(isset($oWettbewerb->Einladung[0]['matchort'])?'Austragungsort ist '.$oWettbewerb->Einladung[0]['matchort']:'').' '.(isset($oWettbewerb->Einladung[0]['matchdatumzeit'])?' am '.$oWettbewerb->Einladung[0]['matchdatum'].' '.$oWettbewerb->Einladung[0]['matchzeit']:'');
$showHTML.='<br /><a href="'.$paramURL.'&amp;match_id='.$oWettbewerb->match_id.'&amp;einladen=99">die Forderung ablehnen.</a>
<br /><br /><input style="display:none" name="einladen" value="2" /><input value="Ich m&ouml;chte die Einladung best&auml;tigen ( annehmen )" type="submit" />
';
}
// Teil 3 Match Einladung und Bestaetigen
elseif ($bTmpForderer && !empty($oWettbewerb->match_id) && (!isset($oWettbewerb->Einladung[0]['matchbestaetigtdatum']) || empty($oWettbewerb->Einladung[0]['matchbestaetigtdatum'])) )
{
$showHTML.=showTeamEinladung_show_ergebnisseintrag($oWettbewerb);
}
// Teil 4 Match Ergebnis
elseif ($bTmpGeforderter && !empty($oWettbewerb->match_id) && (isset($oWettbewerb->Einladung[0]['ergebniss']) && !empty($oWettbewerb->Einladung[0]['ergebniss'])) )
{
$showHTML.='<br />Ich m&ouml;chte das Spielergebnis '.$oWettbewerb->Einladung[0]['ergebniss'].' &nbsp;<input style="display:none" name="einladen" value="4" /><input value="best&auml;tigen" type="submit" />';
}
else
{
$showHTML.='<br />zur Zeit sind keine Eingaben notwenig.';
}
$showHTML.='<input style="display:none" name="match_id" value="'.$oWettbewerb->match_id.'" />';
$showHTML.='</fieldset>';
$showHTML.='</form> ';
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamEinladung_show_ergebnisseintrag Ein- Ausgabeformular zum Ort,Zeitpunkt eintragen (Ins/Upd)
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return HTML Ausgabe des Beginn der Forderung (Matchstart)
*
*/
function showTeamEinladung_show_ort_zeit($oWettbewerb)
{
// Init
$cTmpCheckHeute = date("d.m.Y", mktime(0,0,0,date("m"),date("d"),date("y")));
$cTmpMatchort=(isset($oWettbewerb->Einladung[0]['matchort'])?$oWettbewerb->Einladung[0]['matchort']:'');
$cTmpMatchzeit=(isset($oWettbewerb->Einladung[0]['matchzeit'])?$oWettbewerb->Einladung[0]['matchzeit']:'12:00');
$cTmpMatchdatum=(isset($oWettbewerb->Einladung[0]['matchdatum'])?$oWettbewerb->Einladung[0]['matchdatum']:$cTmpCheckHeute);
$showHTML='';
$showHTML.='<table summary="Eingabe der Wettbewerbseinladung">';
$showHTML.='<tr>
<td>Ort</td>
<td><input name="matchort" size="32" maxlength="32" value="'.$cTmpMatchort.'" /></td>
</tr>';
$showHTML.='<tr>
<td>Datum</td>
<td>';
$showHTML.='<select name="matchdatum">';
// Ein altes Datum muss auch noch hinzugefuegt werden. Datum koennte sonst beim Update nicht mehr gesetzt werden
if (!empty($oWettbewerb->Einladung[0]['gefordertamum']) && strtotime($oWettbewerb->Einladung[0]['gefordertamum'])<time() )
$showHTML.='<option selected="selected" value="'. $cTmpMatchdatum.'">'. $cTmpMatchdatum.'</option>';
for ($timeIND=0;$timeIND<90;$timeIND++)
{
$cTmpdatum = date("d.m.Y", mktime(0,0,0,date("m"),date("d")+$timeIND,date("y")));
if (empty($cTmpMatchdatum))
$showHTML.='<option '. ($cTmpCheckHeute==$cTmpdatum?'selected="selected"':'') .' value="'. $cTmpdatum.'">'. $cTmpdatum.'</option>';
else
$showHTML.='<option '. ($cTmpMatchdatum==$cTmpdatum?'selected="selected"':'') .' value="'. $cTmpdatum.'">'. $cTmpdatum.'</option>';
}
$showHTML.='</select>';
$showHTML.='&nbsp;&nbsp;Zeit&nbsp;';
$showHTML.='<select name="matchzeit">';
for ($timeIND=0;$timeIND<24;$timeIND++)
{
$cTmpTime=$timeIND.':00';
$showHTML.='<option '. ($cTmpMatchzeit==$cTmpTime || $cTmpMatchzeit=='0'.$cTmpTime ?'selected="selected"':'') .' value="'.$cTmpTime.'">'.$cTmpTime.'</option>';
$cTmpTime=$timeIND.':15';
$showHTML.='<option '. ($cTmpMatchzeit==$cTmpTime || $cTmpMatchzeit=='0'.$cTmpTime ?'selected="selected"':'') .' value="'.$cTmpTime.'">'.$cTmpTime.'</option>';
$cTmpTime=$timeIND.':30';
$showHTML.='<option '. ($cTmpMatchzeit==$cTmpTime || $cTmpMatchzeit=='0'.$cTmpTime ?'selected="selected"':'') .' value="'.$cTmpTime.'">'.$cTmpTime.'</option>';
$cTmpTime=$timeIND.':45';
$showHTML.='<option '. ($cTmpMatchzeit==$cTmpTime || $cTmpMatchzeit=='0'.$cTmpTime ?'selected="selected"':'') .' value="'.$cTmpTime.'">'.$cTmpTime.'</option>';
}
$showHTML.='</select>';
$showHTML.='</td>';
$showHTML.='</tr>';
if (empty($oWettbewerb->match_id))
$showHTML.='<tr><td>&nbsp;</td><td><br />Ich m&ouml;chte das Team / den Spieler <b>'.$oWettbewerb->team_kurzbz_einladung.'</b>&nbsp;<input value="einladen" type="submit" /></td></tr>';
elseif (trim($oWettbewerb->EigeneWettbewerbe[0]['team_kurzbz'])==trim($oWettbewerb->EinladungVonTeam[0]["team_kurzbz"]) )
$showHTML.='<tr><td>&nbsp;</td><td><br />Ich m&ouml;chte das Spiel &nbsp;<input value="&auml;ndern" type="submit" /></td></tr>';
else
$showHTML.='<tr><td>&nbsp;</td><td><br /> nur Anzeige f&uuml;r '.$oWettbewerb->EinladungAnTeam[0]["team_kurzbz"].'</td></tr>';
$showHTML.='<tr><td>';
$showHTML.='<input style="display:none" name="einladen" value="1" />';
$showHTML.='</td></tr>';
$showHTML.='</table>';
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamEinladung_show_ergebnisseintrag Ein- Ausgabeformular zum Matchergebniss eintragen (Ins/Upd)
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return HTML Ausgabe des Ergebnisseintragsformular
*
*/
function showTeamEinladung_show_ergebnisseintrag($oWettbewerb)
{
$showHTML='';
$showHTML.='<table summary="Eingabe der Wettbewerbseinladung">';
$arrSelectTeams='<select name="team_sieger">';
$arrSelectTeams.='<option '.(trim($oWettbewerb->Einladung[0]['team_sieger'])==trim($oWettbewerb->EinladungVonTeam[0]["team_kurzbz"])?'selected="selected"':'').' value="'.$oWettbewerb->EinladungVonTeam[0]["team_kurzbz"].'">'.$oWettbewerb->EinladungVonTeam[0]["team_kurzbz"].'</option>';
$arrSelectTeams.='<option '.(trim($oWettbewerb->Einladung[0]['team_sieger'])==trim($oWettbewerb->EinladungAnTeam[0]["team_kurzbz"])?'selected="selected"':'').' value="'.$oWettbewerb->EinladungAnTeam[0]["team_kurzbz"].'">'.$oWettbewerb->EinladungAnTeam[0]["team_kurzbz"].'</option>';
$arrSelectTeams.='</select>';
$showHTML.='<tr><td>Sieger Spieler/Team</td><td>'.$arrSelectTeams.'</td></tr>';
$showHTML.='<tr><td>Ergebnis</td><td><input name="ergebniss" value="'.$oWettbewerb->Einladung[0]['ergebniss'].'" size="17" maxlength="16" /> </td></tr>';
$showHTML.='<tr><td>&nbsp;</td>
<td><br />Ich m&ouml;chte das Spielergebnis &nbsp;';
if (empty($oWettbewerb->Einladung[0]['ergebniss']))
$showHTML.='<input value="erfassen" type="submit" />';
else
$showHTML.='<input value="&auml;ndern" type="submit" />';
$showHTML.='</td></tr>';
$showHTML.='<tr><td>';
$showHTML.='<input style="display:none" name="einladen" value="3" />';
$showHTML.='</td></tr>';
$showHTML.='</table>';
return $showHTML;
}
function showTeamEinladung_submit($oWettbewerb,$cTmpSubmitVerarbeitung=false)
{
$showHTML='';
if ( !$cTmpSubmitVerarbeitung)
return $showHTML;
$WettbewerbTeameinladen= new komune_wettbewerbeinladungen($oWettbewerb->match_id,$oWettbewerb->team_kurzbz,$oWettbewerb->team_kurzbz_einladung,$oWettbewerb->wettbewerb_kurzbz,'');
// Teil1 Foderung anlegen / aendern
if ($cTmpSubmitVerarbeitung==1) // Bestaetigen der Einladung
{
$cTmpMatchdatum = (isset($_REQUEST['matchdatum']) ? $_REQUEST['matchdatum']:'');
$cTmpMatchzeit = (isset($_REQUEST['matchzeit']) ? $_REQUEST['matchzeit']:'');
$cTmpMatchort = (isset($_REQUEST['matchort']) ? $_REQUEST['matchort']:'');
$date=explode('.',$cTmpMatchdatum);
$time=explode(':',$cTmpMatchzeit);
if (@checkdate($date[1], $date[0], $date[2]) )
$cTmpMatchdatumzeit=@mktime($time[0], $time[1], 0, @date($date[1]),@date($date[0]),@date($date[2]) );
else
$cTmpMatchdatumzeit=Time();
$WettbewerbTeameinladen->setTeam_forderer($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setTeam_gefordert($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeameinladen->setMatchdatumzeit($cTmpMatchdatumzeit);
$WettbewerbTeameinladen->setMatchort($cTmpMatchort);
$WettbewerbTeameinladen->setGefordertamum(Time());
$WettbewerbTeameinladen->setGefordertvon($oWettbewerb->user);
$WettbewerbTeameinladen->setMatch_id($oWettbewerb->match_id);
if (empty($oWettbewerb->match_id))
$WettbewerbTeameinladen->setSwitchGewinner(0);
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
return $oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
if (isset($WettbewerbTeameinladen)) unset($WettbewerbTeameinladen);
// Senden Information per email
$oWettbewerb->match_id=$oWettbewerb->Einladung[0]['match_id'];
#exit(Test($oWettbewerb->Einladung));
$betreff='Neue Forderung im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz;
$cTmpName=trim($oWettbewerb->user);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
$cTmpName2=trim($oWettbewerb->EinladungAnTeam[0]['uid']);
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname))
$cTmpName2=$pers->langname;
$paramURL=constKommuneParmSetWork.'='.constKommuneEinladenTEAM.'&amp;team_kurzbz='.trim($oWettbewerb->team_kurzbz_einladung).'&amp;wbtyp_kurzbz='.trim($oWettbewerb->wbtyp_kurzbz).'&amp;wettbewerb_kurzbz='.trim($oWettbewerb->wettbewerb_kurzbz);
$paramURL=''; // ohne Parameter
$cTmpURL=str_replace($_SERVER["QUERY_STRING"],$paramURL,$_SERVER["HTTP_REFERER"]);
$iTmpAnzahlTeam=1;
if (isset($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]['team_kurzbz']))
$iTmpAnzahlTeam=count($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]);
$text=$cTmpName." - ( Kurzbezeichnug ".$oWettbewerb->team_kurzbz." )\n\n";
$text.="hat ".($iTmpAnzahlTeam>1?'das Team':'den Spieler')." ".$cTmpName2." ( Kurzbezeichnug ".$oWettbewerb->team_kurzbz_einladung.") gefordert am ".$oWettbewerb->Einladung[0]['matchdatum']." um ".$oWettbewerb->Einladung[0]['matchzeit']." , "."\n";
$text.=$oWettbewerb->Einladung[0]['matchort']." einen ".$oWettbewerb->wettbewerb_kurzbz ." Wettbewerb auszutragen."."\n\n";
$text.="\n\n zum Aufruf der Forderung benutzen sie folgenden Link : ".$cTmpURL."\n\n";
$text.="Die Einladung wurde von ".$cTmpName."\nam ".$oWettbewerb->Einladung[0]['gefordertamumdatum']." um ".$oWettbewerb->Einladung[0]['gefordertamumzeit'] .(empty($oWettbewerb->match_id)?" erfasst.":" geaendert.")."\n";
// Einladung an Spieler/Team Information
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->EinladungAnTeam[0]['uid'],$betreff,$text,$oWettbewerb->EinladungVonTeam[0]['uid'],$oWettbewerb);
// Moderator Information
#??? $oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->Wettbewerb[0]['uid'],$betreff." [Moderatorinformtion]",$text,$oWettbewerb->EinladungVonTeam[0]['uid'],$oWettbewerb);
return true;
} // Ende Teil 1
if (empty($oWettbewerb->match_id)) // Ab Verarbeitungsteil 2 muss die MatchID dabei sein
return $oWettbewerb->Error[]="Bei der Verarbeitung ist ein Fehler aufgetreten. Die MatchID wurde nicht gefunden.";
if ($cTmpSubmitVerarbeitung==99) // Bestaetigen der Einladung
{
$bSwitchWork=true;
$WettbewerbTeameinladen->InitWettbewerbeinladungen();
$WettbewerbTeameinladen->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
$WettbewerbTeameinladen->setMatch_id($oWettbewerb->match_id);
$WettbewerbTeameinladen->setTeam_forderer($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setTeam_gefordert($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeameinladen->setTeam_sieger($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setBestaetigtamum(Time());
$WettbewerbTeameinladen->setBestaetigtvon($oWettbewerb->user);
$WettbewerbTeameinladen->setErgebniss('abgelehnt');
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
$oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
$WettbewerbTeameinladen->setMatchbestaetigtamum(Time());
$WettbewerbTeameinladen->setMatchbestaetigtvon($oWettbewerb->user);
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
$oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
if (isset($WettbewerbTeameinladen)) unset($WettbewerbTeameinladen);
$iTmpAnzahlTeam=1;
if (isset($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]['team_kurzbz']))
$iTmpAnzahlTeam=count($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]);
$cTmpName=trim($oWettbewerb->user);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
$cTmpName2=trim($oWettbewerb->EinladungVonTeam[0]['uid']);
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname))
$cTmpName2=$pers->langname;
$betreff='Die Forderung im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz ." wurde NICHT angenommen";
$text=($iTmpAnzahlTeam>1?'Das Team':'Der Spieler')."\n".$cTmpName ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz_einladung." )\n\n";
$text.="hat die Forderung von ".$cTmpName2 ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz." )\n\nNICHT angenommen\n\nam ".$oWettbewerb->Einladung[0]['matchdatum']." um ".$oWettbewerb->Einladung[0]['matchzeit']." , "."\n";
$text.=$oWettbewerb->Einladung[0]['matchort']." den Wettbewerb ".$oWettbewerb->wettbewerb_kurzbz ." auszutragen."."\n\n";
$text.=" Der Forderer ".$cTmpName2 ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz." ) wird als Sieger eingetragen !\n\n";
$text.="Die Einladung wurde abgelehnt von ".$cTmpName."\nam ".$oWettbewerb->Einladung[0]['bestaetigtdatum']." um ".$oWettbewerb->Einladung[0]['bestaetigtzeit'] ." erfasst."."\n";
// Einladung an Spieler/Team Information
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->EinladungVonTeam[0]['uid'],$betreff,$text,$oWettbewerb->user,$oWettbewerb);
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->user,$betreff,$text,$oWettbewerb->EinladungVonTeam[0]['uid'],$oWettbewerb);
// Moderator Information
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->Wettbewerb[0]['uid'],$betreff." [Moderatorinformtion]",$text,$oWettbewerb->user,$oWettbewerb);
return true;
}
elseif ($cTmpSubmitVerarbeitung==2) // Bestaetigen der Einladung
{
$WettbewerbTeameinladen->InitWettbewerbeinladungen();
$WettbewerbTeameinladen->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
$WettbewerbTeameinladen->setTeam_forderer($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setTeam_gefordert($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeameinladen->setBestaetigtamum(Time());
$WettbewerbTeameinladen->setBestaetigtvon($oWettbewerb->user);
$WettbewerbTeameinladen->setMatch_id($oWettbewerb->match_id);
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
$oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
if (isset($WettbewerbTeameinladen)) unset($WettbewerbTeameinladen);
$iTmpAnzahlTeam=1;
if (isset($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]['team_kurzbz']))
$iTmpAnzahlTeam=count($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]);
$cTmpName=trim($oWettbewerb->user);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
#var_dump($oWettbewerb->Einladung);
$cTmpName2=trim($oWettbewerb->Einladung[0]['gefordertvon']);
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname))
$cTmpName2=$pers->langname;
$betreff='Die Forderung im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz ." wurde angenommen";
$text=($iTmpAnzahlTeam>1?'Das Team':'Der Spieler')."\n".$cTmpName ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz_einladung." )\n\n";
$text.="hat die Forderung von ".$cTmpName2 ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz." )\nangenommen am ".$oWettbewerb->Einladung[0]['matchdatum']." um ".$oWettbewerb->Einladung[0]['matchzeit']." , "."\n";
$text.=$oWettbewerb->Einladung[0]['matchort']." den Wettbewerb ".$oWettbewerb->wettbewerb_kurzbz ." auszutragen."."\n\n";
$text.="Die Einladung wurde von ".$cTmpName."\nam ".$oWettbewerb->Einladung[0]['bestaetigtdatum']." um ".$oWettbewerb->Einladung[0]['bestaetigtzeit'] ." erfasst."."\n";
// Einladung an Spieler/Team Information
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->Einladung[0]['gefordertvon'],$betreff,$text,$oWettbewerb->user,$oWettbewerb);
return true;
}
if ($cTmpSubmitVerarbeitung==3) // Ergebnis eintragen Forderer
{
$WettbewerbTeameinladen->InitWettbewerbeinladungen();
$WettbewerbTeameinladen->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
$cTmpTeam_sieger = (isset($_REQUEST['team_sieger']) ? $_REQUEST['team_sieger']:'');
$cTmpErgebniss = (isset($_REQUEST['ergebniss']) ? $_REQUEST['ergebniss']:'');
$WettbewerbTeameinladen->setTeam_forderer($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setTeam_gefordert($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeameinladen->setErgebniss($cTmpErgebniss);
$WettbewerbTeameinladen->setTeam_sieger($cTmpTeam_sieger);
$WettbewerbTeameinladen->setMatch_id($oWettbewerb->match_id);
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
$oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
if (isset($WettbewerbTeameinladen)) unset($WettbewerbTeameinladen);
$cTmpName=trim($oWettbewerb->user);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
$cTmpName2=trim($oWettbewerb->EinladungAnTeam[0]['uid']);
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname))
$cTmpName2=$pers->langname;
$paramURL=constKommuneParmSetWork.'='.constKommuneEinladenTEAM.'&amp;team_kurzbz='.trim($oWettbewerb->team_kurzbz_einladung).'&amp;wbtyp_kurzbz='.trim($oWettbewerb->wbtyp_kurzbz).'&amp;wettbewerb_kurzbz='.trim($oWettbewerb->wettbewerb_kurzbz);
$paramURL=''; // ohne Parameter
$cTmpURL=str_replace($_SERVER["QUERY_STRING"],$paramURL,$_SERVER["HTTP_REFERER"]);
$betreff='Das Ergebnis im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz;
$text="Das Ergebnis im Wettbewerb".$oWettbewerb->wettbewerb_kurzbz."\n\n\n";
$text.="zwischen ".$cTmpName2." ( Kurzzeichen ".$oWettbewerb->EinladungAnTeam[0]['uid']." )\n\nund".$cTmpName ." ( Kurzzeichen ".$oWettbewerb->team_kurzbz .")\n\n\n";
$text.="Sieger ". (trim($oWettbewerb->Einladung[0]['team_sieger'])==trim($oWettbewerb->team_kurzbz)?$cTmpName2." ( Kurzzeichen ".$oWettbewerb->EinladungAnTeam[0]['uid']." )":$cTmpName2." ( Kurzzeichen ".$oWettbewerb->EinladungAnTeam[0]['uid']." )" )."\"\n\n\n";
$text.="mit dem Ergebnis \"".$oWettbewerb->Einladung[0]['ergebniss']."\n\n";
$text.="zum Aufruf der Bestaetigung benutzen sie ".$cTmpName2." folgenden Link : ".$cTmpURL."\n\n";
$cTmpCheckHeute = date("d.m.Y",time());
$cTmpCheckZeit = date("H:i",time());
$text.="\n\nErgebnis wurde eingetragen von ".$cTmpName."\n\nam ". $cTmpCheckHeute. ", um ".$cTmpCheckZeit.".\n\n\n";
// Einladung an Spieler/Team Information
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->EinladungAnTeam[0]['uid'],$betreff,$text,$oWettbewerb->user,$oWettbewerb);
return true;
}
if ($cTmpSubmitVerarbeitung==4 ) // Ergebnis bestaetigen GeForderer
{
$bSwitchWork=true;
$WettbewerbTeameinladen->InitWettbewerbeinladungen();
$WettbewerbTeameinladen->setWettbewerb_kurzbz($oWettbewerb->wettbewerb_kurzbz);
$WettbewerbTeameinladen->setTeam_forderer($oWettbewerb->team_kurzbz);
$WettbewerbTeameinladen->setTeam_gefordert($oWettbewerb->team_kurzbz_einladung);
$WettbewerbTeameinladen->setMatchbestaetigtamum(Time());
$WettbewerbTeameinladen->setMatchbestaetigtvon($oWettbewerb->user);
$WettbewerbTeameinladen->setMatch_id($oWettbewerb->match_id);
if ($WettbewerbTeameinladen->saveWettbewerbeinladung())
$oWettbewerb->Einladung=$WettbewerbTeameinladen->getWettbewerbeinladung();
else
$oWettbewerb->Error[]=$WettbewerbTeameinladen->getError();
if (isset($WettbewerbTeameinladen)) unset($WettbewerbTeameinladen);
$iTmpAnzahlTeam=1;
if (isset($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]['team_kurzbz']))
$iTmpAnzahlTeam=count($oWettbewerb->Team[trim($oWettbewerb->team_kurzbz_einladung)][0]);
#exit(Test($oWettbewerb->Einladung[0]));
$cTmpName=trim($oWettbewerb->Einladung[0]['bestaetigtvon']);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
$cTmpName2=trim($oWettbewerb->Einladung[0]['gefordertvon']);
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname))
$cTmpName2=$pers->langname;
if (trim($oWettbewerb->Einladung[0]['team_gefordert'])==trim($oWettbewerb->Einladung[0]['team_sieger']))
$cTmpName3=$cTmpName;
else
$cTmpName3=$cTmpName2;
$betreff='Das Ergebnis im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz;
$text='Das Ergebnis im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz."\n\n";
$text.=$cTmpName." ( Kurzbezeichnug ".$oWettbewerb->Einladung[0]['team_gefordert']." )\n\n";
$text.="hat das Ergebnis der Forderung gegen\n\n";
#($iTmpAnzahlTeam>1?'das Team':'den Spieler')." ".
$text.=$cTmpName2." ( Kurzbezeichnug ".$oWettbewerb->Einladung[0]['team_forderer'].")\n\nbestaetigt.\n\n\n\n\n";
$text.="Gratulation dem Sieger\n\n".$cTmpName3." ( Kurzzeichen ".$oWettbewerb->Einladung[0]['team_sieger'] ." )\n\n";
$text.="mit dem Spiel.- Matchergebnis : ".$oWettbewerb->Einladung[0]['ergebniss']."\n\n\n\n\n";
$cTmpCheckHeute = date("d.m.Y",time());
$cTmpCheckZeit = date("H:i",time());
$cTmpName=trim($oWettbewerb->user);
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname))
$cTmpName=$pers->langname;
$text.="Das Ergebnis wurde bestaetigt von ".$cTmpName."\n\nam ". $cTmpCheckHeute. ", um ".$cTmpCheckZeit.".\n";
// Ergebnis bestaetigt - Information an Spieler/Team senden
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->EinladungVonTeam[0]['uid'],$betreff,$text,$oWettbewerb->user,$oWettbewerb);
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->user,$betreff,$text,$oWettbewerb->EinladungVonTeam[0]['uid'],$oWettbewerb);
// Moderator Information
return true;
}
return false;
}
?>
File diff suppressed because it is too large Load Diff
-106
View File
@@ -1,106 +0,0 @@
<?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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
// Holt den Hexcode eines Bildes aus der DB wandelt es in Zeichen
// um und gibt das ein Bild zurueck.
// Aufruf mit <img src='kommune_hex_img.php?src=frage&frage_id=1
function createIMGfromHEX($oWettbewerb)
{
// ---------------- Check DB ist Online, und eine Verbindung ist moeglich
//Hex Dump Blank als Default
$heximg ='';
$wbtyp_kurzbz = (isset($_REQUEST['wbtyp_kurzbz']) ? $_REQUEST['wbtyp_kurzbz'] : '');
$team_kurzbz = (isset($_REQUEST['team_kurzbz']) ? $_REQUEST['team_kurzbz'] : '');
$wettbewerb_kurzbz = (isset($_REQUEST['wettbewerb_kurzbz']) ? $_REQUEST['wettbewerb_kurzbz'] : '');
$personen_id = (isset($_REQUEST['src']) ? $_REQUEST['src'] : '');
if (empty($personen_id)) $personen_id = (isset($_REQUEST['person']) ? $_REQUEST['person'] : '');
if (empty($personen_id)) $personen_id = (isset($_REQUEST['personid']) ? $_REQUEST['personid'] : '');
if (empty($personen_id)) $personen_id = (isset($_REQUEST['person_id']) ? $_REQUEST['person_id'] : '');
$person_id=trim($personen_id);
$selBILD=0;
if (isset($personen_id) && !empty($personen_id))
{
$selBILD=1;
$pers = new person($personen_id); // Lesen PersonenBenutzer
if (isset($pers->uid) && !isset($oWettbewerb->PersonenBenutzer[$pers->uid]))
$oWettbewerb->PersonenBenutzer[$pers->uid]=$pers;
if (isset($pers->foto))
$heximg=$pers->foto;
}
elseif(isset($team_kurzbz) && !empty($team_kurzbz))
{
$selBILD=2;
if (isset($oWettbewerb->TeamBenutzer[$team_kurzbz][0]['logo']))
$heximg=$oWettbewerb->TeamBenutzer[$team_kurzbz][0]['logo'];
else
{
// WettbewerbTeam Classe initialisieren
$WettbewerbTeam= new komune_wettbewerbteam('',$oWettbewerb->team_kurzbz,$oWettbewerb->wettbewerb_kurzbz);
if ($WettbewerbTeam->loadWettbewerbteam())
$arrTempWettbewerbTeam=$WettbewerbTeam->getWettbewerbteam();
else
exit($WettbewerbTeam->errormsg);
if (isset($arrTempWettbewerbTeam[0]['logo']))
$heximg=$arrTempWettbewerbTeam[0]['logo'];
}
}
elseif(isset($wettbewerb_kurzbz) && !empty($wettbewerb_kurzbz))
{
$selBILD=3;
if (isset($oWettbewerb->Wettbewerb[0]))
$heximg=$oWettbewerb->Wettbewerb[0]['icon'];
elseif (isset($oWettbewerb->Wettbewerb[$wettbewerb_kurzbz]))
$heximg=$oWettbewerb->Wettbewerb[$wettbewerb_kurzbz]['icon'];
else
{
$Wettbewerb= new komune_wettbewerb($oWettbewerb->wbtyp_kurzbz,$oWettbewerb->wettbewerb_kurzbz);
if ($Wettbewerb->loadWettbewerb())
$arrTempWettbewerbTeam=$Wettbewerb->getWettbewerb();
else
exit($Wettbewerb->getError());
if (isset($arrTempWettbewerbTeam[0]['icon']))
$heximg=$arrTempWettbewerbTeam[0]['icon'];
}
}
else
{
$selBILD=4;
$heximg = (isset($_REQUEST['heximg']) ? $_REQUEST['heximg'] : '');
}
#exit($selBILD.Test($oWettbewerb));
if (empty($heximg))
$heximg ='R0lGODlhHgAKAID/AMDAwAAAACH5BAEAAAAALAAAAAAeAAoAQAIPhI+py+0Po5y02ouz3rwAADs=';
@ob_end_clean();
header("Content-type: image/gif");
exit(kommune_hexstr($heximg));
}
?>
@@ -1,387 +0,0 @@
<?php
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#-------------------------------------------------------------------------------------------
/*
*
* @showPyramide Teams des Wettbewerbes in Pyramidenform(HTML Table) erzeugen
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return showPyramide HTML Ausgabe der Wettbewerbesteilnehmer in Pyramidenform
*
*/
function showPyramide($oWettbewerb)
{
// Initialisierung
$showHTML='';
// Header
$showHTML.='<div>';
$cTmpWettbewerbPopUpID='Wettbewerbs';
$cTmpWettbewerbPopUp=' onmouseover="show_layer(\''.$cTmpWettbewerbPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpWettbewerbPopUpID.'\');" ';
// Wettbewerb-Farbe
$cTmpFarbe=(isset($oWettbewerb->Wettbewerb[0]["farbe"]) && !empty($oWettbewerb->Wettbewerb[0]["farbe"])?' style="background-color:#'.$oWettbewerb->Wettbewerb[0]["farbe"].';text-align:center;" ':' style="text-align:center;"');
// Ueberschrift des Wettbewerbs
$showHTML.='<h1 '.$cTmpFarbe.' '.$cTmpWettbewerbPopUp.'>';
$showHTML.=$oWettbewerb->wbtyp_kurzbz.' :: '.$oWettbewerb->wettbewerb_kurzbz;
$showHTML.='</h1>';
// Wettbewerb PopUp
$showHTML.='<div id="'.$cTmpWettbewerbPopUpID.'" style="display:none;position: absolute;z-index:99;">';
$showHTML.=kommune_funk_popup_wettbewerb($oWettbewerb->Wettbewerb[0],$oWettbewerb,'pyramide');
$showHTML.='</div>';
// Moderator
$cTmpName=$oWettbewerb->Wettbewerb[0]["uid"];
$pers=kommune_funk_benutzerperson($oWettbewerb->Wettbewerb[0]["uid"],$oWettbewerb);
if (isset($pers->nachname))
$cTmpName=$pers->langname;
$cTmpPersPopUpID='sPers';
$cTmpPersPopUp=' onmouseover="show_layer(\''.$cTmpPersPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpPersPopUpID.'\');" ';
$cTmpFarbe=(isset($oWettbewerb->Wettbewerb[0]["farbe"]) && !empty($oWettbewerb->Wettbewerb[0]["farbe"])?' style="color:#'.$oWettbewerb->Wettbewerb[0]["farbe"].';" ':'');
$showHTML.='<h3><a '.$cTmpFarbe.' href="#" '.$cTmpPersPopUp.'>Moderator '.$cTmpName.'</a></h3>';
$showHTML.='<div id="'.$cTmpPersPopUpID.'" style="display:none;position: absolute;z-index:99;">';
$showHTML.=kommune_funk_popup_benutzer($oWettbewerb->Wettbewerb[0]["uid"],$oWettbewerb);
$showHTML.='</div>';
$showHTML.='</div>';
// Header Ende
// Es gibt noch keine Spieler in diesem Wettbewerb. Link zur Anmeldung zeigen
if (!is_array($oWettbewerb->Team) || count($oWettbewerb->Team)<1)
{
$cTmpHREF=kommune_funk_create_href(constKommuneWartungUID,$oWettbewerb,array(),'weiter zur Anmeldung');
$cTmpHREF2=kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/moreright.gif" border="0" />&nbsp;zur&nbsp;Startseite&nbsp;','&nbsp;zur&nbsp;Startseite&nbsp;');
$showHTML.='Es gibt noch keine Anmeldungen im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz.' ! <img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;'.$cTmpHREF.'</span>&nbsp;,oder&nbsp;'.$cTmpHREF2;
return $showHTML;
}
// Es gibt keinen weiteren Spieler ausser dem Anwender
if ( (is_array($oWettbewerb->Team) && count($oWettbewerb->Team)==1 )
&& (is_array($oWettbewerb->TeamAnwender) && count($oWettbewerb->TeamAnwender)==1) )
{
// PopUP ID , und JavaScript fuer Team / Spieler
$cTmpTeamPopUpID='sTeam';
$cTmpTeamPopUp=' onmouseover="show_layer(\''.$cTmpTeamPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpTeamPopUpID.'\');" ';
// zur Wartung des Teams, oder Zurueck
$cTmpHREF=kommune_funk_create_href(constKommuneWartungUID,$oWettbewerb,array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;meinen Eintrag &auml;ndern&nbsp;','meinen Eintrag &auml;ndern');
$cTmpHREF2=kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/moreright.gif" border="0" />&nbsp;zur&nbsp;Startseite&nbsp;','&nbsp;zur&nbsp;Startseite&nbsp;');
$showHTML.='Es gibt keine weiteren Anmeldungen im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz.'&nbsp;!&nbsp;<span '.$cTmpTeamPopUp.'>'.$cTmpHREF.'</span>&nbsp;,oder&nbsp;'.$cTmpHREF2;
$showHTML.='<div style="display:none;position: absolute;z-index:98;" id="'.$cTmpTeamPopUpID.'">';
$showHTML.=kommune_funk_popup_wettbewerbteam($oWettbewerb->TeamAnwender,$oWettbewerb,'team');
$showHTML.='</div>';
return $showHTML;
}
// Offene Spiel Forderungen anzeigen
if ( is_array($oWettbewerb->Einladung) && count($oWettbewerb->Einladung)>0)
$showHTML.=kommune_funk_wartung_spielergebnis($oWettbewerb,false);
if ( is_array($oWettbewerb->Forderungen) && count($oWettbewerb->Forderungen)>0)
$showHTML.=kommune_funk_wartung_spielergebnis($oWettbewerb,true);
// Wettbewerbsteams in Pyramiden Array Strucktur - HTML Tablenform
$iTmpAnzahl=(!is_array($oWettbewerb->Einladung) || count($oWettbewerb->Einladung)<1?0:count($oWettbewerb->Einladung));
$iTmpAnzahl=$iTmpAnzahl+(!is_array($oWettbewerb->Forderungen) || count($oWettbewerb->Forderungen)<1?0:count($oWettbewerb->Forderungen));
# if (empty($iTmpAnzahl)) // Anzeige der Pyramide nur wenn keine Einladung oder Forderung besteht
$oWettbewerb->AnzeigePyramide=createPyramide($oWettbewerb->Team);
// Pyramidenanzeige
$showHTML.=showPyramideHTML($oWettbewerb);
// Footer - Ende
$showHTML.='<hr />';
// Es gibt keine Anmeldung in diesen Spiel fuer den Anwender
if (!is_array($oWettbewerb->TeamAnwender) || count($oWettbewerb->TeamAnwender)<1)
{
$cTmpHREF=kommune_funk_create_href(constKommuneWartungUID,$oWettbewerb,array(),'weiter zur Anmeldung');
$showHTML.='Sie sind noch nicht in '.$oWettbewerb->wettbewerb_kurzbz.' eingetragen ! <img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;'.$cTmpHREF;
unset($cTmpHREF);
}
// Es gibt eine Anmeldung in diesen Spiel fuer den Anwender, Link zur Aenderung
else
{
// Link zur Wartung, und PopUp
$showHTML.='<span>';
$cTmpTeamPopUpID='TeamFooter';
$cTmpTeamPopUp=' onmouseover="show_layer(\''.$cTmpTeamPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpTeamPopUpID.'\');" ';
$cTmpWettbewerbPopUpID='sTeamWettbewerb';
$cTmpWettbewerbPopUp=' onmouseover="show_layer(\''.$cTmpWettbewerbPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpWettbewerbPopUpID.'\');" ';
$cTmpHREF=kommune_funk_create_href(constKommuneWartungUID,'',array('wettbewerb_kurzbz'=>$oWettbewerb->wettbewerb_kurzbz,'team_kurzbz'=>$oWettbewerb->TeamAnwender[0]['team_kurzbz']),' weiter zum Eintrag &auml;ndern');
$cTmpHREF2=kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/moreright.gif" border="0" />&nbsp;zur&nbsp;Startseite&nbsp;','&nbsp;zur&nbsp;Startseite&nbsp;');
$showHTML.='Sie sind bereits im Wettbewerb <b '.$cTmpWettbewerbPopUp.'>'.$oWettbewerb->wettbewerb_kurzbz.'</b> als <b '.$cTmpTeamPopUp.'>'.$oWettbewerb->TeamAnwender[0]['team_kurzbz'] .'</b> eingetragen ! <span><img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;'.$cTmpHREF.'</span>'.$cTmpHREF2;
$showHTML.='</span><br />';
// Team / Spieler PopUp ( Im Teampopup wird auch das Wettbewerbspopup erstellt )
$showHTML.='<div style="display:none; position: absolute;z-index:99;" id="'.$cTmpTeamPopUpID.'">';
$showHTML.=kommune_funk_popup_wettbewerbteam($oWettbewerb->TeamAnwender[0],$oWettbewerb,'showTeamFooter');
$showHTML.='</div>';
// Wettbewerb PopUp
$showHTML.='<div id="'.$cTmpWettbewerbPopUpID.'" style="display:none;position: absolute;z-index:99;">';
$showHTML.=kommune_funk_popup_wettbewerb($oWettbewerb->Wettbewerb[0],$oWettbewerb,'pyramide');
$showHTML.='</div>';
}
$showHTML.='<br />';
// Liste der bereits gespielten Bewerbe
// Anzeige der Pyramide nur wenn keine Einladung oder Forderung besteht
if (empty($iTmpAnzahl) && is_array($oWettbewerb->Spiele) && count($oWettbewerb->Spiele)>0)
{
$showHTML.='<fieldset><legend>Ergebnisse '.$oWettbewerb->TeamAnwender[0]['team_kurzbz'].'</legend>';
$showHTML.=kommune_funk_show_spielergebnis($oWettbewerb,false);
$showHTML.='</fieldset>';
}
// Ausgabststring (HTML) zurueck an die Index.php liefern
return $showHTML;
} // Ende showPyramide
#--------------------------------------------------------------------------------------------------
/*
*
* @createPyramide Alle Spieler werden vom flachen Array in eine Pyramidenform (Stuffen) umgeformt
*
* @param arrAktiveSpielerWettbewerbe Liste aller Spieler
*
* @return Retour wird ein Array in Pyramidenform der Spieler geliefert
*
*/
function createPyramide($arrAktiveSpielerWettbewerbe)
{
$arrTmpWettbewerb=array();
if (isset($arrAktiveSpielerWettbewerbe[0]['team_kurzbz']))
$arrTmpWettbewerb=$arrAktiveSpielerWettbewerbe;
else // Array - Konvertieren
{
while (list( $key, $value ) = each($arrAktiveSpielerWettbewerbe) )
$arrTmpWettbewerb[]=$arrAktiveSpielerWettbewerbe[$key];
}
$arrAktiveSpielerWettbewerbe=$arrTmpWettbewerb;
if (isset($arrTmpWettbewerb)) unset($arrTmpWettbewerb);
// Initialisierung
$arrSpielerPyramide=array();
// Es gibt keinen Datensatz, Pyramidenaufbau ist nicht noetig
if (!is_array($arrAktiveSpielerWettbewerbe) || count($arrAktiveSpielerWettbewerbe)<1)
return $arrSpielerPyramide;
// Pyramidenaufbau
$aktivIND=0;
reset($arrAktiveSpielerWettbewerbe);
$arrSpielerPyramide["Anwender"]=array();
for ($zeileIND=0;$zeileIND<count($arrAktiveSpielerWettbewerbe);$zeileIND++)
{
for ($spaltenIND=0;$spaltenIND<=$zeileIND&&$aktivIND<count($arrAktiveSpielerWettbewerbe);$spaltenIND++)
{
if (!isset($arrAktiveSpielerWettbewerbe[$aktivIND]))
break;
if ($arrAktiveSpielerWettbewerbe[$aktivIND]['team_aktiv']) // Eigenen Eintrag Makieren
$arrSpielerPyramide["Anwender"]=array('zeile'=>$zeileIND,'spalte'=>$spaltenIND,'daten'=>$arrAktiveSpielerWettbewerbe[$aktivIND]);
if ($arrAktiveSpielerWettbewerbe[$aktivIND]['team_kurzbz']) // Eigenen Eintrag Makieren
$arrSpielerPyramide[$zeileIND][]=$arrAktiveSpielerWettbewerbe[$aktivIND];
$aktivIND++;
}
}
return $arrSpielerPyramide;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showPyramideHTML Anzeigen Pyramidendaten in Tabelle(n)-Form der Spieler
*
* @param $arrSpielerPyramide Wettbewerbsdaten
*
* @return Retour wird ein HTML String mit der Ausgabe Tabelle der Pyramide geliefert
*
*/
function showPyramideHTML($oWettbewerb=array())
{
// Initialisierung
$showHTML='';
// Es gibt keinen Datensatz, Pyramidenaufbau ist nicht noetig
if (!is_array($oWettbewerb->AnzeigePyramide) || count($oWettbewerb->AnzeigePyramide)<1)
return $showHTML;
$arrSpielerPyramide=$oWettbewerb->AnzeigePyramide;
$arrAktiverSpieler=$arrSpielerPyramide["Anwender"];
unset($arrSpielerPyramide["Anwender"]);
reset($arrSpielerPyramide);
if (is_array($arrAktiverSpieler) && count($arrAktiverSpieler)>0)
{
$iTmpAktiverSpielerZeile=$arrAktiverSpieler['zeile'];
$iTmpAktiverSpielerSpalte=$arrAktiverSpieler['spalte'];
$iTmpAktiverSpielerDaten=$arrAktiverSpieler['daten'];
}
else
{
$iTmpAktiverSpielerZeile='';
$iTmpAktiverSpielerSpalte='';
$iTmpAktiverSpielerDaten='';
}
// Start des Pyramidenaufbaues
$showHTML.='<table summary="Pyramide" style="text-align:center;width: 100%;">';
$cTmpStartFarbe=(isset($oWettbewerb->Wettbewerb[0]["farbe"]) && !empty($oWettbewerb->Wettbewerb[0]["farbe"])?$oWettbewerb->Wettbewerb[0]["farbe"]:'B1B1B1');
for ($zeileIND=0;$zeileIND<count($arrSpielerPyramide);$zeileIND++)
{
if ($zeileIND>0) // Neue Pyramiden Reihe beginnnen Border-Farbe reduzieren
{
$arrTmpStartFarbe=str_split($cTmpStartFarbe ,2);
$cTmpRotFarbe=hexdec($arrTmpStartFarbe[0])-10;
if ($cTmpRotFarbe<0)
$cTmpRotFarbe=0;
$cTmpGelbFarbe=hexdec($arrTmpStartFarbe[1]) - 10;
if ($cTmpGelbFarbe<0)
$cTmpGelbFarbe=0;
$cTmpBlauFarbe=hexdec($arrTmpStartFarbe[2])-10;
if ($cTmpBlauFarbe<0)
$cTmpBlauFarbe=0;
$cTmpStartFarbe = dechex($cTmpRotFarbe). dechex($cTmpGelbFarbe). dechex($cTmpBlauFarbe);
}
# exit(Test($arrTmpStartFarbe)."$cTmpRotFarbe , $cTmpGelbFarbe , $cTmpBlauFarbe ").$cTmpStartFarbe;
$showHTML.='<tr><td style="text-align: center;">
<table summary="Spielpyramiden Zeile '.($zeileIND + 1).'" style="width: 100%;"><tr>';
for ($spaltenIND=0;$spaltenIND<count($arrSpielerPyramide[$zeileIND]);$spaltenIND++)
{
// PopUP ID , und JavaScript fuer Team / Spieler
$cTmpTeamPopUpID='sTeam'.$zeileIND.'_'.$spaltenIND;
$cTmpTeamPopUp=' onmouseover="show_layer(\''.$cTmpTeamPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpTeamPopUpID.'\');" ';
$wettbewerb_kurzbz=$arrSpielerPyramide[$zeileIND][$spaltenIND]["wettbewerb_kurzbz"];
$team_kurzbz=$arrSpielerPyramide[$zeileIND][$spaltenIND]["team_kurzbz"];
$prozentTDbreite=(100/($zeileIND+1)); // Breite in Prozent je TD ermitteln
// Farbstufen
if ($zeileIND%2)
$showHTML.='<td style="text-align: center;width:'.$prozentTDbreite.'%;border:2px outset #'.$cTmpStartFarbe.';">&nbsp;';
else
$showHTML.='<td style="text-align: center;width:'.$prozentTDbreite.'%;border:2px inset #'.$cTmpStartFarbe.';">&nbsp;';
$showHTML.='<b>'.$arrSpielerPyramide[$zeileIND][$spaltenIND]['rang'].'</b> <br />';
// Farbstufen
if ($zeileIND%2)
$showHTML.='<span style="border:0px outset #'.$cTmpStartFarbe.';">&nbsp;';
else
$showHTML.='<span style="border:0px inset #'.$cTmpStartFarbe.';">&nbsp;';
if ($arrSpielerPyramide[$zeileIND][$spaltenIND]['team_aktiv'])// Eigenen Eintrag des Anwender
{
// PopUp Fenster mit Informationen zum Wettbewerbteam
$showHTML.='&nbsp;<img title="weiter zu '.$team_kurzbz.'" style="text-align: center;vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />';
$showHTML.=kommune_funk_create_href(constKommuneWartungUID,'',array('team_kurzbz'=>trim($team_kurzbz),'wettbewerb_kurzbz'=>trim($wettbewerb_kurzbz)),$team_kurzbz);
}
// Eingeladen werden koennen
// a) Alle Spieler in der gleiche Zeile die vor dem Eintrag sind
// b) Der Letzte Spieler in der Vorherigen Zeile kann eingeladen werden
elseif (isset($iTmpAktiverSpielerDaten['team_kurzbz'])
&& ($zeileIND==$iTmpAktiverSpielerZeile && $spaltenIND<$iTmpAktiverSpielerSpalte)
|| ( $zeileIND==($iTmpAktiverSpielerZeile-1) && $spaltenIND==count($arrSpielerPyramide[$zeileIND])-1 ) )
{
$showHTML.='&nbsp;<img title="weiter zur Forderung" alt="Forderung" height="18" src="../../../skin/images/image_legend0.gif" border="0" />';
$showHTML.='Fordern '.kommune_funk_create_href(constKommuneEinladenTEAM,'',array('team_kurzbz'=>trim($iTmpAktiverSpielerDaten['team_kurzbz']),'team_forderer'=>trim($iTmpAktiverSpielerDaten['team_kurzbz']),'einladen_team_kurzbz'=>trim($team_kurzbz),'wettbewerb_kurzbz'=>trim($wettbewerb_kurzbz)),$team_kurzbz);
}
else
{
$showHTML.=$team_kurzbz;
}
$showHTML.='&nbsp;<img height="16" '.$cTmpTeamPopUp.' title="Detailinformationen '.$team_kurzbz.'" style="vertical-align: bottom;" alt="infoWettbewerb'.$zeileIND.$spaltenIND.'" src="../../../skin/images/icon_voransicht.gif" border="0" />&nbsp;';
$showHTML.='&nbsp;</span>'; // Ende Farbstufen
$showHTML.='<div style="display:none;position: absolute;z-index:98;" id="'.$cTmpTeamPopUpID.'" >';
if (isset($arrSpielerPyramide[$zeileIND][$spaltenIND]['team_kurzbz']) && is_array($arrSpielerPyramide[$zeileIND][$spaltenIND]) )
$showHTML.=kommune_funk_popup_wettbewerbteam($arrSpielerPyramide[$zeileIND][$spaltenIND],$oWettbewerb,$cTmpTeamPopUpID.$spaltenIND,true);
$showHTML.='</div>';
$showHTML.='</td>';
}
// TD ausgleich fuer eine kpl. Tabellenreihe aufzufuellen
for ($spaltenIND+1;$spaltenIND< ($zeileIND + 1) ;$spaltenIND++)
{
$showHTML.='<td style="border:2px outset #'.$cTmpStartFarbe.';text-align: center;width:'.$prozentTDbreite.'%;" id="col_row_'.$zeileIND.'_'.$spaltenIND.'">&nbsp;</td>';
}
$showHTML.='</tr></table>
</td></tr>';
}
$showHTML.='</table>';
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @findUIDinPyramide Suchen Zeile und Spalte einer bestimmten Anwender UID in einem Spiel
*
* @param arrayPYRAMIDE Liste der UIDs in Pyramidenform je Spiel
* @param user Anwender UID nach der in der Pyramide gesucht wird
*
* @return Retour wird ein Array mit UID,Zeile,Splate der gefundenen Position geliefert
*
*/
function findUIDinPyramide($arrayPYRAMIDE,$arrayWETTBEWERBUSER)
{
$arrayPyramidePositionUID=array();
// Es gibt keine Suche nach einer UID moeglich - notwendig
if ((!is_array($arrayPYRAMIDE) || count($arrayPYRAMIDE)<1)
|| (!is_array($arrayWETTBEWERBUSER) || count($arrayWETTBEWERBUSER)<1) )
return $arrayPyramidePositionUID;
// Suchen Position(Zeile-Spalte) des Anwender in der Pyramide
for ($zeileIND=0;$zeileIND<count($arrayPYRAMIDE);$zeileIND++)
{
for ($spaltenIND=0;$spaltenIND<count($arrayPYRAMIDE[$zeileIND]);$spaltenIND++)
{
$spielerTEAM_KURZBZ=trim($arrayWETTBEWERBUSER[0]["team_kurzbz"]);
$wettbewerbTEAM_KURZBZ=trim($arrayPYRAMIDE[$zeileIND][$spaltenIND]["team_kurzbz"]);
if ($spielerTEAM_KURZBZ==$wettbewerbTEAM_KURZBZ)
{
$arrayPyramidePositionUID=array($wettbewerbTEAM_KURZBZ,$zeileIND,$spaltenIND,$GLOBALS["user"],"team_kurzbz"=>$wettbewerbTEAM_KURZBZ,"zeileIND"=>$zeileIND,"spaltenIND"=>$spaltenIND,"user"=>$GLOBALS["user"]);
$arrayPYRAMIDE[$zeileIND][$spaltenIND]["EIGENER_EINTRAG"]="X";
$zeileIND=count($arrayPYRAMIDE); // Schleifenbedingung 1 auf True setzten
break; // diese Schleife beenden
}
}
}
return $arrayPyramidePositionUID;
}
?>
@@ -1,43 +0,0 @@
<?php
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#-------------------------------------------------------------------------------------------
/*
*
* @showStartseite HTML Ausgabe der Wettbewerbe, Eigene Wettbewerbe , Eingeladen zu einem Wettkamp
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return showHTML String mit HTML Ausgabe der Wettbewerbe, Eigene Wettbewerbe
*
*/
function showStartseite($oWettbewerb)
{
// Plausib
// Initialisierung
$showHTML='';
// Menue-AnzeigenContent
return $showHTML;
}
?>
@@ -1,306 +0,0 @@
<?php
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#-------------------------------------------------------------------------------------------
/*
*
* @showStartseite HTML Ausgabe der Wettbewerbe, Eigene Wettbewerbe , Eingeladen zu einem Wettkamp
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return showHTML String mit HTML Ausgabe der Wettbewerbe, Eigene Wettbewerbe
*
*/
function showStartseite($oWettbewerb,$cTmpMenue='')
{
// Plausib
// Initialisierung
$showHTML='';
//
// Anzeigenauswahl - Oberesmenue
// wird nur angezeigt wenn Daten fuer die Auswahl vorhanden sind
//
$iTmpAnzahl=(!is_array($oWettbewerb->Wettbewerb) || count($oWettbewerb->Wettbewerb)<1?0:count($oWettbewerb->Wettbewerb));
if ($iTmpAnzahl!=0)
{
$cTmpMenue.=(!empty($cTmpMenue)?'&nbsp;|&nbsp;':'');
$cTmpMenue.='<a href="#" onclick="hide_layer(\'idWBInformation\');hide_layer(\'idWBListe\');hide_layer(\'idWBUser\');hide_layer(\'idWBEinlad\');hide_layer(\'idWBAufford\');hide_layer(\'idWBSpiele\');show_layer(\'idWBInformation\');">';
$cTmpMenue.='Information&nbsp;';
$cTmpMenue.='</a>';
$showHTML.=showMenueFunktion($oWettbewerb,$cTmpMenue);
$showHTML.='<div id="idWBInformation"><h1>Information</h1>'.showWettbewerbStatistik($oWettbewerb).'</div>';
}
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/* Subfunktion von getDisplayStringWettbewerb
*
* @showWettbewerbStatistik Aufbau einer StatistikListe zu den Wettbewerben
*
* @param $oWettbewerb Array mit allen Wettbewerbs und Benutzerdaten
*
* @return HTML String in Listenform der Wettbewerbe
*
*/
function showWettbewerbStatistik($oWettbewerb)
{
$db = new basis_db();
#exit(Test($oWettbewerb->WettbewerbTyp));
$showHTML='';
if (!is_array($oWettbewerb->WettbewerbTyp))
return $showHTML;
$showHTML.='<table cellpadding="1" cellspacing="1" summary="Wettbewerbstypen" style="background-color: black;">';
$showHTML.='<tr>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Information</th>';
$showHTML.='</tr>';
for ($iTmpZehler=0;$iTmpZehler<count($oWettbewerb->WettbewerbTyp);$iTmpZehler++)
{
$cTmpFarbe=(isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"]) && !empty($oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"])?$oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"]:'transparent');
$oWettbewerb->WettbewerbTyp[$iTmpZehler]["wbtyp_kurzbz"]=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler]["wbtyp_kurzbz"]);
$showHTML.='<tr>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;border:1px solid #'.$cTmpFarbe.';">'.$oWettbewerb->WettbewerbTyp[$iTmpZehler]['wbtyp_kurzbz'].'</td>';
$showHTML.='</tr>';
}
$showHTML.='</table>';
$showHTML.='<br />';
$showHTML='';
if (!is_array($oWettbewerb->Wettbewerb))
return $showHTML;
$Wettbewerb=new komune_wettbewerbteam('','',$oWettbewerb->wettbewerb_kurzbz);
// Laden alle Teams
$Wettbewerb->InitWettbewerbteam();
if ($Wettbewerb->loadWettbewerbteam())
$oWettbewerb->TeamAnwender=$Wettbewerb->getWettbewerbteam();
else
$oWettbewerb->Error[]=$Wettbewerb->getError();
$iTmpAktivste=0;
$iTmpAktivsteTeam='';
for ($iTmpZehler=0;$iTmpZehler<count($oWettbewerb->Wettbewerb);$iTmpZehler++)
{
if (empty($oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"])) // wbtyp_kurzbz=(leer=keine wettbewerbe)
continue;
$cSchemaSQL=$Wettbewerb->getSchemaKommuneSQL();
$qry="";
$qry.="SELECT tbl_wettbewerbteam.wettbewerb_kurzbz,count(distinct tbl_wettbewerbteam.team_kurzbz) as count_team_kurzbz,max(rang) as max_range,max(punkte) as max_punkte FROM ".$oWettbewerb->sqlSCHEMA.".tbl_wettbewerbteam ";
$qry.=" WHERE UPPER(tbl_wettbewerbteam.wettbewerb_kurzbz)=UPPER(E'".trim($oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"])."') ";
$qry.=" group by tbl_wettbewerbteam.wettbewerb_kurzbz OFFSET 0 LIMIT 1 ;";
$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']=array();
if($db->db_query($qry))
{
$rows=array();
while($row = $db->db_fetch_array())
{
$oWettbewerb->Wettbewerb[$iTmpZehler]['teams'][]=$row;
}
}
else
{
$$oWettbewerb->Error[]= $db->db_last_error();
return false;
}
if (isset($oWettbewerb->Wettbewerb[$iTmpZehler]['teams'][0]))
$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']=$oWettbewerb->Wettbewerb[$iTmpZehler]['teams'][0];
$cSchemaSQL=$Wettbewerb->getSchemaKommuneSQL();
$qry="";
$qry.="SELECT * FROM ".$oWettbewerb->sqlSCHEMA.".tbl_wettbewerbteam ";
$qry.=" WHERE UPPER(tbl_wettbewerbteam.wettbewerb_kurzbz)=UPPER(E'".trim($oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"])."') ";
$qry.=" AND ( tbl_wettbewerbteam.rang=1 or (tbl_wettbewerbteam.punkte>0 and tbl_wettbewerbteam.punkte=".(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['teams']["punkte"])?$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']["punkte"]:0)." ))";
$qry.=" OFFSET 0 LIMIT 2 ;";
$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner']=array();
if($db->db_query($qry))
{
$rows=array();
while($row = $db->db_fetch_array())
{
$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][]=$row;
}
}
else
{
$$oWettbewerb->Error[]= $db->db_last_error();
return false;
}
if (isset($oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte']) && $iTmpAktivste<$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte'])
{
$iTmpAktivste=$oWettbewerb->Wettbewerb[$iTmpZehler]['teams'];
$iTmpAktivsteTeam=($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]['punkte']==$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte']?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]:(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]['team_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]:array()));
$iTmpAktivste=array_merge($iTmpAktivste,$iTmpAktivsteTeam,$oWettbewerb->Wettbewerb[$iTmpZehler]);
}
}
if (isset($Wettbewerb))
unset($Wettbewerb);
$cShowImage='';
$pers=kommune_funk_benutzerperson($iTmpAktivsteTeam['team_kurzbz'],$oWettbewerb);
if (isset($pers->foto_image) && !empty($pers->foto_image))
$cShowImage=$pers->foto_image;
$showHTML.='<table cellpadding="1" cellspacing="1" summary="Aktivster Spieler" style="background-color: black;">';
$showHTML.='<tr>';
$showHTML.='<th colspan="5" style="color:back;background-color:#C0C0C0;">der Aktivste in den Wettbewerben</th>';
$showHTML.='</tr>';
$cTmpFarbe=(isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"]) && !empty($oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"])?$oWettbewerb->WettbewerbTyp[$iTmpZehler]["farbe"]:'transparent');
$cTmpFarbe=(isset($iTmpAktivste["farbe"]) && !empty($iTmpAktivste["farbe"])?$iTmpAktivste["farbe"]:'');
$showHTML.='<tr>';
$showHTML.='<td style="color:back;background-color: #F7AB66;">Wettbewerb</td>';
$showHTML.='<td style="color:back;background-color: #F7AB66;">Team / Spieler</td>';
$showHTML.='<td style="color:back;background-color: #F7AB66;">Rang</td>';
$showHTML.='<td style="color:back;background-color: #F7AB66;">Punkte</td>';
$showHTML.='<td style="color:back;background-color: #F7AB66;">Bild</td>';
$showHTML.='</tr>';
$cTmpHREF=kommune_funk_create_href(constKommuneAnzeigeWETTBEWERBTEAM,'',array('wettbewerb_kurzbz'=>$iTmpAktivste['wettbewerb_kurzbz']),'<img title="weiter '.$iTmpAktivste['wettbewerb_kurzbz'].'" style="vertical-align: bottom;" alt="open'.$iTmpZehler.'" src="../../../skin/images/open.gif" border="0" />&nbsp;'.$iTmpAktivste['wettbewerb_kurzbz'].'&nbsp;','weiter');
$showHTML.='<tr>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;border:2px solid #'.$cTmpFarbe.';">'.$iTmpAktivste['wbtyp_kurzbz'].' / '.$cTmpHREF.'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.$iTmpAktivste['team_kurzbz'].'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.$iTmpAktivste['rang'].'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.$iTmpAktivste['max_punkte'].'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.(!empty($cShowImage)?$cShowImage:'&nbsp;').'</td>';
$showHTML.='</tr>';
$showHTML.='</table>';
$showHTML.='<br />';
//-------------------------------------------------------------------------------------------
$showHTML.='<table class="tabcontent" summary="Wettbewerb Statistikdaten">';
$showHTML.='<tr>';
$showHTML.='<td><table cellpadding="1" cellspacing="2" summary="Wettbewerb Statistik" style="background-color: black;">';
$showHTML.='<tr>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Art</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Wettbewerb</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Teilnehmer</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">max.Punkte</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Beste</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Aktivste</th>';
$showHTML.='<th style="color:back;background-color:#C0C0C0;">Forderungen</th>';
$showHTML.='</tr>';
$cTmpGruppeTyp='';
$showHTMLicon='';
$showHTMLspiele='';
$showHTMLteams='';
for ($iTmpZehler=0;$iTmpZehler<count($oWettbewerb->Wettbewerb);$iTmpZehler++)
{
#exit(Test($oWettbewerb));
// Kennzeichen ob ein Record in tbl_wettbewerb angelegt wurde ist wbtyp_kurzbz
if (empty($oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"])) // wbtyp_kurzbz=(leer=keine wettbewerbe)
{
continue;
}
$cTmpBesteTeam=@($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]['rang']==1?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]['team_kurzbz']:(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]['team_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]['team_kurzbz']:''));
$cTmpAktivsteTeam=@($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]['punkte']==$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte']?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][0]['team_kurzbz']:(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]['team_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['gewinner'][1]['team_kurzbz']:''));
$cTmpIconPopUpID='icon'.$iTmpZehler;
$cTmpIconPopUp=' onmouseover="show_layer(\''.$cTmpIconPopUpID.'\');" onmouseout="hide_layer(\''.$cTmpIconPopUpID.'\');" ';
$cTmpSpielePopUpID='spiele'.$iTmpZehler;
$cTmpSpielePopUp=' onmouseover="show_layer(\''.$cTmpSpielePopUpID.'\');" onmouseout="hide_layer(\''.$cTmpSpielePopUpID.'\');" ';
$cTmpTeamPopUpID1='sTeam1'.$iTmpZehler;
$cTmpTeamPopUp1=' onmouseover="show_layer(\''.$cTmpTeamPopUpID1.'\');" onmouseout="hide_layer(\''.$cTmpTeamPopUpID1.'\');" ';
$cTmpTeamPopUpID2='sTeam2'.$iTmpZehler;
$cTmpTeamPopUp2=' onmouseover="show_layer(\''.$cTmpTeamPopUpID2.'\');" onmouseout="hide_layer(\''.$cTmpTeamPopUpID2.'\');" ';
$showHTMLicon.='<div style="display:none;z-index:98;" id="'.$cTmpIconPopUpID.'">'.(isset($oWettbewerb->Wettbewerb[$iTmpZehler]["icon_image"])?$oWettbewerb->Wettbewerb[$iTmpZehler]["icon_image"].'<br />':'').'</div>';
$showHTMLspiele.='<div style="display:none;z-index:99;" id="'.$cTmpSpielePopUpID.'">'.kommune_funk_show_wettbewerbteam_spiele($oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"],'',$oWettbewerb).'</div>';
$showHTMLteams.='<div style="display:none;position: absolute;z-index:97;" id="'.$cTmpTeamPopUpID1.'" '.$cTmpTeamPopUp1.' >';
if (isset($cTmpBesteTeam) )
$showHTMLteams.=kommune_funk_popup_wettbewerbteam($cTmpBesteTeam,$oWettbewerb,$cTmpTeamPopUpID1.$iTmpZehler,true);
$showHTMLteams.='</div>';
$showHTMLteams.='<div style="display:none;position: absolute;z-index:96;" id="'.$cTmpTeamPopUpID2.'" '.$cTmpTeamPopUp2.' >';
if (isset($cTmpAktivsteTeam) )
$showHTMLteams.=kommune_funk_popup_wettbewerbteam($cTmpAktivsteTeam,$oWettbewerb,$cTmpTeamPopUpID2.$iTmpZehler,true);
$showHTMLteams.='</div>';
$cTmpFarbe=(isset($oWettbewerb->Wettbewerb[$iTmpZehler]["farbe"]) && !empty($oWettbewerb->Wettbewerb[$iTmpZehler]["farbe"])?$oWettbewerb->Wettbewerb[$iTmpZehler]["farbe"]:'');
// Wettbewerbstypen - Gruppenwechsel
$oWettbewerb->Wettbewerb[$iTmpZehler]["wbtyp_kurzbz"]=trim($oWettbewerb->Wettbewerb[$iTmpZehler]["wbtyp_kurzbz"]);
$showHTML.='<tr>';
$cTmpHREF=kommune_funk_create_href(constKommuneAnzeigeWETTBEWERBTEAM,'',array('wettbewerb_kurzbz'=>$oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"]),'<img title="weiter '.$oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"].'" style="vertical-align: bottom;" alt="open'.$iTmpZehler.'" src="../../../skin/images/open.gif" border="0" />&nbsp;'.$oWettbewerb->Wettbewerb[$iTmpZehler]["wettbewerb_kurzbz"].'&nbsp;','weiter');
if ($cTmpGruppeTyp!=$oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz'])
$showHTML.='<td style="color:back;background-color: #FFFFB0;border:1px solid #'.$cTmpFarbe.';">'.$oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz'].'</td>';
else
$showHTML.='<td style="color:back;background-color: #FFFFB0;"></td>';
$cTmpGruppeTyp=$oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz'];
$showHTML.='<td '.$cTmpIconPopUp.' style="color:back;background-color: #FFFFB0;border:2px solid #'.$cTmpFarbe.';">'.$cTmpHREF.'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.@(int)$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['count_team_kurzbz'].'</td>';
$showHTML.='<td style="color:back;background-color: #FFFFB0;">'.@(int)$oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte'].'</td>';
$showHTML.='<td '.$cTmpTeamPopUp1.' style="color:back;background-color: #FFFFB0;">'.$cTmpBesteTeam.'</td>';
$showHTML.='<td '.$cTmpTeamPopUp2.' style="color:back;background-color: #FFFFB0;">'.$cTmpAktivsteTeam.'</td>';
if (!isset($oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte']) || $oWettbewerb->Wettbewerb[$iTmpZehler]['teams']['max_punkte']<1)
$showHTML.='<td '.$cTmpSpielePopUp.' style="color:back;background-color: #FFFFB0;">keine Forderungen</td>';
else
$showHTML.='<td '.$cTmpSpielePopUp.' style="color:back;background-color: #FFFFB0;"><b>Forderungen</b></td>';
$showHTML.='</tr>';
}
$showHTML.='</table></td>';
$showHTML.='<td>'.$showHTMLicon.$showHTMLspiele.$showHTMLteams.'</td>';
$showHTML.='</tr>';
$showHTML.='</table>';
$showHTML.='<br /><br /><div style="text-align:center;" class="home_logo">&nbsp;</div>';
return $showHTML;
}
?>
@@ -1,428 +0,0 @@
<?php
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamWartung Team zu einem Wettbewerb Anzeigen , und die Datenpflege
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return Teaminformationen, und Pflegeingabefelder in HTML Ausgabeform
*
*/
function showTeamWartung($oWettbewerb)
{
if ($oWettbewerb->Wettbewerb[0]["teamgroesse"]<2 || $oWettbewerb->Wettbewerb[0]["teamgroesse"]==null)
$oWettbewerb->Wettbewerb[0]["teamgroesse"]=1;
// Initialisierung
$showHTML='';
// Link zum Wettbewerb als Stringvariable wird im Header und in der Informationszeile benoetigt
$cTmpHREF=kommune_funk_create_href(constKommuneAnzeigeWETTBEWERBTEAM,$oWettbewerb,array(),'&nbsp;'.$oWettbewerb->wettbewerb_kurzbz.'&nbsp;');
// Header
$showHTML.='<div>';
$showHTML.='<h1 onmouseover="show_layer(\'wettbewerb_popup\');" onmouseout="hide_layer(\'wettbewerb_popup\');" style="text-align:center;">'.$cTmpHREF.'</h1>';
$showHTML.='<p>';
// Moderator PopUp
$showHTML.='<span onmouseover="show_layer(\'wettbewerb_moderator_popup\');" onmouseout="hide_layer(\'wettbewerb_moderator_popup\');">Moderator : '.kommune_funk_pers_langname($oWettbewerb->Wettbewerb[0]['uid'],kommune_funk_benutzerperson($oWettbewerb->Wettbewerb[0]['uid'],$oWettbewerb)).'</span>&nbsp;&nbsp;&nbsp;';
// Wettbewerb PopUp
$showHTML.='<span onmouseover="show_layer(\'wettbewerb_popup\');" onmouseout="hide_layer(\'wettbewerb_popup\');"><img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;weiter zum Wettbewerb '.$cTmpHREF.'&nbsp;</span>';
$showHTML.='</p>';
// Header Moderator PopUp Anzeige
$showHTML.='<div style="display:none;position: absolute;z-index:99;" onmouseover="show_layer(\'wettbewerb_moderator_popup\');" onmouseout="hide_layer(\'wettbewerb_moderator_popup\');" id="wettbewerb_moderator_popup">';
if (isset($oWettbewerb->Wettbewerb[0]))
$showHTML.=kommune_funk_popup_benutzer($oWettbewerb->Wettbewerb[0]['uid'],$oWettbewerb);
$showHTML.='</div>';
// Header Wettbewerb PopUp Anzeige
$showHTML.='<div style="display:none;position: absolute;z-index:100;" onmouseover="show_layer(\'wettbewerb_popup\');" onmouseout="hide_layer(\'wettbewerb_popup\');" id="wettbewerb_popup">';
if (isset($oWettbewerb->Wettbewerb[0]))
$showHTML.=kommune_funk_popup_wettbewerb($oWettbewerb->Wettbewerb[0],$oWettbewerb);
$showHTML.='</div>';
$showHTML.='</div>';
// Header Ende
// Plausib
if (empty($oWettbewerb->team_kurzbz) && empty($oWettbewerb->user))
return $showHTML.="Keine Angaben &uuml;ber das Team gefunden!";
if (empty($oWettbewerb->wettbewerb_kurzbz))
return $showHTML.="Keine Angaben &uuml;ber den Wettbewerb gefunden!";
// Datenloeschen zum Team / Spieler
if (isset($_REQUEST['del']) || isset($_REQUEST['delete']))
{
$_REQUEST['rang']=9999;
}
// Datenspeicherung
// Submit wurde gedrueckt
if (isset($_REQUEST['array_user']))
{
// Bilderupload
showTeamWartung_Bildupload($oWettbewerb);
//Datenpflege - Funktion , wird nur aufgerufen wenn der Standartwert im Kurzzeichenfeld geaendert wurde
$arrTmpWettbewerteam=showTeamWartung_Datenverarbeiten($oWettbewerb);
if (is_array($arrTmpWettbewerteam)) // Wichtig das nach der Neuanlage die Vergleichsvariable gesetzt wird.
$oWettbewerb->team_kurzbz_old=$oWettbewerb->team_kurzbz;
}
// Pruefen ob nach dem Speichern (Submit) ein Fehler ( Kein DatenArray)
// aufgetreten ist. Bei einem Fehler muessen die Request-Daten
// in die Tabellen zurueck geladen werden fuer die Inputfeld-Werte
if (isset($_REQUEST['array_user']) && !is_array($arrTmpWettbewerteam) )
{
$oWettbewerb->Team[$oWettbewerb->team_kurzbz]=$_REQUEST;
for ($zeileIND=0;$zeileIND<count($_REQUEST['array_user']);$zeileIND++)
$oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"]=$_REQUEST['array_user'][$zeileIND];
}
// Keine Request, und keine bestehenden Daten -> Login User in die Tabellen laden
if (!isset($oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][0]["uid"]) ) // Neuanlage (es wurde noch nicht Submit gedrueckt)
$oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][0]["uid"]=$oWettbewerb->user;
// Ausgabe des Template
$showHTML.=showTeamWartung_erzeugen_HTML($oWettbewerb);
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamWartung_erzeugen_HTML Output HTML fuer Team/Spieler-Daten I/O
*
* @param $oWettbewerb Objekt mit allen Wettbewerbsdaten
*
* @return HTML String
*
*/
function showTeamWartung_erzeugen_HTML($oWettbewerb)
{
$showHTML='';
#exit(kommune_Test($oWettbewerb->Wettbewerb[0]));
// Form Start
$cTmpURL=$_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'='.constKommuneWartungUID.'&amp;wbtyp_kurzbz='.trim($oWettbewerb->wbtyp_kurzbz).'&amp;wettbewerb_kurzbz='.trim($oWettbewerb->wettbewerb_kurzbz);
$showHTML.='<form onsubmit="return checkTeamAnzahl(this,\'array_user[]\',\''.$oWettbewerb->Wettbewerb[0]["teamgroesse"].'\');" target="_self" method="post" name="kommunen_work" action="'.$cTmpURL.'" enctype="multipart/form-data">';
$showHTML.='<div>'; // Zusammenfassung der kpl. Eingabe
$cTmpWetbewerbUSERok='';
if ( isset($oWettbewerb->Wettbewerb) && isset($oWettbewerb->Wettbewerb[0]) && isset($oWettbewerb->Wettbewerb[0]["daten_eingetragen"])
&& trim($oWettbewerb->Wettbewerb[0]["daten_eingetragen"]["uid"])!=trim($oWettbewerb->user) )
$cTmpWetbewerbUSERok=' style="display:none" ';
if (empty($oWettbewerb->team_kurzbz) || $oWettbewerb->team_kurzbz==constEingabeFehlt)
$cTmpWetbewerbUSERok='';
$cSeitenKey="sTeam" ;
$iPopUp=false;
if (!empty($cTmpWetbewerbUSERok))
return kommune_funk_show_wettbewerbteam($oWettbewerb->Wettbewerb[0]["daten_eingetragen"],$oWettbewerb,$cSeitenKey,$iPopUp);
#exit($cTmpWetbewerbUSERok.$oWettbewerb->user.Test($oWettbewerb->Wettbewerb[0]["daten_eingetragen"]));
$cTmpURL=$_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'='.constKommuneWartungUID.'&amp;wbtyp_kurzbz='.trim($oWettbewerb->wbtyp_kurzbz).'&amp;wettbewerb_kurzbz='.trim($oWettbewerb->wettbewerb_kurzbz.'&amp;del=1');
// Form Titleanzeige
$cTmpHeaderWorkInfo="Datenwartung von ".$oWettbewerb->user;
$showHTML.='<fieldset><legend>'.$cTmpHeaderWorkInfo.'</legend>';
$showHTML.='<table summary="'.$cTmpHeaderWorkInfo.'">';
$showHTML.='<tr>';
// Team Hauptdaten (Kurzbezeichnung,Beschreibung,....)
$showHTML.='<td><table summary="Eingabe Team Hauptbeschreibungsinformation">';
$showHTML.='<tr>
<td style="text-align:right;vertical-align: top;">*<label title="Kurzberzeichnung" for="team_kurzbz">Kurzberzeichnung</label>:</td>
<td>
<input title="Kurzbezeichnung" id="team_kurzbz" name="team_kurzbz" size="16" maxlength="16" value="'.(empty($oWettbewerb->team_kurzbz)?constEingabeFehlt:trim($oWettbewerb->team_kurzbz)).'" onblur="if (this.value==\'\') this.value=this.defaultValue" onfocus="if (this.value==\''.constEingabeFehlt.'\') this.value=\'\';" />
<input style="display:none" name="team_kurzbz_old" value="'.($oWettbewerb->team_kurzbz_old==constEingabeFehlt?'':trim($oWettbewerb->team_kurzbz)).'" />
</td>
</tr>
<tr>
<td style="text-align:right;vertical-align: top;"><label title="Bezeichnung" for="bezeichnung">Bezeichnung</label>:</td>
<td><textarea style="white-space : nowrap;overflow: hidden;" title="Bezeichnung" id="bezeichnung" name="bezeichnung" cols="64" rows="2" >'.(isset($_REQUEST['array_user']) && isset($_REQUEST['bezeichnung']) ? $_REQUEST['bezeichnung'] : (isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['bezeichnung']) ? $oWettbewerb->Team[$oWettbewerb->team_kurzbz]['bezeichnung'] :'')).'</textarea></td>
</tr>
<tr>
<td style="text-align:right;vertical-align: top;"><label title="Beschreibung" for="beschreibung">Beschreibung</label>:</td>
<td><textarea style="white-space : nowrap;overflow: hidden;" title="Beschreibung" id="beschreibung" name="beschreibung" cols="64" rows="4">'.(isset($_REQUEST['array_user']) && isset($_REQUEST['beschreibung']) ? $_REQUEST['beschreibung'] : (isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['beschreibung']) ? $oWettbewerb->Team[$oWettbewerb->team_kurzbz]['beschreibung'] :'')).'</textarea></td>
</tr>
<tr>
<td>* Pflichteingabe</td>
<td><input '.$cTmpWetbewerbUSERok.' type="submit" name="wettbewerbteam" value="speichern" /> <span style="display:none">'.(!empty($oWettbewerb->wbtyp_kurzbz)?'<a title="l&ouml;schen '.$oWettbewerb->team_kurzbz.'" target="_parent" href="'.$cTmpURL.'">l&ouml;schen</a>':'').'</span></td>
</tr>
';
$showHTML.='</table></td>';
// Logo (Bild) Upload bereich
$showHTML.='<td style="vertical-align: bottom;">';
// Logo Hex-String aus den Teamdaten wenn noch nicht vorhanden aus einen eventuellen Request
$cTmpLogo=(isset($_REQUEST['logo'])?$_REQUEST['logo']:'' );
if ( !empty($cTmpLogo) && (!isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo']) || empty($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo'])) )
$showHTML.='<br />Bild geladen, aber noch nicht gespeichert !';
if ( empty($cTmpLogo) && isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo']))
$cTmpLogo=$oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo'];
if (isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo_image']) && !empty($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo_image']) )
$showHTML.=$oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo_image'];
elseif (isset($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo']) && !empty($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo']) )
{
$paramURL=$_SERVER['PHP_SELF'].'?'.constKommuneParmSetWork.'='.constKommuneDisplayIMAGE.'&amp;timecheck'.time().(strlen($oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo'])<600?'&amp;heximg='.$oWettbewerb->Team[$oWettbewerb->team_kurzbz]['logo']:'').'&amp;team_kurzbz='.$oWettbewerb->team_kurzbz.'&amp;wettbewerb_kurzbz='.$oWettbewerb->wettbewerb_kurzbz;
if (!empty($oWettbewerb->Team[$oWettbewerb->team_kurzbz]["logo"]))
$showHTML.=$oWettbewerb->Team[$oWettbewerb->team_kurzbz]["logo_image"]='<img onmouseover="this.src=\''.$paramURL.'\'" height="80" border="0" alt="'.$oWettbewerb->team_kurzbz.'" src="'.$paramURL.'" />';
}
$showHTML.='<br /><br />
<div style="text-align:right;">
Logo <input '.$cTmpWetbewerbUSERok.' type="file" name="TeamLogoBild" />
<input '.$cTmpWetbewerbUSERok.' type="submit" name="submitTeamLogo" value="Upload" />
<input style="display:none;" name="logo" value="'.$cTmpLogo.'" />
</div>&nbsp;';
$showHTML.='</td>';
$showHTML.='</tr>';
// Teamspieler Daten Header
$showHTML.='<tr>
<td colspan="2">';
$showHTML.='<fieldset>';
$showHTML.='<legend>Teilnehmer '.(isset($oWettbewerb->Wettbewerb[0]["wettbewerbart"])?$oWettbewerb->Wettbewerb[0]["wettbewerbart"]:'').'</legend>';
$showHTML.='<table summary="Wettbewerb Team Informationen">';
$showHTML.='<tr>
<th style="vertical-align: bottom;"><label title="Spieler Kurzzeichen" for="array_user">Spieler</label></th>
<th style="vertical-align: bottom;" colspan="2">Namen</th>
</tr>';
// Teamspieler Daten Header
$iTmpCounter=0; // wird beim Team fuer die naechsten freien Zeilen gebraucht
for ($zeileIND=0;$zeileIND<count($oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz]);$zeileIND++)
{
if (empty($oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"]))
continue;
$iTmpCounter++;
$cTmpName='';
$pers=kommune_funk_benutzerperson($oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"],$oWettbewerb);
if (isset($pers->nachname))
$cTmpName=$pers->langname;
elseif ($zeileIND>0)
$cTmpName='Anwender ist nicht g&uuml;ltig ! ';
// Teammitglieder Wartungszeile
$showHTML.='<tr>';
$showHTML.='<td>';
// Wenn der gefundene Anwender gleich der Angemeldete ist die Daten fuer Eingabe sperren
if (trim($oWettbewerb->user)==trim($oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"]))
$showHTML.=$iTmpCounter.')&nbsp;<b onmouseover="show_layer(\'bild'.$zeileIND.'\');" onmouseout="hide_layer(\'bild'.$zeileIND.'\');">'.$oWettbewerb->user.'</b><input id="array_user" style="display:none" size="17" maxlength="16" name="array_user[]" value="'.$oWettbewerb->user.'" />';
else
{
if (!empty($cTmpWetbewerbUSERok))
$showHTML.='<b onmouseover="show_layer(\'bild'.$zeileIND.'\');" onmouseout="hide_layer(\'bild'.$zeileIND.'\');">'.$oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"].'</b>';
else
{
$showHTML.=$iTmpCounter.')&nbsp;
<input title="Anwender Spieler Kurzzeichen '.(isset($pers->person_id)?$pers->person_id:$oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"]) .'" onclick="show_layer(\'bild'.$zeileIND.'\');"
onchange="clear_layer(\'alt'.$zeileIND.'\');clear_layer(\'persimage'.$zeileIND.'\');if(this.value!=\'\') doIt(this.value,\'alt'.$zeileIND.'\');"
onblur="hide_layer(\'bild'.$zeileIND.'\');"
size="17" maxlength="16" id="array_user" name="array_user[]" value="'.$oWettbewerb->TeamBenutzer[$oWettbewerb->team_kurzbz][$zeileIND]["uid"].'" />
';
}
}
$showHTML.='</td>';
$showHTML.='<td id="alt'.$zeileIND.'">'.$cTmpName.'&nbsp;</td>';
// Personen Bild PopUp
$showHTML.='
<td id="persimage'.$zeileIND.'">
<div onmouseover="show_layer(\'bild'.$zeileIND.'\');" onmouseout="hide_layer(\'bild'.$zeileIND.'\');">'.(isset($pers->foto_image) && !empty($pers->foto_image)?'[ Bildanzeige ]':'').'</div>
<div style="display:none;border:0px outset Black;position: absolute;z-index:99;" id="bild'.$zeileIND.'">
'.(isset($pers->foto_image) && !empty($pers->foto_image)?$pers->foto_image:'').'&nbsp;
</div>
</td>';
$showHTML.='</tr>';
}
if (isset($pers)) unset($pers);
// weitere Mitglieder eingeben wenn Teamwettbewerb
if (isset($oWettbewerb->Wettbewerb[0]) && $oWettbewerb->Wettbewerb[0]["teamgroesse"] > 1)
{
$iTmpCounter++;
for ($zeileIND=$iTmpCounter;$zeileIND<=$oWettbewerb->Wettbewerb[0]["teamgroesse"];$zeileIND++)
{
$showHTML.='<tr>';
$showHTML.='<td style="vertical-align: bottom;">';
$showHTML.=$zeileIND.')&nbsp;<input onchange="if(this.value!=\'\') doIt(this.value,\'neu'.$zeileIND.'\');" size="17" maxlength="16" id="array_user" name="array_user[]" value="" />';
$showHTML.='</td>';
$showHTML.='<td id="neu'.$zeileIND.'">Neuer Mitspieler</td><td>&nbsp;</td><td>&nbsp;</td>';
$showHTML.='</tr>';
}
}
$showHTML.='</table>';
$showHTML.='</fieldset>';
$showHTML.='</td></tr>';
$showHTML.='<tr><td><input '.$cTmpWetbewerbUSERok.' type="submit" name="wettbewerbteam" value="Speichern" /></td></tr>';
$showHTML.='</table>';
$showHTML.=kommune_funk_create_href(constKommuneAnzeigeDEFAULT,array(),array(),'<img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/moreright.gif" border="0" />&nbsp;zur&nbsp;Startseite&nbsp;','&nbsp;zur&nbsp;Startseite&nbsp;');
$showHTML.='</fieldset>';
$showHTML.='</div>'; // Ende Zusammenfassung der kpl. Eingabe
$showHTML.='</form>'; // Form Ende
return $showHTML;
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamWartung_Bildupload Datenbearbeitung nach einem Request (Neuanlage,Aenderung)
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return Information des Bilderupload
*
*/
function showTeamWartung_Bildupload($oWettbewerb)
{
// Plausib der UploadDaten
if ((isset($_FILES['TeamLogoBild']['tmp_name']) && !empty($_FILES['TeamLogoBild']['tmp_name'])) )
{
$filename=$_FILES['TeamLogoBild']['tmp_name'];
if (!is_file($filename)) return '';
if ($fp=fopen($filename,'r')) //File oeffnen
{
$content = fread($fp, filesize($filename)); // auslesen der Daten
fclose($fp); // Close
$_REQUEST['logo']=kommune_strhex($content); //in HEX-Werte umrechnen
}
else // Fehler Information das Bild nicht gefunden wurde
{
return '<br />Fehler beim Bild einlesen! '.$_FILES['TeamLogoBild']['name'];
}
if (isset($fp)) unset($fp);
} // Ende Plausib der UploadDaten
return '';
}
#-------------------------------------------------------------------------------------------
/*
*
* @showTeamWartung_Datenverarbeiten Datenbearbeitung nach einem Request (Neuanlage,Aenderung)
*
* @param $oWettbewerb Objekt zum Wettbewerb, Team, Personen, Match
*
* @return gespeicherte Teaminformation (Array), oder Fehlermeldung
*
*/
function showTeamWartung_Datenverarbeiten($oWettbewerb)
{
// Initialisierung
// Plausib
if (empty($oWettbewerb->team_kurzbz) || $oWettbewerb->team_kurzbz==constEingabeFehlt)
return $oWettbewerb->Error[]='Bitte Eingabe pr&uuml;fen (Kurzbezeichnung darf nicht <b>Leer</b> oder <b>"'.constEingabeFehlt.'"</b> sein! )';
// Datenwartung - Neuanlage,Aenderung
$WettbewerbTeam= new komune_wettbewerbteam('','','');
$WettbewerbTeam->setTeam_kurzbz($oWettbewerb->team_kurzbz);
$WettbewerbTeam->setTeam_kurzbz_old($oWettbewerb->team_kurzbz_old);
$WettbewerbTeam->setUid($oWettbewerb->user); // keine Einschraenkung auf angemeldeten Anwender
// Request, und die Wettbewerbdaten als Array der Classe uebergeben
$arrTmpWettbewerbteam=array_merge($oWettbewerb->Wettbewerb[0],$_REQUEST);
$WettbewerbTeam->setNewWettbewerbteam($arrTmpWettbewerbteam);
# $WettbewerbTeam->getNewWettbewerbteam();
if (!$arrTmpWettbewerteam=$WettbewerbTeam->saveWettbewerbteam())
return $oWettbewerb->Error[]=$WettbewerbTeam->getError();
if (!is_array($arrTmpWettbewerteam) && !empty($arrTmpWettbewerteam))
return $oWettbewerb->Error[]=$arrTmpWettbewerteam;
//------ Datenreload nach Datenaenderung
// Daten Wettbewerb ermitteln /include kommune_funktionen.inc.php
kommune_funk_eigene_wettbewerb($oWettbewerb);
kommune_funk_team_wettbewerbe($oWettbewerb);
// Daten Team
kommune_funk_teams($oWettbewerb); // TeamGesamt
kommune_funk_anwenderteams($oWettbewerb); // TeamAnwender
kommune_funk_teambenutzer($oWettbewerb); // Team, TeamBenutzer
// Bei Erstanmeldung eine eMail an den Moderator senden
if ($oWettbewerb->team_kurzbz && empty($oWettbewerb->team_kurzbz_old) )
{
// Moderator - Namen
$cTmpName=$oWettbewerb->Wettbewerb[0]['uid'];
$pers=kommune_funk_benutzerperson($cTmpName,$oWettbewerb);
if (isset($pers->langname) && !empty($pers->langname))
$cTmpName=$pers->langname;
// Angemeldeter Anwender - Name
$cTmpName2=$oWettbewerb->user;
$pers=kommune_funk_benutzerperson($cTmpName2,$oWettbewerb);
if (isset($pers->langname) && !empty($pers->langname))
$cTmpName2=$pers->langname;
// Info an Moderator vom Anwender
$betreff='Moderator information : Neuer Eintrag im Wettbewerb '.$oWettbewerb->wettbewerb_kurzbz;
$text="Sehr geehrte(r) ".$cTmpName."\n\n";
$text.="Sie erhalten dieses email als Moderator des Wettbewerbs \"".$oWettbewerb->wettbewerb_kurzbz."\"\n\n";
$text.=$cTmpName2."( Kurzzeichen ".$oWettbewerb->team_kurzbz.") ,\n hat sich im Wettbewerb ".$oWettbewerb->wettbewerb_kurzbz." registriert.\n\n\n\n";
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->Wettbewerb[0]['uid'],$betreff,$text,$oWettbewerb->user,$oWettbewerb);
// Info vom Moderator an Anwender
$betreff="Ihr Eintrag im Wettbewerb ".$oWettbewerb->wettbewerb_kurzbz." wurde angenommen.";
$text="Sehr geehrte(r) ".$cTmpName2."\n\n";
$text.="Sie erhalten dieses email als Anmeldebestätigung.\n\n";
$text.="Ihr Eintrag im Wettbewerb \"".$oWettbewerb->wettbewerb_kurzbz."\" wurde angenommen.\n\n";
$text.="Ihr Kurzzeichen im Wettbewerb ist \"".$oWettbewerb->team_kurzbz."\"\n\n\n\n";
$text.="Ihr Moderator ".$cTmpName.". im Wettbewerb ".$oWettbewerb->wettbewerb_kurzbz."\n\n".
$text.="Viel Spaß wünscht das gesamte Team.\n\n".
$oWettbewerb->Error[]=kommune_funk_sendmail($oWettbewerb->user,$betreff,$text,$oWettbewerb->Wettbewerb[0]['uid'],$oWettbewerb);
}
// Link zum Wettbewerb , und das Wettbewerbs PopUp erzeugen
$cTmpInfo='<span style="color: black;" ><br />Daten Team / Spieler <b>'.$oWettbewerb->team_kurzbz.'</b> wurden gespeichert.';
$cTmpHREF=kommune_funk_create_href(constKommuneAnzeigeWETTBEWERBTEAM,$oWettbewerb,array(),$oWettbewerb->wettbewerb_kurzbz);
$cTmpInfo.='<span onmouseover="show_layer(\'wettbewerb_popup\');" onmouseout="hide_layer(\'wettbewerb_popup\');"><img style="vertical-align:bottom;" alt="weiter" height="18" src="../../../skin/images/right.gif" border="0" />&nbsp;'.'weiter zum Wettbewerb '.$cTmpHREF.'</span>';
$cTmpInfo.='</span>';
$oWettbewerb->Error[]=$cTmpInfo;
if (isset($cTmpInfo)) unset($cTmpInfo);
return $arrTmpWettbewerteam;
}
?>
@@ -1,289 +0,0 @@
<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
#-------------------------------------------------------------------------------------------
/*
* Wettbewerb - Pflege
*
* Aktionen: Anzeige, Anlage, Aenderung und Loeschen
* Ansicht : Voll oder Popup (window.opener)
*
*
*/
if (!isset($oWettbewerb) || !isset($oWettbewerb->wartungsberechtigt) || !$oWettbewerb->wartungsberechtigt)
die('Sie sind nicht berechtigt f&uuml;r diese Seite ! <a href="javascript:history.back()">Zur&uuml;ck</a>');
// ------------------------------------------------------------------------------------------
// Datenverarbeiten
// ------------------------------------------------------------------------------------------
$work=(isset($_REQUEST['work']) ? $_REQUEST['work'] :'');
if (!empty($work) && isset($_REQUEST['wbtyp_kurzbz']) && !empty($_REQUEST['wbtyp_kurzbz']))
{
// iconverarbeitung
if(isset($_FILES['uploadicon']['tmp_name']) && !empty($_FILES['uploadicon']['tmp_name']) )
{
$filename = $_FILES['uploadicon']['tmp_name'];
//File oeffnen
if ($fp = fopen($filename,'r'))
{
//auslesen
$string = fread($fp, filesize($filename));
fclose($fp);
if (isset($fp)) unset($fp);
//in HEX-Werte umrechnen
$hex="";
for ($i=0;$i<strlen($string);$i++)
$hex.=(strlen(dechex(ord($string[$i])))<2)? "0".dechex(ord($string[$i])): dechex(ord($string[$i]));
if (!empty($hex))
$_REQUEST["icon"]=$hex;
}
}
if ($_REQUEST["wettbewerb_kurzbz"]==constEingabeFehlt)
{
$oWettbewerb->errormsg[]='Fehler Kurzbezeichnung ist leer! Type '.$_REQUEST["wbtyp_kurzbz"];
$work='';
}
$Wettbewerb= new komune_wettbewerb();
if ($work=='save')
{
$Wettbewerb->new=false;
if (
(isset($_REQUEST["wbtyp_kurzbz_old"]) && $_REQUEST["wbtyp_kurzbz"] != $_REQUEST["wbtyp_kurzbz_old"])
|| !isset($_REQUEST["wbtyp_kurzbz_old"]) || (isset($_REQUEST["wbtyp_kurzbz_old"]) && empty($_REQUEST["wbtyp_kurzbz_old"]))
|| (isset($_REQUEST["wettbewerb_kurzbz_old"]) && $_REQUEST["wettbewerb_kurzbz"] != $_REQUEST["wettbewerb_kurzbz_old"])
|| !isset($_REQUEST["wettbewerb_kurzbz_old"]) || (isset($_REQUEST["wettbewerb_kurzbz_old"]) && empty($_REQUEST["wettbewerb_kurzbz_old"])) )
{
$Wettbewerb->new=true;
if ( (isset($_REQUEST["wbtyp_kurzbz_old"]) && $_REQUEST["wbtyp_kurzbz"] != $_REQUEST["wbtyp_kurzbz_old"])
|| (isset($_REQUEST["wettbewerb_kurzbz_old"]) && $_REQUEST["wettbewerb_kurzbz"] != $_REQUEST["wbtyp_kurzbz_old"]) )
$Wettbewerb->deleteWettbewerb($_REQUEST["wbtyp_kurzbz_old"],$_REQUEST["wettbewerb_kurzbz_old"]);
}
$Wettbewerb->wbtyp_kurzbz=$_REQUEST["wbtyp_kurzbz"];
$Wettbewerb->wettbewerb_kurzbz=$_REQUEST["wettbewerb_kurzbz"];
$Wettbewerb->regeln=$_REQUEST["regeln"];
if (empty($Wettbewerb->regeln))
$Wettbewerb->regeln=constEingabeFehlt;
$Wettbewerb->icon=$_REQUEST["icon"];
$Wettbewerb->forderungstage=$_REQUEST["forderungstage"];
if (empty($Wettbewerb->forderungstage))
$Wettbewerb->forderungstage=7;
$Wettbewerb->teamgroesse=$_REQUEST["teamgroesse"];
if (empty($Wettbewerb->teamgroesse))
$Wettbewerb->teamgroesse=1;
$Wettbewerb->uid=$_REQUEST["uid"];
if (empty($Wettbewerb->uid))
$Wettbewerb->uid=$oWettbewerb->user;
# var_dump($Wettbewerb);
if(!$Wettbewerb->saveWettbewerb())
{
$oWettbewerb->errormsg[]='Fehler bei der '.($Wettbewerb->new?' Neuanlage ':' &Auml;nderung ').' '.$Wettbewerb->errormsg;
}
else
{
$oWettbewerb->errormsg[]=$_REQUEST["wbtyp_kurzbz"].'-'.$_REQUEST["wettbewerb_kurzbz"].' '.($Wettbewerb->new?' Neuanlage ':' &Auml;nderung ').' erfolgreich! '.$Wettbewerb->errormsg;
echo ' <script language="JavaScript1.2" type="text/javascript">
<!--
if (window.opener && !window.opener.closed) {
if (confirm("Soll die Hauptseite neu aufgebaut werden?")) {
window.opener.location.reload();
}
}
-->
</script>
';
}
}
if ($work=='del')
{
$Wettbewerb->wbtyp_kurzbz=$_REQUEST["wbtyp_kurzbz"];
$Wettbewerb->wettbewerb_kurzbz=$_REQUEST["wettbewerb_kurzbz"];
if(!$Wettbewerb->deleteWettbewerb($Wettbewerb->wbtyp_kurzbz,$Wettbewerb->wettbewerb_kurzbz))
{
$oWettbewerb->errormsg[]=$Wettbewerb->errormsg;
}
else
{
$oWettbewerb->errormsg[]='Veranstaltungskategorie "'.$_REQUEST['wbtyp_kurzbz'].'" gel&ouml;scht.';
echo '<script language="JavaScript1.2" type="text/javascript">
<!--
if (window.opener && !window.opener.closed) {
if (confirm("Soll die Hauptseite neu aufgebaut werden?")) {
window.opener.location.reload();
}
}
-->
</script>
';
}
}
} // Datenverarbeiten ende
// Lesen WettbewerbTypen und Wettbewerbe
$oWettbewerb->wbtyp_kurzbz=trim((isset($_REQUEST['wbtyp_kurzbz_sel']) ? $_REQUEST['wbtyp_kurzbz_sel']:''));
$oWettbewerb->wettbewerb_kurzbz='';
kommune_funk_wettbewerb($oWettbewerb);
#var_dump($oWettbewerb);
// ------------------------------------------------------------------------------------------
// Aktuelle Datenlesen
// ------------------------------------------------------------------------------------------
?>
<script language="JavaScript1.2" type="text/javascript">
<!--
if (!window.opener || window.opener.closed) {
document.write('');
} else {
window.resizeTo(800,600);
}
-->
</script>
<form name="selWettbewerbtypenXX" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
<h1>&nbsp;Wettbewerb&nbsp;&nbsp;Typenauswahl&nbsp;
<select class="pflichtfeld" name="wbtyp_kurzbz_sel" onchange="window.document.selWettbewerbtypenXX.submit();">
<?php
echo '<option value="">alle</option>';
reset($oWettbewerb->WettbewerbTyp);
for ($iTmpZehler2=0;$iTmpZehler2<count($oWettbewerb->WettbewerbTyp);$iTmpZehler2++)
{
$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']);
echo '<option '.(!empty($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['farbe'])?' style="background-color:#'.$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['farbe'].'" ':'').' '.(isset($_REQUEST['wbtyp_kurzbz_sel']) && !empty($_REQUEST['wbtyp_kurzbz_sel']) && $_REQUEST['wbtyp_kurzbz_sel']==$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']?' selected="selected" ':'') .' value="'.$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz'].'">'.trim($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']).'</option>';
}
?>
</select>
<input class="ausblenden" name="<?php echo constKommuneParmSetWork;?>" value="<?php echo $oWettbewerb->workSITE; ?>" />
&nbsp;
</h1>
</form>
<table class="tabcontent" cellpadding="1" cellspacing="4">
<tr>
<th>Type</th>
<th>Wettbewerb</th>
<th>Regeln</th>
<th>Fordertage</th>
<th>Teamgr&ouml;sse</th>
<th colspan="2">Teamleiter(UID)</th>
<th>iconladen</th>
<th>icon</th>
<th colspan="3">Aktion</th>
</tr>
<?php
#var_dump($oWettbewerb->Wettbewerb);
// Zaehler = -1 fuer die Neuanlage
$iTmpWettbewerb=0;
for ($iTmpZehler=-1;$iTmpZehler<count($oWettbewerb->Wettbewerb);$iTmpZehler++)
{
if ($iTmpZehler!= -1 && empty($oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz']))
continue;
$iTmpWettbewerb++;
/*
if (isset($oWettbewerb->Wettbewerb[$iTmpZehler]))
{
$oWettbewerb->Wettbewerb[$iTmpZehler]->wbtyp_kurzbz=trim($oWettbewerb->Wettbewerb[$iTmpZehler]->wbtyp_kurzbz);
$oWettbewerb->Wettbewerb[$iTmpZehler]->regeln=trim($oWettbewerb->Wettbewerb[$iTmpZehler]->regeln);
$oWettbewerb->Wettbewerb[$iTmpZehler]->farbe=trim($oWettbewerb->Wettbewerb[$iTmpZehler]->farbe);
}
*/
?>
<form name="selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
<tr <?php echo ($iTmpZehler==-1? ' style="background-color:yellow;" ':($iTmpWettbewerb%2? ' class="liste0" ':' class="liste1" '));?> >
<td>
<select class="pflichtfeld" name="wbtyp_kurzbz">
<?php
reset($oWettbewerb->WettbewerbTyp);
for ($iTmpZehler2=0;$iTmpZehler2<count($oWettbewerb->WettbewerbTyp);$iTmpZehler2++)
{
$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']);
echo '<option '.(!empty($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['farbe'])?' style="background-color:#'.$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['farbe'].'" ':'').' '.(isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz']) && $iTmpZehler != -1 && $oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz']==$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']?' selected="selected" ':(!empty($oWettbewerb->wbtyp_kurzbz) && $oWettbewerb->wbtyp_kurzbz==$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']?' selected="selected" ':( $iTmpZehler == -1 && $work=='save' && isset($_REQUEST['wbtyp_kurzbz']) && $_REQUEST['wbtyp_kurzbz']==$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']?' selected="selected" ':''))) .' value="'.$oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz'].'">'.trim($oWettbewerb->WettbewerbTyp[$iTmpZehler2]['wbtyp_kurzbz']).'</option>';
}
?>
</select>
<input class="ausblenden" name="wbtyp_kurzbz_old" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz']:'');?>" />
</td>
<td>
<input class="pflichtfeld" type="text" name="wettbewerb_kurzbz" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz']:($work=='save' && isset($_REQUEST["wettbewerb_kurzbz"])?$_REQUEST["wettbewerb_kurzbz"]:constEingabeFehlt));?>" size="17" maxlength="16" onblur="if (this.value=='') {this.value=this.defaultValue;}" onfocus="if (this.value=='<?php echo constEingabeFehlt; ?>') { this.value='';}" />
<input class="ausblenden" name="wettbewerb_kurzbz_old" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz']:'');?>" />
</td>
<td><input name="regeln" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['regeln'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['regeln']:($work=='save' && isset($_REQUEST["regeln"])?$_REQUEST["regeln"]:''));?>" size="20" maxlength="240" /></td>
<td><input name="forderungstage" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['forderungstage'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['forderungstage']:($work=='save' && isset($_REQUEST["forderungstage"])?$_REQUEST["forderungstage"]:7));?>" size="3" maxlength="5" /></td>
<td><input name="teamgroesse" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['teamgroesse'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['teamgroesse']:($work=='save' && isset($_REQUEST["teamgroesse"])?$_REQUEST["teamgroesse"]:1));?>" size="3" maxlength="5" /></td>
<td><input class="pflichtfeld" name="uid" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['uid'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['uid']:($work=='save' && isset($_REQUEST["uid"])?$_REQUEST["uid"]:$oWettbewerb->user));?>" size="10" maxlength="20" /></td>
<td><?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]->foto_image)?$oWettbewerb->Wettbewerb[$iTmpZehler]->foto_image:''); ?></td>
<td>
<input size="8" maxlength="140" type="file" id="uploadicon" name="uploadicon" alt="suche" title="suchen" style="font-size:xx-small;" />
<input class="ausblenden" name="icon" value="<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['icon'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['icon']:($work=='save' && isset($_REQUEST["icon"])?$_REQUEST["icon"]:''));?>" />
</td>
<td>
<input class="ausblenden" name="wbtyp_kurzbz_sel" value="<?php echo (isset($_REQUEST['wbtyp_kurzbz_sel']) && !empty($_REQUEST['wbtyp_kurzbz_sel'])?$_REQUEST['wbtyp_kurzbz_sel']:''); ?>" />
<input class="ausblenden" name="<?php echo constKommuneParmSetWork;?>" value="<?php echo $oWettbewerb->workSITE; ?>" />
<input class="ausblenden" name="work" value="?" />
<?php echo (isset($oWettbewerb->Wettbewerb[$iTmpZehler]) && isset($oWettbewerb->Wettbewerb[$iTmpZehler]['icon_image'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['icon_image']:'');?>
</td>
<td class="cursor_hand" onclick="if (window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wbtyp_kurzbz.value=='<?php echo constEingabeFehlt; ?>') {window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wbtyp_kurzbz.focus();return false;};if (window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wettbewerb_kurzbz.value=='<?php echo constEingabeFehlt; ?>') {window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wettbewerb_kurzbz.focus();return false;};if (window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.regeln.value.length<1) {window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.regeln.focus();return false;}; window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.work.value='save';window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.submit();" >speichern <img height="14px" border="0" alt="sichern - save" src="../../../skin/images/date_edit.png" />&nbsp;</td>
<td <?php echo ($iTmpZehler<0?' class="ausblenden" ':''); ?> class="cursor_hand" onclick="window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.work.value='del';window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.submit();" >l&ouml;schen <img height="14px" border="0" alt="entfernen - delete" src="../../../skin/images/date_delete.png" />&nbsp;</td>
<td valign="top"><?php echo ($iTmpZehler<0?'':'<a href="'.$_SERVER['PHP_SELF'].'?userSel=kommune_wartung_team&amp;wbtyp_kurzbz='.(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wbtyp_kurzbz']:'').'&amp;wettbewerb_kurzbz='.(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz']:'').'" target="_self" title="zum Wettbewerb '.(isset($oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz'])?$oWettbewerb->Wettbewerb[$iTmpZehler]['wettbewerb_kurzbz']:'').'"><img height="14px" border="0" alt="entfernen - delete" src="../../../skin/images/application_form_edit.png" /></a>'); ?>&nbsp;</td>
</tr>
</form>
<?php
if ($iTmpZehler==-1)
echo '<tr><td colspan="10"><hr></td></tr>';
} ?>
</table>
<div><table><tr><td style="color:black;background-color:#FFFFE0;border : 1px solid Black;">&nbsp;&nbsp;&nbsp;</td><td>Pflichtfeld</td>
<td style="color:black;background-color:yellow;border : 1px solid Black;">&nbsp;&nbsp;&nbsp;</td><td>Neuanlage</td>
</tr></table>
@@ -1,175 +0,0 @@
<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
#-------------------------------------------------------------------------------------------
/*
* Wettbewerbstypen - Pflege
*
* Aktionen: Anzeige, Anlage, Aenderung und Loeschen
* Ansicht : Voll oder Popup (window.opener)
*
*
*/
if (!isset($oWettbewerb) || !isset($oWettbewerb->wartungsberechtigt) || !$oWettbewerb->wartungsberechtigt)
die('Sie sind nicht berechtigt f&uuml;r diese Seite ! <a href="javascript:history.back()">Zur&uuml;ck</a>');
// ------------------------------------------------------------------------------------------
// Datenverarbeiten
// ------------------------------------------------------------------------------------------
$work=(isset($_REQUEST['work']) ? $_REQUEST['work'] :'');
if (!empty($work) && isset($_REQUEST['wbtyp_kurzbz']) && !empty($_REQUEST['wbtyp_kurzbz']))
{
$Wettbewerb= new komune_wettbewerb();
$Wettbewerb->wbtyp_kurzbz=$_REQUEST["wbtyp_kurzbz"];
$Wettbewerb->bezeichnung=$_REQUEST["bezeichnung"];
if (empty($Wettbewerb->bezeichnung))
$Wettbewerb->bezeichnung=constEingabeFehlt;
$Wettbewerb->farbe=$_REQUEST["farbe"];
if ($work=='save')
{
$Wettbewerb->new=false;
if ( (isset($_REQUEST["wbtyp_kurzbz_old"]) && $_REQUEST["wbtyp_kurzbz"] != $_REQUEST["wbtyp_kurzbz_old"] )
|| (!isset($_REQUEST["wbtyp_kurzbz_old"]) || empty($_REQUEST["wbtyp_kurzbz_old"])) )
{
$Wettbewerb->new=true;
if (isset($_REQUEST["wbtyp_kurzbz_old"]) && $_REQUEST["wbtyp_kurzbz"] != $_REQUEST["wbtyp_kurzbz_old"])
$Wettbewerb->deleteWettbewerbTyp($_REQUEST["wbtyp_kurzbz_old"]);
}
if(!$resurce=$Wettbewerb->saveWettbewerbTyp())
{
$oWettbewerb->errormsg[]='Fehler bei der '.($Wettbewerb->new?' Neuanlage ':' &Auml;nderung ').' '.$Wettbewerb->errormsg;
}
else
{
$oWettbewerb->errormsg[]=$_REQUEST["wbtyp_kurzbz"].' '.($Wettbewerb->new?' Neuanlage ':' &Auml;nderung ').' erfolgreich! '.$Wettbewerb->errormsg;
echo ' <script language="JavaScript1.2" type="text/javascript">
<!--
if (window.opener && !window.opener.closed) {
if (confirm("Soll die Hauptseite neu aufgebaut werden?")) {
window.opener.location.reload();
}
}
-->
</script>
';
}
}
if ($work=='del')
{
if(!$Wettbewerb->deleteWettbewerbTyp($Wettbewerb->wbtyp_kurzbz))
{
$oWettbewerb->errormsg[]=$Wettbewerb->errormsg;
}
else
{
$oWettbewerb->errormsg[]='Veranstaltungskategorie "'.$_REQUEST['wbtyp_kurzbz'].'" gel&ouml;scht.';
echo '<script language="JavaScript1.2" type="text/javascript">
<!--
if (window.opener && !window.opener.closed) {
if (confirm("Soll die Hauptseite neu aufgebaut werden?")) {
window.opener.location.reload();
}
}
-->
</script>
';
}
}
} // Datenverarbeiten ende
// Lesen WettbewerbTypen und Wettbewerbe
$oWettbewerb->wbtyp_kurzbz='';
$oWettbewerb->wettbewerb_kurzbz='';
kommune_funk_wettbewerb($oWettbewerb);
// ------------------------------------------------------------------------------------------
// Aktuelle Datenlesen
// ------------------------------------------------------------------------------------------
?>
<script language="JavaScript1.2" type="text/javascript">
<!--
if (!window.opener || window.opener.closed) {
document.write('');
} else {
window.resizeTo(800,600);
}
-->
</script>
<h1>&nbsp;Wettbewerbtype&nbsp;</h1>
<table class="tabcontent" cellpadding="1" cellspacing="4">
<tr>
<th>Kurzbezeichnung</th>
<th>Bezeichnung</th>
<th>Farbe</th>
<th colspan="3">Aktion</th>
</tr>
<?php
// Zaehler = -1 fuer die Neuanlage
for ($iTmpZehler=-1;$iTmpZehler<count($oWettbewerb->WettbewerbTyp);$iTmpZehler++)
{
if (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]))
{
$oWettbewerb->WettbewerbTyp[$iTmpZehler]=(object)$oWettbewerb->WettbewerbTyp[$iTmpZehler];
$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz);
$oWettbewerb->WettbewerbTyp[$iTmpZehler]->bezeichnung=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler]->bezeichnung);
$oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe=trim($oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe);
}
?>
<form name="selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
<tr <?php echo ($iTmpZehler%2? ' class="liste0" ':' class="liste1" ');?> >
<td>
<input class="pflichtfeld" type="text" name="wbtyp_kurzbz" value="<?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz:constEingabeFehlt);?>" size="17" maxlength="16" onblur="if (this.value=='') {this.value=this.defaultValue;}" onfocus="if (this.value=='<?php echo constEingabeFehlt; ?>') { this.value='';}" />
<input class="ausblenden" name="wbtyp_kurzbz_old" value="<?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz:'');?>" />
</td>
<td><input name="bezeichnung" value="<?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->bezeichnung)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->bezeichnung:'');?>" size="80" maxlength="240" /></td>
<td><input <?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe)?' style="background-color:#'.$oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe.';"':'');?> name="farbe" onchange="if (this.value=='') {this.style.backgroundColor='transparent';} else {this.style.backgroundColor='#' + this.value;}" value="<?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->farbe:'');?>" size="7" maxlength="6" /></td>
<td>
<input class="ausblenden" size="30" name="<?php echo constKommuneParmSetWork;?>" value="<?php echo $oWettbewerb->workSITE; ?>" />
<input class="ausblenden" size="10" name="work" value="?" />
<?php echo (isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->bild_image)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->bild_image:'');?>
</td>
<td class="cursor_hand" onclick="if (window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wbtyp_kurzbz.value=='<?php echo constEingabeFehlt; ?>') {window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.wbtyp_kurzbz.focus();return false;}; if (window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.bezeichnung.value.length<1) {window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.bezeichnung.focus();return false;}; window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.work.value='save';window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.submit();" >speichern <img height="14px" border="0" alt="sichern - save" src="../../../skin/images/date_edit.png" />&nbsp;</td>
<td <?php echo ($iTmpZehler<0?' class="ausblenden" ':''); ?> class="cursor_hand" onclick="window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.work.value='del';window.document.selWettbewerbtypen<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>.submit();" >l&ouml;schen <img height="14px" border="0" alt="entfernen - delete" src="../../../skin/images/date_delete.png" />&nbsp;</td>
<td <?php echo ($iTmpZehler<0?' class="ausblenden" ':''); ?> ><?php echo ($iTmpZehler<0?'':'<a href="'.$_SERVER['PHP_SELF'].'?userSel=kommune_wartung_wettbewerb&amp;wbtyp_kurzbz='.(isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz:'').'&amp;wbtyp_kurzbz_sel='.(isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz:'').'" target="_self" title="zum Wettbewerb '.(isset($oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz)?$oWettbewerb->WettbewerbTyp[$iTmpZehler]->wbtyp_kurzbz:'').'"><img height="14px" border="0" alt="entfernen - delete" src="../../../skin/images/application_form_edit.png" /></a>'); ?>&nbsp;</td>
</tr>
</form>
<?php } ?>
</table>
<div><table><tr><td style="color:black;background-color:#FFFFE0;border : 1px solid Black;">&nbsp;&nbsp;&nbsp;</td><td>Pflichtfeld</td></tr></table></div>
@@ -1,114 +0,0 @@
<?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 >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../../../config/cis.config.inc.php');
// ------------------------------------------------------------------------------------------
// Datenbankanbindung
// ------------------------------------------------------------------------------------------
require_once('../../../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
require_once('../../../../include/functions.inc.php');
require_once('../../../../include/lehrveranstaltung.class.php');
require_once('../../../../include/studiengang.class.php');
require_once('../../../../include/studiensemester.class.php');
require_once('../../../../include/lehreinheit.class.php');
require_once('../../../../include/uebung.class.php');
require_once('../../../../include/beispiel.class.php');
require_once('../../../../include/datum.class.php');
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time = microtime_float();
$inserted = 0;
$upgedated = 0;
$text = "";
$qry = "SELECT DISTINCT(lehreinheit_id) from campus.tbl_uebung order by lehreinheit_id";
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$query = "select count(*) from campus.tbl_uebung where liste_id is null and beispiele = 't' and lehreinheit_id = '".$row->lehreinheit_id."'";
$res = $db->db_query($query);
$anzahl = $db->db_fetch_object($res);
if ($anzahl->count > 0)
{
$datum_obj = new datum();
$uebung_obj = new uebung();
$uebung_obj->get_next_nummer();
$uebung_obj->gewicht=1;
$uebung_obj->punkte='';
$uebung_obj->angabedatei='';
$uebung_obj->freigabevon = null;
$uebung_obj->freigabebis = null;
$uebung_obj->abgabe=false;
$uebung_obj->beispiele=false;
$uebung_obj->bezeichnung="Kreuzerllisten";
$uebung_obj->positiv=false;
$uebung_obj->defaultbemerkung='';
$uebung_obj->lehreinheit_id=$row->lehreinheit_id;
$uebung_obj->updateamum = null;
$uebung_obj->updatevon = null;
$uebung_obj->insertamum = date('Y-m-d H:i:s');
$uebung_obj->insertvon = "sync";
$uebung_obj->statistik = false;
$uebung_obj->liste_id = null;
$uebung_obj->nummer = $uebung_obj->next_nummer;
if($uebung_obj->save(true))
{
$inserted++;
$liste_id = $uebung_obj->uebung_id;
$update_qry = "UPDATE campus.tbl_uebung set liste_id = '".$liste_id."' where lehreinheit_id = '".$row->lehreinheit_id."' and uebung_id != '".$liste_id."' and beispiele = 't'";
$r = $db->db_query($update_qry);
$upgedated += $db->db_affected_rows($r);
}
}
}
}
$text .= "Inserts: ".$inserted."<br>";
$text .= "Updated: ".$upgedated."<br>";
?>
<!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">
<title>Benotungstool</title>
<?php
echo $text;
?>
</body>
</html>
@@ -1,45 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title>Outlook Import</title>
<link href="../../../../skin/style.css.php" rel="stylesheet"
type="text/css">
</head>
<body id="inhalt">
<h1>Import der Stundenplan CSV-Datei in Outlook:</h1>
<p>
Bevor Sie die CSV-Datei in Outlook importieren können müssen Sie sie
zuerst aus dem Stundenplansystem exportieren. <br>
Hierfür klicken Sie im Stundenplansystem auf das Outlook-Symbol und
speichern die Datei auf Ihre Festplatte.
</p>
<p align="center">
<img alt="Outlookimport" src="../../../../skin/images/Outlookimport.png" style="width: 989px; height: 461px;"><br>
</p>
<p>
Nachfolgend werden die nächsten Schritte anhand von Screenshots erklärt.<br>
</p>
<p>
Starten Sie dazu Microsoft Outlook.<br>
</p>
<div align="center">
<img src="../../../../skin/images/OutlookImpMenu.gif" name="Menu"><br>
<br>
<img src="../../../../skin/images/OutlookImpImport.png" name="Import"><br>
<br>
<img src="../../../../skin/images/OutlookImpKomma.png" name="Komma"><br>
<br>
Suchen Sie nun bei "Durchsuchen" die Anfangs gespeicherte csv-Datei auf Ihrer Festplatte<br>
<br>
<img src="../../../../skin/images/OutlookImpDuplikate.png" name="Duplikate"><br>
<br>
<img src="../../../../skin/images/OutlookImpKalender.png" name="Kalender">
</div>
<hr>
<div class="footer">
Seite erstellt am 30.3.2003 von <a class="Item" href="mailto:paminger@technikum-wien.at">Christian Paminger</a>.<br>
Letzte Änderung am 19.01.2005 von <a class="Item" href="mailto:kindlm@technikum-wien.at">Manfred Kindl</a>.
</div>
</body>
</html>
-219
View File
@@ -1,219 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Lehrveranstaltungsplan</title>
<link rel="stylesheet" href="../../../../skin/style.css.php" type="text/css">
</head>
<body id="inhalt">
<h1>Hilfe zum Lehrveranstaltungsplansystem </h1>
<h3>FAQ</h3>
<a class="Item" href="index.html#saal_reserve">Wie reserviere ich einen Saal?</a><br>
<a class="Item" href="OutlookImport.html">Wie importiere ich den Lehrveranstaltungsplan in Outlook?</a><br>
<hr>
Sie finden den aktuellen Lehrveranstaltungsplan unter <a class="Item" href="http://cis.technikum-wien.at/" target="_top">http://cis.technikum-wien.at</a>.
Dort finden Sie im linken Men&uuml; unter Lehre den Punkt LV-Plan. <br>
Nach erfolgreicher Anmeldung mit ihrem Standard-Useraccount befinden sie sich im Hauptmen&uuml;.
<h3>Hauptmen&uuml;</h3>
<div align="center"><img alt="Hauptmenue" src="Hauptmenue.png" style="width: 938px; height: 595px;"><br></div>
<p><br>
Im Hauptmen&uuml; haben Sie die M&ouml;glichkeit sich f&uuml;r verschieden Ansichten
des Lehrveranstaltungsplans zu entscheiden.<br>
<br>
</p>
<ul style="list-style-type: circle;">
<li><a class="Item" href="HelpNeu.html#Saalplan">Saalplan</a></li>
<li> Lektorenplan</li>
<li> Pers&ouml;nlicher Plan</li>
<li> Plan der Lehrverb&auml;nde<br></li>
</ul>
<br>
<hr>
<a name="Saalstundenplan"></a>
<h3>Saalstundenplan</h3>
<table style="width: 80%;" border="0" cellspacing="0">
<tbody>
<tr>
<td class="tdwrap" style="width: 0%; text-align: right;">&nbsp;
<a class="Item" href="HelpNeu.html#Navigationsmenue">Navigationsmen&uuml; </a><br>
</td>
<td rowspan="23" style="width: 97%;">
<img alt="Saalplan" src="Saalplan_mit_Legende.png" style="width: 899px; height: 700px;"><br>
</td>
<td class="tdwrap" style="height: 50px; width: 0%;">
&nbsp;Direktspr&uuml;nge zu den <br> &nbsp;Kalenderwochen</td>
<td style="vertical-align: top;"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" style="width: 0%; height: 20px;">&nbsp; <br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" style="text-align: right;" width="0%">&nbsp;<br>
Raumbezeichnung und <br>
&nbsp;Personenkapazit&auml;t <br>
</td>
<td class="tdwrap" style="width: 0%; height: 50px;"><br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" style="height: 40px; width: 0%;">&nbsp;Raumwahl direkt aus Drop-Down Feld<br>
&nbsp;oder vor-/zur&uuml;ckbl&auml;ttern<br>
</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" rowspan="2"> &nbsp;
<a class="Item"href="index.html#KalenderHTML">Kalenderansicht in HTML</a><br>
und Exporticons f&uuml;r HTML,<br>
CSV und Outlook
</td>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" style="width: 0%; height: 45px;">&nbsp;<br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" style="width: 0%; vertical-align: middle; height: 50px; text-align: right;">&nbsp;
<br>
</td>
<td class="tdwrap" width="0%">&nbsp;1 bzw. 4 Woche(n)<br>
&nbsp;vor-/zur&uuml;ckbl&auml;ttern
</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td colspan="1" rowspan="2" class="tdwrap" width="0%"><a href="HelpNeu.html#details"></a><br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" style="width: 0%; height: 35px;"><br></td>
<td class="tdvertical"> <br></td>
</tr>
<tr>
<td class="tdwrap" rowspan="3" style="vertical-align: top;">
<div align="right"><a name="Checkbox"></a><a class="Item" href="index.html#saal_reserve">Checkbox</a>&nbsp; </div>
</td>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;<a class="Item" href="index.html#details">Detailansicht</a></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap">&nbsp;</td>
<td width="3%">&nbsp;</td>
</tr>
<tr>
<td class="tdwrap" style="vertical-align: middle; width: 0%; height: 30px; text-align: right;">&nbsp;<br></td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" rowspan="2"><br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" style="text-align: right;" width="0%">&nbsp;&nbsp;Saalreservierung<br></td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" rowspan="2"><br></td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
<tr>
<td class="tdwrap" width="0%">&nbsp;</td>
<td class="tdwrap" width="3%">&nbsp;</td>
<td class="tdvertical"><br></td>
</tr>
</tbody>
</table>
<h3><a name="Navigationsmenue"></a><br></h3>
<h3>Navigationsmen&uuml;<br></h3>
Das Navigationsmen&uuml; erm&ouml;glicht das Wechseln auf die &uuml;bergeordnete
Ansichtsebene.<br>
<a name="KalenderHTML"></a>
<h3>Kalenderansicht in HTML</h3>
<p>
Die Kalenderansicht zeigt den Lehrveranstaltungsplan f&uuml;r das ganze Semester. Je
nach Browser kann er mehr oder weniger sch&ouml;n ausgedruckt werden. Beste
Ergebnisse werden mit Netscape 4.x erzielt.
</p>
<h3>Kalenderansicht in einer Tabellenkalkulation (MS-Excel, StarCalc,...)</h3>
Das vorhanden csv-File ist eigentlich kein echtes csv-File, es
funktioniert aber bei StarCalc und Excel ganz gut. <br>
Sollte es zu Problemen kommen (besonders bei Excel XP) kann man
folgenden Trick anwenden. <br>
Laden Sie das File zuerst auf ihren Rechner (<span
style="color: rgb(0, 0, 0); font-weight: bold;">Rechte</span>
Maustaste auf das Symbol und "Ziel speichern unter ..." w&auml;hlen). Dann &auml;ndern Sie die
Dateinamenserweiterung auf ".html". Die Datei heißt nun "Kalender_09_2004<span style="font-weight: bold;">.html</span>"
anstatt "Kalender_09_2004.csv". Nun starten Sie ihr Excel und &ouml;ffnen dann diese HTML-Datei mit Excel.
<h3><a name="details"></a></h3>
<h3>Detailansicht</h3>
Hier werden alle Lehrverb&auml;nde und Lektoren zum jeweiligen Unterricht
angezeigt.
<h3><a name="saal_reserve"></a></h3>
<h3>Saalreservierung</h3>
F&uuml;r eine Saalreservierung gehen Sie folgendermaßen vor:
<ul>
<li>W&auml;hlen Sie im Hauptmen&uuml; den gew&uuml;nschten Raum aus dem Saalplan aus.<br></li>
<li>Markieren Sie mittels der <a href="index.html#Checkbox">Checkboxen</a>
die Stunden, die Sie
reservieren m&ouml;chten.
</li>
<li>Geben Sie Ihrer Reservierung einen Titel (max. 8 Zeichen), dieser
erscheint dann im Lehrveranstaltungsplan.
</li>
<li>F&uuml;llen Sie das Feld Beschreibung (max 20 Zeichen) aus und klicken
Sie auf "Reservieren".
</li>
</ul>
Sie k&ouml;nnen Ihre Reservierungen in der Reservierungsliste (Hauptmen&uuml;)
jederzeit
wieder l&ouml;schen.<br>
<br>
<br>
</body>
</html>
-42
View File
@@ -1,42 +0,0 @@
<HTML>
<HEAD>
<TITLE>ToDo Liste Stundenplan</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" href="../../../../skin/cis.css" type="text/css">
</HEAD>
<BODY>
<H2>ToDo Liste zum Stundenplan-System </H2>
<UL>
<LI>Kalenderansicht auch für die Lehrverbände </LI>
<LI>Kalender als PDF-File</LI>
<LI>Palm-Sync</LI>
<LI>Lehrfachbezeichnung in der Detailansicht</LI>
<LI>Detailansicht auch im pers&ouml;nlichen Studentenplan</LI>
<LI>Modulplan</LI>
<LI>4 Wochen Sprung im pers&ouml;nlichen Studentenplan</LI>
<LI>csv-Datei f&uuml;r Outlook und Ximian Evolution</LI>
</UL>
</BODY>
</HTML>
-969
View File
@@ -1,969 +0,0 @@
<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../../config/cis.config.inc.php');
require_once('../../../include/basis_db.class.php');
require_once('../../../include/functions.inc.php');
if (!$db = new basis_db())
die('Fehler beim Oeffnen der Datenbankverbindung');
require_once('../../../include/benutzer.class.php');
require_once('../../../include/wochenplan.class.php');
require_once('../../../include/benutzerberechtigung.class.php');
//-------------------------------------------------------------------------------------------
// Datum - Format
if (!defined('constHeaderDatumZeit')) define('constHeaderDatumZeit','%A, %d %B %G %R' );
if (!defined('constRaumDatumZeit')) define('constRaumDatumZeit','%a, %d.%m.%Y' );
if (!defined('constHeaderStundenplan')) define('constHeaderStundenplan','KW %W, %B %G' );
if (!defined('constHeaderStundenplanTag')) define('constHeaderStundenplanTag','%A<br>%d.%m.%y' );
if (!defined('constAktuelleZeitHHMi')) define('constAktuelleZeitHHMi', date("Hi", time()));
if (!defined('constAktuelleZeitHH')) define('constAktuelleZeitHH', date("H", time()));
//-------------------------------------------------------------------------------------------
// Variable Init
$card_id=DOMAIN;
$card_titel=CAMPUS_NAME.' '.date('d-m-Y');
$htmlout='';
$day = date('d');
$month = date('m');
$year = date('y');
$weekday = date('w');
//-------------------------------------------------------------------------------------------
// Parameter uebernehmen
$uid=trim((isset($_REQUEST['uid']) ? $_REQUEST['uid']:get_uid()));
$ort_kurzbz=trim((isset($_REQUEST['ort_kurzbz']) ? $_REQUEST['ort_kurzbz']:''));
$raumtyp_kurzbz=trim((isset($_REQUEST['raumtyp_kurzbz']) ? $_REQUEST['raumtyp_kurzbz']:''));
$datum=trim((isset($_REQUEST['datum']) ? $_REQUEST['datum']:date('Ymd')));
$datum_bl=trim((isset($_REQUEST['datum_bl']) ? $_REQUEST['datum_bl']:''));
$work=trim((isset($_REQUEST['work']) ? $_REQUEST['work']:''));
//-------------------------------------------------------------------------------------------
// Anwender
if (empty($uid))
{
$work='freierraum';
$htmlout.='<small>
Durch Anh&#xE4;ngen von <b>?uid=[Ihre uid]</b> an die WAP URL <br/>
entf&#xE4;llt die Angabe ihres Benutzernames,<br/>
und Sie werden sofort zu Ihrem Stundenplan weitergeleitet.<br/>
</small>';
}
else
{
## $uid='el09b057';
# $uid='_DummyLektor';
## $uid='sommert';
if (empty($work))
$work='meinplan';
if ($user=new benutzer($uid))
{
$htmlout.=($user->vorname?$user->vorname.' ':'').$user->nachname;
if (!$user->aktiv)
$htmlout.='<br /><small>'.$uid.' ist nicht aktiv!</small>';
}
else
{
$htmlout.=$uid.' wurde nicht gefunden!';
$uid='';
$work='';
}
}
//-------------------------------------------------------------------------------------------
// Anzeige des aktuellen Stundenplan eines Anwenders
if (!empty($uid) && $work=='meinplan' )
{
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$row_stunde=getAktuelleStd($db);
if (date('Ymd')==$datum && is_array($row_stunde) && count($row_stunde)>0)
{
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
$user_array=uid_read_mitarbeiter_oder_student($db,$uid);
// Authentifizierung
if (check_student($uid))
$type='student';
elseif (check_lektor($uid))
$type='lektor';
else
{
//die("Cannot set usertype!");
//GastAccountHack
$type='student';
}
// Stundenplan erstellen
$stdplan=new wochenplan($type);
// Benutzergruppe
$stdplan->user=$type;
// aktueller Benutzer
$stdplan->user_uid=$uid;
// Zusaetzliche Daten laden
if (isset($user_array->studiengang_kz))
{
// Student
if (! $stdplan->load_data($type,$uid,NULL,trim($user_array->studiengang_kz),trim($user_array->semester),trim($user_array->verband),trim($user_array->gruppe)) )
{
die($stdplan->errormsg);
}
}
else
{
// Mitarbeiter
if (! $stdplan->load_data($type,$uid) )
{
die($stdplan->errormsg);
}
}
$mtag=mb_substr($datum, 6,2);
$month=mb_substr($datum, 4,2);
$jahr=mb_substr($datum, 0,4);
$datum_select=@mktime(12,0,0,$month,$mtag,$jahr);
// Stundenplan einer Woche laden
if (! $stdplan->load_week($datum_select))
die($stdplan->errormsg);
$ersterTagMonat=date('m', $stdplan->datum);
$ersterTag=date('d', $stdplan->datum);
$year=date('Y', $stdplan->datum);
$weekday=date('w');
$gefunden=null;
for ($ind_stdplan=0;$ind_stdplan<count($stdplan->std_plan);$ind_stdplan++)
{
$datum_check=@mktime(12,0,0,$ersterTagMonat,($ersterTag + $ind_stdplan ),$year);
if (date('Ymd',$datum_select)==date('Ymd',$datum_check))
{
$gefunden=1 + $ind_stdplan;
break;
}
}
$row_raum=array();
if (!is_null($gefunden) && isset($stdplan->std_plan) && isset($stdplan->std_plan[$gefunden]) && isset($stdplan->std_plan[$gefunden][$stunde_von]) && isset($stdplan->std_plan[$gefunden][$stunde_von][0]))
$row_raum=$stdplan->std_plan[$gefunden][$stunde_von][0];
if ((is_array($row_raum) || is_object($row_raum)) && count($row_raum)>0 && isset($row_raum->reservierung) )
{
$htmlout.='<table>
<tr>
<td><strong>'.substr($row_stunde[0]->beginn,0,5).'<br />'.substr($row_stunde[0]->ende,0,5).'</strong></td>
<td>';
if ($row_raum->reservierung)
$htmlout.=(!empty($row_raum->titel)?$row_raum->titel:(!empty($row_raum->titel) && $row_raum->lehrfach!=$row_raum->titel?$row_raum->lehrfach:'')).'<br />'.$row_raum->ort;
else
$htmlout.=$row_raum->lehrfach.'-'.$row_raum->lehrform.'<br />'.$row_raum->ort;
$htmlout.='</td>
</tr>
</table>';
}
}
}
//-------------------------------------------------------------------------------------------
// Information das es nicht das Tagesdatum ist
$dif=$datum-date('Ymd');
## if (date('Ymd')!=$datum)
$htmlout.='<br /><small>'.strftime(constHeaderDatumZeit,mktime(date('H'), date('i'), 0, $month, $day + $dif, $year)).'</small>';
if ($datum_bl=='ret')
{
$day=$day + ( $dif - 1 ) ;
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day + 1, $year));
}
else if ($datum_bl=='vor')
{
$day=$day + ( $dif + 1 );
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day - 1, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day, $year));
}
else
{
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day - 1, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day + 1, $year));
}
$datum_heute=date('Ymd');
$htmlout.='
<br /><small>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=ret&amp;datum='.$datum_ret.'">&lt;&lt;</a>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=&amp;datum='.$datum_heute.'"><b>heute</b></a>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=vor&amp;datum='.$datum_vor.'">&gt;&gt;</a>
</small>';
//-------------------------------------------------------------------------------------------
switch ($work)
{
case 'freierraum':
if (!empty($uid))
{
$htmlout.='<br />';
$htmlout.='<anchor>';
$htmlout.='mein Stundenplan';
$htmlout.='<go href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work=meinplan&amp;raumtyp_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
}
if (empty($raumtyp_kurzbz))
$htmlout.=raum_typen($uid);
else if (empty($ort_kurzbz))
$htmlout.=ort_raum_typen($uid,$raumtyp_kurzbz,$datum);
else
$htmlout.=ort_plan_raum_typen($uid,$raumtyp_kurzbz,$ort_kurzbz,$datum);
break;
case 'meinplan':
$htmlout.='<br />';
$htmlout.='<anchor>';
$htmlout.='Freie S&#xE4;le';
$htmlout.='<go href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.=getMeinStundenplan($uid,$datum);
break;
default:
break;
}
#exit($htmlout);
#exit($htmlout);
header("Content-Type: text/vnd.wap.wml;charset=UTF-8");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
?>
<wml>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<card id="<?php echo $card_id; ?>" title="<?php echo $card_titel; ?>">
Benutzername: <input name="uid" size="10" maxlength="30" type="Text" value="<?php echo $uid; ?>" />
<anchor>
Weiter
<go href="<?php echo $_SERVER["PHP_SELF"]; ?>" method="get">
<postfield name="uid" value="$(uid)"/>
</go>
</anchor>
<br />
<?php
// Ausgabe der Information
echo $htmlout;
?>
</card>
</wml>
<?php
//-------------------------------------------------------------------------------------------
/*
*
* @getAktuelleStd liefert die Aktuelle Stunde lt. Tabelle retour
*
* @param $db Aktuelle Datenbankverbindung
*
* @return Array der Stundentabelle
*
*/
function getAktuelleStd($db='')
{
// Plausib
if (!$db)
return false;
// Die aktive Stunde ermitteln - zum lesen welcher Raum jetzt besetzt ist - aktive Lehreinheit
$row_stunde=array();
$qry="";
$qry.="SELECT stunde, beginn, ende ";
$qry.=" FROM lehre.tbl_stunde ";
$qry.=" WHERE '". constAktuelleZeitHHMi."' between to_char(tbl_stunde.beginn, 'HH24MI') and to_char(tbl_stunde.ende, 'HH24MI') ";
$qry.=" ORDER BY stunde LIMIT 1 ; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
// In einer Pause wird kein Datensatz gefunden, den letzten holen
if (!$num_rows_stunde=$db->db_num_rows($result))
{
$qry="";
$qry.="SELECT stunde, beginn, ende ";
$qry.=" FROM lehre.tbl_stunde ";
$qry.=" WHERE '". constAktuelleZeitHH ."' between to_char(tbl_stunde.beginn, 'HH24') and to_char(tbl_stunde.ende, 'HH24') ";
$qry.=" ORDER BY stunde LIMIT 1; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
}
while($tmp_row_stunde = $db->db_fetch_object($result))
$row_stunde[]=$tmp_row_stunde;
return $row_stunde;
}
//-------------------------------------------------------------------------------------------
/*
*
* @alle_rauminformationen Rauminformation zur Auswahl Raumtype
*
* @param $db Aktuelle Datenbankverbindung
* @param $ort_kurzbz Detailanzeige Stundenplan eines Raums Optional
* @param $datum Datum der Raumres. in Form von JJJJMMTT Optional
* @param $row_stunde_von Stundenplan ab Optional
* @param $row_stunde_bis Stundenplan ab Optonal
* @param $uid UserUid Optional
* @param $kalenderwoche Kalenderwoche Optional
* @param $studiengang_kz Studienkennzeichen Optional
* @param $semester Semester Optional
* @param $verband="" Verbandskennzeichen Optional
* @param $gruppe Verband-Gruppe Optional
*
* @return array Tablle der Rauminformation
*
*/
function stundenplan_raum($db,$ort_kurzbz="",$datum="",$stunde_von,$stunde_bis=0,$uid="",$kalenderwoche="",$studiengang_kz="",$semester="",$verband="",$gruppe="")
{
// Plausib
if (!$db)
return array();
if (empty($stunde_bis))
$stunde_bis=$stunde_von;
//--- Raumbelegung jetzt
$qry="";
$qry.=' SELECT studiengang_kz,0 as "stundenplan_id",tbl_reservierung.reservierung_id,tbl_reservierung.ort_kurzbz,tbl_reservierung.titel,tbl_reservierung.semester,tbl_reservierung.studiengang_kz,tbl_reservierung.verband, tbl_reservierung.gruppe , to_char(tbl_reservierung.datum, \'YYYYMMDD\') as "datum_jjjjmmtt", to_char(tbl_reservierung.datum, \'IW\') as "datum_woche" , tbl_stunde.beginn, tbl_stunde.ende , to_char(tbl_stunde.beginn, \'HH24:MI\') as "beginn_anzeige" , to_char(tbl_stunde.ende, \'HH24:MI\') as "ende_anzeige" , EXTRACT(EPOCH FROM tbl_reservierung.datum) as "datum_timestamp" ,tbl_stunde.stunde ';
$qry.=' FROM campus.tbl_reservierung , lehre.tbl_stunde ';
$qry.=" WHERE tbl_stunde.stunde=tbl_reservierung.stunde ";
$qry.=" and tbl_reservierung.stunde between ". trim($stunde_von) ." and ". trim($stunde_bis) ;
if (!empty($datum))
{
$qry.=" and to_char(tbl_reservierung.datum, 'YYYYMMDD') ='".addslashes(trim($datum))."' ";
}
if (!empty($kalenderwoche))
{
$qry.=" and to_char(tbl_reservierung.datum, 'IW') ='".addslashes(trim($kalenderwoche))."' ";
}
if (!empty($ort_kurzbz))
{
$qry.=" and ort_kurzbz='".addslashes(trim($ort_kurzbz))."' ";
}
if (!empty($uid) || $uid=='0')
{
$qry.=" and uid='".addslashes(trim($uid))."' ";
}
if (!empty($studiengang_kz) || $studiengang_kz=='0')
{
$qry.=" and studiengang_kz=".$studiengang_kz." ";
}
if (!empty($semester) || $semester=='0')
{
$qry.=" and semester=".$semester." ";
}
if (!empty($verband) || $verband=='0')
{
$qry.=" and verband='".addslashes(trim($verband))."' ";
}
if (!empty($gruppe) || $gruppe=='0')
{
$qry.=" and gruppe=".$gruppe." ";
}
$qry.=" UNION ";
$qry.=' SELECT studiengang_kz,tbl_stundenplan.stundenplan_id,0 as "reservierung_id", tbl_stundenplan.ort_kurzbz,tbl_stundenplan.titel,tbl_stundenplan.semester,tbl_stundenplan.studiengang_kz,tbl_stundenplan.verband ,tbl_stundenplan.gruppe , to_char(tbl_stundenplan.datum, \'YYYYMMDD\') as "datum_jjjjmmtt", to_char(tbl_stundenplan.datum, \'IW\') as "datum_woche" , tbl_stunde.beginn, tbl_stunde.ende , to_char(tbl_stunde.beginn, \'HH24:MI\') as "beginn_anzeige" , to_char(tbl_stunde.ende, \'HH24:MI\') as "ende_anzeige" , EXTRACT(EPOCH FROM tbl_stundenplan.datum) as "datum_timestamp" ,tbl_stunde.stunde ';
$qry.=' FROM lehre.tbl_stundenplan , lehre.tbl_stunde ';
$qry.=" WHERE tbl_stunde.stunde=tbl_stundenplan.stunde ";
$qry.=" and tbl_stundenplan.stunde between ". trim($stunde_von) ." and ". trim($stunde_bis) ;
if (!empty($datum))
{
$qry.=" and to_char(tbl_stundenplan.datum, 'YYYYMMDD') ='".addslashes(trim($datum))."' ";
}
if (!empty($kalenderwoche))
{
$qry.=" and to_char(tbl_stundenplan.datum, 'IW') ='".addslashes(trim($kalenderwoche))."' ";
}
if (!empty($ort_kurzbz))
{
$qry.=" and ort_kurzbz =E'".addslashes(trim($ort_kurzbz))."' ";
}
if (!empty($uid) || $uid=='0')
{
$qry.=" and mitarbeiter_uid='".addslashes(trim($uid))."' ";
}
if (!empty($studiengang_kz) || $studiengang_kz=='0')
{
$qry.=" and studiengang_kz=".$studiengang_kz." ";
}
if (!empty($semester) || $semester=='0')
{
$qry.=" and semester=".$semester." ";
}
if (!empty($verband) || $verband=='0')
{
$qry.=" and verband=E'".addslashes(trim($verband))."' ";
}
if (!empty($gruppe) || $gruppe=='0')
{
$qry.=" and gruppe=".$gruppe." ";
}
$qry.=" ; ";
$row_raum_belegt=array();
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if (!$num_rows_stunde=$db->db_num_rows($result))
return $row_raum_belegt;
while($row = $db->db_fetch_object($result))
{
$row_raum_belegt[]=$row;
}
return $row_raum_belegt;
}
//-------------------------------------------------------------------------------------------
/*
*
* @stundenplan_detail Stundenplan mit Lehrveranstaltungsinformationen
*
* @param $db Aktuelle Datenbankverbindung
* @param $stundenplan_id StundenplanID
*
* @return array Tablle des Stundenplan im Detail
*
*/
function stundenplan_detail($db,$stundenplan_id)
{
if (!$db || empty($stundenplan_id))
return false;
$row_stundenplan_detail=false;
//--- Raumbelegung jetzt
$qry="";
$qry.=' SELECT * ';
$qry.=' FROM campus.vw_stundenplan ';
$qry.=" WHERE vw_stundenplan.stundenplan_id=".$stundenplan_id;
$qry.=" ORDER BY datum,stunde ";
$qry.=" ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($row = $db->db_fetch_object($result))
$row_stundenplan_detail=$row;
}
return $row_stundenplan_detail;
}
//-------------------------------------------------------------------------------------------
/*
*
* @reservierung_detail Stundenplan mit Reservierungsinformationen
*
* @param $db Aktuelle Datenbankverbindung
* @param $reservierung_id ReservierungID
*
* @return array Tablle des Reservierung im Detail
*
*/
function reservierung_detail($db,$reservierung_id)
{
if (!$db || empty($reservierung_id))
return false;
$row_reservierung_detail=false;
//--- Reservierung jetzt
$qry="";
$qry.=' SELECT * ';
$qry.=' FROM campus.vw_reservierung ';
$qry.=" WHERE vw_reservierung.reservierung_id=".$reservierung_id;
$qry.=" ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($row = $db->db_fetch_object($result))
$row_reservierung_detail=$row;
}
return $row_reservierung_detail;
}
//------------------------------------------------------------------------------------------
// BENUTZER STD.PLAN
//------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
/*
*
* @getAktuelleStd liefert die Aktuelle Stunde lt. Tabelle retour
*
* @param $db Aktuelle Datenbankverbindung
*
* @return Array der Stundentabelle
*
*/
function getMeinStundenplan($uid='',$datum='')
{
$htmlout="";
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$ort_kurzbz="";
// ------------------------------------------------------------------------------------------
// Stunden lesen
// ------------------------------------------------------------------------------------------
$row_stunde=array();
$qry="SELECT stunde, beginn, ende FROM lehre.tbl_stunde ORDER BY stunde";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundentabelle '.$db->db_last_error());
$htmlout.='<table>';
// ------------------------------------------------------------------------------------------
// Alle Termine zum User lesen
// ------------------------------------------------------------------------------------------
$user_array=uid_read_mitarbeiter_oder_student($db,$uid);
// Authentifizierung
if (check_student($uid))
$type='student';
elseif (check_lektor($uid))
$type='lektor';
else
{
//die("Cannot set usertype!");
//GastAccountHack
$type='student';
}
// Stundenplan erstellen
$stdplan=new wochenplan($type);
// Benutzergruppe
$stdplan->user=$type;
// aktueller Benutzer
$stdplan->user_uid=$uid;
// Zusaetzliche Daten laden
if (isset($user_array->studiengang_kz))
{
// Student
if (! $stdplan->load_data($type,$uid,NULL,trim($user_array->studiengang_kz),trim($user_array->semester),trim($user_array->verband),trim($user_array->gruppe)) )
{
die($stdplan->errormsg);
}
}
else
{
// Mitarbeiter
if (! $stdplan->load_data($type,$uid) )
{
die($stdplan->errormsg);
}
}
$mtag=mb_substr($datum, 6,2);
$month=mb_substr($datum, 4,2);
$jahr=mb_substr($datum, 0,4);
$datum=@mktime(12,0,0,$month,$mtag,$jahr);
// Stundenplan einer Woche laden
if (! $stdplan->load_week($datum))
die($stdplan->errormsg);
#$htmlout.=date('Y-m-d',$stdplan->datum);
$ersterTagMonat=date('m', $stdplan->datum);
$ersterTag=date('d', $stdplan->datum);
$year=date('Y', $stdplan->datum);
$weekday=date('w');
$gefunden=null;
for ($ind_stdplan=0;$ind_stdplan<count($stdplan->std_plan);$ind_stdplan++)
{
$datum_check=@mktime(12,0,0,$ersterTagMonat,($ersterTag + $ind_stdplan ),$year);
if (date('Ymd',$datum)==date('Ymd',$datum_check))
{
$gefunden=1 + $ind_stdplan;
break;
}
}
while($row_stunden = $db->db_fetch_object($result))
{
$row_stunden->time_beginn=mktime(mb_substr($row_stunden->beginn, 0,2),mb_substr($row_stunden->beginn, 3,2));
$row_stunden->time_ende=mktime(mb_substr($row_stunden->ende, 0,2),mb_substr($row_stunden->ende, 3,2));
$row_stunden->beginn_show=mb_substr($row_stunden->beginn, 0,5);
$row_stunden->ende_show=mb_substr($row_stunden->ende, 0,5);
$row_stunden->beginn_time=date('Hi',$row_stunden->time_beginn);
$row_stunden->ende_time=date('Hi',$row_stunden->time_ende);
$row_stunden->aktiv_time=date('Hi');
$htmlout.='<tr>';
if ($row_stunden->beginn_time<=$row_stunden->aktiv_time
&& $row_stunden->ende_time>=$row_stunden->aktiv_time )
$htmlout.='<td><small><b>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</b></small></td>';
else
$htmlout.='<td><small>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</small></td>';
$htmlout.='<td><small>';
$stunde_von=$row_stunden->stunde;
$stunde_bis=$row_stunden->stunde;
## $row_raum=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis,$uid,$kalenderwoche,$studiengang_kz,$semester,$verband,$gruppe);
##var_dump($stdplan->std_plan[$gefunden][$stunde_von][0]);
$row_raum=array();
if (!is_null($gefunden) && isset($stdplan->std_plan) && isset($stdplan->std_plan[$gefunden]) && isset($stdplan->std_plan[$gefunden][$stunde_von]) && isset($stdplan->std_plan[$gefunden][$stunde_von][0]))
$row_raum=$stdplan->std_plan[$gefunden][$stunde_von][0];
if ((is_array($row_raum) || is_object($row_raum)) && count($row_raum)>0 && isset($row_raum->reservierung) )
{
if ($row_raum->reservierung)
$htmlout.=(!empty($row_raum->titel)?$row_raum->titel:(!empty($row_raum->titel) && $row_raum->lehrfach!=$row_raum->titel?$row_raum->lehrfach:'')).'<br />'.$row_raum->ort;
else
$htmlout.=$row_raum->lehrfach.'-'.$row_raum->lehrform.'<br />'.$row_raum->ort;
}
$htmlout.='</small></td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
#exit($htmlout);
return $htmlout;
}
//------------------------------------------------------------------------------------------
// RAUMTYPEN
//------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
/*
*
* @raum_typen Liste der Raumtypen
*
* @param $uid Aktueller Anwender
*
* @return array Tablle der Raeume
*
*/
function raum_typen($uid='')
{
$htmlout="";
// ------------------------------------------------------------------------------------------
// Linkes Auswahlmenue fuer Raumtypen
// ------------------------------------------------------------------------------------------
$row_ort=array(
array("type"=>"EDV","beschreibung"=>"EDV Säle","img"=>""),
array("type"=>"HS","beschreibung"=> "Hörsäle","img"=>""),
array("type"=>"SEM","beschreibung"=>"Seminarräume","img"=>""),
array("type"=>"Lab","beschreibung"=>"Labors","img"=>""),
array("type"=>"EXT","beschreibung"=>"Ext.Räume","img"=>""),
array("type"=>"DIV","beschreibung"=>"Diverse","img"=>""),
array("type"=>"UEB","beschreibung"=>"Übungsräume","img"=>"")
# array("type"=>"ENERGY","beschreibung"=>"Energy","img"=>""),
);
if (!is_array($row_ort) || count($row_ort)<1)
return $htmlout;
$htmlout.='<table>';
for ($i=0;$i<count($row_ort);$i++)
{
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.= trim($row_ort[$i]["type"]);
##$htmlout.=iconv('iso-8859-1','UTF-8',$row_ort[$i]["beschreibung"]);
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.trim($row_ort[$i]["type"]).'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
//-------------------------------------------------------------------------------------------
/*
*
* @ort_raum_typen Liste der Raeume je Type
*
* @param $uid Aktueller Anwender
* @param $raumtyp_kurzbz Raumtype
*
* @return array Tablle der Raeume
*
*/
function ort_raum_typen($uid='',$raumtyp_kurzbz='',$datum='')
{
$htmlout="";
if (empty($raumtyp_kurzbz))
return raum_typen($uid);
if (empty($datum))
$datum=date("Ymd", mktime(0,0,0,date("m"),date("d"),date("y")));
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$htmlout.='<table>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.='Raumtypen';
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz=&amp;ort_kurzbz=" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='</table>';
// ------------------------------------------------------------------------------------------
// Alle Raum Typen zur Selektion
// ------------------------------------------------------------------------------------------
$qry="";
$qry.=" SELECT tbl_raumtyp.raumtyp_kurzbz,tbl_raumtyp.beschreibung ";
$qry.=" ,tbl_ortraumtyp.ort_kurzbz ";
$qry.=" ,tbl_ort.bezeichnung ,tbl_ort.aktiv ";
$qry.=" FROM tbl_raumtyp , tbl_ortraumtyp , tbl_ort ";
$qry.=" WHERE tbl_ortraumtyp.raumtyp_kurzbz=tbl_raumtyp.raumtyp_kurzbz ";
$qry.=" AND tbl_ort.ort_kurzbz=tbl_ortraumtyp.ort_kurzbz ";
$qry.=" AND tbl_ort.aktiv ";
$qry.=" AND tbl_raumtyp.raumtyp_kurzbz like E'%".addslashes(trim($raumtyp_kurzbz))."%' ";
$qry.=" order by tbl_raumtyp.raumtyp_kurzbz ,tbl_ortraumtyp.ort_kurzbz ";
$qry.=" ; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
$row_raum=array();
if ($tmp_row_raum=$db->db_num_rows($result))
{
while($tmp_row_raum = $db->db_fetch_object($result))
$row_raum[]=$tmp_row_raum;
}
$row_stunde=getAktuelleStd($db);
// Plausib Stunde
$row_stunde[0]->stunde=(isset($row_stunde[0]->stunde)?$row_stunde[0]->stunde:0);
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
$htmlout.='<table>';
reset($row_raum);
for ($i=0;$i<count($row_raum);$i++)
{
// Default
$farbe="frei";
$ort_kurzbz=$row_raum[$i]->ort_kurzbz;
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
if ($info=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis))
{
$farbe="besetzt";
}
$ort_kurzbz=$row_raum[$i]->ort_kurzbz;
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde + 1;
if (!$info=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis))
{
$farbe="2 Einheiten frei";
}
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=trim($ort_kurzbz);
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz='.$ort_kurzbz.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td><td>'.$farbe.'</td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
//-------------------------------------------------------------------------------------------
/*
*
* @ort_plan_raum_typen Stundenplan zum Raum
*
* @param $uid Aktueller Anwender
* @param $raumtyp_kurzbz Raumtype
* @param $ort_kurzbz Ortsbezeichnung
* @param $datum Datum
*
* @return array Tablle des Reservierung im Detail
*
*/
function ort_plan_raum_typen($uid='',$raumtyp_kurzbz='',$ort_kurzbz='',$datum='')
{
$htmlout="";
if (empty($raumtyp_kurzbz))
return raum_typen($uid);
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$htmlout.='<table>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=$raumtyp_kurzbz;
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=$ort_kurzbz;
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='</table>';
$row_stunde=array();
$qry="SELECT stunde, beginn, ende FROM lehre.tbl_stunde ORDER BY stunde";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundentabelle '.$db->db_last_error());
$num_rows_stunde=$db->db_num_rows();
$htmlout.='<table>';
while($row_stunden = $db->db_fetch_object($result))
{
$row_stunden->time_beginn=mktime(mb_substr($row_stunden->beginn, 0,2),mb_substr($row_stunden->beginn, 3,2));
$row_stunden->time_ende=mktime(mb_substr($row_stunden->ende, 0,2),mb_substr($row_stunden->ende, 3,2));
$row_stunden->beginn_show=mb_substr($row_stunden->beginn, 0,5);
$row_stunden->ende_show=mb_substr($row_stunden->ende, 0,5);
$row_stunden->beginn_time=date('Hi',$row_stunden->time_beginn);
$row_stunden->ende_time=date('Hi',$row_stunden->time_ende);
$row_stunden->aktiv_time=date('Hi');
$htmlout.='<tr>';
if ($row_stunden->beginn_time<=$row_stunden->aktiv_time
&& $row_stunden->ende_time>=$row_stunden->aktiv_time )
$htmlout.='<td><small><b>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</b></small></td>';
else
$htmlout.='<td><small>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</small></td>';
$htmlout.='<td><small>';
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$uids="";
$stunde_von=$row_stunden->stunde;
$stunde_bis=$row_stunden->stunde;
$row_raum=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis,$uids,$kalenderwoche,$studiengang_kz,$semester,$verband,$gruppe);
if (is_array($row_raum) && count($row_raum)>0)
{
for ($i=0;$i<count($row_raum);$i++)
{
if ($row_raum[$i]->stundenplan_id)
{
if ($row_info=stundenplan_detail($db,$row_raum[$i]->stundenplan_id))
$htmlout.=$row_info->lehrfach.'-'.$row_info->lehrform.'<br />'.$row_info->ort_kurzbz;
}
else if ($row_raum[$i]->reservierung_id)
{
if ($row_info=reservierung_detail($db,$row_raum[$i]->reservierung_id))
$htmlout.=(!empty($row_info->titel)?$row_info->titel:$row_info->beschreibung).'<br />'.$row_info->ort_kurzbz;
}
break;
}
}
$htmlout.='</small></td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
#-------------------------------------------------------------------------------------------
/*
*
* @uid_read_mitarbeiter_oder_student Daten zum Mitarbeiter oder Studenten
*
* @param $db Aktuelle Datenbankverbindung
* @param $uid Userkurzzeichen
*
* @return Array der User Inormationen wenn User gefunden wurde ansonst false
*
*/
function uid_read_mitarbeiter_oder_student($db,$uid)
{
$rows=array();
// Plausib
if (!$db)
return $rows;
// Pruefen ob Mitarbeiter
$qry="SELECT uid,person_id,anrede,titelpre,vorname,vornamen,nachname,aktiv FROM campus.vw_mitarbeiter where uid='".addslashes(trim($uid))."' LIMIT 1 ; ";
if(!$results=$db->db_query($qry))
die('Probleme beim lesen der Mitarbeiter '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($results))
{
while($rows = $db->db_fetch_object($results))
{
$rows->name='';
$rows->name.=(isset($rows->anrede)?trim($rows->anrede).' ':'');
$rows->name.=(isset($rows->titelpre)?trim($rows->titelpre).' ':'');
$rows->name.=(isset($rows->vorname)?trim($rows->vorname).' ':'');
$rows->name.=(isset($rows->vornamen)?trim($rows->vornamen).' ':'');
$rows->name.=(isset($rows->nachname)?trim($rows->nachname).' ':'');
return $rows;
}
}
// Wenn kein Mitarbeiter pruefen ob Student
$qry="SELECT uid,person_id,anrede,titelpre,vorname,vornamen,nachname,aktiv,studiengang_kz,semester,verband,gruppe FROM campus.vw_student where uid='".addslashes(trim($uid))."' LIMIT 1 ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Studenten '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($rows = $db->db_fetch_object($result))
{
$rows->name='';
$rows->name.=(isset($rows->anrede)?trim($rows->anrede).' ':'');
$rows->name.=(isset($rows->titelpre)?trim($rows->titelpre).' ':'');
$rows->name.=(isset($rows->vorname)?trim($rows->vorname).' ':'');
$rows->name.=(isset($rows->vornamen)?trim($rows->vornamen).' ':'');
$rows->name.=(isset($rows->nachname)?trim($rows->nachname).' ':'');
return $rows;
}
}
// Daten gefunden wurden ist nicht mehr der Initialwert False als Returnparameter vorhanden
return $rows;
}
?>
-154
View File
@@ -1,154 +0,0 @@
<?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 >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*
*/
/*
* Formular zum Senden eins Feedbacks an die CIS-Administratoren
*/
require_once('../../../config/cis.config.inc.php');
require_once('../../../include/basis_db.class.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/mail.class.php');
require_once('../../../include/phrasen.class.php');
$sprache = getSprache();
$p=new phrasen($sprache);
if (!$db = new basis_db())
die($p->t("global/fehlerBeimOeffnenDerDatenbankverbindung"));
if (!$user=get_uid())
die($p->t("global/nichtAngemeldet").'! <a href="javascript:history.back()">Zur&uuml;ck</a>');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
//Mail versenden
if(isset($feedback_submit))
{
$destination = MAIL_CIS;
$sql_query = "SELECT DISTINCT vorname, nachname, (uid || '@".DOMAIN."') AS emailtw FROM campus.vw_benutzer WHERE uid=".$db->db_add_param($user)." LIMIT 1";
$feedback_message = chop($txtFeedbackMessage);
if($feedback_message != "")
{
if($result = $db->db_query($sql_query))
{
if($row = $db->db_fetch_object($result))
{
$mail = new mail($destination,'feedback@'.DOMAIN, "[CIS-Feedback]", $feedback_message);
$mail->setReplyTo($row->emailtw);
if($mail->send())
{
$message_sent=true;
}
else
{
$message_sent=false;
}
}
else
{
$message_sent=false;
}
}
else
{
$message_sent=false;
}
}
else
{
$message_sent=false;
}
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript">
function focusFirstElement()
{
if(document.FeedbackFormular.txtFeedbackMessage != null)
{
document.FeedbackFormular.txtFeedbackMessage.focus();
}
}
</script>
</head>
<body onLoad="focusFirstElement();">
<table class="tabcontent" id="inhalt">
<tr>
<td class="tdwidth10">&nbsp;</td>
<td><table class="tabcontent">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;<?php echo $p->t("feedback/titelFeedback");?></font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<form name="FeedbackFormular" method="post">
<?php
if(isset($message_sent) && $message_sent)
{
echo '<h3>'.$p->t("feedback/vielenDankFuerIhrFeedback").'!</h3>';
echo '<h3>'.$p->t("feedback/ihreNachrichtWurdeWeitergeleitet").'.</h3></td>';
exit;
}
else if(isset($message_sent) && !$message_sent)
{
echo '<h3>'.$p->t("feedback/feedbackNichtWeitergeleitet").'!</h3>';
echo '<h3>'.$p->t("feedback/wendenSieSichAnDieAdministration").'.</h3></td>';
exit;
}
?>
<?php echo $p->t("feedback/absatz1");?>
<textarea style="width: 99%; heigth: 166px" name="txtFeedbackMessage" rows="10" cols="70" maxlength="2000"></textarea></td>
</tr>
<tr>
<td nowrap>
<input type="hidden" name="feedback_submit">
<input type="submit" name="btnSend" value="<?php echo $p->t("global/abschicken");?>">&nbsp;
<input type="reset" name="btnCancel" value="<?php echo $p->t("global/zuruecksetzen");?>" onClick="document.FeedbackFormular.txtFeedbackMessage.focus();"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
<td class="tdwidth30">&nbsp;</td>
</tr>
</table>
</body>
</html>
File diff suppressed because it is too large Load Diff
-23
View File
@@ -1,23 +0,0 @@
-----BEGIN CERTIFICATE-----
MIID4DCCA0mgAwIBAgIJAKBrSvwfZ3K0MA0GCSqGSIb3DQEBBAUAMIGnMQswCQYD
VQQGEwJBVDEPMA0GA1UECBMGVmllbm5hMScwJQYDVQQKEx5Vbml2ZXJzaXR5IG9m
IEFwcGxpZWQgU2NpZW5jZXMxEzARBgNVBAsTCklUIFNlcnZpY2UxHzAdBgNVBAMT
FlRlY2huaWt1bS1XaWVuIENBIDIwMDYxKDAmBgkqhkiG9w0BCQEWGXN1cHBvcnRA
dGVjaG5pa3VtLXdpZW4uYXQwHhcNMDYxMDExMDczOTIxWhcNMTYwODE5MDczOTIx
WjCBpzELMAkGA1UEBhMCQVQxDzANBgNVBAgTBlZpZW5uYTEnMCUGA1UEChMeVW5p
dmVyc2l0eSBvZiBBcHBsaWVkIFNjaWVuY2VzMRMwEQYDVQQLEwpJVCBTZXJ2aWNl
MR8wHQYDVQQDExZUZWNobmlrdW0tV2llbiBDQSAyMDA2MSgwJgYJKoZIhvcNAQkB
FhlzdXBwb3J0QHRlY2huaWt1bS13aWVuLmF0MIGfMA0GCSqGSIb3DQEBAQUAA4GN
ADCBiQKBgQCyAJJoxhpVZPi/NQKBejU6NOfF+4vuiKQxS5uWktmXXh+fELbmv6iM
OofHlOp9fdWOuW1NQk4XfVOYhsE75kHXf8Li3AVjoMBgQm4mOplLuT0CVIbT7dvh
tSSwOTF9C+TiG41wAminO2gK2McHa0D/h/CzC/V9BefFzJ5C/6S82QIDAQABo4IB
EDCCAQwwHQYDVR0OBBYEFG0jTF/EjbbQkJdygjeNs0boWBU5MIHcBgNVHSMEgdQw
gdGAFG0jTF/EjbbQkJdygjeNs0boWBU5oYGtpIGqMIGnMQswCQYDVQQGEwJBVDEP
MA0GA1UECBMGVmllbm5hMScwJQYDVQQKEx5Vbml2ZXJzaXR5IG9mIEFwcGxpZWQg
U2NpZW5jZXMxEzARBgNVBAsTCklUIFNlcnZpY2UxHzAdBgNVBAMTFlRlY2huaWt1
bS1XaWVuIENBIDIwMDYxKDAmBgkqhkiG9w0BCQEWGXN1cHBvcnRAdGVjaG5pa3Vt
LXdpZW4uYXSCCQCga0r8H2dytDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUA
A4GBABJeznJi65/eFVhRDz2s24rZpNRM5dj4/uv3EQgAecB/eHOCjbaxhG/GNa1y
th2Eihfy3bcgcqhqqKq9DGnjsUfp2NFzDd7C+mfOqydn3zotBo1VWcst1C+rcevh
uMgJbGi0jlp70ciUQcOUM/NjNXtVVZAOdzQkSV1VdMiO33s2
-----END CERTIFICATE-----
-723
View File
@@ -1,723 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang='en'>
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="description" content="Awstats - Advanced Web Statistics for cis.technikum-wien.at" />
<title>Statistics for cis.technikum-wien.at</title>
<style type="text/css">
<!--
body { font: 11px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; margin-top: 0; margin-bottom: 0; }
.aws_bodyl { }
.aws_border { background-color: #CCCCDD; padding: 1px 1px 1px 1px; margin-top: 0; margin-bottom: 0; }
.aws_title { font: 13px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #CCCCDD; text-align: center; margin-top: 0; margin-bottom: 0; padding: 1px 1px 1px 1px; }
.aws_blank { font: 13px verdana, arial, helvetica, sans-serif; background-color: #CCCCDD; text-align: center; margin-bottom: 0; padding: 1px 1px 1px 1px; }
.aws_data {
background-color: #FFFFFF;
border-top-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
}
.aws_formfield { font: 13px verdana, arial, helvetica; }
.aws_button {
font-family: arial,verdana,helvetica, sans-serif;
font-size: 12px;
border: 1px solid #ccd7e0;
background-image : url(/icon/other/button.gif);
}
th { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
th.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font-size: 13px; font-weight: bold; }
td { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 1px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
td.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 1px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; }
td.awsm { border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; padding: 0px 0px 0px 0px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; }
b { font-weight: bold; }
a { font: 11px verdana, arial, helvetica, sans-serif; }
a:link { color: #0011BB; text-decoration: none; }
a:visited { color: #0011BB; text-decoration: none; }
a:hover { color: #605040; text-decoration: underline; }
//-->
</style>
</head>
<body style="margin-top: 0px">
<a name="top">&nbsp;</a>
<a name="menu">&nbsp;</a>
<form name="FormDateFilter" action="/cgi-bin/awstats.pl?config=cis" style="padding: 0px 0px 0px 0px; margin-top: 0">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td>
<table class="aws_data" border="0" cellpadding="1" cellspacing="0" width="100%">
<tr><td class="aws" valign="middle"><b>Statistics for:</b>&nbsp;</td><td class="aws"><span style="font-size: 14px;">cis.technikum-wien.at</span></td><td align="right" rowspan="3"><a href="http://awstats.sourceforge.net" target="awstatshome"><img src="/icon/other/awstats_logo6.png" border="0" alt='Awstats Web Site' title='Awstats Web Site' /></a><br /></td></tr>
<tr valign="middle"><td class="aws" valign="middle" width="150"><b>Last Update:</b>&nbsp;</td><td class="aws" valign="middle"><span style="font-size: 12px;">03 Jul 2004 - 19:04</span>&nbsp; &nbsp; &nbsp; &nbsp;<a href="/cgi-bin/awstats.pl?config=cis&update=1">Update now</a></td></tr>
<tr><td class="aws" valign="middle"><b>Reported period:</b></td><td class="aws" valign="middle"><select class="aws_formfield" name="month">
<option value="01">Jan</option>
<option value="02">Feb</option>
<option value="03">Mar</option>
<option value="04">Apr</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option selected="true" value="07">Jul</option>
<option value="08">Aug</option>
<option value="09">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
<option value='all'>- Year -</option>
</select>
<select class="aws_formfield" name="year">
<option value="2003">2003</option>
<option selected="true" value="2004">2004</option>
</select>
<input type="hidden" name="output" value="main" />
<input type="hidden" name="config" value="cis" />
<input type="submit" value=" OK " class="aws_button" /></td></tr>
</table>
</td></tr></table>
</form>
<table>
<tr><td class="awsm" width="150" valign="top"><b>When:</b></td>
<td class="awsm"><a href="#month">Monthly history</a> &nbsp; <a href="#daysofmonth">Days of month</a> &nbsp; <a href="#daysofweek">Days of week</a> &nbsp; <a href="#hours">Hours</a> &nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Who:</b></td>
<td class="awsm"><a href="#countries">Countries</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=alldomains" target="awstatsbis">Full list</a>
&nbsp; <a href="#visitors">Hosts</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=allhosts" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=lasthosts" target="awstatsbis">Last visit</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownip" target="awstatsbis">Unresolved IP Address</a>
&nbsp; <a href="#robots">Robots/Spiders visitors</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=allrobots" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=lastrobots" target="awstatsbis">Last visit</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Navigation:</b></td>
<td class="awsm"><a href="#sessions">Visits duration</a> &nbsp; <a href="#filetypes">File type</a> &nbsp; <a href="#urls">Viewed</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urldetail" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urlentry" target="awstatsbis">Entry</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urlexit" target="awstatsbis">Exit</a>
&nbsp; <a href="#os">Operating Systems</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=osdetail" target="awstatsbis">Versions</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownos" target="awstatsbis">Unknown</a>
&nbsp; <a href="#browsers">Browsers</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=browserdetail" target="awstatsbis">Versions</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownbrowser" target="awstatsbis">Unknown</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Referers:</b></td>
<td class="awsm"><a href="#referer">Origin</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=refererse" target="awstatsbis">Refering search engines</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=refererpages" target="awstatsbis">Refering sites</a>
&nbsp; <a href="#keys">Search</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=keyphrases" target="awstatsbis">Search&nbsp;Keyphrases</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=keywords" target="awstatsbis">Search&nbsp;Keywords</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Others:</b></td>
<td class="awsm"><a href="#misc">Miscellaneous</a> &nbsp; <a href="#errors">HTTP Status codes</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=errors404" target="awstatsbis">Pages not found</a>
&nbsp; </td></tr>
</table>
<br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Summary </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data month" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><td>&nbsp;</td><td><b>First visit</b></td>
<td colspan="3">Summary</td><td><b>Last visit</b></td></tr>
<tr bgcolor="#ECECEC"><td>&nbsp;</td><td>03 Jul 2004 - 13:43</td><td colspan="3"><b>Month Jul 2004</b></td><td>03 Jul 2004 - 19:04</td></tr>
<tr><td bgcolor="#ECECEC">&nbsp;</td><td width="17%" bgcolor="#FFA060">Unique visitors</td><td width="17%" bgcolor="#F4F090">Number of visits</td><td width="17%" bgcolor="#4477DD">Pages</td><td width="17%" bgcolor="#66EEFF">Hits</td><td width="17%" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td class="aws">Viewed traffic&nbsp;*</td><td><b>108</b><br />&nbsp;</td><td><b>137</b><br />(1.26&nbsp;visits/visitor)</td><td><b>3982</b><br />(29.06&nbsp;pages/visit)</td><td><b>7684</b><br />(56.08&nbsp;hits/visit)</td><td><b>660.26 MB</b><br />(4935.07&nbsp;KB/visit)</td></tr>
<tr><td class="aws">Not viewed traffic&nbsp;*</td><td colspan=2>&nbsp;<br>&nbsp;</td>
<td><b>535</b></td><td><b>685</b></td><td><b>4.82 MB</b></td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Not viewed trafic is trafic generated by robots, worms or answers with special HTTP status code.</span><br />
<br />
<a name="month">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Monthly history </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data month" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom"><td>&nbsp;</td>
<td><img align="bottom" src="/icon/other/vu.png" height="23" width="6" alt='Unique visitors: 9226' title='Unique visitors: 9226' /><img align="bottom" src="/icon/other/vv.png" height="91" width="6" alt='Number of visits: 37713' title='Number of visits: 37713' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="45" width="6" alt='Pages: 1264594' title='Pages: 1264594' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 2578976' title='Hits: 2578976' /><img align="bottom" src="/icon/other/vk.png" height="65" width="6" alt='Bandwidth: 15.15 GB' title='Bandwidth: 15.15 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="20" width="6" alt='Unique visitors: 8135' title='Unique visitors: 8135' /><img align="bottom" src="/icon/other/vv.png" height="80" width="6" alt='Number of visits: 33331' title='Number of visits: 33331' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="50" width="6" alt='Pages: 1424760' title='Pages: 1424760' /><img align="bottom" src="/icon/other/vh.png" height="89" width="6" alt='Hits: 2532536' title='Hits: 2532536' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 21.02 GB' title='Bandwidth: 21.02 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="4" width="6" alt='Unique visitors: 1346' title='Unique visitors: 1346' /><img align="bottom" src="/icon/other/vv.png" height="7" width="6" alt='Number of visits: 2927' title='Number of visits: 2927' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="4" width="6" alt='Pages: 113963' title='Pages: 113963' /><img align="bottom" src="/icon/other/vh.png" height="8" width="6" alt='Hits: 213767' title='Hits: 213767' /><img align="bottom" src="/icon/other/vk.png" height="12" width="6" alt='Bandwidth: 2.71 GB' title='Bandwidth: 2.71 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 108' title='Unique visitors: 108' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 137' title='Number of visits: 137' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 3982' title='Pages: 3982' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 7684' title='Hits: 7684' /><img align="bottom" src="/icon/other/vk.png" height="3" width="6" alt='Bandwidth: 660.26 MB' title='Bandwidth: 660.26 MB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td>&nbsp;</td></tr>
<tr valign="middle"><td>&nbsp;</td><td>Jan<br />2004</td><td>Feb<br />2004</td><td>Mar<br />2004</td><td>Apr<br />2004</td><td>May<br />2004</td><td>Jun<br />2004</td><td>Jul<br />2004</td><td>Aug<br />2004</td><td>Sep<br />2004</td><td>Oct<br />2004</td><td>Nov<br />2004</td><td>Dec<br />2004</td><td>&nbsp;</td></tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Month</td><td width="80" bgcolor="#FFA060">Unique visitors</td><td width="80" bgcolor="#F4F090">Number of visits</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td>Jan 2004</td><td>9226</td><td>37713</td><td>1264594</td><td>2578976</td><td>15.15 GB</td></tr>
<tr><td>Feb 2004</td><td>8135</td><td>33331</td><td>1424760</td><td>2532536</td><td>21.02 GB</td></tr>
<tr><td>Mar 2004</td><td>1346</td><td>2927</td><td>113963</td><td>213767</td><td>2.71 GB</td></tr>
<tr><td>Apr 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>May 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Jun 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Jul 2004</td><td>108</td><td>137</td><td>3982</td><td>7684</td><td>660.26 MB</td></tr>
<tr><td>Aug 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Sep 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Oct 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Nov 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Dec 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td bgcolor="#ECECEC">Total</td><td bgcolor="#ECECEC">18815</td><td bgcolor="#ECECEC">74108</td><td bgcolor="#ECECEC">2807299</td><td bgcolor="#ECECEC">5332963</td><td bgcolor="#ECECEC">39.52 GB</td></tr>
</table>
<br />
</center>
</td></tr>
</table></td></tr></table><br />
<a name="when">&nbsp;</a>
<a name="daysofmonth">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Days of month </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data daysofmonth" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom">
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="91" width="4" alt='Number of visits: 137' title='Number of visits: 137' /><img align="bottom" src="/icon/other/vp.png" height="47" width="4" alt='Pages: 3982' title='Pages: 3982' /><img align="bottom" src="/icon/other/vh.png" height="91" width="4" alt='Hits: 7684' title='Hits: 7684' /><img align="bottom" src="/icon/other/vk.png" height="91" width="4" alt='Bandwidth: 660.26 MB' title='Bandwidth: 660.26 MB' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td>&nbsp;</td><td><img align="bottom" src="/icon/other/vv.png" height="31" width="4" alt='Number of visits: 45.67' title='Number of visits: 45.67' /><img align="bottom" src="/icon/other/vp.png" height="16" width="4" alt='Pages: 1327.33' title='Pages: 1327.33' /><img align="bottom" src="/icon/other/vh.png" height="31" width="4" alt='Hits: 2561.33' title='Hits: 2561.33' /><img align="bottom" src="/icon/other/vk.png" height="31" width="4" alt='Bandwidth: 220.09 MB' title='Bandwidth: 220.09 MB' /></td>
</tr>
<tr valign="middle"><td>01<br /><span style="font-size: 9px;">Jul</span></td>
<td>02<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA"><b>03<br /><span style="font-size: 9px;">Jul</span></b></td>
<td bgcolor="#EAEAEA">04<br /><span style="font-size: 9px;">Jul</span></td>
<td>05<br /><span style="font-size: 9px;">Jul</span></td>
<td>06<br /><span style="font-size: 9px;">Jul</span></td>
<td>07<br /><span style="font-size: 9px;">Jul</span></td>
<td>08<br /><span style="font-size: 9px;">Jul</span></td>
<td>09<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">10<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">11<br /><span style="font-size: 9px;">Jul</span></td>
<td>12<br /><span style="font-size: 9px;">Jul</span></td>
<td>13<br /><span style="font-size: 9px;">Jul</span></td>
<td>14<br /><span style="font-size: 9px;">Jul</span></td>
<td>15<br /><span style="font-size: 9px;">Jul</span></td>
<td>16<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">17<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">18<br /><span style="font-size: 9px;">Jul</span></td>
<td>19<br /><span style="font-size: 9px;">Jul</span></td>
<td>20<br /><span style="font-size: 9px;">Jul</span></td>
<td>21<br /><span style="font-size: 9px;">Jul</span></td>
<td>22<br /><span style="font-size: 9px;">Jul</span></td>
<td>23<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">24<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">25<br /><span style="font-size: 9px;">Jul</span></td>
<td>26<br /><span style="font-size: 9px;">Jul</span></td>
<td>27<br /><span style="font-size: 9px;">Jul</span></td>
<td>28<br /><span style="font-size: 9px;">Jul</span></td>
<td>29<br /><span style="font-size: 9px;">Jul</span></td>
<td>30<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">31<br /><span style="font-size: 9px;">Jul</span></td>
<td>&nbsp;</td><td valign="middle">Average</td>
</tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Day</td><td width="80" bgcolor="#F4F090">Number of visits</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>01 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>02 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>03 Jul 2004</td><td>137</td><td>3982</td><td>7684</td><td>660.26 MB</td></tr>
<tr bgcolor="#EAEAEA"><td>04 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>05 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>06 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>07 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>08 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>09 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>10 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>11 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>12 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>13 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>14 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>15 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>16 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>17 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>18 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>19 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>20 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>21 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>22 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>23 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>24 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>25 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>26 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>27 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>28 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>29 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>30 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>31 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#ECECEC"><td>Average</td><td>45.67</td><td>1327.33</td><td>2561.33</td><td>220.09 MB</td></tr>
<tr bgcolor="#ECECEC"><td>Total</td><td>137</td><td>3982</td><td>7684</td><td>660.26 MB</td></tr>
</table>
<br /></center>
</td></tr>
</table></td></tr></table><br />
<a name="daysofweek">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Days of week </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data daysofweek" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center"><center>
<table>
<tr valign="bottom">
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="47" width="6" alt='Pages: 3982' title='Pages: 3982' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 7684' title='Hits: 7684' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 660.26 MB' title='Bandwidth: 660.26 MB' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
</tr>
<tr>
<td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td bgcolor="#EAEAEA">Sat</td><td bgcolor="#EAEAEA">Sun</td></tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Day</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>Mon</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Tue</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Wed</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Thu</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Fri</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>Sat</td><td>3982</td><td>7684</td><td>660.26 MB</td></tr>
<tr bgcolor="#EAEAEA"><td>Sun</td><td>0</td><td>0</td><td>0</td></tr>
</table>
<br />
</center></td></tr>
</table></td></tr></table><br />
<a name="hours">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Hours </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data hours" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom">
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="18" width="6" alt='Pages: 360' title='Pages: 360' /><img align="bottom" src="/icon/other/vh.png" height="30" width="6" alt='Hits: 632' title='Hits: 632' /><img align="bottom" src="/icon/other/vk.png" height="2" width="6" alt='Bandwidth: 6.51 MB' title='Bandwidth: 6.51 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="28" width="6" alt='Pages: 589' title='Pages: 589' /><img align="bottom" src="/icon/other/vh.png" height="62" width="6" alt='Hits: 1292' title='Hits: 1292' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 3.56 MB' title='Bandwidth: 3.56 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="22" width="6" alt='Pages: 452' title='Pages: 452' /><img align="bottom" src="/icon/other/vh.png" height="44" width="6" alt='Hits: 923' title='Hits: 923' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 374.09 MB' title='Bandwidth: 374.09 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="37" width="6" alt='Pages: 764' title='Pages: 764' /><img align="bottom" src="/icon/other/vh.png" height="74" width="6" alt='Hits: 1550' title='Hits: 1550' /><img align="bottom" src="/icon/other/vk.png" height="39" width="6" alt='Bandwidth: 161.53 MB' title='Bandwidth: 161.53 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="30" width="6" alt='Pages: 628' title='Pages: 628' /><img align="bottom" src="/icon/other/vh.png" height="49" width="6" alt='Hits: 1033' title='Hits: 1033' /><img align="bottom" src="/icon/other/vk.png" height="12" width="6" alt='Bandwidth: 49.27 MB' title='Bandwidth: 49.27 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="44" width="6" alt='Pages: 925' title='Pages: 925' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 1904' title='Hits: 1904' /><img align="bottom" src="/icon/other/vk.png" height="16" width="6" alt='Bandwidth: 63.85 MB' title='Bandwidth: 63.85 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="13" width="6" alt='Pages: 264' title='Pages: 264' /><img align="bottom" src="/icon/other/vh.png" height="17" width="6" alt='Hits: 350' title='Hits: 350' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 1.45 MB' title='Bandwidth: 1.45 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
</tr>
<tr><th width="19">0</th>
<th width="19">1</th>
<th width="19">2</th>
<th width="19">3</th>
<th width="19">4</th>
<th width="19">5</th>
<th width="19">6</th>
<th width="19">7</th>
<th width="19">8</th>
<th width="19">9</th>
<th width="19">10</th>
<th width="19">11</th>
<th width="19">12</th>
<th width="19">13</th>
<th width="19">14</th>
<th width="19">15</th>
<th width="19">16</th>
<th width="19">17</th>
<th width="19">18</th>
<th width="19">19</th>
<th width="19">20</th>
<th width="19">21</th>
<th width="19">22</th>
<th width="19">23</th>
</tr>
<tr>
<td><img src="/icon/clock/hr1.png" width="10" alt="0:00 - 1:00 am" /></td>
<td><img src="/icon/clock/hr2.png" width="10" alt="1:00 - 2:00 am" /></td>
<td><img src="/icon/clock/hr3.png" width="10" alt="2:00 - 3:00 am" /></td>
<td><img src="/icon/clock/hr4.png" width="10" alt="3:00 - 4:00 am" /></td>
<td><img src="/icon/clock/hr5.png" width="10" alt="4:00 - 5:00 am" /></td>
<td><img src="/icon/clock/hr6.png" width="10" alt="5:00 - 6:00 am" /></td>
<td><img src="/icon/clock/hr7.png" width="10" alt="6:00 - 7:00 am" /></td>
<td><img src="/icon/clock/hr8.png" width="10" alt="7:00 - 8:00 am" /></td>
<td><img src="/icon/clock/hr9.png" width="10" alt="8:00 - 9:00 am" /></td>
<td><img src="/icon/clock/hr10.png" width="10" alt="9:00 - 10:00 am" /></td>
<td><img src="/icon/clock/hr11.png" width="10" alt="10:00 - 11:00 am" /></td>
<td><img src="/icon/clock/hr12.png" width="10" alt="11:00 - 12:00 am" /></td>
<td><img src="/icon/clock/hr1.png" width="10" alt="0:00 - 1:00 pm" /></td>
<td><img src="/icon/clock/hr2.png" width="10" alt="1:00 - 2:00 pm" /></td>
<td><img src="/icon/clock/hr3.png" width="10" alt="2:00 - 3:00 pm" /></td>
<td><img src="/icon/clock/hr4.png" width="10" alt="3:00 - 4:00 pm" /></td>
<td><img src="/icon/clock/hr5.png" width="10" alt="4:00 - 5:00 pm" /></td>
<td><img src="/icon/clock/hr6.png" width="10" alt="5:00 - 6:00 pm" /></td>
<td><img src="/icon/clock/hr7.png" width="10" alt="6:00 - 7:00 pm" /></td>
<td><img src="/icon/clock/hr8.png" width="10" alt="7:00 - 8:00 pm" /></td>
<td><img src="/icon/clock/hr9.png" width="10" alt="8:00 - 9:00 pm" /></td>
<td><img src="/icon/clock/hr10.png" width="10" alt="9:00 - 10:00 pm" /></td>
<td><img src="/icon/clock/hr11.png" width="10" alt="10:00 - 11:00 pm" /></td>
<td><img src="/icon/clock/hr12.png" width="10" alt="11:00 - 12:00 pm" /></td>
</tr>
</table>
<br />
<table width="650"><tr>
<td align="center"><center>
<table>
<tr><td width="80" bgcolor="#ECECEC">Hours</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>00</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>01</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>02</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>03</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>04</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>05</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>06</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>07</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>08</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>09</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>10</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>11</td><td>0</td><td>0</td><td>0</td></tr>
</table>
</center></td><td width="10">&nbsp;</td><td align="center"><center>
<table>
<tr><td width="80" bgcolor="#ECECEC">Hours</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td>12</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>13</td><td>360</td><td>632</td><td>6.51 MB</td></tr>
<tr><td>14</td><td>589</td><td>1292</td><td>3.56 MB</td></tr>
<tr><td>15</td><td>452</td><td>923</td><td>374.09 MB</td></tr>
<tr><td>16</td><td>764</td><td>1550</td><td>161.53 MB</td></tr>
<tr><td>17</td><td>628</td><td>1033</td><td>49.27 MB</td></tr>
<tr><td>18</td><td>925</td><td>1904</td><td>63.85 MB</td></tr>
<tr><td>19</td><td>264</td><td>350</td><td>1.45 MB</td></tr>
<tr><td>20</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>21</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>22</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>23</td><td>0</td><td>0</td><td>0</td></tr>
</table>
</center></td></tr></table>
<br />
</center></td></tr>
</table></td></tr></table><br />
<a name="who">&nbsp;</a>
<a name="countries">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Visitors domains/countries (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=alldomains" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data countries" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th colspan="2">Domains/Countries</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th>&nbsp;</th></tr>
<tr><td width="32"><img src="/icon/flags/ip.png" height="14" alt='Unknown' title='Unknown' /></td><td class="aws">Unknown</td><td>ip</td><td>3982</td><td>7684</td><td>660.26 MB</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="135" height="5" alt='' title='' /><br />
<img src="/icon/other/hh.png" width="261" height="5" alt='' title='' /><br />
<img src="/icon/other/hk.png" width="261" height="5" alt='' title='' /></td></tr>
</table></td></tr></table><br />
<a name="visitors">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Hosts (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=allhosts" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=lasthosts" target="awstatsbis">Last visit</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownip" target="awstatsbis">Unresolved IP Address</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data visitors" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Hosts : 0 Known, 110 Unknown (unresolved ip) - 108 Unique visitors</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th width="120">Last visit</th></tr>
<tr><td class="aws">80.110.112.173</td><td>528</td><td>677</td><td>641.35 MB</td><td>03 Jul 2004 - 19:04</td></tr>
<tr><td class="aws">10.63.0.41</td><td>392</td><td>485</td><td>3.17 MB</td><td>03 Jul 2004 - 19:04</td></tr>
<tr><td class="aws">81.217.49.48</td><td>227</td><td>363</td><td>1.45 MB</td><td>03 Jul 2004 - 17:19</td></tr>
<tr><td class="aws">62.178.22.72</td><td>162</td><td>217</td><td>1.05 MB</td><td>03 Jul 2004 - 17:08</td></tr>
<tr><td class="aws">213.47.84.88</td><td>95</td><td>181</td><td>1.41 MB</td><td>03 Jul 2004 - 17:46</td></tr>
<tr><td class="aws">80.108.40.126</td><td>90</td><td>249</td><td>437.79 KB</td><td>03 Jul 2004 - 18:23</td></tr>
<tr><td class="aws">62.48.151.136</td><td>68</td><td>106</td><td>217.81 KB</td><td>03 Jul 2004 - 15:34</td></tr>
<tr><td class="aws">80.108.94.146</td><td>68</td><td>93</td><td>488.90 KB</td><td>03 Jul 2004 - 16:58</td></tr>
<tr><td class="aws">213.33.13.182</td><td>62</td><td>196</td><td>287.85 KB</td><td>03 Jul 2004 - 18:55</td></tr>
<tr><td class="aws">81.223.155.148</td><td>60</td><td>117</td><td>284.60 KB</td><td>03 Jul 2004 - 18:12</td></tr>
<tr><td class="aws"><span style="color: #666688">Others</span></td><td>2230</td><td>5000</td><td>10.16 MB</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="robots">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Robots/Spiders visitors (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=allrobots" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=lastrobots" target="awstatsbis">Last visit</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data robots" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>2 different robots*</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th width="120">Last visit</th></tr>
<tr><td class="aws">Big Brother</td><td>130</td><td>0</td><td>03 Jul 2004 - 19:04</td></tr>
<tr><td class="aws">MSIECrawler</td><td>2</td><td>13.00 KB</td><td>03 Jul 2004 - 18:02</td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Robots shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts.</span><br />
<br />
<a name="how">&nbsp;</a>
<a name="sessions">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Visits duration </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data sessions" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Number of visits: 137 - Average: 441 s</th><th bgcolor="#8888DD" width="80">Number of visits</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
<tr><td class="aws">0s-30s</td><td>36</td><td>26.2 %</td></tr>
<tr><td class="aws">30s-2mn</td><td>29</td><td>21.1 %</td></tr>
<tr><td class="aws">2mn-5mn</td><td>15</td><td>10.9 %</td></tr>
<tr><td class="aws">5mn-15mn</td><td>9</td><td>6.5 %</td></tr>
<tr><td class="aws">15mn-30mn</td><td>7</td><td>5.1 %</td></tr>
<tr><td class="aws">30mn-1h</td><td>4</td><td>2.9 %</td></tr>
<tr><td class="aws">1h+</td><td>4</td><td>2.9 %</td></tr>
<tr><td class="aws"><span style="color: #666688">Unknown</span></td><td>33</td><td>24 %</td></tr>
</table></td></tr></table><br />
<a name="filetypes">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">File type </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data filetypes" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th colspan="3">File type</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th bgcolor="#2EA495" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/mime/image.png" alt='' title='' /></td><td class="aws">gif</td><td class="aws">Image</td><td>2946</td><td>38.3 %</td><td>661.28 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">php</td><td class="aws">Dynamic Html page or Script file</td><td>1967</td><td>25.5 %</td><td>12.88 MB</td><td>1.9 %</td></tr>
<tr><td><img src="/icon/mime/html.png" alt='' title='' /></td><td class="aws">html</td><td class="aws">HTML or XML static page</td><td>1233</td><td>16 %</td><td>2.45 MB</td><td>0.3 %</td></tr>
<tr><td><img src="/icon/mime/image.png" alt='' title='' /></td><td class="aws">jpg</td><td class="aws">Image</td><td>484</td><td>6.2 %</td><td>3.46 MB</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">css</td><td class="aws">Cascading Style Sheet file</td><td>392</td><td>5.1 %</td><td>525.80 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/image.png" alt='' title='' /></td><td class="aws">png</td><td class="aws">Image</td><td>272</td><td>3.5 %</td><td>59.35 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/pdf.png" alt='' title='' /></td><td class="aws">pdf</td><td class="aws">Document</td><td>44</td><td>0.5 %</td><td>10.41 MB</td><td>1.5 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">exe</td><td class="aws">HTML dynamic page or Binary runtime</td><td>41</td><td>0.5 %</td><td>94.31 MB</td><td>14.2 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">c</td><td class="aws">&nbsp;</td><td>29</td><td>0.3 %</td><td>410.94 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">pl</td><td class="aws">Dynamic Html page or Script file</td><td>27</td><td>0.3 %</td><td>787.19 KB</td><td>0.1 %</td></tr>
<tr><td><img src="/icon/mime/unknown.png" alt='' title='' /></td><td class="aws" colspan="2"><span style="color: #666688">Unknown</span></td><td>22</td><td>0.2 %</td><td>446.32 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">h</td><td class="aws">&nbsp;</td><td>21</td><td>0.2 %</td><td>107.31 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">frm</td><td class="aws">&nbsp;</td><td>20</td><td>0.2 %</td><td>72.21 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/archive.png" alt='' title='' /></td><td class="aws">zip</td><td class="aws">Archive</td><td>19</td><td>0.2 %</td><td>5.95 MB</td><td>0.9 %</td></tr>
<tr><td><img src="/icon/mime/text.png" alt='' title='' /></td><td class="aws">txt</td><td class="aws">HTML or XML static page</td><td>16</td><td>0.2 %</td><td>100.24 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/doc.png" alt='' title='' /></td><td class="aws">doc</td><td class="aws">Document</td><td>15</td><td>0.1 %</td><td>2.15 MB</td><td>0.3 %</td></tr>
<tr><td><img src="/icon/mime/html.png" alt='' title='' /></td><td class="aws">htm</td><td class="aws">HTML or XML static page</td><td>14</td><td>0.1 %</td><td>485.21 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">vbs</td><td class="aws">Visual Basic script</td><td>13</td><td>0.1 %</td><td>25.90 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">dll</td><td class="aws">Binary library</td><td>13</td><td>0.1 %</td><td>2.52 MB</td><td>0.3 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">ini</td><td class="aws">Config file</td><td>9</td><td>0.1 %</td><td>11.92 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">xls</td><td class="aws">Document</td><td>9</td><td>0.1 %</td><td>3.36 MB</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">pac</td><td class="aws">&nbsp;</td><td>8</td><td>0.1 %</td><td>230 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">inf</td><td class="aws">&nbsp;</td><td>8</td><td>0.1 %</td><td>66.15 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">db</td><td class="aws">&nbsp;</td><td>7</td><td>0 %</td><td>42.00 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">in</td><td class="aws">&nbsp;</td><td>4</td><td>0 %</td><td>28.70 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">sh</td><td class="aws">Dynamic Html page or Script file</td><td>4</td><td>0 %</td><td>3.74 MB</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">chr</td><td class="aws">&nbsp;</td><td>4</td><td>0 %</td><td>546.24 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/archive.png" alt='' title='' /></td><td class="aws">gz</td><td class="aws">Archive</td><td>3</td><td>0 %</td><td>1.61 MB</td><td>0.2 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">hlp</td><td class="aws">&nbsp;</td><td>3</td><td>0 %</td><td>73.13 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">lst</td><td class="aws">&nbsp;</td><td>2</td><td>0 %</td><td>21.82 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">frx</td><td class="aws">&nbsp;</td><td>2</td><td>0 %</td><td>2.43 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">lib</td><td class="aws">&nbsp;</td><td>2</td><td>0 %</td><td>14.00 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">cert</td><td class="aws">&nbsp;</td><td>2</td><td>0 %</td><td>2.36 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">conf</td><td class="aws">Config file</td><td>2</td><td>0 %</td><td>47.14 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">m4</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>18.69 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">y</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>10.26 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">pid</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>6 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/html.png" alt='' title='' /></td><td class="aws">xml</td><td class="aws">HTML or XML static page</td><td>1</td><td>0 %</td><td>1.12 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">prints</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>261.69 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">sample</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>372 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">dsw</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>537 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/archive.png" alt='' title='' /></td><td class="aws">tgz</td><td class="aws">Archive</td><td>1</td><td>0 %</td><td>35.97 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">cnt</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>288 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">chm</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>84.32 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">vbw</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>1.11 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">cab</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>1.83 MB</td><td>0.2 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">vbp</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>1.53 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/archive.png" alt='' title='' /></td><td class="aws">bz2</td><td class="aws">Archive</td><td>1</td><td>0 %</td><td>137.78 MB</td><td>20.8 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">ico</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>766 Bytes</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">dsp</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>6.90 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">am</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>1.74 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">iso</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>372.44 MB</td><td>56.4 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">mpp</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>331.00 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">guess</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>40.32 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">ppt</td><td class="aws">Document</td><td>1</td><td>0 %</td><td>85.50 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">assoc</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>5.81 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">8</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>8.13 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">l</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>4.80 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">sub</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>30.37 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">dot</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>44.00 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">crk</td><td class="aws">&nbsp;</td><td>1</td><td>0 %</td><td>0</td><td>0 %</td></tr>
</table></td></tr></table><br />
<a name="urls">&nbsp;</a><a name="entry">&nbsp;</a><a name="exit">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Pages-URL (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urldetail" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urlentry" target="awstatsbis">Entry</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=urlexit" target="awstatsbis">Exit</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data urls" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>604 different pages-url</th><th bgcolor="#4477DD" width="80">Viewed</th><th bgcolor="#2EA495" width="80">Average size</th><th bgcolor="#CEC2E8" width="80">Entry</th><th bgcolor="#C1B2E2" width="80">Exit</th><th>&nbsp;</th></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/login.php" target="url">/login.php</a></td><td>182</td><td>1.61 KB</td><td>8</td><td>20</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="261" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="47" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="12" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="29" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/campus/lehre/lessons.php" target="url">/campus/lehre/lessons.php</a></td><td>167</td><td>3.44 KB</td><td>4</td><td>5</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="239" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="100" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="6" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="8" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/campus/lehre/pinboard.php" target="url">/campus/lehre/pinboard.php</a></td><td>147</td><td>6.42 KB</td><td>&nbsp;</td><td>3</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="211" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="187" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="5" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/campus/lehre/menu.php" target="url">/campus/lehre/menu.php</a></td><td>143</td><td>7.65 KB</td><td>1</td><td>&nbsp;</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="205" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="222" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="2" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="1" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/stdplan/stpl_student_draw.php" target="url">/stdplan/stpl_student_draw.php</a></td><td>142</td><td>6.63 KB</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="203" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="193" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="1" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/campus/lehre/home.php" target="url">/campus/lehre/home.php</a></td><td>142</td><td>622 Bytes</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="203" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="18" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="1" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/include/styles.css" target="url">/include/styles.css</a></td><td>141</td><td>3.13 KB</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="202" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="91" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="1" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/style/global.css" target="url">/style/global.css</a></td><td>134</td><td>424 Bytes</td><td>&nbsp;</td><td>3</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="192" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="13" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="5" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/webmail/imp/mailbox.php" target="url">/webmail/imp/mailbox.php</a></td><td>115</td><td>8.97 KB</td><td>3</td><td>12</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="165" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="261" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="5" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="18" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://cis.technikum-wien.at/webmail/css.php" target="url">/webmail/css.php</a></td><td>105</td><td>2.87 KB</td><td>1</td><td>5</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="151" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="84" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="2" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="8" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><span style="color: #666688">Others</span></td><td>2564</td><td>259.78 KB</td><td>120</td><td>56</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="os">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Operating Systems (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=osdetail" target="awstatsbis">Full list/Versions</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownos" target="awstatsbis">Unknown</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data os" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th>Operating Systems</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/os/win.png" alt='' title='' /></td><td class="aws"><b>Windows</b></td><td>6892</td><td>89.6 %</td></tr>
<tr><td><img src="/icon/os/unknown.png" alt='' title='' /></td><td class="aws"><span style="color: #666688">Unknown</span></td><td>460</td><td>5.9 %</td></tr>
<tr><td><img src="/icon/os/linux.png" alt='' title='' /></td><td class="aws">Linux</td><td>308</td><td>4 %</td></tr>
<tr><td><img src="/icon/os/mac.png" alt='' title='' /></td><td class="aws"><b>Macintosh</b></td><td>24</td><td>0.3 %</td></tr>
</table></td></tr></table><br />
<a name="browsers">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Browsers (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=browserdetail" target="awstatsbis">Full list/Versions</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=cis&output=unknownbrowser" target="awstatsbis">Unknown</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data browsers" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th>Browsers</th><th width="80">Grabber</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/browser/msie.png" alt='' title='' /></td><td class="aws"><b>MS Internet Explorer</b></td><td>No</td><td>5568</td><td>72.4 %</td></tr>
<tr><td><img src="/icon/browser/mozilla.png" alt='' title='' /></td><td class="aws">Mozilla</td><td>No</td><td>1812</td><td>23.5 %</td></tr>
<tr><td><img src="/icon/browser/konqueror.png" alt='' title='' /></td><td class="aws">Konqueror</td><td>No</td><td>91</td><td>1.1 %</td></tr>
<tr><td><img src="/icon/browser/netscape.png" alt='' title='' /></td><td class="aws"><b>Netscape</b></td><td>No</td><td>53</td><td>0.6 %</td></tr>
<tr><td><img src="/icon/browser/opera.png" alt='' title='' /></td><td class="aws">Opera</td><td>No</td><td>42</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/browser/phoenix.png" alt='' title='' /></td><td class="aws">Firebird</td><td>No</td><td>42</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/browser/galeon.png" alt='' title='' /></td><td class="aws">Galeon</td><td>No</td><td>41</td><td>0.5 %</td></tr>
<tr><td><img src="/icon/browser/safari.png" alt='' title='' /></td><td class="aws">Safari</td><td>No</td><td>24</td><td>0.3 %</td></tr>
<tr><td><img src="/icon/browser/unknown.png" alt='' title='' /></td><td class="aws"><span style="color: #666688">Unknown</span></td><td width="80">?</td><td>10</td><td>0.1 %</td></tr>
<tr><td><img src="/icon/browser/mediaplayer.png" alt='' title='' /></td><td class="aws">NetShow Player (media player)</td><td>No</td><td>1</td><td>0 %</td></tr>
</table></td></tr></table><br />
<a name="refering">&nbsp;</a>
<a name="referer">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Connect to site from </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data referer" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Origin</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#4477DD" width="80">Percent</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td class="aws"><b>Direct address / Bookmarks</b></td><td>1214</td><td>30.4 %</td><td>2140</td><td>27.8 %</td></tr>
<tr><td class="aws"><b>Links from a NewsGroup</b></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td class="aws"><b>Links from an Internet Search Engine</b> - <a href="/cgi-bin/awstats.pl?config=cis&output=refererse" target="awstatsbis">Full list</a><br />
<table>
<tr><td class="aws">- Google</td><td>4</td><td>4</td></tr>
</table></td>
<td valign="top">4</td><td valign="top">0.1 %</td><td valign="top">4</td><td valign="top">0 %</td></tr>
<tr><td class="aws"><b>Links from an external page (other web sites except search engines)</b> - <a href="/cgi-bin/awstats.pl?config=cis&output=refererpages" target="awstatsbis">Full list</a><br />
<table>
<tr><td class="aws">- <a href="http://proeid.technikum-wien.at" target="url">http://proeid.technikum-wien.at</a></td><td>0</td><td>2</td></tr>
</table></td>
<td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">2</td><td valign="top">0 %</td></tr>
<tr><td class="aws"><b>Links from an internal page (other page on same site)</b></td><td>2763</td><td>69.3 %</td><td>5537</td><td>72 %</td></tr>
<tr><td class="aws"><b>Unknown Origin</b></td><td>1</td><td>0 %</td><td>1</td><td>0 %</td></tr>
</table></td></tr></table><br />
<a name="keys">&nbsp;</a>
<a name="keyphrases">&nbsp;</a><a name="keywords">&nbsp;</a><br />
<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="50%" valign="top">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="95%">Search&nbsp;Keyphrases (Top 10)<br /><a href="/cgi-bin/awstats.pl?config=cis&output=keyphrases" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data keyphrases" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>1 different keyphrases</th><th bgcolor="#8888DD" width="80">Search</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
<tr><td class="aws">campus login technikum wien</td><td>4</td><td>100 %</td></tr>
</table></td></tr></table><br />
</td>
<td> &nbsp; </td><td width="50%" valign="top">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="95%">Search&nbsp;Keywords (Top 10)<br /><a href="/cgi-bin/awstats.pl?config=cis&output=keywords" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data keywords" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>4 different keywords</th><th bgcolor="#8888DD" width="80">Search</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
<tr><td class="aws">technikum</td><td>4</td><td>25 %</td></tr>
<tr><td class="aws">wien</td><td>4</td><td>25 %</td></tr>
<tr><td class="aws">login</td><td>4</td><td>25 %</td></tr>
<tr><td class="aws">campus</td><td>4</td><td>25 %</td></tr>
</table></td></tr></table><br />
</td>
</tr></table>
<a name="other">&nbsp;</a>
<a name="misc">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Miscellaneous </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data misc" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Miscellaneous</th><th width="100">&nbsp;</th><th width="100">&nbsp;</th></tr>
<tr><td class="aws">Add to favorites (estimated)</td><td>1 / 108 Visitors</td><td>0.9 %</td></tr>
<tr><td class="aws">Browsers with Java support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Macromedia Director Support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Flash Support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Real audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Quicktime audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Windows Media audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with PDF support</td><td>-</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="errors">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">HTTP Status codes </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data errors" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th colspan="2">HTTP Status codes*</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th><th bgcolor="#2EA495" width="80">Bandwidth</th></tr>
<tr><td valign="top">302</td><td class="aws">Moved temporarily (redirect)</td><td>206</td><td>37.2 %</td><td>134.49 KB</td></tr>
<tr><td><a href="/cgi-bin/awstats.pl?config=cis&output=errors404" target="awstatsbis">404</a></td><td class="aws">Document Not Found</td><td>151</td><td>27.3 %</td><td>47.55 KB</td></tr>
<tr><td valign="top">401</td><td class="aws">Unauthorized</td><td>80</td><td>14.4 %</td><td>37.95 KB</td></tr>
<tr><td valign="top">301</td><td class="aws">Moved permanently (redirect)</td><td>71</td><td>12.8 %</td><td>22.91 KB</td></tr>
<tr><td valign="top">206</td><td class="aws">Partial Content</td><td>45</td><td>8.1 %</td><td>4.57 MB</td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Codes shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts.</span><br />
<br />
<br /><br />
<span dir="ltr" style="font: 11px verdana, arial, helvetica; color: #000000;"><b>Advanced Web Statistics 6.0 (build 1.704)</b> - <a href="http://awstats.sourceforge.net" target="awstatshome">Created by awstats</a></span><br />
<br />
</body>
</html>
-659
View File
@@ -1,659 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang='en'>
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="description" content="Awstats - Advanced Web Statistics for technikum-wien.at" />
<title>Statistics for technikum-wien.at</title>
<style type="text/css">
<!--
body { font: 11px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; margin-top: 0; margin-bottom: 0; }
.aws_bodyl { }
.aws_border { background-color: #CCCCDD; padding: 1px 1px 1px 1px; margin-top: 0; margin-bottom: 0; }
.aws_title { font: 13px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #CCCCDD; text-align: center; margin-top: 0; margin-bottom: 0; padding: 1px 1px 1px 1px; }
.aws_blank { font: 13px verdana, arial, helvetica, sans-serif; background-color: #CCCCDD; text-align: center; margin-bottom: 0; padding: 1px 1px 1px 1px; }
.aws_data {
background-color: #FFFFFF;
border-top-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
}
.aws_formfield { font: 13px verdana, arial, helvetica; }
.aws_button {
font-family: arial,verdana,helvetica, sans-serif;
font-size: 12px;
border: 1px solid #ccd7e0;
background-image : url(/icon/other/button.gif);
}
th { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
th.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font-size: 13px; font-weight: bold; }
td { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 1px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
td.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 1px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; }
td.awsm { border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; padding: 0px 0px 0px 0px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; }
b { font-weight: bold; }
a { font: 11px verdana, arial, helvetica, sans-serif; }
a:link { color: #0011BB; text-decoration: none; }
a:visited { color: #0011BB; text-decoration: none; }
a:hover { color: #605040; text-decoration: underline; }
//-->
</style>
</head>
<body style="margin-top: 0px">
<a name="top">&nbsp;</a>
<a name="menu">&nbsp;</a>
<form name="FormDateFilter" action="/cgi-bin/awstats.pl?config=www" style="padding: 0px 0px 0px 0px; margin-top: 0">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td>
<table class="aws_data" border="0" cellpadding="1" cellspacing="0" width="100%">
<tr><td class="aws" valign="middle"><b>Statistics for:</b>&nbsp;</td><td class="aws"><span style="font-size: 14px;">technikum-wien.at</span></td><td align="right" rowspan="3"><a href="http://awstats.sourceforge.net" target="awstatshome"><img src="/icon/other/awstats_logo6.png" border="0" alt='Awstats Web Site' title='Awstats Web Site' /></a><br /></td></tr>
<tr valign="middle"><td class="aws" valign="middle" width="150"><b>Last Update:</b>&nbsp;</td><td class="aws" valign="middle"><span style="font-size: 12px;">02 Jul 2004 - 20:34</span>&nbsp; &nbsp; &nbsp; &nbsp;<a href="/cgi-bin/awstats.pl?config=www&update=1">Update now</a></td></tr>
<tr><td class="aws" valign="middle"><b>Reported period:</b></td><td class="aws" valign="middle"><select class="aws_formfield" name="month">
<option value="01">Jan</option>
<option value="02">Feb</option>
<option value="03">Mar</option>
<option value="04">Apr</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option selected="true" value="07">Jul</option>
<option value="08">Aug</option>
<option value="09">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
<option value='all'>- Year -</option>
</select>
<select class="aws_formfield" name="year">
<option selected="true" value="2004">2004</option>
</select>
<input type="hidden" name="output" value="main" />
<input type="hidden" name="config" value="www" />
<input type="submit" value=" OK " class="aws_button" /></td></tr>
</table>
</td></tr></table>
</form>
<table>
<tr><td class="awsm" width="150" valign="top"><b>When:</b></td>
<td class="awsm"><a href="#month">Monthly history</a> &nbsp; <a href="#daysofmonth">Days of month</a> &nbsp; <a href="#daysofweek">Days of week</a> &nbsp; <a href="#hours">Hours</a> &nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Who:</b></td>
<td class="awsm"><a href="#countries">Countries</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=alldomains" target="awstatsbis">Full list</a>
&nbsp; <a href="#visitors">Hosts</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=allhosts" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=lasthosts" target="awstatsbis">Last visit</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownip" target="awstatsbis">Unresolved IP Address</a>
&nbsp; <a href="#robots">Robots/Spiders visitors</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=allrobots" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=lastrobots" target="awstatsbis">Last visit</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Navigation:</b></td>
<td class="awsm"><a href="#sessions">Visits duration</a> &nbsp; <a href="#filetypes">File type</a> &nbsp; <a href="#urls">Viewed</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urldetail" target="awstatsbis">Full list</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urlentry" target="awstatsbis">Entry</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urlexit" target="awstatsbis">Exit</a>
&nbsp; <a href="#os">Operating Systems</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=osdetail" target="awstatsbis">Versions</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownos" target="awstatsbis">Unknown</a>
&nbsp; <a href="#browsers">Browsers</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=browserdetail" target="awstatsbis">Versions</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownbrowser" target="awstatsbis">Unknown</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Referers:</b></td>
<td class="awsm"><a href="#referer">Origin</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=refererse" target="awstatsbis">Refering search engines</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=refererpages" target="awstatsbis">Refering sites</a>
&nbsp; <a href="#keys">Search</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=keyphrases" target="awstatsbis">Search&nbsp;Keyphrases</a>
&nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=keywords" target="awstatsbis">Search&nbsp;Keywords</a>
&nbsp; </td></tr>
<tr><td class="awsm" valign="top"><b>Others:</b></td>
<td class="awsm"><a href="#misc">Miscellaneous</a> &nbsp; <a href="#errors">HTTP Status codes</a> &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=errors404" target="awstatsbis">Pages not found</a>
&nbsp; </td></tr>
</table>
<br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Summary </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data month" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><td>&nbsp;</td><td><b>First visit</b></td>
<td colspan="3">Summary</td><td><b>Last visit</b></td></tr>
<tr bgcolor="#ECECEC"><td>&nbsp;</td><td>01 Jul 2004 - 00:01</td><td colspan="3"><b>Month Jul 2004</b></td><td>02 Jul 2004 - 20:33</td></tr>
<tr><td bgcolor="#ECECEC">&nbsp;</td><td width="17%" bgcolor="#FFA060">Unique visitors</td><td width="17%" bgcolor="#F4F090">Number of visits</td><td width="17%" bgcolor="#4477DD">Pages</td><td width="17%" bgcolor="#66EEFF">Hits</td><td width="17%" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td class="aws">Viewed traffic&nbsp;*</td><td><b>574</b><br />&nbsp;</td><td><b>845</b><br />(1.47&nbsp;visits/visitor)</td><td><b>10072</b><br />(11.91&nbsp;pages/visit)</td><td><b>39654</b><br />(46.92&nbsp;hits/visit)</td><td><b>265.41 MB</b><br />(321.63&nbsp;KB/visit)</td></tr>
<tr><td class="aws">Not viewed traffic&nbsp;*</td><td colspan=2>&nbsp;<br>&nbsp;</td>
<td><b>1259</b></td><td><b>1414</b></td><td><b>36.51 MB</b></td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Not viewed trafic is trafic generated by robots, worms or answers with special HTTP status code.</span><br />
<br />
<a name="month">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Monthly history </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data month" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom"><td>&nbsp;</td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="10" width="6" alt='Unique visitors: 1496' title='Unique visitors: 1496' /><img align="bottom" src="/icon/other/vv.png" height="11" width="6" alt='Number of visits: 1703' title='Number of visits: 1703' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="3" width="6" alt='Pages: 14064' title='Pages: 14064' /><img align="bottom" src="/icon/other/vh.png" height="8" width="6" alt='Hits: 44982' title='Hits: 44982' /><img align="bottom" src="/icon/other/vk.png" height="7" width="6" alt='Bandwidth: 256.96 MB' title='Bandwidth: 256.96 MB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="52" width="6" alt='Unique visitors: 8460' title='Unique visitors: 8460' /><img align="bottom" src="/icon/other/vv.png" height="91" width="6" alt='Number of visits: 14693' title='Number of visits: 14693' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="28" width="6" alt='Pages: 172402' title='Pages: 172402' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 564391' title='Hits: 564391' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 3.39 GB' title='Bandwidth: 3.39 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="45" width="6" alt='Unique visitors: 7306' title='Unique visitors: 7306' /><img align="bottom" src="/icon/other/vv.png" height="75" width="6" alt='Number of visits: 12126' title='Number of visits: 12126' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="19" width="6" alt='Pages: 112930' title='Pages: 112930' /><img align="bottom" src="/icon/other/vh.png" height="58" width="6" alt='Hits: 357547' title='Hits: 357547' /><img align="bottom" src="/icon/other/vk.png" height="58" width="6" alt='Bandwidth: 2.15 GB' title='Bandwidth: 2.15 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="40" width="6" alt='Unique visitors: 6434' title='Unique visitors: 6434' /><img align="bottom" src="/icon/other/vv.png" height="76" width="6" alt='Number of visits: 12351' title='Number of visits: 12351' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="22" width="6" alt='Pages: 134452' title='Pages: 134452' /><img align="bottom" src="/icon/other/vh.png" height="68" width="6" alt='Hits: 420991' title='Hits: 420991' /><img align="bottom" src="/icon/other/vk.png" height="67" width="6" alt='Bandwidth: 2.50 GB' title='Bandwidth: 2.50 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="30" width="6" alt='Unique visitors: 4737' title='Unique visitors: 4737' /><img align="bottom" src="/icon/other/vv.png" height="72" width="6" alt='Number of visits: 11700' title='Number of visits: 11700' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="25" width="6" alt='Pages: 150821' title='Pages: 150821' /><img align="bottom" src="/icon/other/vh.png" height="76" width="6" alt='Hits: 470926' title='Hits: 470926' /><img align="bottom" src="/icon/other/vk.png" height="80" width="6" alt='Bandwidth: 2.99 GB' title='Bandwidth: 2.99 GB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="4" width="6" alt='Unique visitors: 574' title='Unique visitors: 574' /><img align="bottom" src="/icon/other/vv.png" height="6" width="6" alt='Number of visits: 845' title='Number of visits: 845' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="2" width="6" alt='Pages: 10072' title='Pages: 10072' /><img align="bottom" src="/icon/other/vh.png" height="7" width="6" alt='Hits: 39654' title='Hits: 39654' /><img align="bottom" src="/icon/other/vk.png" height="7" width="6" alt='Bandwidth: 265.41 MB' title='Bandwidth: 265.41 MB' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vu.png" height="1" width="6" alt='Unique visitors: 0' title='Unique visitors: 0' /><img align="bottom" src="/icon/other/vv.png" height="1" width="6" alt='Number of visits: 0' title='Number of visits: 0' />&nbsp;<img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td>&nbsp;</td></tr>
<tr valign="middle"><td>&nbsp;</td><td>Jan<br />2004</td><td>Feb<br />2004</td><td>Mar<br />2004</td><td>Apr<br />2004</td><td>May<br />2004</td><td>Jun<br />2004</td><td>Jul<br />2004</td><td>Aug<br />2004</td><td>Sep<br />2004</td><td>Oct<br />2004</td><td>Nov<br />2004</td><td>Dec<br />2004</td><td>&nbsp;</td></tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Month</td><td width="80" bgcolor="#FFA060">Unique visitors</td><td width="80" bgcolor="#F4F090">Number of visits</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td>Jan 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Feb 2004</td><td>1496</td><td>1703</td><td>14064</td><td>44982</td><td>256.96 MB</td></tr>
<tr><td>Mar 2004</td><td>8460</td><td>14693</td><td>172402</td><td>564391</td><td>3.39 GB</td></tr>
<tr><td>Apr 2004</td><td>7306</td><td>12126</td><td>112930</td><td>357547</td><td>2.15 GB</td></tr>
<tr><td>May 2004</td><td>6434</td><td>12351</td><td>134452</td><td>420991</td><td>2.50 GB</td></tr>
<tr><td>Jun 2004</td><td>4737</td><td>11700</td><td>150821</td><td>470926</td><td>2.99 GB</td></tr>
<tr><td>Jul 2004</td><td>574</td><td>845</td><td>10072</td><td>39654</td><td>265.41 MB</td></tr>
<tr><td>Aug 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Sep 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Oct 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Nov 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Dec 2004</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td bgcolor="#ECECEC">Total</td><td bgcolor="#ECECEC">29007</td><td bgcolor="#ECECEC">53418</td><td bgcolor="#ECECEC">594741</td><td bgcolor="#ECECEC">1898491</td><td bgcolor="#ECECEC">11.53 GB</td></tr>
</table>
<br />
</center>
</td></tr>
</table></td></tr></table><br />
<a name="when">&nbsp;</a>
<a name="daysofmonth">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Days of month </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data daysofmonth" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom">
<td><img align="bottom" src="/icon/other/vv.png" height="91" width="4" alt='Number of visits: 468' title='Number of visits: 468' /><img align="bottom" src="/icon/other/vp.png" height="22" width="4" alt='Pages: 5280' title='Pages: 5280' /><img align="bottom" src="/icon/other/vh.png" height="75" width="4" alt='Hits: 18013' title='Hits: 18013' /><img align="bottom" src="/icon/other/vk.png" height="81" width="4" alt='Bandwidth: 125.22 MB' title='Bandwidth: 125.22 MB' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="73" width="4" alt='Number of visits: 377' title='Number of visits: 377' /><img align="bottom" src="/icon/other/vp.png" height="20" width="4" alt='Pages: 4792' title='Pages: 4792' /><img align="bottom" src="/icon/other/vh.png" height="91" width="4" alt='Hits: 21641' title='Hits: 21641' /><img align="bottom" src="/icon/other/vk.png" height="91" width="4" alt='Bandwidth: 140.19 MB' title='Bandwidth: 140.19 MB' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td><img align="bottom" src="/icon/other/vv.png" height="1" width="4" alt='Number of visits: 0' title='Number of visits: 0' /><img align="bottom" src="/icon/other/vp.png" height="1" width="4" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="4" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="4" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td>&nbsp;</td><td><img align="bottom" src="/icon/other/vv.png" height="82" width="4" alt='Number of visits: 422.50' title='Number of visits: 422.50' /><img align="bottom" src="/icon/other/vp.png" height="21" width="4" alt='Pages: 5036.00' title='Pages: 5036.00' /><img align="bottom" src="/icon/other/vh.png" height="83" width="4" alt='Hits: 19827.00' title='Hits: 19827.00' /><img align="bottom" src="/icon/other/vk.png" height="86" width="4" alt='Bandwidth: 132.71 MB' title='Bandwidth: 132.71 MB' /></td>
</tr>
<tr valign="middle"><td>01<br /><span style="font-size: 9px;">Jul</span></td>
<td><b>02<br /><span style="font-size: 9px;">Jul</span></b></td>
<td bgcolor="#EAEAEA">03<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">04<br /><span style="font-size: 9px;">Jul</span></td>
<td>05<br /><span style="font-size: 9px;">Jul</span></td>
<td>06<br /><span style="font-size: 9px;">Jul</span></td>
<td>07<br /><span style="font-size: 9px;">Jul</span></td>
<td>08<br /><span style="font-size: 9px;">Jul</span></td>
<td>09<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">10<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">11<br /><span style="font-size: 9px;">Jul</span></td>
<td>12<br /><span style="font-size: 9px;">Jul</span></td>
<td>13<br /><span style="font-size: 9px;">Jul</span></td>
<td>14<br /><span style="font-size: 9px;">Jul</span></td>
<td>15<br /><span style="font-size: 9px;">Jul</span></td>
<td>16<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">17<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">18<br /><span style="font-size: 9px;">Jul</span></td>
<td>19<br /><span style="font-size: 9px;">Jul</span></td>
<td>20<br /><span style="font-size: 9px;">Jul</span></td>
<td>21<br /><span style="font-size: 9px;">Jul</span></td>
<td>22<br /><span style="font-size: 9px;">Jul</span></td>
<td>23<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">24<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">25<br /><span style="font-size: 9px;">Jul</span></td>
<td>26<br /><span style="font-size: 9px;">Jul</span></td>
<td>27<br /><span style="font-size: 9px;">Jul</span></td>
<td>28<br /><span style="font-size: 9px;">Jul</span></td>
<td>29<br /><span style="font-size: 9px;">Jul</span></td>
<td>30<br /><span style="font-size: 9px;">Jul</span></td>
<td bgcolor="#EAEAEA">31<br /><span style="font-size: 9px;">Jul</span></td>
<td>&nbsp;</td><td valign="middle">Average</td>
</tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Day</td><td width="80" bgcolor="#F4F090">Number of visits</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>01 Jul 2004</td><td>468</td><td>5280</td><td>18013</td><td>125.22 MB</td></tr>
<tr><td>02 Jul 2004</td><td>377</td><td>4792</td><td>21641</td><td>140.19 MB</td></tr>
<tr bgcolor="#EAEAEA"><td>03 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>04 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>05 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>06 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>07 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>08 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>09 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>10 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>11 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>12 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>13 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>14 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>15 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>16 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>17 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>18 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>19 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>20 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>21 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>22 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>23 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>24 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>25 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>26 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>27 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>28 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>29 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>30 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>31 Jul 2004</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#ECECEC"><td>Average</td><td>422.50</td><td>5036.00</td><td>19827.00</td><td>132.71 MB</td></tr>
<tr bgcolor="#ECECEC"><td>Total</td><td>845</td><td>10072</td><td>39654</td><td>265.41 MB</td></tr>
</table>
<br /></center>
</td></tr>
</table></td></tr></table><br />
<a name="daysofweek">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Days of week </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data daysofweek" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center"><center>
<table>
<tr valign="bottom">
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="22" width="6" alt='Pages: 5280' title='Pages: 5280' /><img align="bottom" src="/icon/other/vh.png" height="75" width="6" alt='Hits: 18013' title='Hits: 18013' /><img align="bottom" src="/icon/other/vk.png" height="81" width="6" alt='Bandwidth: 125.22 MB' title='Bandwidth: 125.22 MB' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="20" width="6" alt='Pages: 4792' title='Pages: 4792' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 21641' title='Hits: 21641' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 140.19 MB' title='Bandwidth: 140.19 MB' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
<td valign="bottom"><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 0' title='Pages: 0' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 0' title='Hits: 0' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 0' title='Bandwidth: 0' /></td>
</tr>
<tr>
<td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td bgcolor="#EAEAEA">Sat</td><td bgcolor="#EAEAEA">Sun</td></tr>
</table>
<br />
<table>
<tr><td width="80" bgcolor="#ECECEC">Day</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>Mon</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Tue</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Wed</td><td>0</td><td>0</td><td>0</td></tr>
<tr><td>Thu</td><td>5280</td><td>18013</td><td>125.22 MB</td></tr>
<tr><td>Fri</td><td>4792</td><td>21641</td><td>140.19 MB</td></tr>
<tr bgcolor="#EAEAEA"><td>Sat</td><td>0</td><td>0</td><td>0</td></tr>
<tr bgcolor="#EAEAEA"><td>Sun</td><td>0</td><td>0</td><td>0</td></tr>
</table>
<br />
</center></td></tr>
</table></td></tr></table><br />
<a name="hours">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Hours </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data hours" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr><td align="center">
<center>
<table>
<tr valign="bottom">
<td><img align="bottom" src="/icon/other/vp.png" height="3" width="6" alt='Pages: 151' title='Pages: 151' /><img align="bottom" src="/icon/other/vh.png" height="8" width="6" alt='Hits: 449' title='Hits: 449' /><img align="bottom" src="/icon/other/vk.png" height="6" width="6" alt='Bandwidth: 2.55 MB' title='Bandwidth: 2.55 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="2" width="6" alt='Pages: 124' title='Pages: 124' /><img align="bottom" src="/icon/other/vh.png" height="6" width="6" alt='Hits: 324' title='Hits: 324' /><img align="bottom" src="/icon/other/vk.png" height="7" width="6" alt='Bandwidth: 2.93 MB' title='Bandwidth: 2.93 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="2" width="6" alt='Pages: 119' title='Pages: 119' /><img align="bottom" src="/icon/other/vh.png" height="4" width="6" alt='Hits: 232' title='Hits: 232' /><img align="bottom" src="/icon/other/vk.png" height="5" width="6" alt='Bandwidth: 2.14 MB' title='Bandwidth: 2.14 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 47' title='Pages: 47' /><img align="bottom" src="/icon/other/vh.png" height="1" width="6" alt='Hits: 57' title='Hits: 57' /><img align="bottom" src="/icon/other/vk.png" height="1" width="6" alt='Bandwidth: 428.24 KB' title='Bandwidth: 428.24 KB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="1" width="6" alt='Pages: 48' title='Pages: 48' /><img align="bottom" src="/icon/other/vh.png" height="2" width="6" alt='Hits: 77' title='Hits: 77' /><img align="bottom" src="/icon/other/vk.png" height="2" width="6" alt='Bandwidth: 659.38 KB' title='Bandwidth: 659.38 KB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="2" width="6" alt='Pages: 69' title='Pages: 69' /><img align="bottom" src="/icon/other/vh.png" height="3" width="6" alt='Hits: 147' title='Hits: 147' /><img align="bottom" src="/icon/other/vk.png" height="3" width="6" alt='Bandwidth: 1.05 MB' title='Bandwidth: 1.05 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="2" width="6" alt='Pages: 127' title='Pages: 127' /><img align="bottom" src="/icon/other/vh.png" height="7" width="6" alt='Hits: 393' title='Hits: 393' /><img align="bottom" src="/icon/other/vk.png" height="6" width="6" alt='Bandwidth: 2.76 MB' title='Bandwidth: 2.76 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="6" width="6" alt='Pages: 379' title='Pages: 379' /><img align="bottom" src="/icon/other/vh.png" height="20" width="6" alt='Hits: 1219' title='Hits: 1219' /><img align="bottom" src="/icon/other/vk.png" height="22" width="6" alt='Bandwidth: 9.78 MB' title='Bandwidth: 9.78 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="8" width="6" alt='Pages: 456' title='Pages: 456' /><img align="bottom" src="/icon/other/vh.png" height="26" width="6" alt='Hits: 1612' title='Hits: 1612' /><img align="bottom" src="/icon/other/vk.png" height="19" width="6" alt='Bandwidth: 8.50 MB' title='Bandwidth: 8.50 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="15" width="6" alt='Pages: 892' title='Pages: 892' /><img align="bottom" src="/icon/other/vh.png" height="46" width="6" alt='Hits: 2872' title='Hits: 2872' /><img align="bottom" src="/icon/other/vk.png" height="47" width="6" alt='Bandwidth: 21.34 MB' title='Bandwidth: 21.34 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="11" width="6" alt='Pages: 652' title='Pages: 652' /><img align="bottom" src="/icon/other/vh.png" height="51" width="6" alt='Hits: 3183' title='Hits: 3183' /><img align="bottom" src="/icon/other/vk.png" height="40" width="6" alt='Bandwidth: 18.08 MB' title='Bandwidth: 18.08 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="11" width="6" alt='Pages: 670' title='Pages: 670' /><img align="bottom" src="/icon/other/vh.png" height="45" width="6" alt='Hits: 2832' title='Hits: 2832' /><img align="bottom" src="/icon/other/vk.png" height="39" width="6" alt='Bandwidth: 17.89 MB' title='Bandwidth: 17.89 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="13" width="6" alt='Pages: 803' title='Pages: 803' /><img align="bottom" src="/icon/other/vh.png" height="53" width="6" alt='Hits: 3369' title='Hits: 3369' /><img align="bottom" src="/icon/other/vk.png" height="44" width="6" alt='Bandwidth: 19.99 MB' title='Bandwidth: 19.99 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="13" width="6" alt='Pages: 794' title='Pages: 794' /><img align="bottom" src="/icon/other/vh.png" height="69" width="6" alt='Hits: 4340' title='Hits: 4340' /><img align="bottom" src="/icon/other/vk.png" height="58" width="6" alt='Bandwidth: 26.47 MB' title='Bandwidth: 26.47 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="18" width="6" alt='Pages: 1113' title='Pages: 1113' /><img align="bottom" src="/icon/other/vh.png" height="91" width="6" alt='Hits: 5724' title='Hits: 5724' /><img align="bottom" src="/icon/other/vk.png" height="91" width="6" alt='Bandwidth: 41.43 MB' title='Bandwidth: 41.43 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="12" width="6" alt='Pages: 742' title='Pages: 742' /><img align="bottom" src="/icon/other/vh.png" height="40" width="6" alt='Hits: 2483' title='Hits: 2483' /><img align="bottom" src="/icon/other/vk.png" height="36" width="6" alt='Bandwidth: 16.31 MB' title='Bandwidth: 16.31 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="11" width="6" alt='Pages: 673' title='Pages: 673' /><img align="bottom" src="/icon/other/vh.png" height="34" width="6" alt='Hits: 2131' title='Hits: 2131' /><img align="bottom" src="/icon/other/vk.png" height="36" width="6" alt='Bandwidth: 16.36 MB' title='Bandwidth: 16.36 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="8" width="6" alt='Pages: 452' title='Pages: 452' /><img align="bottom" src="/icon/other/vh.png" height="28" width="6" alt='Hits: 1770' title='Hits: 1770' /><img align="bottom" src="/icon/other/vk.png" height="32" width="6" alt='Bandwidth: 14.36 MB' title='Bandwidth: 14.36 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="8" width="6" alt='Pages: 469' title='Pages: 469' /><img align="bottom" src="/icon/other/vh.png" height="29" width="6" alt='Hits: 1842' title='Hits: 1842' /><img align="bottom" src="/icon/other/vk.png" height="29" width="6" alt='Bandwidth: 13.19 MB' title='Bandwidth: 13.19 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="7" width="6" alt='Pages: 421' title='Pages: 421' /><img align="bottom" src="/icon/other/vh.png" height="30" width="6" alt='Hits: 1865' title='Hits: 1865' /><img align="bottom" src="/icon/other/vk.png" height="23" width="6" alt='Bandwidth: 10.50 MB' title='Bandwidth: 10.50 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="5" width="6" alt='Pages: 258' title='Pages: 258' /><img align="bottom" src="/icon/other/vh.png" height="13" width="6" alt='Hits: 813' title='Hits: 813' /><img align="bottom" src="/icon/other/vk.png" height="17" width="6" alt='Bandwidth: 7.40 MB' title='Bandwidth: 7.40 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="4" width="6" alt='Pages: 234' title='Pages: 234' /><img align="bottom" src="/icon/other/vh.png" height="12" width="6" alt='Hits: 745' title='Hits: 745' /><img align="bottom" src="/icon/other/vk.png" height="10" width="6" alt='Bandwidth: 4.17 MB' title='Bandwidth: 4.17 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="3" width="6" alt='Pages: 181' title='Pages: 181' /><img align="bottom" src="/icon/other/vh.png" height="7" width="6" alt='Hits: 436' title='Hits: 436' /><img align="bottom" src="/icon/other/vk.png" height="8" width="6" alt='Bandwidth: 3.52 MB' title='Bandwidth: 3.52 MB' /></td>
<td><img align="bottom" src="/icon/other/vp.png" height="4" width="6" alt='Pages: 198' title='Pages: 198' /><img align="bottom" src="/icon/other/vh.png" height="12" width="6" alt='Hits: 739' title='Hits: 739' /><img align="bottom" src="/icon/other/vk.png" height="8" width="6" alt='Bandwidth: 3.64 MB' title='Bandwidth: 3.64 MB' /></td>
</tr>
<tr><th width="19">0</th>
<th width="19">1</th>
<th width="19">2</th>
<th width="19">3</th>
<th width="19">4</th>
<th width="19">5</th>
<th width="19">6</th>
<th width="19">7</th>
<th width="19">8</th>
<th width="19">9</th>
<th width="19">10</th>
<th width="19">11</th>
<th width="19">12</th>
<th width="19">13</th>
<th width="19">14</th>
<th width="19">15</th>
<th width="19">16</th>
<th width="19">17</th>
<th width="19">18</th>
<th width="19">19</th>
<th width="19">20</th>
<th width="19">21</th>
<th width="19">22</th>
<th width="19">23</th>
</tr>
<tr>
<td><img src="/icon/clock/hr1.png" width="10" alt="0:00 - 1:00 am" /></td>
<td><img src="/icon/clock/hr2.png" width="10" alt="1:00 - 2:00 am" /></td>
<td><img src="/icon/clock/hr3.png" width="10" alt="2:00 - 3:00 am" /></td>
<td><img src="/icon/clock/hr4.png" width="10" alt="3:00 - 4:00 am" /></td>
<td><img src="/icon/clock/hr5.png" width="10" alt="4:00 - 5:00 am" /></td>
<td><img src="/icon/clock/hr6.png" width="10" alt="5:00 - 6:00 am" /></td>
<td><img src="/icon/clock/hr7.png" width="10" alt="6:00 - 7:00 am" /></td>
<td><img src="/icon/clock/hr8.png" width="10" alt="7:00 - 8:00 am" /></td>
<td><img src="/icon/clock/hr9.png" width="10" alt="8:00 - 9:00 am" /></td>
<td><img src="/icon/clock/hr10.png" width="10" alt="9:00 - 10:00 am" /></td>
<td><img src="/icon/clock/hr11.png" width="10" alt="10:00 - 11:00 am" /></td>
<td><img src="/icon/clock/hr12.png" width="10" alt="11:00 - 12:00 am" /></td>
<td><img src="/icon/clock/hr1.png" width="10" alt="0:00 - 1:00 pm" /></td>
<td><img src="/icon/clock/hr2.png" width="10" alt="1:00 - 2:00 pm" /></td>
<td><img src="/icon/clock/hr3.png" width="10" alt="2:00 - 3:00 pm" /></td>
<td><img src="/icon/clock/hr4.png" width="10" alt="3:00 - 4:00 pm" /></td>
<td><img src="/icon/clock/hr5.png" width="10" alt="4:00 - 5:00 pm" /></td>
<td><img src="/icon/clock/hr6.png" width="10" alt="5:00 - 6:00 pm" /></td>
<td><img src="/icon/clock/hr7.png" width="10" alt="6:00 - 7:00 pm" /></td>
<td><img src="/icon/clock/hr8.png" width="10" alt="7:00 - 8:00 pm" /></td>
<td><img src="/icon/clock/hr9.png" width="10" alt="8:00 - 9:00 pm" /></td>
<td><img src="/icon/clock/hr10.png" width="10" alt="9:00 - 10:00 pm" /></td>
<td><img src="/icon/clock/hr11.png" width="10" alt="10:00 - 11:00 pm" /></td>
<td><img src="/icon/clock/hr12.png" width="10" alt="11:00 - 12:00 pm" /></td>
</tr>
</table>
<br />
<table width="650"><tr>
<td align="center"><center>
<table>
<tr><td width="80" bgcolor="#ECECEC">Hours</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr><tr><td>00</td><td>151</td><td>449</td><td>2.55 MB</td></tr>
<tr><td>01</td><td>124</td><td>324</td><td>2.93 MB</td></tr>
<tr><td>02</td><td>119</td><td>232</td><td>2.14 MB</td></tr>
<tr><td>03</td><td>47</td><td>57</td><td>428.24 KB</td></tr>
<tr><td>04</td><td>48</td><td>77</td><td>659.38 KB</td></tr>
<tr><td>05</td><td>69</td><td>147</td><td>1.05 MB</td></tr>
<tr><td>06</td><td>127</td><td>393</td><td>2.76 MB</td></tr>
<tr><td>07</td><td>379</td><td>1219</td><td>9.78 MB</td></tr>
<tr><td>08</td><td>456</td><td>1612</td><td>8.50 MB</td></tr>
<tr><td>09</td><td>892</td><td>2872</td><td>21.34 MB</td></tr>
<tr><td>10</td><td>652</td><td>3183</td><td>18.08 MB</td></tr>
<tr><td>11</td><td>670</td><td>2832</td><td>17.89 MB</td></tr>
</table>
</center></td><td width="10">&nbsp;</td><td align="center"><center>
<table>
<tr><td width="80" bgcolor="#ECECEC">Hours</td><td width="80" bgcolor="#4477DD">Pages</td><td width="80" bgcolor="#66EEFF">Hits</td><td width="80" bgcolor="#2EA495">Bandwidth</td></tr>
<tr><td>12</td><td>803</td><td>3369</td><td>19.99 MB</td></tr>
<tr><td>13</td><td>794</td><td>4340</td><td>26.47 MB</td></tr>
<tr><td>14</td><td>1113</td><td>5724</td><td>41.43 MB</td></tr>
<tr><td>15</td><td>742</td><td>2483</td><td>16.31 MB</td></tr>
<tr><td>16</td><td>673</td><td>2131</td><td>16.36 MB</td></tr>
<tr><td>17</td><td>452</td><td>1770</td><td>14.36 MB</td></tr>
<tr><td>18</td><td>469</td><td>1842</td><td>13.19 MB</td></tr>
<tr><td>19</td><td>421</td><td>1865</td><td>10.50 MB</td></tr>
<tr><td>20</td><td>258</td><td>813</td><td>7.40 MB</td></tr>
<tr><td>21</td><td>234</td><td>745</td><td>4.17 MB</td></tr>
<tr><td>22</td><td>181</td><td>436</td><td>3.52 MB</td></tr>
<tr><td>23</td><td>198</td><td>739</td><td>3.64 MB</td></tr>
</table>
</center></td></tr></table>
<br />
</center></td></tr>
</table></td></tr></table><br />
<a name="who">&nbsp;</a>
<a name="countries">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Visitors domains/countries (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=alldomains" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data countries" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th colspan="2">Domains/Countries</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th>&nbsp;</th></tr>
<tr><td width="32"><img src="/icon/flags/ip.png" height="14" alt='Unknown' title='Unknown' /></td><td class="aws">Unknown</td><td>ip</td><td>10072</td><td>39654</td><td>265.41 MB</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="67" height="5" alt='' title='' /><br />
<img src="/icon/other/hh.png" width="261" height="5" alt='' title='' /><br />
<img src="/icon/other/hk.png" width="261" height="5" alt='' title='' /></td></tr>
</table></td></tr></table><br />
<a name="visitors">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Hosts (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=allhosts" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=lasthosts" target="awstatsbis">Last visit</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownip" target="awstatsbis">Unresolved IP Address</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data visitors" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Hosts : 0 Known, 588 Unknown (unresolved ip) - 574 Unique visitors</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th width="120">Last visit</th></tr>
<tr><td class="aws">62.40.176.118</td><td>570</td><td>3153</td><td>14.89 MB</td><td>02 Jul 2004 - 17:09</td></tr>
<tr><td class="aws">10.63.0.214</td><td>532</td><td>532</td><td>0</td><td>02 Jul 2004 - 20:24</td></tr>
<tr><td class="aws">193.170.232.130</td><td>522</td><td>1892</td><td>15.72 MB</td><td>02 Jul 2004 - 10:38</td></tr>
<tr><td class="aws">193.81.210.11</td><td>307</td><td>3037</td><td>9.85 MB</td><td>02 Jul 2004 - 14:31</td></tr>
<tr><td class="aws">62.178.77.232</td><td>181</td><td>817</td><td>8.03 MB</td><td>01 Jul 2004 - 07:20</td></tr>
<tr><td class="aws">62.178.239.10</td><td>155</td><td>513</td><td>1.87 MB</td><td>02 Jul 2004 - 18:23</td></tr>
<tr><td class="aws">193.170.250.94</td><td>137</td><td>557</td><td>1.35 MB</td><td>02 Jul 2004 - 15:37</td></tr>
<tr><td class="aws">194.39.131.40</td><td>112</td><td>274</td><td>2.23 MB</td><td>02 Jul 2004 - 17:00</td></tr>
<tr><td class="aws">10.63.0.30</td><td>105</td><td>799</td><td>3.65 MB</td><td>02 Jul 2004 - 16:21</td></tr>
<tr><td class="aws">213.162.65.17</td><td>104</td><td>517</td><td>1.66 MB</td><td>02 Jul 2004 - 15:39</td></tr>
<tr><td class="aws"><span style="color: #666688">Others</span></td><td>7347</td><td>27563</td><td>206.17 MB</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="robots">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Robots/Spiders visitors (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=allrobots" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=lastrobots" target="awstatsbis">Last visit</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data robots" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>2 different robots*</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th width="120">Last visit</th></tr>
<tr><td class="aws">Unknown robot (identified by hit on 'robots.txt')</td><td>0+110</td><td>1.56 MB</td><td>02 Jul 2004 - 20:08</td></tr>
<tr><td class="aws">Big Brother</td><td>1</td><td>0</td><td>02 Jul 2004 - 20:29</td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Robots shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts. Numbers after + are successful hits on "robots.txt" files.</span><br />
<br />
<a name="how">&nbsp;</a>
<a name="sessions">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Visits duration </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data sessions" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Number of visits: 845 - Average: 420 s</th><th bgcolor="#8888DD" width="80">Number of visits</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
<tr><td class="aws">0s-30s</td><td>399</td><td>47.2 %</td></tr>
<tr><td class="aws">30s-2mn</td><td>110</td><td>13 %</td></tr>
<tr><td class="aws">2mn-5mn</td><td>104</td><td>12.3 %</td></tr>
<tr><td class="aws">5mn-15mn</td><td>109</td><td>12.8 %</td></tr>
<tr><td class="aws">15mn-30mn</td><td>42</td><td>4.9 %</td></tr>
<tr><td class="aws">30mn-1h</td><td>31</td><td>3.6 %</td></tr>
<tr><td class="aws">1h+</td><td>29</td><td>3.4 %</td></tr>
<tr><td class="aws"><span style="color: #666688">Unknown</span></td><td>21</td><td>2.4 %</td></tr>
</table></td></tr></table><br />
<a name="filetypes">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">File type </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data filetypes" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th colspan="3">File type</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th><th bgcolor="#2EA495" width="80">Bandwidth</th><th bgcolor="#2EA495" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/mime/image.png" alt='' title='' /></td><td class="aws">gif</td><td class="aws">Image</td><td>19908</td><td>50.2 %</td><td>88.96 MB</td><td>33.5 %</td></tr>
<tr><td><img src="/icon/mime/image.png" alt='' title='' /></td><td class="aws">jpg</td><td class="aws">Image</td><td>9674</td><td>24.3 %</td><td>44.98 MB</td><td>16.9 %</td></tr>
<tr><td><img src="/icon/mime/unknown.png" alt='' title='' /></td><td class="aws" colspan="2"><span style="color: #666688">Unknown</span></td><td>4579</td><td>11.5 %</td><td>69.69 MB</td><td>26.2 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">css</td><td class="aws">Cascading Style Sheet file</td><td>2556</td><td>6.4 %</td><td>6.13 MB</td><td>2.3 %</td></tr>
<tr><td><img src="/icon/mime/html.png" alt='' title='' /></td><td class="aws">html</td><td class="aws">HTML or XML static page</td><td>1456</td><td>3.6 %</td><td>17.27 MB</td><td>6.5 %</td></tr>
<tr><td><img src="/icon/mime/video.png" alt='' title='' /></td><td class="aws">swf</td><td class="aws">Macromedia Flash Animation</td><td>1013</td><td>2.5 %</td><td>10.14 MB</td><td>3.8 %</td></tr>
<tr><td><img src="/icon/mime/pdf.png" alt='' title='' /></td><td class="aws">pdf</td><td class="aws">Document</td><td>410</td><td>1 %</td><td>27.27 MB</td><td>10.2 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">js</td><td class="aws">Javascript file</td><td>24</td><td>0 %</td><td>222.25 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/doc.png" alt='' title='' /></td><td class="aws">doc</td><td class="aws">Document</td><td>11</td><td>0 %</td><td>387.58 KB</td><td>0.1 %</td></tr>
<tr><td><img src="/icon/mime/html.png" alt='' title='' /></td><td class="aws">htm</td><td class="aws">HTML or XML static page</td><td>8</td><td>0 %</td><td>115.55 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">php</td><td class="aws">Dynamic Html page or Script file</td><td>5</td><td>0 %</td><td>72.54 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/other.png" alt='' title='' /></td><td class="aws">xls</td><td class="aws">Document</td><td>4</td><td>0 %</td><td>111.94 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/notavailable.png" alt='' title='' /></td><td class="aws">ghtml</td><td class="aws">&nbsp;</td><td>2</td><td>0 %</td><td>28.80 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">asp</td><td class="aws">Dynamic Html page or Script file</td><td>1</td><td>0 %</td><td>13.42 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">pl</td><td class="aws">Dynamic Html page or Script file</td><td>1</td><td>0 %</td><td>14.28 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">dll</td><td class="aws">Binary library</td><td>1</td><td>0 %</td><td>13.42 KB</td><td>0 %</td></tr>
<tr><td><img src="/icon/mime/script.png" alt='' title='' /></td><td class="aws">exe</td><td class="aws">HTML dynamic page or Binary runtime</td><td>1</td><td>0 %</td><td>14.26 KB</td><td>0 %</td></tr>
</table></td></tr></table><br />
<a name="urls">&nbsp;</a><a name="entry">&nbsp;</a><a name="exit">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Pages-URL (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urldetail" target="awstatsbis">Full list</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urlentry" target="awstatsbis">Entry</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=urlexit" target="awstatsbis">Exit</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data urls" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>524 different pages-url</th><th bgcolor="#4477DD" width="80">Viewed</th><th bgcolor="#2EA495" width="80">Average size</th><th bgcolor="#CEC2E8" width="80">Entry</th><th bgcolor="#C1B2E2" width="80">Exit</th><th>&nbsp;</th></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/" target="url">/</a></td><td>1325</td><td>12.00 KB</td><td>454</td><td>84</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="261" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="154" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="90" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="17" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/skin/trueBlue/tw.css" target="url">/skin/trueBlue/tw.css</a></td><td>1281</td><td>4.26 KB</td><td>15</td><td>21</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="252" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="55" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="3" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="5" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/skin/trueBlue/start1.css" target="url">/skin/trueBlue/start1.css</a></td><td>1252</td><td>656 Bytes</td><td>12</td><td>39</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="246" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="9" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="3" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="8" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/skin/trueBlue/flash/partner.swf" target="url">/skin/trueBlue/flash/partner.swf</a></td><td>1013</td><td>10.25 KB</td><td>11</td><td>119</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="199" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="132" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="3" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="24" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/studienangebot" target="url">/studienangebot</a></td><td>303</td><td>20.27 KB</td><td>15</td><td>22</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="60" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="261" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="3" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="5" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/events" target="url">/events</a></td><td>181</td><td>15.08 KB</td><td>8</td><td>14</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="36" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="194" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="2" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="3" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/fachhochschule" target="url">/fachhochschule</a></td><td>157</td><td>16.70 KB</td><td>12</td><td>15</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="31" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="215" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="3" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="3" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/admin/resources/dir/images/gallerie/events/sponsionen/2004/elektronik/23062004_0900" target="url">/admin/resources/dir/images/gallerie/events/sponsionen/2004/elek...</a></td><td>141</td><td>16.91 KB</td><td>&nbsp;</td><td>1</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="28" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="217" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="1" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="2" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/fachbereiche" target="url">/fachbereiche</a></td><td>117</td><td>15.46 KB</td><td>4</td><td>18</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="23" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="199" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="2" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="4" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><a href="http://technikum-wien.at/studienangebot/icss" target="url">/studienangebot/icss</a></td><td>94</td><td>11.71 KB</td><td>6</td><td>3</td><td style="text-align:left; font-size:4px;"><img src="/icon/other/hp.png" width="19" height="4" alt='' title='' /><br /><img src="/icon/other/hk.png" width="151" height="4" alt='' title='' /><br /><img src="/icon/other/he.png" width="2" height="4" alt='' title='' /><br /><img src="/icon/other/hx.png" width="2" height="4" alt='' title='' /></td></tr>
<tr><td class="aws"><span style="color: #666688">Others</span></td><td>4208</td><td>20.27 KB</td><td>308</td><td>488</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="os">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Operating Systems (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=osdetail" target="awstatsbis">Full list/Versions</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownos" target="awstatsbis">Unknown</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data os" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th>Operating Systems</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/os/unknown.png" alt='' title='' /></td><td class="aws"><span style="color: #666688">Unknown</span></td><td>39519</td><td>99.6 %</td></tr>
<tr><td><img src="/icon/os/win.png" alt='' title='' /></td><td class="aws"><b>Windows</b></td><td>135</td><td>0.3 %</td></tr>
</table></td></tr></table><br />
<a name="browsers">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Browsers (Top 10) &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=browserdetail" target="awstatsbis">Full list/Versions</a> &nbsp; - &nbsp; <a href="/cgi-bin/awstats.pl?config=www&output=unknownbrowser" target="awstatsbis">Unknown</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data browsers" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th width="32">&nbsp;</th><th>Browsers</th><th width="80">Grabber</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td width="32"><img src="/icon/browser/unknown.png" alt='' title='' /></td><td class="aws"><span style="color: #666688">Unknown</span></td><td width="80">?</td><td>39490</td><td>99.5 %</td></tr>
<tr><td><img src="/icon/browser/mozilla.png" alt='' title='' /></td><td class="aws">Mozilla</td><td>No</td><td>111</td><td>0.2 %</td></tr>
<tr><td><img src="/icon/browser/msie.png" alt='' title='' /></td><td class="aws"><b>MS Internet Explorer</b></td><td>No</td><td>53</td><td>0.1 %</td></tr>
</table></td></tr></table><br />
<a name="refering">&nbsp;</a>
<a name="referer">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Connect to site from </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data referer" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Origin</th><th bgcolor="#4477DD" width="80">Pages</th><th bgcolor="#4477DD" width="80">Percent</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th></tr>
<tr><td class="aws"><b>Direct address / Bookmarks</b></td><td>8</td><td>0 %</td><td>34</td><td>0 %</td></tr>
<tr><td class="aws"><b>Links from a NewsGroup</b></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td class="aws"><b>Links from an Internet Search Engine</b> - <a href="/cgi-bin/awstats.pl?config=www&output=refererse" target="awstatsbis">Full list</a><br />
</td>
<td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td></tr>
<tr><td class="aws"><b>Links from an external page (other web sites except search engines)</b> - <a href="/cgi-bin/awstats.pl?config=www&output=refererpages" target="awstatsbis">Full list</a><br />
</td>
<td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td></tr>
<tr><td class="aws"><b>Links from an internal page (other page on same site)</b></td><td>72</td><td>0.7 %</td><td>130</td><td>0.3 %</td></tr>
<tr><td class="aws"><b>Unknown Origin</b></td><td>9992</td><td>99.2 %</td><td>39490</td><td>99.5 %</td></tr>
</table></td></tr></table><br />
<a name="keys">&nbsp;</a>
<a name="keyphrases">&nbsp;</a><a name="keywords">&nbsp;</a><br />
<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="50%" valign="top">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="95%">Search&nbsp;Keyphrases (Top 10)<br /><a href="/cgi-bin/awstats.pl?config=www&output=keyphrases" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data keyphrases" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>0 different keyphrases</th><th bgcolor="#8888DD" width="80">Search</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
</table></td></tr></table><br />
</td>
<td> &nbsp; </td><td width="50%" valign="top">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="95%">Search&nbsp;Keywords (Top 10)<br /><a href="/cgi-bin/awstats.pl?config=www&output=keywords" target="awstatsbis">Full list</a> </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data keywords" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>0 different keywords</th><th bgcolor="#8888DD" width="80">Search</th><th bgcolor="#8888DD" width="80">Percent</th></tr>
</table></td></tr></table><br />
</td>
</tr></table>
<a name="other">&nbsp;</a>
<a name="misc">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">Miscellaneous </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data misc" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th>Miscellaneous</th><th width="100">&nbsp;</th><th width="100">&nbsp;</th></tr>
<tr><td class="aws">Add to favorites (estimated)</td><td>0 / 574 Visitors</td><td>0 %</td></tr>
<tr><td class="aws">Browsers with Java support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Macromedia Director Support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Flash Support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Real audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Quicktime audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with Windows Media audio playing support</td><td>-</td><td>&nbsp;</td></tr>
<tr><td class="aws">Browsers with PDF support</td><td>-</td><td>&nbsp;</td></tr>
</table></td></tr></table><br />
<a name="errors">&nbsp;</a><br />
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="aws_title" width="70%">HTTP Status codes </td><td class="aws_blank">&nbsp;</td></tr>
<tr><td colspan="2">
<table class="aws_data errors" border="2" bordercolor="#ECECEC" cellpadding="2" cellspacing="0" width="100%">
<tr bgcolor="#ECECEC"><th colspan="2">HTTP Status codes*</th><th bgcolor="#66EEFF" width="80">Hits</th><th bgcolor="#66EEFF" width="80">Percent</th><th bgcolor="#2EA495" width="80">Bandwidth</th></tr>
<tr><td valign="top">302</td><td class="aws">Moved temporarily (redirect)</td><td>884</td><td>67.8 %</td><td>10.86 MB</td></tr>
<tr><td valign="top">206</td><td class="aws">Partial Content</td><td>317</td><td>24.3 %</td><td>24.06 MB</td></tr>
<tr><td><a href="/cgi-bin/awstats.pl?config=www&output=errors404" target="awstatsbis">404</a></td><td class="aws">Document Not Found</td><td>101</td><td>7.7 %</td><td>37.75 KB</td></tr>
<tr><td valign="top">301</td><td class="aws">Moved permanently (redirect)</td><td>1</td><td>0 %</td><td>354 Bytes</td></tr>
</table></td></tr></table><span style="font: 11px verdana, arial, helvetica;">* Codes shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts.</span><br />
<br />
<br /><br />
<span dir="ltr" style="font: 11px verdana, arial, helvetica; color: #000000;"><b>Advanced Web Statistics 6.0 (build 1.704)</b> - <a href="http://awstats.sourceforge.net" target="awstatshome">Created by awstats</a></span><br />
<br />
</body>
</html>
-9
View File
@@ -1,9 +0,0 @@
AuthBasicProvider ldap
AuthName "Technikum-Wien"
AuthType Basic
AuthBasicProvider ldap
AuthBasicAuthoritative Off
AuthLDAPURL "ldap://localhost:389/ou=People,dc=oesi,dc=org?uid?one?objectclass=posixAccount"
AuthLDAPGroupAttributeIsDN Off
AuthLDAPGroupAttribute memberuid
require user oesi
-969
View File
@@ -1,969 +0,0 @@
<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../config/cis.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/functions.inc.php');
if (!$db = new basis_db())
die('Fehler beim Oeffnen der Datenbankverbindung');
require_once('../../include/benutzer.class.php');
require_once('../../include/wochenplan.class.php');
require_once('../../include/benutzerberechtigung.class.php');
//-------------------------------------------------------------------------------------------
// Datum - Format
if (!defined('constHeaderDatumZeit')) define('constHeaderDatumZeit','%A, %d %B %G %R' );
if (!defined('constRaumDatumZeit')) define('constRaumDatumZeit','%a, %d.%m.%Y' );
if (!defined('constHeaderStundenplan')) define('constHeaderStundenplan','KW %W, %B %G' );
if (!defined('constHeaderStundenplanTag')) define('constHeaderStundenplanTag','%A<br>%d.%m.%y' );
if (!defined('constAktuelleZeitHHMi')) define('constAktuelleZeitHHMi', date("Hi", time()));
if (!defined('constAktuelleZeitHH')) define('constAktuelleZeitHH', date("H", time()));
//-------------------------------------------------------------------------------------------
// Variable Init
$card_id=DOMAIN;
$card_titel=CAMPUS_NAME.' '.date('d-m-Y');
$htmlout='';
$day = date('d');
$month = date('m');
$year = date('y');
$weekday = date('w');
//-------------------------------------------------------------------------------------------
// Parameter uebernehmen
$uid=trim((isset($_REQUEST['uid']) ? $_REQUEST['uid']:''));
$ort_kurzbz=trim((isset($_REQUEST['ort_kurzbz']) ? $_REQUEST['ort_kurzbz']:''));
$raumtyp_kurzbz=trim((isset($_REQUEST['raumtyp_kurzbz']) ? $_REQUEST['raumtyp_kurzbz']:''));
$datum=trim((isset($_REQUEST['datum']) ? $_REQUEST['datum']:date('Ymd')));
$datum_bl=trim((isset($_REQUEST['datum_bl']) ? $_REQUEST['datum_bl']:''));
$work=trim((isset($_REQUEST['work']) ? $_REQUEST['work']:''));
//-------------------------------------------------------------------------------------------
// Anwender
if (empty($uid))
{
$work='freierraum';
$htmlout.='<small>
Durch Anh&#xE4;ngen von <b>?uid=[Ihre uid]</b> an die WAP URL <br/>
entf&#xE4;llt die Angabe ihres Benutzernames,<br/>
und Sie werden sofort zu Ihrem Stundenplan weitergeleitet.<br/>
</small>';
}
else
{
## $uid='el09b057';
# $uid='_DummyLektor';
## $uid='sommert';
if (empty($work))
$work='meinplan';
if ($user=new benutzer($uid))
{
$htmlout.=($user->vorname?$user->vorname.' ':'').$user->nachname;
if (!$user->aktiv)
$htmlout.='<br /><small>'.$uid.' ist nicht aktiv!</small>';
}
else
{
$htmlout.=$uid.' wurde nicht gefunden!';
$uid='';
$work='';
}
}
//-------------------------------------------------------------------------------------------
// Anzeige des aktuellen Stundenplan eines Anwenders
if (!empty($uid) && $work=='meinplan' )
{
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$row_stunde=getAktuelleStd($db);
if (date('Ymd')==$datum && is_array($row_stunde) && count($row_stunde)>0)
{
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
$user_array=uid_read_mitarbeiter_oder_student($db,$uid);
// Authentifizierung
if (check_student($uid))
$type='student';
elseif (check_lektor($uid))
$type='lektor';
else
{
//die("Cannot set usertype!");
//GastAccountHack
$type='student';
}
// Stundenplan erstellen
$stdplan=new wochenplan($type);
// Benutzergruppe
$stdplan->user=$type;
// aktueller Benutzer
$stdplan->user_uid=$uid;
// Zusaetzliche Daten laden
if (isset($user_array->studiengang_kz))
{
// Student
if (! $stdplan->load_data($type,$uid,NULL,trim($user_array->studiengang_kz),trim($user_array->semester),trim($user_array->verband),trim($user_array->gruppe)) )
{
die($stdplan->errormsg);
}
}
else
{
// Mitarbeiter
if (! $stdplan->load_data($type,$uid) )
{
die($stdplan->errormsg);
}
}
$mtag=mb_substr($datum, 6,2);
$month=mb_substr($datum, 4,2);
$jahr=mb_substr($datum, 0,4);
$datum_select=@mktime(12,0,0,$month,$mtag,$jahr);
// Stundenplan einer Woche laden
if (! $stdplan->load_week($datum_select))
die($stdplan->errormsg);
$ersterTagMonat=date('m', $stdplan->datum);
$ersterTag=date('d', $stdplan->datum);
$year=date('Y', $stdplan->datum);
$weekday=date('w');
$gefunden=null;
for ($ind_stdplan=0;$ind_stdplan<count($stdplan->std_plan);$ind_stdplan++)
{
$datum_check=@mktime(12,0,0,$ersterTagMonat,($ersterTag + $ind_stdplan ),$year);
if (date('Ymd',$datum_select)==date('Ymd',$datum_check))
{
$gefunden=1 + $ind_stdplan;
break;
}
}
$row_raum=array();
if (!is_null($gefunden) && isset($stdplan->std_plan) && isset($stdplan->std_plan[$gefunden]) && isset($stdplan->std_plan[$gefunden][$stunde_von]) && isset($stdplan->std_plan[$gefunden][$stunde_von][0]))
$row_raum=$stdplan->std_plan[$gefunden][$stunde_von][0];
if ((is_array($row_raum) || is_object($row_raum)) && count($row_raum)>0 && isset($row_raum->reservierung) )
{
$htmlout.='<table>
<tr>
<td><strong>'.substr($row_stunde[0]->beginn,0,5).'<br />'.substr($row_stunde[0]->ende,0,5).'</strong></td>
<td>';
if ($row_raum->reservierung)
$htmlout.=(!empty($row_raum->titel)?$row_raum->titel:(!empty($row_raum->titel) && $row_raum->lehrfach!=$row_raum->titel?$row_raum->lehrfach:'')).'<br />'.$row_raum->ort;
else
$htmlout.=$row_raum->lehrfach.'-'.$row_raum->lehrform.'<br />'.$row_raum->ort;
$htmlout.='</td>
</tr>
</table>';
}
}
}
//-------------------------------------------------------------------------------------------
// Information das es nicht das Tagesdatum ist
$dif=$datum-date('Ymd');
## if (date('Ymd')!=$datum)
$htmlout.='<br /><small>'.strftime(constHeaderDatumZeit,mktime(date('H'), date('i'), 0, $month, $day + $dif, $year)).'</small>';
if ($datum_bl=='ret')
{
$day=$day + ( $dif - 1 ) ;
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day + 1, $year));
}
else if ($datum_bl=='vor')
{
$day=$day + ( $dif + 1 );
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day - 1, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day, $year));
}
else
{
$datum_ret=date('Ymd',mktime(0, 0, 0, $month, $day - 1, $year));
$datum_vor=date('Ymd',mktime(0, 0, 0, $month, $day + 1, $year));
}
$datum_heute=date('Ymd');
$htmlout.='
<br /><small>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=ret&amp;datum='.$datum_ret.'">&lt;&lt;</a>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=&amp;datum='.$datum_heute.'"><b>heute</b></a>
<a href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work='.$work.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;datum_bl=vor&amp;datum='.$datum_vor.'">&gt;&gt;</a>
</small>';
//-------------------------------------------------------------------------------------------
switch ($work)
{
case 'freierraum':
if (!empty($uid))
{
$htmlout.='<br />';
$htmlout.='<anchor>';
$htmlout.='mein Stundenplan';
$htmlout.='<go href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work=meinplan&amp;raumtyp_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
}
if (empty($raumtyp_kurzbz))
$htmlout.=raum_typen($uid);
else if (empty($ort_kurzbz))
$htmlout.=ort_raum_typen($uid,$raumtyp_kurzbz,$datum);
else
$htmlout.=ort_plan_raum_typen($uid,$raumtyp_kurzbz,$ort_kurzbz,$datum);
break;
case 'meinplan':
$htmlout.='<br />';
$htmlout.='<anchor>';
$htmlout.='Freie S&#xE4;le';
$htmlout.='<go href="'.$_SERVER["PHP_SELF"].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.=getMeinStundenplan($uid,$datum);
break;
default:
break;
}
#exit($htmlout);
#exit($htmlout);
header("Content-Type: text/vnd.wap.wml;charset=UTF-8");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
?>
<wml>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<card id="<?php echo $card_id; ?>" title="<?php echo $card_titel; ?>">
Benutzername: <input name="uid" size="10" maxlength="30" type="Text" value="<?php echo $uid; ?>" />
<anchor>
Weiter
<go href="<?php echo $_SERVER["PHP_SELF"]; ?>" method="get">
<postfield name="uid" value="$(uid)"/>
</go>
</anchor>
<br />
<?php
// Ausgabe der Information
echo $htmlout;
?>
</card>
</wml>
<?php
//-------------------------------------------------------------------------------------------
/*
*
* @getAktuelleStd liefert die Aktuelle Stunde lt. Tabelle retour
*
* @param $db Aktuelle Datenbankverbindung
*
* @return Array der Stundentabelle
*
*/
function getAktuelleStd($db='')
{
// Plausib
if (!$db)
return false;
// Die aktive Stunde ermitteln - zum lesen welcher Raum jetzt besetzt ist - aktive Lehreinheit
$row_stunde=array();
$qry="";
$qry.="SELECT stunde, beginn, ende ";
$qry.=" FROM lehre.tbl_stunde ";
$qry.=" WHERE '". constAktuelleZeitHHMi."' between to_char(tbl_stunde.beginn, 'HH24MI') and to_char(tbl_stunde.ende, 'HH24MI') ";
$qry.=" ORDER BY stunde LIMIT 1 ; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
// In einer Pause wird kein Datensatz gefunden, den letzten holen
if (!$num_rows_stunde=$db->db_num_rows($result))
{
$qry="";
$qry.="SELECT stunde, beginn, ende ";
$qry.=" FROM lehre.tbl_stunde ";
$qry.=" WHERE '". constAktuelleZeitHH ."' between to_char(tbl_stunde.beginn, 'HH24') and to_char(tbl_stunde.ende, 'HH24') ";
$qry.=" ORDER BY stunde LIMIT 1; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
}
while($tmp_row_stunde = $db->db_fetch_object($result))
$row_stunde[]=$tmp_row_stunde;
return $row_stunde;
}
//-------------------------------------------------------------------------------------------
/*
*
* @alle_rauminformationen Rauminformation zur Auswahl Raumtype
*
* @param $db Aktuelle Datenbankverbindung
* @param $ort_kurzbz Detailanzeige Stundenplan eines Raums Optional
* @param $datum Datum der Raumres. in Form von JJJJMMTT Optional
* @param $row_stunde_von Stundenplan ab Optional
* @param $row_stunde_bis Stundenplan ab Optonal
* @param $uid UserUid Optional
* @param $kalenderwoche Kalenderwoche Optional
* @param $studiengang_kz Studienkennzeichen Optional
* @param $semester Semester Optional
* @param $verband="" Verbandskennzeichen Optional
* @param $gruppe Verband-Gruppe Optional
*
* @return array Tablle der Rauminformation
*
*/
function stundenplan_raum($db,$ort_kurzbz="",$datum="",$stunde_von,$stunde_bis=0,$uid="",$kalenderwoche="",$studiengang_kz="",$semester="",$verband="",$gruppe="")
{
// Plausib
if (!$db)
return array();
if (empty($stunde_bis))
$stunde_bis=$stunde_von;
//--- Raumbelegung jetzt
$qry="";
$qry.=' SELECT studiengang_kz,0 as "stundenplan_id",tbl_reservierung.reservierung_id,tbl_reservierung.ort_kurzbz,tbl_reservierung.titel,tbl_reservierung.semester,tbl_reservierung.studiengang_kz,tbl_reservierung.verband, tbl_reservierung.gruppe , to_char(tbl_reservierung.datum, \'YYYYMMDD\') as "datum_jjjjmmtt", to_char(tbl_reservierung.datum, \'IW\') as "datum_woche" , tbl_stunde.beginn, tbl_stunde.ende , to_char(tbl_stunde.beginn, \'HH24:MI\') as "beginn_anzeige" , to_char(tbl_stunde.ende, \'HH24:MI\') as "ende_anzeige" , EXTRACT(EPOCH FROM tbl_reservierung.datum) as "datum_timestamp" ,tbl_stunde.stunde ';
$qry.=' FROM campus.tbl_reservierung , lehre.tbl_stunde ';
$qry.=" WHERE tbl_stunde.stunde=tbl_reservierung.stunde ";
$qry.=" and tbl_reservierung.stunde between ". trim($stunde_von) ." and ". trim($stunde_bis) ;
if (!empty($datum))
{
$qry.=" and to_char(tbl_reservierung.datum, 'YYYYMMDD') ='".addslashes(trim($datum))."' ";
}
if (!empty($kalenderwoche))
{
$qry.=" and to_char(tbl_reservierung.datum, 'IW') ='".addslashes(trim($kalenderwoche))."' ";
}
if (!empty($ort_kurzbz))
{
$qry.=" and ort_kurzbz='".addslashes(trim($ort_kurzbz))."' ";
}
if (!empty($uid) || $uid=='0')
{
$qry.=" and uid='".addslashes(trim($uid))."' ";
}
if (!empty($studiengang_kz) || $studiengang_kz=='0')
{
$qry.=" and studiengang_kz=".$studiengang_kz." ";
}
if (!empty($semester) || $semester=='0')
{
$qry.=" and semester=".$semester." ";
}
if (!empty($verband) || $verband=='0')
{
$qry.=" and verband='".addslashes(trim($verband))."' ";
}
if (!empty($gruppe) || $gruppe=='0')
{
$qry.=" and gruppe=".$gruppe." ";
}
$qry.=" UNION ";
$qry.=' SELECT studiengang_kz,tbl_stundenplan.stundenplan_id,0 as "reservierung_id", tbl_stundenplan.ort_kurzbz,tbl_stundenplan.titel,tbl_stundenplan.semester,tbl_stundenplan.studiengang_kz,tbl_stundenplan.verband ,tbl_stundenplan.gruppe , to_char(tbl_stundenplan.datum, \'YYYYMMDD\') as "datum_jjjjmmtt", to_char(tbl_stundenplan.datum, \'IW\') as "datum_woche" , tbl_stunde.beginn, tbl_stunde.ende , to_char(tbl_stunde.beginn, \'HH24:MI\') as "beginn_anzeige" , to_char(tbl_stunde.ende, \'HH24:MI\') as "ende_anzeige" , EXTRACT(EPOCH FROM tbl_stundenplan.datum) as "datum_timestamp" ,tbl_stunde.stunde ';
$qry.=' FROM lehre.tbl_stundenplan , lehre.tbl_stunde ';
$qry.=" WHERE tbl_stunde.stunde=tbl_stundenplan.stunde ";
$qry.=" and tbl_stundenplan.stunde between ". trim($stunde_von) ." and ". trim($stunde_bis) ;
if (!empty($datum))
{
$qry.=" and to_char(tbl_stundenplan.datum, 'YYYYMMDD') ='".addslashes(trim($datum))."' ";
}
if (!empty($kalenderwoche))
{
$qry.=" and to_char(tbl_stundenplan.datum, 'IW') ='".addslashes(trim($kalenderwoche))."' ";
}
if (!empty($ort_kurzbz))
{
$qry.=" and ort_kurzbz =E'".addslashes(trim($ort_kurzbz))."' ";
}
if (!empty($uid) || $uid=='0')
{
$qry.=" and mitarbeiter_uid='".addslashes(trim($uid))."' ";
}
if (!empty($studiengang_kz) || $studiengang_kz=='0')
{
$qry.=" and studiengang_kz=".$studiengang_kz." ";
}
if (!empty($semester) || $semester=='0')
{
$qry.=" and semester=".$semester." ";
}
if (!empty($verband) || $verband=='0')
{
$qry.=" and verband=E'".addslashes(trim($verband))."' ";
}
if (!empty($gruppe) || $gruppe=='0')
{
$qry.=" and gruppe=".$gruppe." ";
}
$qry.=" ; ";
$row_raum_belegt=array();
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if (!$num_rows_stunde=$db->db_num_rows($result))
return $row_raum_belegt;
while($row = $db->db_fetch_object($result))
{
$row_raum_belegt[]=$row;
}
return $row_raum_belegt;
}
//-------------------------------------------------------------------------------------------
/*
*
* @stundenplan_detail Stundenplan mit Lehrveranstaltungsinformationen
*
* @param $db Aktuelle Datenbankverbindung
* @param $stundenplan_id StundenplanID
*
* @return array Tablle des Stundenplan im Detail
*
*/
function stundenplan_detail($db,$stundenplan_id)
{
if (!$db || empty($stundenplan_id))
return false;
$row_stundenplan_detail=false;
//--- Raumbelegung jetzt
$qry="";
$qry.=' SELECT * ';
$qry.=' FROM campus.vw_stundenplan ';
$qry.=" WHERE vw_stundenplan.stundenplan_id=".$stundenplan_id;
$qry.=" ORDER BY datum,stunde ";
$qry.=" ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($row = $db->db_fetch_object($result))
$row_stundenplan_detail=$row;
}
return $row_stundenplan_detail;
}
//-------------------------------------------------------------------------------------------
/*
*
* @reservierung_detail Stundenplan mit Reservierungsinformationen
*
* @param $db Aktuelle Datenbankverbindung
* @param $reservierung_id ReservierungID
*
* @return array Tablle des Reservierung im Detail
*
*/
function reservierung_detail($db,$reservierung_id)
{
if (!$db || empty($reservierung_id))
return false;
$row_reservierung_detail=false;
//--- Reservierung jetzt
$qry="";
$qry.=' SELECT * ';
$qry.=' FROM campus.vw_reservierung ';
$qry.=" WHERE vw_reservierung.reservierung_id=".$reservierung_id;
$qry.=" ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundenplan '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($row = $db->db_fetch_object($result))
$row_reservierung_detail=$row;
}
return $row_reservierung_detail;
}
//------------------------------------------------------------------------------------------
// BENUTZER STD.PLAN
//------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
/*
*
* @getAktuelleStd liefert die Aktuelle Stunde lt. Tabelle retour
*
* @param $db Aktuelle Datenbankverbindung
*
* @return Array der Stundentabelle
*
*/
function getMeinStundenplan($uid='',$datum='')
{
$htmlout="";
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$ort_kurzbz="";
// ------------------------------------------------------------------------------------------
// Stunden lesen
// ------------------------------------------------------------------------------------------
$row_stunde=array();
$qry="SELECT stunde, beginn, ende FROM lehre.tbl_stunde ORDER BY stunde";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundentabelle '.$db->db_last_error());
$htmlout.='<table>';
// ------------------------------------------------------------------------------------------
// Alle Termine zum User lesen
// ------------------------------------------------------------------------------------------
$user_array=uid_read_mitarbeiter_oder_student($db,$uid);
// Authentifizierung
if (check_student($uid))
$type='student';
elseif (check_lektor($uid))
$type='lektor';
else
{
//die("Cannot set usertype!");
//GastAccountHack
$type='student';
}
// Stundenplan erstellen
$stdplan=new wochenplan($type);
// Benutzergruppe
$stdplan->user=$type;
// aktueller Benutzer
$stdplan->user_uid=$uid;
// Zusaetzliche Daten laden
if (isset($user_array->studiengang_kz))
{
// Student
if (! $stdplan->load_data($type,$uid,NULL,trim($user_array->studiengang_kz),trim($user_array->semester),trim($user_array->verband),trim($user_array->gruppe)) )
{
die($stdplan->errormsg);
}
}
else
{
// Mitarbeiter
if (! $stdplan->load_data($type,$uid) )
{
die($stdplan->errormsg);
}
}
$mtag=mb_substr($datum, 6,2);
$month=mb_substr($datum, 4,2);
$jahr=mb_substr($datum, 0,4);
$datum=@mktime(12,0,0,$month,$mtag,$jahr);
// Stundenplan einer Woche laden
if (! $stdplan->load_week($datum))
die($stdplan->errormsg);
#$htmlout.=date('Y-m-d',$stdplan->datum);
$ersterTagMonat=date('m', $stdplan->datum);
$ersterTag=date('d', $stdplan->datum);
$year=date('Y', $stdplan->datum);
$weekday=date('w');
$gefunden=null;
for ($ind_stdplan=0;$ind_stdplan<count($stdplan->std_plan);$ind_stdplan++)
{
$datum_check=@mktime(12,0,0,$ersterTagMonat,($ersterTag + $ind_stdplan ),$year);
if (date('Ymd',$datum)==date('Ymd',$datum_check))
{
$gefunden=1 + $ind_stdplan;
break;
}
}
while($row_stunden = $db->db_fetch_object($result))
{
$row_stunden->time_beginn=mktime(mb_substr($row_stunden->beginn, 0,2),mb_substr($row_stunden->beginn, 3,2));
$row_stunden->time_ende=mktime(mb_substr($row_stunden->ende, 0,2),mb_substr($row_stunden->ende, 3,2));
$row_stunden->beginn_show=mb_substr($row_stunden->beginn, 0,5);
$row_stunden->ende_show=mb_substr($row_stunden->ende, 0,5);
$row_stunden->beginn_time=date('Hi',$row_stunden->time_beginn);
$row_stunden->ende_time=date('Hi',$row_stunden->time_ende);
$row_stunden->aktiv_time=date('Hi');
$htmlout.='<tr>';
if ($row_stunden->beginn_time<=$row_stunden->aktiv_time
&& $row_stunden->ende_time>=$row_stunden->aktiv_time )
$htmlout.='<td><small><b>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</b></small></td>';
else
$htmlout.='<td><small>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</small></td>';
$htmlout.='<td><small>';
$stunde_von=$row_stunden->stunde;
$stunde_bis=$row_stunden->stunde;
## $row_raum=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis,$uid,$kalenderwoche,$studiengang_kz,$semester,$verband,$gruppe);
##var_dump($stdplan->std_plan[$gefunden][$stunde_von][0]);
$row_raum=array();
if (!is_null($gefunden) && isset($stdplan->std_plan) && isset($stdplan->std_plan[$gefunden]) && isset($stdplan->std_plan[$gefunden][$stunde_von]) && isset($stdplan->std_plan[$gefunden][$stunde_von][0]))
$row_raum=$stdplan->std_plan[$gefunden][$stunde_von][0];
if ((is_array($row_raum) || is_object($row_raum)) && count($row_raum)>0 && isset($row_raum->reservierung) )
{
if ($row_raum->reservierung)
$htmlout.=(!empty($row_raum->titel)?$row_raum->titel:(!empty($row_raum->titel) && $row_raum->lehrfach!=$row_raum->titel?$row_raum->lehrfach:'')).'<br />'.$row_raum->ort;
else
$htmlout.=$row_raum->lehrfach.'-'.$row_raum->lehrform.'<br />'.$row_raum->ort;
}
$htmlout.='</small></td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
#exit($htmlout);
return $htmlout;
}
//------------------------------------------------------------------------------------------
// RAUMTYPEN
//------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
/*
*
* @raum_typen Liste der Raumtypen
*
* @param $uid Aktueller Anwender
*
* @return array Tablle der Raeume
*
*/
function raum_typen($uid='')
{
$htmlout="";
// ------------------------------------------------------------------------------------------
// Linkes Auswahlmenue fuer Raumtypen
// ------------------------------------------------------------------------------------------
$row_ort=array(
array("type"=>"EDV","beschreibung"=>"EDV Säle","img"=>""),
array("type"=>"HS","beschreibung"=> "Hörsäle","img"=>""),
array("type"=>"SEM","beschreibung"=>"Seminarräume","img"=>""),
array("type"=>"Lab","beschreibung"=>"Labors","img"=>""),
array("type"=>"EXT","beschreibung"=>"Ext.Räume","img"=>""),
array("type"=>"DIV","beschreibung"=>"Diverse","img"=>""),
array("type"=>"UEB","beschreibung"=>"Übungsräume","img"=>"")
# array("type"=>"ENERGY","beschreibung"=>"Energy","img"=>""),
);
if (!is_array($row_ort) || count($row_ort)<1)
return $htmlout;
$htmlout.='<table>';
for ($i=0;$i<count($row_ort);$i++)
{
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.= trim($row_ort[$i]["type"]);
##$htmlout.=iconv('iso-8859-1','UTF-8',$row_ort[$i]["beschreibung"]);
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.trim($row_ort[$i]["type"]).'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
//-------------------------------------------------------------------------------------------
/*
*
* @ort_raum_typen Liste der Raeume je Type
*
* @param $uid Aktueller Anwender
* @param $raumtyp_kurzbz Raumtype
*
* @return array Tablle der Raeume
*
*/
function ort_raum_typen($uid='',$raumtyp_kurzbz='',$datum='')
{
$htmlout="";
if (empty($raumtyp_kurzbz))
return raum_typen($uid);
if (empty($datum))
$datum=date("Ymd", mktime(0,0,0,date("m"),date("d"),date("y")));
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$htmlout.='<table>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.='Raumtypen';
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz=&amp;ort_kurzbz=" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='</table>';
// ------------------------------------------------------------------------------------------
// Alle Raum Typen zur Selektion
// ------------------------------------------------------------------------------------------
$qry="";
$qry.=" SELECT tbl_raumtyp.raumtyp_kurzbz,tbl_raumtyp.beschreibung ";
$qry.=" ,tbl_ortraumtyp.ort_kurzbz ";
$qry.=" ,tbl_ort.bezeichnung ,tbl_ort.aktiv ";
$qry.=" FROM tbl_raumtyp , tbl_ortraumtyp , tbl_ort ";
$qry.=" WHERE tbl_ortraumtyp.raumtyp_kurzbz=tbl_raumtyp.raumtyp_kurzbz ";
$qry.=" AND tbl_ort.ort_kurzbz=tbl_ortraumtyp.ort_kurzbz ";
$qry.=" AND tbl_ort.aktiv ";
$qry.=" AND tbl_raumtyp.raumtyp_kurzbz like E'%".addslashes(trim($raumtyp_kurzbz))."%' ";
$qry.=" order by tbl_raumtyp.raumtyp_kurzbz ,tbl_ortraumtyp.ort_kurzbz ";
$qry.=" ; ";
if(!$result=$db->db_query($qry))
return 'Probleme beim lesen der Raumtyptabelle '.$db->db_last_error();
$row_raum=array();
if ($tmp_row_raum=$db->db_num_rows($result))
{
while($tmp_row_raum = $db->db_fetch_object($result))
$row_raum[]=$tmp_row_raum;
}
$row_stunde=getAktuelleStd($db);
// Plausib Stunde
$row_stunde[0]->stunde=(isset($row_stunde[0]->stunde)?$row_stunde[0]->stunde:0);
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
$htmlout.='<table>';
reset($row_raum);
for ($i=0;$i<count($row_raum);$i++)
{
// Default
$farbe="frei";
$ort_kurzbz=$row_raum[$i]->ort_kurzbz;
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde;
if ($info=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis))
{
$farbe="besetzt";
}
$ort_kurzbz=$row_raum[$i]->ort_kurzbz;
$stunde_von=$row_stunde[0]->stunde;
$stunde_bis=$row_stunde[0]->stunde + 1;
if (!$info=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis))
{
$farbe="2 Einheiten frei";
}
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=trim($ort_kurzbz);
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz='.$ort_kurzbz.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td><td>'.$farbe.'</td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
//-------------------------------------------------------------------------------------------
/*
*
* @ort_plan_raum_typen Stundenplan zum Raum
*
* @param $uid Aktueller Anwender
* @param $raumtyp_kurzbz Raumtype
* @param $ort_kurzbz Ortsbezeichnung
* @param $datum Datum
*
* @return array Tablle des Reservierung im Detail
*
*/
function ort_plan_raum_typen($uid='',$raumtyp_kurzbz='',$ort_kurzbz='',$datum='')
{
$htmlout="";
if (empty($raumtyp_kurzbz))
return raum_typen($uid);
if (!$db = new basis_db())
return 'Fehler beim Oeffnen der Datenbankverbindung';
$htmlout.='<table>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=$raumtyp_kurzbz;
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz=&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='<tr>';
$htmlout.='<td>';
$htmlout.='<anchor>';
$htmlout.=$ort_kurzbz;
$htmlout.='<go href="'.$_SERVER['PHP_SELF'].'?uid='.$uid.'&amp;work=freierraum&amp;raumtyp_kurzbz='.$raumtyp_kurzbz.'&amp;ort_kurzbz='.$ort_kurzbz.'&amp;datum='.$datum.'" method="get"></go>';
$htmlout.='</anchor>';
$htmlout.='</td>';
$htmlout.='</tr>';
$htmlout.='</table>';
$row_stunde=array();
$qry="SELECT stunde, beginn, ende FROM lehre.tbl_stunde ORDER BY stunde";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Stundentabelle '.$db->db_last_error());
$num_rows_stunde=$db->db_num_rows();
$htmlout.='<table>';
while($row_stunden = $db->db_fetch_object($result))
{
$row_stunden->time_beginn=mktime(mb_substr($row_stunden->beginn, 0,2),mb_substr($row_stunden->beginn, 3,2));
$row_stunden->time_ende=mktime(mb_substr($row_stunden->ende, 0,2),mb_substr($row_stunden->ende, 3,2));
$row_stunden->beginn_show=mb_substr($row_stunden->beginn, 0,5);
$row_stunden->ende_show=mb_substr($row_stunden->ende, 0,5);
$row_stunden->beginn_time=date('Hi',$row_stunden->time_beginn);
$row_stunden->ende_time=date('Hi',$row_stunden->time_ende);
$row_stunden->aktiv_time=date('Hi');
$htmlout.='<tr>';
if ($row_stunden->beginn_time<=$row_stunden->aktiv_time
&& $row_stunden->ende_time>=$row_stunden->aktiv_time )
$htmlout.='<td><small><b>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</b></small></td>';
else
$htmlout.='<td><small>'.$row_stunden->beginn_show.'<br />'.$row_stunden->ende_show.'</small></td>';
$htmlout.='<td><small>';
$row_raum=array();
$kalenderwoche="";
$studiengang_kz="";
$semester="";
$verband="";
$gruppe="";
$uids="";
$stunde_von=$row_stunden->stunde;
$stunde_bis=$row_stunden->stunde;
$row_raum=stundenplan_raum($db,$ort_kurzbz,$datum,$stunde_von,$stunde_bis,$uids,$kalenderwoche,$studiengang_kz,$semester,$verband,$gruppe);
if (is_array($row_raum) && count($row_raum)>0)
{
for ($i=0;$i<count($row_raum);$i++)
{
if ($row_raum[$i]->stundenplan_id)
{
if ($row_info=stundenplan_detail($db,$row_raum[$i]->stundenplan_id))
$htmlout.=$row_info->lehrfach.'-'.$row_info->lehrform.'<br />'.$row_info->ort_kurzbz;
}
else if ($row_raum[$i]->reservierung_id)
{
if ($row_info=reservierung_detail($db,$row_raum[$i]->reservierung_id))
$htmlout.=(!empty($row_info->titel)?$row_info->titel:$row_info->beschreibung).'<br />'.$row_info->ort_kurzbz;
}
break;
}
}
$htmlout.='</small></td>';
$htmlout.='</tr>';
}
$htmlout.='</table>';
return $htmlout;
}
#-------------------------------------------------------------------------------------------
/*
*
* @uid_read_mitarbeiter_oder_student Daten zum Mitarbeiter oder Studenten
*
* @param $db Aktuelle Datenbankverbindung
* @param $uid Userkurzzeichen
*
* @return Array der User Inormationen wenn User gefunden wurde ansonst false
*
*/
function uid_read_mitarbeiter_oder_student($db,$uid)
{
$rows=array();
// Plausib
if (!$db)
return $rows;
// Pruefen ob Mitarbeiter
$qry="SELECT uid,person_id,anrede,titelpre,vorname,vornamen,nachname,aktiv FROM campus.vw_mitarbeiter where uid='".addslashes(trim($uid))."' LIMIT 1 ; ";
if(!$results=$db->db_query($qry))
die('Probleme beim lesen der Mitarbeiter '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($results))
{
while($rows = $db->db_fetch_object($results))
{
$rows->name='';
$rows->name.=(isset($rows->anrede)?trim($rows->anrede).' ':'');
$rows->name.=(isset($rows->titelpre)?trim($rows->titelpre).' ':'');
$rows->name.=(isset($rows->vorname)?trim($rows->vorname).' ':'');
$rows->name.=(isset($rows->vornamen)?trim($rows->vornamen).' ':'');
$rows->name.=(isset($rows->nachname)?trim($rows->nachname).' ':'');
return $rows;
}
}
// Wenn kein Mitarbeiter pruefen ob Student
$qry="SELECT uid,person_id,anrede,titelpre,vorname,vornamen,nachname,aktiv,studiengang_kz,semester,verband,gruppe FROM campus.vw_student where uid='".addslashes(trim($uid))."' LIMIT 1 ; ";
if(!$result=$db->db_query($qry))
die('Probleme beim lesen der Studenten '.$db->db_last_error());
if ($num_rows_stunde=$db->db_num_rows($result))
{
while($rows = $db->db_fetch_object($result))
{
$rows->name='';
$rows->name.=(isset($rows->anrede)?trim($rows->anrede).' ':'');
$rows->name.=(isset($rows->titelpre)?trim($rows->titelpre).' ':'');
$rows->name.=(isset($rows->vorname)?trim($rows->vorname).' ':'');
$rows->name.=(isset($rows->vornamen)?trim($rows->vornamen).' ':'');
$rows->name.=(isset($rows->nachname)?trim($rows->nachname).' ':'');
return $rows;
}
}
// Daten gefunden wurden ist nicht mehr der Initialwert False als Returnparameter vorhanden
return $rows;
}
?>
-12
View File
@@ -1,12 +0,0 @@
vti_encoding:SR|utf8-nl
vti_encoding:SR|utf8-nl
vti_author:SR|sub-zero
vti_modifiedby:SR|sub-zero
vti_timelastmodified:TR|02 May 2003 06:52:06 -0000
vti_timecreated:TR|02 May 2003 06:52:06 -0000
vti_cachedparsepending:BX|true
vti_extenderversion:SR|6.0.2.4920
vti_syncofs_10.63.0.43\:21/%2fwww/cisdev/htdocs:TW|07 Apr 2003 17:58:00 -0000
vti_syncwith_10.63.0.43\:21/%2fwww/cisdev/htdocs:TW|02 May 2003 06:52:06 -0000
vti_syncofs_10.63.0.43\:21/www/cisdev/htdocs:TW|02 May 2003 09:35:00 -0000
vti_syncwith_10.63.0.43\:21/www/cisdev/htdocs:TW|02 May 2003 06:52:06 -0000
-12
View File
@@ -1,12 +0,0 @@
vti_encoding:SR|utf8-nl
vti_encoding:SR|utf8-nl
vti_author:SR|sub-zero
vti_modifiedby:SR|sub-zero
vti_timelastmodified:TR|02 May 2003 06:52:06 -0000
vti_timecreated:TR|02 May 2003 06:52:06 -0000
vti_cachedparsepending:BX|true
vti_extenderversion:SR|6.0.2.4920
vti_syncofs_10.63.0.43\:21/%2fwww/cisdev/htdocs:TW|07 Apr 2003 17:58:00 -0000
vti_syncwith_10.63.0.43\:21/%2fwww/cisdev/htdocs:TW|02 May 2003 06:52:06 -0000
vti_syncofs_10.63.0.43\:21/www/cisdev/htdocs:TW|02 May 2003 09:35:00 -0000
vti_syncwith_10.63.0.43\:21/www/cisdev/htdocs:TW|02 May 2003 06:52:06 -0000
-23
View File
@@ -1,23 +0,0 @@
-----BEGIN CERTIFICATE-----
MIID4DCCA0mgAwIBAgIJAKBrSvwfZ3K0MA0GCSqGSIb3DQEBBAUAMIGnMQswCQYD
VQQGEwJBVDEPMA0GA1UECBMGVmllbm5hMScwJQYDVQQKEx5Vbml2ZXJzaXR5IG9m
IEFwcGxpZWQgU2NpZW5jZXMxEzARBgNVBAsTCklUIFNlcnZpY2UxHzAdBgNVBAMT
FlRlY2huaWt1bS1XaWVuIENBIDIwMDYxKDAmBgkqhkiG9w0BCQEWGXN1cHBvcnRA
dGVjaG5pa3VtLXdpZW4uYXQwHhcNMDYxMDExMDczOTIxWhcNMTYwODE5MDczOTIx
WjCBpzELMAkGA1UEBhMCQVQxDzANBgNVBAgTBlZpZW5uYTEnMCUGA1UEChMeVW5p
dmVyc2l0eSBvZiBBcHBsaWVkIFNjaWVuY2VzMRMwEQYDVQQLEwpJVCBTZXJ2aWNl
MR8wHQYDVQQDExZUZWNobmlrdW0tV2llbiBDQSAyMDA2MSgwJgYJKoZIhvcNAQkB
FhlzdXBwb3J0QHRlY2huaWt1bS13aWVuLmF0MIGfMA0GCSqGSIb3DQEBAQUAA4GN
ADCBiQKBgQCyAJJoxhpVZPi/NQKBejU6NOfF+4vuiKQxS5uWktmXXh+fELbmv6iM
OofHlOp9fdWOuW1NQk4XfVOYhsE75kHXf8Li3AVjoMBgQm4mOplLuT0CVIbT7dvh
tSSwOTF9C+TiG41wAminO2gK2McHa0D/h/CzC/V9BefFzJ5C/6S82QIDAQABo4IB
EDCCAQwwHQYDVR0OBBYEFG0jTF/EjbbQkJdygjeNs0boWBU5MIHcBgNVHSMEgdQw
gdGAFG0jTF/EjbbQkJdygjeNs0boWBU5oYGtpIGqMIGnMQswCQYDVQQGEwJBVDEP
MA0GA1UECBMGVmllbm5hMScwJQYDVQQKEx5Vbml2ZXJzaXR5IG9mIEFwcGxpZWQg
U2NpZW5jZXMxEzARBgNVBAsTCklUIFNlcnZpY2UxHzAdBgNVBAMTFlRlY2huaWt1
bS1XaWVuIENBIDIwMDYxKDAmBgkqhkiG9w0BCQEWGXN1cHBvcnRAdGVjaG5pa3Vt
LXdpZW4uYXSCCQCga0r8H2dytDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUA
A4GBABJeznJi65/eFVhRDz2s24rZpNRM5dj4/uv3EQgAecB/eHOCjbaxhG/GNa1y
th2Eihfy3bcgcqhqqKq9DGnjsUfp2NFzDd7C+mfOqydn3zotBo1VWcst1C+rcevh
uMgJbGi0jlp70ciUQcOUM/NjNXtVVZAOdzQkSV1VdMiO33s2
-----END CERTIFICATE-----
-12
View File
@@ -1,12 +0,0 @@
function FindProxyForURL(url,host)
{
if ( isInNet(host,"10.0.0.0","255.0.0.0") ||
isInNet(host,"172.16.0.0","255.255.0.0") )
{
return "DIRECT";
}
else
{
return "PROXY proxy.technikum-wien.at:3128";
}
}
-12
View File
@@ -1,12 +0,0 @@
function FindProxyForURL(url,host)
{
if ( isInNet(host,"193.170.255.0","255.255.255.0") ||
isInNet(host,"193.170.11.0","255.255.255.0") )
{
return "DIRECT";
}
else
{
return "PROXY proxy.technikum-wien.at:3128";
}
}
-25650
View File
File diff suppressed because one or more lines are too long
@@ -1,138 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<h1 style="text-align: center;">InstallationsAnleitung f&uuml;r
FASonline und Tempus</h1>
<br>
<ol>
<li>
<h2>Download von Seamonkey</h2>
Seamonkey wird bevorzugt, die Software l&auml;uft aber auch unter
MozillaSuite oder FireFox. Prinzipiell gen&uuml;gt ein XUL-Runner. <br>
Empfohlen wird Seamonkey 1.1.18. (Derzeit kann es zu Problemen bei Seamonkey ab Version 2.0 und Firefox ab Version 3.0 kommen!!)
Aktuelle Quellen sind auf <a
href="http://www.seamonkey-project.org/releases/1.1.18">http://www.seamonkey-project.org/releases/1.1.18</a>
zu finden.<br>
Installation immer mit weiter best&auml;tigen. Standardpfad sollte
unter Windows <strong>c:\programme\mozilla.org\seamonkey\</strong>
sein.</li>
<li>
<h2>Download der Theme </h2>
Die Theme (Skin) f&uuml;r Seamonkey ist im Grunde egal, jedoch
unterst&uuml;tzt die Classic-Theme keine f&auml;rbigen Buttons und
teilweise kein Drag and Drop.<br>
Am besten eignet sich <strong>"Orbit 3+1"</strong>. Dazu gehe man im
Men&uuml; unter <strong>"View-&gt;ApplyThemes"</strong> auf <strong>"Get
New Themes"</strong>, oder direkt auf <a
href="https://addons.mozilla.org/en-US/seamonkey/addon/4934">addons.mozilla.org</a>.<br>
Anschlie&szlig;end sollte man das Theme ausw&auml;hlen und Seamonkey
neu starten.</li>
<li>
<h2>Einstellungen unter <a href="about:config">about:config</a></h2>
In die Adressleiste "about:config" eingeben.<br>
<br>
<table border="1" cellpadding="2" cellspacing="2" rules="cols">
<tbody>
<tr>
<td>browser.cache.check_doc_frequency<br>
</td>
<td>1<br>
</td>
</tr>
<tr>
<td>browser.cache.disk.capacity<br>
</td>
<td>0<br>
</td>
</tr>
<tr>
<td>browser.downloadmanager.behavior<br>
</td>
<td>1<br>
</td>
</tr>
<tr>
<td>dom.allow_scripts_to_close_windows<br>
</td>
<td>true<br>
</td>
</tr>
<tr>
<td>dom.disable_window_open_feature.status<br>
</td>
<td>false<br>
</td>
</tr>
<tr>
<td>signed.applets.codebase_principal_support<br>
</td>
<td>true<br>
</td>
</tr>
</tbody>
</table>
</li>
<br>
<li>F&uuml;r die Verwendung von externen MailClients (z.B. Outlook)
ist
folgendes Einzustellen:<br>
<br>
Unter "about:config" mit der rechten Maustaste ins leere klicken und
new-&gt;boolean w&auml;hlen. <br>
<br>
<table border="1" cellpadding="2" cellspacing="2" rules="cols">
<tbody>
<tr>
<td>network.protocol-handler.external.mailto<br>
</td>
<td>true<br>
</td>
</tr>
</tbody>
</table>
</li>
<li>
<h2>Bilder f&uuml;r den Start</h2>
Die Bilder sind unter <a
href="https://vilesci.technikum-wien.at/skin/images/">https://vilesci.technikum-wien.at/skin/images/</a>
zu finden.<br>
<br>
- <strong>seamonkey.bmp</strong> (Original heisst fhcomplete.bmp;
Umbenennen!!!) nach
C:\Programme\mozilla.org\seamonkey\ kopieren.
(Erscheint beim starten) <br>
- <strong>Tempus.ico und FAS.ico</strong> nach
C:\Programme\mozilla.org\chrome\icons\default\ kopieren. (wird
bei Verkn&uuml;pfungen am Desktop und f&uuml;r die Titelleiste
verwendet)<br>
<br>
</li>
<li>Registrierung als CHROME.<br>
Ab Seamonkey und Firefox 1.5 muss man Applikationen mit Auth. intern
registrieren. Hierzu gen&uuml;gt ein Klick auf <a
href="https://vilesci.technikum-wien.at/vilesci/admin/XPI/FASoProduktiv/FASonline.xpi">
https://vilesci.technikum-wien.at/vilesci/admin/XPI/FASoProduktiv/FASonline.xpi</a>
und dann auf Install.</li>
<li>
<h2>Verkn&uuml;pfung erstellen.</h2>
Zum testen in der Adressleiste folgendes eingeben: <a
href="chrome://fasonline/content/fasonline.xul">chrome://fasonline/content/fasonline.xul<br>
<br>
</a>Wenn alles passt eine neue Verkn&uuml;pfung erstellen oder die
Seamonkey verkn&uuml;pfung kopieren:<br>
- Mit rechter Taste auf die Verkn&uuml;pfung und Eigenschaften
w&auml;hlen.<br>
- Als Ziel "C:\Programme\mozilla.org\SeaMonkey\seamonkey.exe -chrome
chrome://fasonline/content/fasonline.xul" eingeben<br>
- Auf anderes Symbol klicken und
C:\Programme\mozilla.org\chrome\icons\default\<strong
style="font-weight: normal;">FAS.ico w&auml;hlen.</strong><br>
- Unter Allgemein den Namen auf "FASo" &auml;ndern.<br>
</li>
</ol>
<br>
<br>
</body>
</html>
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
-144
View File
@@ -1,144 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<h1 style="text-align: center;">ToDo St.P&ouml;lten</h1>
<br>
<h2>Offen:</h2>
<ul>
<li><br>
</li>
</ul>
<br>
<h2>Erledigt:</h2>
<ul>
<li>Beim Erstellen des Diplomasupplements auf den Studiengang
r&uuml;cksicht nehmen<br>
-&gt; erledigt<br>
<br>
</li>
<li>CIS-FAS: Gleiche Noten werden wieder mitgeschickt.<br>
-&gt; eine Eingabepr&uuml;fung w&auml;r hier nicht
schlecht.<br>
<br>
</li>
<li>FAS: Noten k&ouml;nnen auch ohne vorangehender Freigabe des
Lektors im FAS &uuml;bernommen
werden<br>
-&gt; erledigt<br>
<br>
</li>
<li>FAS: bericht/lvplanung:
gibt's ja nur als html-output =&gt; ein excel-export w&auml;re
w&uuml;nschenswert.<br>
2.09.2008 -&gt; erledigt<br>
<br>
</li>
<li>Default Anmerkung f&uuml;r Lehreinehiten &uuml;ber Config
einstellbar<br>
29.07.2008 -&gt; erledigt<br>
<br>
</li>
<li> Zus&auml;tzlicher Men&uuml;punkt f&uuml;r die Integration
eigener Men&uuml;punkte<br>
28.07.2008 -&gt; erledigt<br>
<br>
</li>
<li>CIS: das file: cis/private/lehre/anwesenheitsliste.pdf.php und
die verlinkung dorthin vom file:
cis/private/lehre/anwesenheitsliste.php - wird aufgeteilt. <br>
02.06.2008 -&gt; Der Teil f&uuml;r das Layout wird ins include/tw bzw.
include/stp
ausgelagert.<br>
<br>
</li>
<li>CIS: auf der profilseite steht unter eMail "Technikum" - bitte
&auml;ndern auf "intern" &auml;ndern oder ins config auslagern<br>
02.06.2008 -&gt; Ist auf "Intern" ge&auml;ndert<br>
<br>
</li>
<li>CIS: der &lt;title&gt; im &lt;head&gt; bereich der index.php
seite steht "FH Technikum Wien" ... wenn geht ins config auslagern? <br>
02.06.2008 -&gt; neue Konstante im config "CAMPUS_NAME" <br>
<br>
</li>
<li>CIS: das file cis/private/tools/feedback.php, dass wir die
mailadresse &auml;ndern k&ouml;nnen bzw den link zum bugtracking<br>
02.06.2008 -&gt; ich k&ouml;nnte einfach das file in den stp-folder
kopieren u von der navi aus dorthin verlinken? OK! <br>
<br>
</li>
<li>CIS: Raumsuche: wenn '0' im Feld von/bis bei den stundenziffern
-&gt; formatierungsfehler (zb.: 08:00 bis 09:00 funkt nicht,
10:00 bis 11:00 funkt auch nicht ) <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: suche nach sonntag und klick auf reservieren - sprung in
falsche woche <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: vielleicht statt dem wort "reservieren" zur reservierung
oder so,
da bei klick daruf ja nicht gleich dir reserviereung statt findet -
k&ouml;nnte verwirrend sein. <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: Raumreservierung mit berechtigung 'raumres' funktioniert
nicht. <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS:&nbsp; Personensuche: Technikum Wien in der &uuml;berschrift-
&auml;ndern in die variable: 'CAMPUS_NAME' (es sollten generell ALLE
'technikum' ins config ausgelagert werden) <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: Berechtigung bei LV-Gesamtnote. <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: file: /cis/private/lvplan/stpl_detail.php bitte zeile wie
folgt &auml;ndern (um die externe variable zu verwenden): <br>
-&nbsp; &lt;P&gt;Fehler und Feedback bitte an &lt;A class="Item" href="<span
class="moz-txt-link-freetext">mailto:lvplan@</span>&lt;?php
echo DOMAIN;?&gt;"&gt;LV-Koordinationsstelle&lt;/A&gt;.&lt;/P&gt; <br>
+&nbsp; &lt;P&gt;Fehler und Feedback bitte an &lt;A class="Item"
href="mailto:&lt;?php echo
MAIL_LVPLAN;?&gt;"&gt;LV-Koordinationsstelle&lt;/A&gt;.&lt;/P&gt; <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: benotungstool: mailversand ist auskommentiert - bitte wieder
aktivieren <br>
02.06.2008 -&gt; Ist erledigt. <br>
<br>
</li>
<li>CIS: kommunikation/mailverteiler: die funktionalit&auml;t
"verteiler &ouml;ffnen" bzw. gesperrt mit externer variable setzen oder
deaktivieren (bei uns sind alle verteiler immer aktiv) <br>
die zeile Info: "Berechtigungskonzept
&lt;../cisdocs/Mailverteiler.pdf&gt; Mailverteiler, Bedienungsanleitung
&lt;../cisdocs/bedienung_mailverteiler.pdf&gt;
Mailverteiler" brauchen wir nicht <br>
02.06.2008 -&gt; Erledigt. Konstante "MAILVERTEILER_SPERRE" true/false
im config.inc.php <br>
<br>
</li>
<li>CIS: personensuche: beim ergebnis ist beim hauptverteiler ein
leerzeichen vor dem @ in der e-mailadresse... <br>
02.06.2008 -&gt; Ist erledigt.&nbsp; <br>
<br>
</li>
<li>FAS: zuteilen eines lektors zu einer lehreinheit:
spricht was dagegen, dass hier automatisch die semesterstunden der
lehrveranstaltung vorgeschlagen werden? <br>
27.05.2008 -&gt; erledigt</li>
</ul>
<br>
</body>
</html>
-533
View File
@@ -1,533 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ToDo Tempus</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../skin/vilesci.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1 style="text-align: center;">ToDo Tempus</h1>
<br>
<br>
<!-- ********************* Aenderunge und Erweiterungen ******************************************-->
<h2>Änderungen / Erweiterungen</h2>
<div style="text-align: right;">&nbsp;&nbsp;&nbsp;&nbsp;
Prioritäten: <span style="font-style: italic;">low</span>,med,<span
style="font-weight: bold;">high</span><br>
<!-- Studenten -->
</div>
<div style="margin-left: 5%;">
<table class="liste">
<tbody>
<tr>
<th>Allgemein</th>
<th>Priorität</th>
<th>Aufwand [h]</th>
</tr>
<tr class="liste0">
<td>Reservierungen im Tempus verschieben ---&gt;
ABER NUR FÜR ADMINS!!<br>
</td>
<td align="center"><i>low</i><br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td>Bei der Verplanung von partizipierenden Lektoren aus
Lektorensicht immer nur DIESEN Lektor verplanen (lektoren_splitting =
false)<br>
</td>
<td style="font-weight: bold;" align="center">high<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Wenn rechts auf eine Lehreinheit geklickt wird, unten das
Detailfenster für diese Lehreinheit anzeigen. (Problem: bei
erneuter einbindung des overlays kommt es zu doppelt vergebenen ids. Es
muss daher in einem iFrame eingebunden werden.)<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td>Ignore_kollision funktioniert nicht bei Raumvorschlag<br>
</td>
<td style="font-weight: bold;" align="center">high<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Ignore_zeitsperre und ignore_reservierung implementieren<br>
</td>
<td style="font-style: italic;" align="center">low<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td>Button für Kopie einzelner Lehreinheiten in<span
style="font-weight: bold;">
tbl_stundenplan</span> einbauen<br>
</td>
<td style="font-style: italic;" align="center">low<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Undo-Funktion implementieren ( fürs Löschen )<br>
</td>
<td style="font-style: italic;" align="center">low<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Kollision von externen Räumen und GLAB deaktivieren<br>
</td>
<td style="font-style: italic;" align="center">low<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td>Bei Multiweek-Verplanung, Zeitsperren und Reservierungen zwar
melden aber trotzdem verplanen und wie bei den Feiertagen auslassen<br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr class="liste0">
<td>Lehrfächerverteilung in Lektorenansicht auf Berechtigung
einschränken. (Zur Zeit kann jeder Tempususer aus der
Lektorenansicht Stunden aus anderen Studiengängen verplanen)<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td><br>
</td>
<td style="font-weight: bold;" align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr class="liste0">
<td>Das Feature "Zeitsperre" auch auf Studiengangsebene einbauen
um Termine für zB Events, Messen und Exkursionen zu sperren.<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Lehreinheiten in der Lehrfächerverteilung Filtern auf
bestimme Lektoren oder bestimmte Lehreinheiten<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td>User mit der Berechtigung "Select" können trotzdem
Stunden aus der LFVT verplanen<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td>Schnelleres eintragen von Titeln zu einzelnen LV's (eventuell
über das Detailfenster)?<br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste0">
<td><br>
</td>
<td align="center">med<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
<br>
<!-- Quellmenue -->
<table class="liste">
<tbody>
<tr>
<th>Quellmenü-Modul</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td><br>
</td>
<td style="font-style: italic;" align="center">low<br>
</td>
<td align="center">?<br>
</td>
</tr>
<tr>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
<!-- Semesterplan --><br>
<br>
<!-- Lehreinheiten -->
<table class="liste">
<tbody>
<tr>
<th>Lehreinheiten-Modul</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td><br>
</td>
<td align="center"><br>
</td>
<td><br>
</td>
</tr>
<tr>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
<!-- ********************* Fehler ******************************************-->
<h2>Fehler</h2>
<!-- Allgemein -->
<div style="margin-left: 5%;">
<table class="liste">
<tbody>
<tr>
<th>Allgemein</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td><br>
</td>
<td style="font-style: italic;" align="center"><br>
</td>
<td style="text-align: center;"><br>
</td>
</tr>
<tr class="liste0">
<td><br>
</td>
<td style="font-style: italic;" align="center"><br>
</td>
<td style="text-align: center;"><br>
</td>
</tr>
<tr>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td style="text-align: center;"><br>
</td>
</tr>
</tbody>
</table>
<br>
<!-- Quellmenue -->
<table class="liste">
<tbody>
<tr>
<th>Quellmenü</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td><br>
</td>
<td align="center"><br>
</td>
<td style="text-align: center;"><br>
</td>
</tr>
<tr class="liste1">
<td> <br>
</td>
<td align="center"><br>
</td>
<td style="text-align: center;"><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
<!-- Semesterplan -->
<table class="liste">
<tbody>
<tr>
<th>Semesterplan-Modul</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td> Das Drucken des Semesterplans
ist fehlerhaft<br>
</td>
<td align="center">med<br>
</td>
<td align="center"><br>
</td>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
<!-- Lehreinheiten -->
<table class="liste">
<tbody>
<tr>
<th>Lehreinheiten-Modul</th>
<th>Priorität</th>
<th>Aufwand [h] </th>
</tr>
<tr class="liste0">
<td> <br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr>
</tr>
<tr class="liste1">
<td><br>
</td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
</div>
<br>
<!-- ********************* Abgewiesen *******************-->
<h2>ad acta gelegte Änderungen / Erweiterungen</h2>
<div style="margin-left: 5%;">
<table class="liste">
<tbody>
<tr>
<th>Beschreibung</th>
<th>Grund</th>
<th>Aufwand [h]</th>
</tr>
<tr class="liste0">
<td>Raumvorschläge für größere Räume,
wenn "Raumtyp" und "Raumtyp alternativ" belegt sind </td>
<td align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr class="liste1">
<td>Schriftgröße ändern </td>
<td style="font-weight: bold;" align="center"><br>
</td>
<td align="center"><br>
</td>
</tr>
<tr class="liste1">
<td>Lektoränderung durch Drag&amp;Drop in Tempus einbauen</td>
<td><br>
</td>
<td><br>
</td>
</tr>
<tr class="liste0">
<td valign="top">Bei Verplanung aus einer Spezialgruppe, nur
DIESE
Spezialgruppe verplanen (Auch wenn mehrere in der Lehreinheit
zugeordnet sind)</td>
<td valign="top"><br>
</td>
<td valign="top"><br>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<!-- ********************* Erledigt ******************************************-->
<hr>
<h2 align="left">Erledigte Anforderungen</h2>
<ul>
<li>Bei Details zu einer Stunde wird jetzt eine zusätzliche Spalte
angezeigt mit der Anzahl der Studenten die teilnehmen.</li>
<ul>
<li>15.09.2009<br>
<br>
</li>
</ul>
<li>Zeichensatz überarbeiten (Sonderzeichen u. Umlaute
korrekt anzeigen)<br>
Sonderzeichen bei Reservierungen verursachen einen
XML-Verarbeitungsfehler<br>
<br>
</li>
<li>Bei Verplanung keine Räume vorschlagen, die reserviert
sind.</li>
<ul>
<li>02.03.2009<br>
</li>
</ul>
<li>Farbcodierung des Zeitwunschs modifizieren (derzeit
ungeeignete Farben)</li>
<ul>
<li>09.10.2008<br>
</li>
</ul>
<li>ignore_kollision funktioniert nun auch bei der Stundenverschiebung</li>
<ul>
<li>09.10.2008<br>
</li>
</ul>
<li>Umlaute werden bei den Stunden jetzt richtig dargestellt.</li>
<ul>
<li>09.10.2008<br>
</li>
</ul>
<li>Liste der Raumvorschläge nach Druck auf mittlerer Taste
einschränken (Liste derzeit unbrauchbar weil viel zu lang)</li>
<ul>
<li>09.10.2008<br>
</li>
</ul>
<li>In der Registerkarte "Ort" die Detailspalte "Planbezeichnung"
einblenden</li>
<ul>
<li>08.10.2008<br>
</li>
</ul>
<li>Fehler: Wenn bei einer Zeitsperre in den Feldern "vonstunde"
und "bisstunde" NULL steht, ignoriert er die Zeitsperre bei der
Verplanung und gibt keine Kollisionsmeldung zurück.</li>
<ul>
<li>08.10.2008<br>
</li>
</ul>
<li>Aktivieren/Deaktivieren von Funktionen (zB. Ignore Kollision)
mittels Shortcut oder Funktionstaste</li>
<ul>
<li>03.10.2008 - ignore_kollision=F9</li>
</ul>
<li>Buttons "ignore_kollision" und aktuelle Stundenplantabelle in
allen geöffneten Fenstern und bei Tempus-Start aktualisieren</li>
<ul>
<li>02.10.2008 automatische aktualisierung in alle Fenstern ist
nicht möglich. Der Status von ignore_kollision wird jetzt in der
Statusleiste angezeigt.<br>
wenn auf diesen Button in der Statusleiste geklickt wirde, dann wird
die Anzeige aktualisiert. Wenn ignore_kollsion=true dann wird der
Button in der Statusleiste rot hinterlegt.<br>
</li>
</ul>
<li>Button "Raumvorschlag" im Kontextmenü aktivieren</li>
<ul>
<li>02.10.2008</li>
</ul>
<li>Quickinfos mehrzeilig anzeigen (Oft sind lange
Anmerkungstexte nicht vollständig lesbar)</li>
<ul>
<li>02.10.2008 funktioniert nicht - insertamum und insertvon wird
jetzt am Anfang angezeigt</li>
</ul>
<li>Fehler beim Verplanen von Spezialgruppen in der LVB Ansicht</li>
<ul>
<li>02.10.2008<br>
</li>
</ul>
<li>Die Einstellungen für Ignore_kollision und db_stpl_table
werden jetzt nach
einem Neustart korrekt angezeigt</li>
<ul>
<li>01.04.2008<br>
</li>
</ul>
<li>Eintragen von Anmerkungen zu einzelnen (verplanten)
Lehreinheiten direkt im Tempus</li>
<ul>
<li>12.01.2008<br>
<br>
</li>
</ul>
</ul>
</body>
</html>
-570
View File
@@ -1,570 +0,0 @@
<?php
//-------------------------------------------------------------------------------------------------
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#--------------------------------------------------------------------------------------------------
/*
*
* @classe kommune_wettbewerb
*
* @param connectSQL Datenbankverbindung
* @param wbtyp_kurzbz Wettbewerbsgruppen Key
* @param wettbewerb_kurzbz Wettbewerbssubgruppen Key
*
* @return - kein Retourn des Konstruktors
*
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
class komune_wettbewerb extends basis_db
{
public $wettbewerb;
public $wbtyp_kurzbz;
public $wettbewerb_kurzb;
public $result;
public $new=false; // boolean
public $regeln;
public $forderungstage;
public $teamgroesse;
public $uid;
public $icon;
public $schemaSQL="kommune."; // string Datenbankschema
//-----Konstruktor
function __construct($wbtyp_kurzbz="",$wettbewerb_kurzbz="")
{
parent::__construct();
$this->InitWettbewerb();
$this->setWbtyp_kurzbz($wbtyp_kurzbz);
$this->setWettbewerb_kurzbz($wettbewerb_kurzbz);
}
//-----Initialisierung--------------------------------------------------------------------------------------------
function InitWettbewerb()
{
$this->setError('');
$this->setWettbewerb('');
$this->setWbtyp_kurzbz('');
$this->setWettbewerb_kurzbz('');
$this->new=false;
$this->result=array();
$this->wbtyp_kurzbz='';
$this->wettbewerb_kurzbz='';
$this->regeln='';
$this->forderungstage=1;
$this->teamgroesse=1;
$this->uid='';
$this->icon='';
}
//-----NewRecord--------------------------------------------------------------------------------------------
function getNewRecord()
{
return $this->new;
}
function setNewRecord($switch)
{
$this->new=$switch;
}
//-----Error--------------------------------------------------------------------------------------------
function getError()
{
return $this->errormsg;
}
function setError($err)
{
$this->errormsg=$err;
}
//-----schemaSQL--------------------------------------------------------------------------------------------
function getSchemaSQL()
{
return $this->schemaSQL;
}
function setSchemaSQL($schemaSQL)
{
$this->schemaSQL=$schemaSQL;
}
//-----wbtyp_kurzbz--------------------------------------------------------------------------------------------
function getWettbewerb()
{
return $this->wettbewerb;
}
function setWettbewerb($wettbewerb)
{
$this->wettbewerb=$wettbewerb;
}
//-----wbtyp_kurzbz--------------------------------------------------------------------------------------------
function getWbtyp_kurzbz()
{
return $this->wbtyp_kurzbz;
}
function setWbtyp_kurzbz($wbtyp_kurzbz)
{
$this->wbtyp_kurzbz=$wbtyp_kurzbz;
}
//-----wettbewerb_kurzbz--------------------------------------------------------------------------------------------
function getWettbewerb_kurzbz()
{
return $this->wettbewerb_kurzbz;
}
function setWettbewerb_kurzbz($wettbewerb_kurzbz="")
{
$this->wettbewerb_kurzbz=$wettbewerb_kurzbz;
}
//-------------------------------------------------------------------------------------------------
// ------------------------ Wettbewerbstypen
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
/**
* Speichert bzw. Aendert eine Veranstaltungskategorie
* @return true wenn ok, false im Fehlerfall
*/
public function saveWettbewerbTyp()
{
// Initialisieren
$this->errormsg='';
$qry="";
$fildsList='';
$fildsValue='';
if (empty($this->wbtyp_kurzbz) || $this->wbtyp_kurzbz==null )
{
$this->errormsg='Wettbewerb - Typ fehlt!';
return false;
}
if (empty($this->bezeichnung))
{
$this->errormsg='Wettbewerbstyp - Bezeichnung fehlt!';
return false;
}
if($this->new)
{
$fildsList.='wbtyp_kurzbz,';
$fildsList.='bezeichnung,';
$fildsList.='farbe';
$fildsValue.="'".addslashes($this->wbtyp_kurzbz)."',";
$fildsValue.="'".addslashes($this->bezeichnung)."',";
$fildsValue.="'".addslashes($this->farbe)."'";
$qry=" insert into ".$this->schemaSQL."tbl_wettbewerbtyp (".$fildsList.") values (".$fildsValue."); ";
}
else
{
if ($this->bezeichnung)
$fildsValue.=(!empty($fildsValue)?',':'')."bezeichnung='".addslashes($this->bezeichnung)."'";
$fildsValue.=(!empty($fildsValue)?',':'')."farbe='".addslashes($this->farbe)."'";
$qry.=" update ".$this->schemaSQL."tbl_wettbewerbtyp set ";
$qry.=$fildsValue;
$qry.=" where wbtyp_kurzbz='".addslashes($this->wbtyp_kurzbz)."' ";
}
if($resurce=$this->db_query($qry))
return $resurce;
else
{
if (empty($this->errormsg))
$this->errormsg = 'Fehler beim speichern des Datensatzes ';
return false;
}
}
//-------------------------------------------------------------------------------------------------
/**
* Loescht eine Veranstaltungskategorie
* @return true wenn ok, false im Fehlerfall
*/
public function deleteWettbewerbTyp($wbtyp_kurzbz="")
{
// Initialisieren
$qry="";
$this->errormsg='';
// Parameter
if (!empty($wbtyp_kurzbz))
$this->wbtyp_kurzbz=$wbtyp_kurzbz;
// Plausib
if (empty($this->wbtyp_kurzbz) || $this->wbtyp_kurzbz==null )
{
$this->errormsg='Wettbewerb - Typ fehlt!';
return false;
}
// Abfrage
$qry.=" BEGIN; ";
$qry.=" delete from ".$this->schemaSQL.".tbl_wettbewerb ";
if (is_array($this->wbtyp_kurzbz))
$qry.=" where wbtyp_kurzbz in ('".implode("','",$this->wbtyp_kurzbz)."') ";
else
$qry.=" where wbtyp_kurzbz='".addslashes($this->wbtyp_kurzbz)."' ";
$qry.="; ";
$qry.=" delete from ".$this->schemaSQL."tbl_wettbewerbtyp ";
if (is_array($this->wbtyp_kurzbz))
$qry.=" where wbtyp_kurzbz in ('".implode("','",$this->wbtyp_kurzbz)."') ";
else
$qry.=" where wbtyp_kurzbz='".addslashes($this->wbtyp_kurzbz)."' ";
if($this->db_query($qry))
{
if($this->db_query('COMMIT;'))
return true;
else
return false;
}
else
{
$this->db_query('ROLLBACK;');
if (empty($this->errormsg))
$this->errormsg = 'Fehler beim Veranstaltungskategorie löschen';
return false;
}
}
//-------------------------------------------------------------------------------------------------
function loadWettbewerbTyp()
{
$cSchemaSQL=$this->getSchemaSQL();
$tmpwbtyp_kurzbz=$this->getWbtyp_kurzbz();
$qry="";
$qry.="SELECT * FROM ".$cSchemaSQL."tbl_wettbewerbtyp ";
$qry.=" WHERE ".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz>'' ";
// Suche nach einem einzigen Wetttbewerbstypen wbtyp_kurzbz
if (!is_array($tmpwbtyp_kurzbz) && !empty($tmpwbtyp_kurzbz) )
{
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz)=UPPER('".$tmpwbtyp_kurzbz."') ";
}
elseif (is_array($tmpwbtyp_kurzbz) && count($tmpwbtyp_kurzbz)>0 )
{
if (isset($tmpwbtyp_kurzbz[0]['wbtyp_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
for ($indZEILE=0;$indZEILE<count($tmpwbtyp_kurzbz);$indZEILE++)
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz[$indZEILE]['wbtyp_kurzbz']);
$tmpwbtyp_kurzbz=$tmpwbtyp_kurzbzE;
}
elseif (isset($tmpwbtyp_kurzbz['wbtyp_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz['wbtyp_kurzbz']);
$tmpwbtyp_kurzbz=$tmpwbtyp_kurzbzE;
}
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz) in ('".strtoupper(implode("','",$tmpwbtyp_kurzbz))."') ";
}
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$rows[]=$row;
}
$this->setWettbewerb($rows);
}
else
{
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerb();
}
//-------------------------------------------------------------------------------------------------
// ------------------------ Wettbewerbe
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
/**
* Speichert bzw. Aendert eine Veranstaltungskategorie
* @return true wenn ok, false im Fehlerfall
*/
public function saveWettbewerb()
{
// Initialisieren
$this->errormsg='';
$qry="";
$fildsList='';
$fildsValue='';
// Plausib
if (empty($this->wbtyp_kurzbz) || $this->wbtyp_kurzbz==null )
{
$this->errormsg='Wettbewerb - Type fehlt!';
return false;
}
if (empty($this->wettbewerb_kurzbz) || $this->wettbewerb_kurzbz==null )
{
$this->errormsg='Wettbewerb - Kurzbz. fehlt!';
return false;
}
if (empty($this->regeln))
{
$this->errormsg='Wettbewerb - Regeln fehlen!';
return false;
}
if (empty($this->forderungstage) || is_null($this->forderungstage) )
$this->forderungstage=7;
if (!is_numeric($this->forderungstage) )
{
$this->errormsg='Forderungstage nur Nummerisch';
return false;
}
if (empty($this->teamgroesse) || is_null($this->teamgroesse))
$this->teamgroesse=1;
if (!is_numeric($this->teamgroesse) )
{
$this->errormsg='Forderungstage nur Nummerisch';
return false;
}
if($this->new)
{
$fildsList.='wbtyp_kurzbz,';
$fildsList.='wettbewerb_kurzbz,';
$fildsList.='regeln,';
$fildsList.='forderungstage,';
$fildsList.='teamgroesse,';
$fildsList.='uid,';
$fildsList.='icon';
$fildsValue.="'".addslashes($this->wbtyp_kurzbz)."',";
$fildsValue.="'".addslashes($this->wettbewerb_kurzbz)."',";
$fildsValue.="'".addslashes($this->regeln)."',";
$fildsValue.="".addslashes($this->forderungstage).",";
$fildsValue.="".addslashes($this->teamgroesse).",";
$fildsValue.="'".addslashes($this->uid)."',";
$fildsValue.="'".addslashes($this->icon)."'";
$qry=" insert into ".$this->schemaSQL."tbl_wettbewerb (".$fildsList.") values (".$fildsValue."); ";
}
else
{
if (!is_null($this->regeln) && $this->regeln)
$fildsValue.=(!empty($fildsValue)?',':'')."regeln='".addslashes($this->regeln)."'";
if (!is_null($this->forderungstage) && $this->forderungstage)
$fildsValue.=(!empty($fildsValue)?',':'')."forderungstage=".addslashes($this->forderungstage)."";
if (!is_null($this->teamgroesse) && $this->teamgroesse)
$fildsValue.=(!empty($fildsValue)?',':'')."teamgroesse=".addslashes($this->teamgroesse)."";
if (!is_null($this->icon) && $this->icon)
$fildsValue.=(!empty($fildsValue)?',':'')."icon='".addslashes($this->icon)."'";
$fildsValue.=(!empty($fildsValue)?',':'')."uid='".addslashes($this->uid)."'";
$qry.=" update ".$this->schemaSQL."tbl_wettbewerb set ";
$qry.=$fildsValue;
$qry.=" where wbtyp_kurzbz='".addslashes($this->wbtyp_kurzbz)."' and wettbewerb_kurzbz='".addslashes($this->wettbewerb_kurzbz)."' ";
}
if($this->db_query($qry))
return true;
else
{
if (empty($qry))
$this->errormsg = 'Fehler beim speichern des Datensatzes ';
$this->errormsg .=' '.$qry;
return false;
}
}
//-------------------------------------------------------------------------------------------------
/**
* Loescht eine Veranstaltungskategorie
* @return true wenn ok, false im Fehlerfall
*/
public function deleteWettbewerb($wbtyp_kurzbz="",$wettbewerb_kurzbz=null)
{
// Initialisieren
$qry="";
$this->result=array();
$this->errormsg='';
// Parameter
if (!is_null($wbtyp_kurzbz))
$this->wbtyp_kurzbz=$wbtyp_kurzbz;
if (!is_null($wettbewerb_kurzbz))
$this->wettbewerb_kurzbz=$wettbewerb_kurzbz;
// Plausib
if (empty($this->wbtyp_kurzbz) || $this->wbtyp_kurzbz==null )
{
$this->errormsg='Wettbewerb - Typ fehlt!';
return false;
}
if (empty($this->wettbewerb_kurzbz) || $this->wettbewerb_kurzbz==null )
{
$this->errormsg='Wettbewerb - Kurzbz. fehlt!';
return false;
}
// Abfrage
$qry.=" delete from ".$this->schemaSQL."tbl_wettbewerb ";
if (is_array($this->wbtyp_kurzbz))
$qry.=" where wbtyp_kurzbz in ('".implode("','",$this->wbtyp_kurzbz)."') ";
else
$qry.=" where wbtyp_kurzbz='".addslashes($this->wbtyp_kurzbz)."' ";
if (is_array($this->wettbewerb_kurzbz))
$qry.=" and wettbewerb_kurzbz in ('".implode("','",$this->wettbewerb_kurzbz)."') ";
else
$qry.=" and wettbewerb_kurzbz='".addslashes($this->wettbewerb_kurzbz)."' ";
if($this->db_query($qry))
{
return true;
}
else
{
if (empty($this->errormsg))
$this->errormsg = 'Fehler beim Veranstaltungskategorie löschen';
return false;
}
}
function loadWettbewerb()
{
$cSchemaSQL=$this->getSchemaSQL();
$tmpwbtyp_kurzbz=$this->getWbtyp_kurzbz();
$cWettbewerb_kurzbz=$this->getWettbewerb_kurzbz();
$qry="";
$qry.="SELECT *,tbl_wettbewerbtyp.wbtyp_kurzbz,case WHEN tbl_wettbewerb.teamgroesse >1 then 'Teambewerb' else 'Einzelbewerb' end as wettbewerbart FROM ".$cSchemaSQL."tbl_wettbewerbtyp ";
$qry.=" LEFT JOIN ".$cSchemaSQL."tbl_wettbewerb ON UPPER(".$cSchemaSQL."tbl_wettbewerb.wbtyp_kurzbz)=UPPER(".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz) ";
$qry.=" WHERE ".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz>'' ";
// Suche nach einem einzigen Wetttbewerbstypen wbtyp_kurzbz
if (!is_array($tmpwbtyp_kurzbz) && !empty($tmpwbtyp_kurzbz) )
{
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz)=UPPER('".$tmpwbtyp_kurzbz."') ";
}
elseif (is_array($tmpwbtyp_kurzbz) && count($tmpwbtyp_kurzbz)>0 )
{
if (isset($tmpwbtyp_kurzbz[0]['wbtyp_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
for ($indZEILE=0;$indZEILE<count($tmpwbtyp_kurzbz);$indZEILE++)
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz[$indZEILE]['wbtyp_kurzbz']);
$tmpwbtyp_kurzbz=$tmpwbtyp_kurzbzE;
}
elseif (isset($tmpwbtyp_kurzbz['wbtyp_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz['wbtyp_kurzbz']);
$tmpwbtyp_kurzbz=$tmpwbtyp_kurzbzE;
}
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz) in ('".strtoupper(implode("','",$tmpwbtyp_kurzbz))."') ";
}
// Suche nach Wettbewerben wettbewerb_kurzbz
if (!is_array($cWettbewerb_kurzbz) && !empty($cWettbewerb_kurzbz) )
{
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerb.wettbewerb_kurzbz)=UPPER('".$cWettbewerb_kurzbz."') ";
}
elseif (is_array($cWettbewerb_kurzbz) && count($cWettbewerb_kurzbz)>0 )
{
if (isset($cWettbewerb_kurzbz[0]['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
for ($indZEILE=0;$indZEILE<count($tmpwbtyp_kurzbz);$indZEILE++)
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz[$indZEILE]['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$tmpwbtyp_kurzbzE;
unset($tmpwbtyp_kurzbzE);
}
elseif (isset($cWettbewerb_kurzbz['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpwbtyp_kurzbzE=array();
$tmpwbtyp_kurzbzE[]=trim($tmpwbtyp_kurzbz['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$tmpwbtyp_kurzbzE;
unset($tmpwbtyp_kurzbzE);
}
$qry.=" AND UPPER(".$cSchemaSQL."tbl_wettbewerb.wettbewerb_kurzbz) in ('".strtoupper(implode("','",$tmpwbtyp_kurzbzE))."') ";
}
// Datenbankabfrage
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$rows[]=$row;
}
$this->setWettbewerb($rows);
}
else
{
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerb();
}
} // Class komune_wettbewerb Ende
?>
@@ -1,881 +0,0 @@
<?php
//-------------------------------------------------------------------------------------------------
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#--------------------------------------------------------------------------------------------------
/*
*
* @classe kommune_wettbewerbeinladungen
*
* @param connectSQL Datenbankverbindung
* @param team_kurzbz Einladung zum Wettbewerb
* @param team_gefordert Einladung zum Wettbewerb
* @param wettbewerb_kurzbz Wettbewerbssubgruppen Key
*
* @return - kein Retourn des Konstruktors
*
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
class komune_wettbewerbeinladungen extends basis_db
{
public $new;
protected $wettbewerbeinladungen="";
protected $uid="";
protected $match_id="";
protected $wettbewerb_kurzbz="";
protected $team_kurzbz="";
protected $team_gefordert="";
protected $gefordertvon="";
protected $gefordertamum="";
protected $matchdatumzeit="";
protected $matchort="";
protected $bestaetigtvon="";
protected $bestaetigtamum="";
protected $ergebniss="";
protected $team_sieger="";
protected $matchbestaetigtamum="";
protected $matchbestaetigtvon="";
protected $switchGewinner='';
public $schemaSQL="kommune."; // string Datenbankschema
//-----Konstruktor
function __construct($match_id="",$team_forderer="",$team_gefordert="",$wettbewerb_kurzbz="",$uid="")
{
parent::__construct();
$this->InitWettbewerbeinladungen();
$this->setMatch_id($match_id);
$this->setTeam_forderer($team_forderer);
$this->setTeam_gefordert($team_gefordert);
$this->setWettbewerb_kurzbz($wettbewerb_kurzbz);
$this->setGefordertvon($uid);
}
//-----Initialisierung--------------------------------------------------------------------------------------------
function InitWettbewerbeinladungen()
{
$this->setError('');
// Ergebniss-Liste der Spiele
$this->setWettbewerbeinladung('');
// Liste der Spiele mit Ergebniss "True" , oder Ohne "False"
$this->setSwitchGewinner('');
// Step 1
$this->setMatch_id('');
$this->setWettbewerb_kurzbz('');
$this->setGefordertvon('');
$this->setGefordertamum('');
$this->setTeam_kurzbz('');
$this->setTeam_gefordert('');
$this->setMatchdatumzeit('');
$this->setMatchort('');
// Step 2
$this->setBestaetigtvon('');
$this->setBestaetigtamum(0);
// Step 3
$this->setErgebniss('');
$this->setTeam_sieger('');
// Step 4
$this->setMatchbestaetigtamum('');
$this->setMatchbestaetigtvon('');
}
//-----NewRecord--------------------------------------------------------------------------------------------
function getNewRecord()
{
return $this->new;
}
function setNewRecord($switch)
{
$this->new=$switch;
}
//-----Error--------------------------------------------------------------------------------------------
function getError()
{
return $this->errormsg;
}
function setError($err)
{
$this->errormsg=$err;
}
//-----schemaSQL--------------------------------------------------------------------------------------------
function getSchemaSQL()
{
return $this->schemaSQL;
}
function setSchemaSQL($schemaSQL)
{
$this->schemaSQL=$schemaSQL;
}
//-----Wettbewerb Matchdaten--------------------------------------------------------------------------------------------
function getWettbewerbeinladung()
{
return $this->wettbewerbeinladung;
}
function setWettbewerbeinladung($wettbewerbeinladung)
{
$this->wettbewerbeinladung=$wettbewerbeinladung;
}
//-----match_id--------------------------------------------------------------------------------------------
function getMatch_id()
{
return $this->match_id;
}
function setMatch_id($match_id)
{
$this->match_id=$match_id;
}
//-----gefordertvon--------------------------------------------------------------------------------------------
function getGefordertvon()
{
return $this->gefordertvon;
}
function setGefordertvon($gefordertvon)
{
$this->gefordertvon=$gefordertvon;
}
//-----UID--------------------------------------------------------------------------------------------
// Match - Wettbewerb uid = Moderator
function getUid()
{
return $this->uid;
}
function setUid($uid)
{
$this->uid=$uid;
}
//-----gefordertam--------------------------------------------------------------------------------------------
function getGefordertamum()
{
return $this->gefordertamum;
}
function setGefordertamum($gefordertamum)
{
$this->gefordertamum=$gefordertamum;
}
//-----team_forderer--------------------------------------------------------------------------------------------
function getTeam_forderer()
{
return $this->team_forderer;
}
function setTeam_forderer($team_forderer)
{
$this->team_forderer=$team_forderer;
}
//-----team_kurzbz--kompilitaet------------------------------------------------------------------------------------------
function getTeam_kurzbz()
{
return $this->getTeam_forderer();
}
function setTeam_kurzbz($team_kurzbz)
{
$this->setTeam_forderer($team_kurzbz);
}
//-----team_gefordert--------------------------------------------------------------------------------------------
function getTeam_gefordert()
{
return $this->team_gefordert;
}
function setTeam_gefordert($team_gefordert)
{
$this->team_gefordert=$team_gefordert;
}
//-----team_sieger--------------------------------------------------------------------------------------------
function getTeam_sieger()
{
return $this->team_sieger;
}
function setTeam_sieger($team_sieger)
{
$this->team_sieger=$team_sieger;
}
//-----wettbewerb_kurzbz--------------------------------------------------------------------------------------------
function getWettbewerb_kurzbz()
{
return $this->wettbewerb_kurzbz;
}
function setWettbewerb_kurzbz($wettbewerb_kurzbz="")
{
$this->wettbewerb_kurzbz=$wettbewerb_kurzbz;
}
//-----matchdatumzeit--------------------------------------------------------------------------------------------
function getMatchdatumzeit()
{
return $this->matchdatumzeit;
}
function setMatchdatumzeit($matchdatumzeit)
{
$this->matchdatumzeit=$matchdatumzeit;
}
//-----matchort--------------------------------------------------------------------------------------------
function getMatchort()
{
return $this->matchort;
}
function setMatchort($matchort)
{
$this->matchort=$matchort;
}
//-----ergebniss--------------------------------------------------------------------------------------------
function getErgebniss()
{
return $this->ergebniss;
}
function setErgebniss($ergebniss)
{
$this->ergebniss=$ergebniss;
}
//-----bestaetigtvon--------------------------------------------------------------------------------------------
function getBestaetigtvon()
{
return $this->bestaetigtvon;
}
function setBestaetigtvon($bestaetigtvon)
{
$this->bestaetigtvon=$bestaetigtvon;
}
//-----bestaetigtamum--------------------------------------------------------------------------------------------
function getBestaetigtamum()
{
return $this->bestaetigtamum;
}
function setBestaetigtamum($bestaetigtamum)
{
$this->bestaetigtamum=$bestaetigtamum;
}
//-----matchbestaetigtamum--------------------------------------------------------------------------------------------
function getMatchbestaetigtamum()
{
return $this->matchbestaetigtamum;
}
function setMatchbestaetigtamum($matchbestaetigtamum)
{
$this->matchbestaetigtamum=$matchbestaetigtamum;
}
//-----matchbestaetigtvon--------------------------------------------------------------------------------------------
function getMatchbestaetigtvon()
{
return $this->matchbestaetigtvon;
}
function setMatchbestaetigtvon($matchbestaetigtvon)
{
$this->matchbestaetigtvon=$matchbestaetigtvon;
}
//-----switchGewinner--------------------------------------------------------------------------------------------
// Selektion des Datenlesen 0 nur nicht Gewonnene, 1 sind alle Gewonnene , leer alle
function getSwitchGewinner()
{
return $this->switchGewinner;
}
function setSwitchGewinner($switchGewinner)
{
$this->switchGewinner=$switchGewinner;
}
//-------------------------------------------------------------------------------------------------
function saveWettbewerbeinladung($team_forderer="",$team_gefordert="",$match_id="")
{
// Initialisieren
$this->setError('');
// Konstante
$constTableMatch='tbl_match';
// Parameteruebernahme
if (!empty($team_forderer))
$this->setTeam_forderer($team_forderer);
if (!empty($team_gefordert))
$this->setTeam_gefordert($team_gefordert);
if (!empty($match_id))
$this->setMatch_id($match_id);
// Verarbeitungsvariablen
$cSchemaSQL=$this->getschemaSQL();
$cMatch_id=$this->getMatch_id();
$cTeam_forderer=$this->getTeam_forderer();
$cTeam_gefordert=$this->getTeam_gefordert();
// Plausib - Pruefen ob Eingeladente Team nicht als Array ubergeben wurde ( gebraucht wird nur die Kurzbezeichnung)
if (is_array($cTeam_forderer) && isset($cTeam_forderer['team_forderer']))
$cTeam_forderer=$cTeam_forderer['team_forderer'];
elseif (is_array($cTeam_forderer) && isset($cTeam_forderer[0]['team_forderer']) )
$cTeam_forderer=$cTeam_forderer[0]['team_forderer'];
elseif (is_array($cTeam_forderer) && isset($cTeam_forderer['team_forderer']))
$cTeam_forderer=$cTeam_forderer['team_kurzbz'];
elseif (is_array($cTeam_forderer) && isset($cTeam_forderer[0]['team_forderer']) )
$cTeam_forderer=$cTeam_forderer[0]['team_forderer'];
// Plausib - Pruefen ob Eingeladene Team nicht als Array ubergeben wurde ( gebraucht wird nur die Kurzbezeichnung)
if (is_array($cTeam_gefordert) && isset($cTeam_gefordert['team_kurzbz']))
$cTeam_gefordert=$cTeam_gefordert['team_kurzbz'];
elseif (is_array($cTeam_gefordert) && isset($cTeam_gefordert[0]['team_kurbz']))
$cTeam_gefordert=$cTeam_gefordert[0]['team_kurzbz'];
$cTeam_forderer=trim($cTeam_forderer);
if (empty($cTeam_forderer) )
{
$this->setError('Kein Einladung (Einladenter fehlt) m&ouml;glich !');
return false;
}
$cTeam_gefordert=trim($cTeam_gefordert);
if (empty($cTeam_gefordert) )
{
$this->setError('Kein Einladung (Eingeladener fehlt) m&ouml;glich !');
return false;
}
$cMatch_id=trim($cMatch_id);
if (empty($cTeam_gefordert) && empty($cMatch_id) )
{
$this->setError('Kein Einladung (Bearbeitung) m&ouml;glich !');
return false;
}
if (!$origWettbewerbeinladungen=$this->loadWettbewerbeinladungen())
{
if ($this->getError()) // Beim Lesen ist ein Fehler aufgetreten
return false;
$this->setNewRecord(true);
}
$this->db_query(" BEGIN; ");
$qry="";
if ($this->getNewRecord()) // Neuanlage - Insert
{
/*
team_sieger character varying(16) Durchsuchen Ändern Löschen
wettbewerb_kurzbz character varying(16) NOT NULL Durchsuchen Ändern Löschen
team_gefordert character varying(16) NOT NULL Durchsuchen Ändern Löschen
team_forderer character varying(16) NOT NULL Durchsuchen Ändern Löschen
gefordertvon character varying(16) NOT NULL Durchsuchen Ändern Löschen
matchdatumzeit timestamp without time zone Durchsuchen Ändern Löschen
matchort character varying(32) Durchsuchen Ändern Löschen
ergebniss character varying(16) Durchsuchen Ändern Löschen
bestaetigtvon character varying(16) Durchsuchen Ändern Löschen
bestaetigtamum timestamp without time zone Durchsuchen Ändern Löschen
match_id integer NOT NULL nextval('tbl_match_match_id_seq'::regclass) Durchsuchen Ändern Löschen
matchbestaetigtvon character varying(16) Durchsuchen Ändern Löschen
matchbestaetigtamum timestamp without time zone Durchsuchen Ändern Löschen
gefordertamum timestamp without time zone
*/
$fildsList="";
$fildsValue="";
$fildsList.='team_sieger,';
$fildsList.='wettbewerb_kurzbz,';
$fildsList.='team_gefordert,';
$fildsList.='team_forderer,';
$fildsList.='gefordertvon,';
$fildsList.='matchdatumzeit,';
$fildsList.='matchort,';
$fildsList.='ergebniss,';
$fildsList.='bestaetigtvon,';
$fildsList.='bestaetigtamum,';
# $fildsList.='match_id,';
$fildsList.='matchbestaetigtvon,';
$fildsList.='matchbestaetigtamum,';
$fildsList.='gefordertamum';
if (!$this->getGefordertamum())
$this->setGefordertamum(time());
$fildsValue.=($this->team_sieger?"'".addslashes($this->team_sieger)."'":'null').",";
$fildsValue.="'".addslashes($this->wettbewerb_kurzbz)."',";
$fildsValue.="'".addslashes($this->team_gefordert)."',";
$fildsValue.="'".addslashes($this->team_forderer)."',";
$fildsValue.="'".addslashes($this->gefordertvon)."',";
$fildsValue.=(empty($this->matchdatumzeit)?'null,':"'".addslashes(date('Y-m-d H:i:s',$this->matchdatumzeit))."',");
$fildsValue.="'".addslashes($this->matchort)."',";
$fildsValue.="'".addslashes($this->ergebniss)."',";
$fildsValue.=($this->bestaetigtvon?"'".addslashes($this->bestaetigtvon)."'":'null').",";
$fildsValue.=(empty($this->bestaetigtamum)?'null,':"'".addslashes(date('Y-m-d H:i:s',$this->bestaetigtamum))."',");
# $fildsValue.="".addslashes($this->match_id).",";
$fildsValue.=($this->matchbestaetigtvon?"'".addslashes($this->matchbestaetigtvon)."'":'null').",";
$fildsValue.=(empty($this->matchbestaetigtamum)?'null,':"'".addslashes(date('Y-m-d H:i:s',$this->matchbestaetigtamum))."',");
$fildsValue.=(empty($this->gefordertamum)?'null':"'".addslashes(date('Y-m-d H:i:s',$this->gefordertamum))."'");
$qry=" insert into ".$this->schemaSQL."tbl_match (".$fildsList.") values (".$fildsValue."); ";
}
else
{
if (!$this->getMatch_id())
$this->setMatch_id($origWettbewerbeinladungen[0]['match_id']);
$qry.=" update ".$cSchemaSQL."tbl_match set ";
$fildsValue='';
if ($this->team_sieger)
$fildsValue.="team_sieger=".($this->team_sieger?"'".addslashes($this->team_sieger)."'":'null').",";
$fildsValue.="wettbewerb_kurzbz='".addslashes($this->wettbewerb_kurzbz)."',";
$fildsValue.="team_gefordert='".addslashes($this->team_gefordert)."',";
$fildsValue.="team_forderer='".addslashes($this->team_forderer)."',";
if (!is_null($this->gefordertvon) && $this->gefordertvon)
$fildsValue.="gefordertvon=".($this->gefordertvon?"'".addslashes($this->gefordertvon)."'":'null').",";
if (!is_null($this->matchdatumzeit) && $this->matchdatumzeit)
$fildsValue.="matchdatumzeit=".($this->matchdatumzeit?"'".addslashes(date('Y-m-d H:i:s',$this->matchdatumzeit))."'":'null').",";
if (!is_null($this->matchort) && $this->matchort)
$fildsValue.="matchort='".addslashes($this->matchort)."',";
if (!is_null($this->ergebniss) && $this->ergebniss)
$fildsValue.="ergebniss='".addslashes($this->ergebniss)."',";
if (!is_null($this->ergebniss) && $this->bestaetigtvon)
$fildsValue.="bestaetigtvon=".($this->bestaetigtvon?"'".addslashes($this->bestaetigtvon)."'":'null').",";
if (!is_null($this->ergebniss) && $this->bestaetigtamum)
$fildsValue.="bestaetigtamum=".($this->bestaetigtamum?"'".addslashes(date('Y-m-d H:i:s',$this->bestaetigtamum))."'":'null').",";
if (!is_null($this->ergebniss) && $this->matchbestaetigtvon)
$fildsValue.="matchbestaetigtvon=".($this->matchbestaetigtvon?"'".addslashes($this->matchbestaetigtvon)."'":'null').",";
if (!is_null($this->matchbestaetigtamum) && $this->matchbestaetigtamum)
$fildsValue.="matchbestaetigtamum=".($this->matchbestaetigtamum?"'".addslashes(date('Y-m-d H:i:s',$this->matchbestaetigtamum))."'":'null').",";
if (!is_null($this->gefordertamum) && $this->gefordertamum)
$fildsValue.="gefordertamum=".($this->gefordertamum?"'".addslashes(date('Y-m-d H:i:s',$this->gefordertamum))."'":'null').",";
$fildsValue.="match_id=".addslashes($this->match_id)."";
$qry.=$fildsValue." where tbl_match.match_id='".$this->getMatch_id()."'; ";
$cWettbewerb_kurzbz=trim($origWettbewerbeinladungen[0]['wettbewerb_kurzbz']);
$origWettbewerbeinladungen[0]['matchbestaetigtvon']=trim($origWettbewerbeinladungen[0]['matchbestaetigtvon']);
$origWettbewerbeinladungen[0]['team_sieger']=trim($origWettbewerbeinladungen[0]['team_sieger']);
if ($this->getMatchbestaetigtvon() && empty($origWettbewerbeinladungen[0]['matchbestaetigtvon'])
&& trim($origWettbewerbeinladungen[0]['team_sieger'])==trim($this->team_forderer)) // Der Forderer ist der Siehter den Rangtauschen
{
// Rang des Geforderten ermitteln
$iTmpRangGeforderter=0;
$qry_tmp="select rang from ".$cSchemaSQL."tbl_wettbewerbteam where upper(team_kurzbz)=upper('".addslashes($this->team_gefordert)."') and upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."') ;";
if($res=$this->db_query($qry_tmp))
{
$iTmpRangGeforderter=$this->db_result($res,0,'rang');
}
else
{
$this->errormsg = $this->db_last_error();
return false;
}
$iTmpRangFrorderer=0;
// Rang des Geforderten ermitteln
$qry_tmp="select rang from ".$cSchemaSQL."tbl_wettbewerbteam where upper(team_kurzbz)=upper('".$this->team_forderer."') and upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."') ;";
if($res=$this->db_query($qry_tmp))
{
$iTmpRangFrorderer=$this->db_result($res,0,'rang');
}
else
{
$this->errormsg = $this->db_last_error();
return false;
}
$qry.=" update ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.="set rang=0 ";
$qry.=" where upper(team_kurzbz)=upper('".addslashes($this->team_gefordert)."') and upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."'); ";
$qry.=" update ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.="set rang=".$iTmpRangGeforderter;
$qry.=" where upper(team_kurzbz)=upper('".addslashes($this->team_forderer)."') and upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."'); ";
$qry.=" update ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.="set rang=".$iTmpRangFrorderer;
$qry.=" where upper(team_kurzbz)=upper('".addslashes($this->team_gefordert)."') and upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."'); ";
$qry.=" update ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.="set punkte=3+punkte ";
$qry.="where upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."') and upper(team_kurzbz)=upper('".addslashes($origWettbewerbeinladungen[0]['team_sieger'])."'); ";
$qry.=" update ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.="set punkte=1+punkte ";
$qry.="where upper(wettbewerb_kurzbz)=upper('".addslashes($this->wettbewerb_kurzbz)."') and upper(team_kurzbz)=upper('". addslashes(($origWettbewerbeinladungen[0]['team_sieger']==$this->team_gefordert?$this->team_forderer:$this->team_gefordert))."'); ";
}
}
if($this->db_query($qry))
{
$this->db_query(" COMMIT; ");
return $this->loadWettbewerbeinladungen();
}
else
{
$this->setError($qry.' '.$this->db_last_error());
$this->db_query(" ROLLBACK; ");
return false;
}
return true;
}
//-------------------------------------------------------------------------------------------------
function loadWettbewerbeinladungen()
{
$this->setError('');
$cSchemaSQL=$this->getschemaSQL();
$match_id=$this->getMatch_id();
$cTeam_forderer=$this->getTeam_forderer();
$cTeam_kurzbz_einladungen=$this->getTeam_gefordert();
$cWettbewerb_kurzbz=$this->getWettbewerb_kurzbz();
$cGefordertvon=$this->getGefordertvon();
$bSwitchGewinner=$this->getSwitchGewinner();
#SELECT TIMESTAMP WITHOUT TIME ZONE 'epoch' + 982384720 * INTERVAL '1 second';
#select to_char(TIMESTAMP '2007-03-27 10:48:50.022', 'DD.MM.YYYY');
#select to_char(TIMESTAMP '2007-03-27 10:48:50.022', 'HH24:MI:SS');
$qry="";
$qry.="SELECT * ";
$qry.=", to_char(matchdatumzeit, 'DD.MM.YYYY') as \"matchdatum\" ";
$qry.=", to_char(matchdatumzeit, 'HH24:MI') as \"matchzeit\" ";
$qry.=", to_char(gefordertamum, 'DD.MM.YYYY') as \"gefordertamumdatum\" ";
$qry.=", to_char(gefordertamum, 'HH24:MI') as \"gefordertamumzeit\" ";
$qry.=", to_char(bestaetigtamum, 'DD.MM.YYYY') as \"bestaetigtdatum\" ";
$qry.=", to_char(bestaetigtamum, 'HH24:MI') as \"bestaetigtzeit\" ";
$qry.=", to_char(matchbestaetigtamum, 'DD.MM.YYYY') as \"matchbestaetigtdatum\" ";
$qry.=", to_char(matchbestaetigtamum, 'HH24:MI') as \"matchbestaetigtzeit\" ";
$qry.=" FROM ".$cSchemaSQL."tbl_match ";
if (empty($match_id))
$qry.=" WHERE tbl_match.match_id>0 ";
else
$qry.=" WHERE tbl_match.match_id='".addslashes(trim($match_id))."' ";
# if (!empty($cGefordertvon))
# $qry.=" and tbl_match.gefordertvon='".addslashes(trim($cGefordertvon))."' ";
// Forderer
if (!is_array($cTeam_forderer) && !empty($cTeam_forderer) )
{
$qry.=" AND UPPER(tbl_match.team_forderer)=UPPER('".addslashes(trim($cTeam_forderer))."') ";
}
elseif (is_array($cTeam_forderer) && count($cTeam_forderer)>0 )
{
if (isset($cTeam_forderer[0]['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cTeam_forderer);$indZEILE++)
$arrTmpTeam_kurzbz[]=trim($cTeam_forderer[$indZEILE]['team_kurzbz']);
$cTeam_forderer=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
elseif (isset($cTeam_forderer['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
$arrTmpTeam_kurzbz[]=trim($cTeam_forderer['team_kurzbz']);
$cTeam_forderer=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
$qry.=" AND UPPER(tbl_match.team_forderer) in ('".strtoupper(implode("','",$cTeam_forderer))."') ";
}
// Aaufforderungen - Einladung
if (!is_array($cTeam_kurzbz_einladungen) && !empty($cTeam_kurzbz_einladungen) )
{
$qry.=" AND UPPER(tbl_match.team_gefordert)=UPPER('".addslashes(trim($cTeam_kurzbz_einladungen))."') ";
}
elseif (is_array($cTeam_kurzbz_einladungen) && count($cTeam_kurzbz_einladungen)>0 )
{
if (isset($cTeam_kurzbz_einladungen[0]['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cTeam_kurzbz_einladungen);$indZEILE++)
$arrTmpTeam_kurzbz[]=trim($cTeam_kurzbz_einladungen[$indZEILE]['team_kurzbz']);
$cTeam_kurzbz_einladungen=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
elseif (isset($cTeam_kurzbz_einladungen['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
$arrTmpTeam_kurzbz[]=trim($cTeam_kurzbz_einladungen['team_kurzbz']);
$cTeam_kurzbz_einladungen=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
$qry.=" AND UPPER(tbl_match.team_gefordert) in ('".strtoupper(implode("','",$cTeam_kurzbz_einladungen))."') ";
}
// GEForderte
if (!is_array($cWettbewerb_kurzbz) && !empty($cWettbewerb_kurzbz) )
{
$qry.=" AND UPPER(tbl_match.wettbewerb_kurzbz)=UPPER('".addslashes(trim($cWettbewerb_kurzbz))."') ";
}
elseif (is_array($cWettbewerb_kurzbz) && count($cWettbewerb_kurzbz)>0 )
{
if (isset($cWettbewerb_kurzbz[0]['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrWettbewerb_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cWettbewerb_kurzbz);$indZEILE++)
$arrWettbewerb_kurzbz[]=trim($cTeam_kurzbz_einladungen[$indZEILE]['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$arrWettbewerb_kurzbz;
unset($arrWettbewerb_kurzbz);
}
elseif (isset($cWettbewerb_kurzbz['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrWettbewerb_kurzbz=array();
$arrWettbewerb_kurzbz[]=trim($cTeam_kurzbz_einladungen['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$arrWettbewerb_kurzbz;
unset($arrWettbewerb_kurzbz);
}
$qry.=" AND UPPER(tbl_match.wettbewerb_kurzbz) in ('".strtoupper(implode("','",$cWettbewerb_kurzbz))."') ";
}
// Listenformen bestimmen
if ($bSwitchGewinner=='0')
$qry.=" AND ( tbl_match.matchbestaetigtvon <='' or (tbl_match.matchbestaetigtvon IS NULL) ) ";
elseif ($bSwitchGewinner=='1')
$qry.=" AND tbl_match.matchbestaetigtvon > '' ";
#echo $qry;
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$rows[]=$row;
}
$this->setWettbewerbeinladung($rows);
}
else
{
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerbeinladung();
}
//-------------------------------------------------------------------------------------------------
function loadWettbewerbeinladungenForderungstage()
{
$this->setError('');
$cSchemaSQL=$this->getschemaSQL();
$match_id=$this->getMatch_id();
$cTeam_forderer=$this->getTeam_forderer();
$cTeam_kurzbz_einladungen=$this->getTeam_gefordert();
$cWettbewerb_kurzbz=$this->getWettbewerb_kurzbz();
$cUid=$this->getGefordertvon();
$qry="";
$qry.="SELECT * ";
$qry.=", to_char(matchdatumzeit, 'DD.MM.YYYY') as \"matchdatum\" ";
$qry.=", to_char(matchdatumzeit, 'HH24:MI') as \"matchzeit\" ";
$qry.=", to_char(gefordertamum, 'DD.MM.YYYY') as \"gefordertamumdatum\" ";
$qry.=", to_char(gefordertamum, 'HH24:MI') as \"gefordertamumzeit\" ";
$qry.=", to_char(bestaetigtamum, 'DD.MM.YYYY') as \"bestaetigtdatum\" ";
$qry.=", to_char(bestaetigtamum, 'HH24:MI') as \"bestaetigtzeit\" ";
$qry.=", to_char(matchbestaetigtamum, 'DD.MM.YYYY') as \"matchbestaetigtdatum\" ";
$qry.=", to_char(matchbestaetigtamum, 'HH24:MI') as \"matchbestaetigtzeit\" ";
$qry.="
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.gefordertamum))) as gefordertamum_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.bestaetigtamum,".$cSchemaSQL."tbl_match.gefordertamum))) as bestaetigtamum_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.matchdatumzeit,".$cSchemaSQL."tbl_match.bestaetigtamum))) as matchdatumzeit_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.matchbestaetigtamum,".$cSchemaSQL."tbl_match.matchdatumzeit))) as matchbestaetigtamum_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.gefordertamum))) as gefordertamum_tag_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.bestaetigtamum))) as bestaetigtamum_tag_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.matchdatumzeit))) as matchdatumzeit_tag_diff
,1+extract('day' from (age(".$cSchemaSQL."tbl_match.matchbestaetigtamum))) as matchbestaetigtamum_tag_diff
";
$qry.=" from ".$cSchemaSQL."tbl_wettbewerbtyp,".$cSchemaSQL."tbl_wettbewerb,".$cSchemaSQL."tbl_match
where ".$cSchemaSQL."tbl_wettbewerbtyp.wbtyp_kurzbz=".$cSchemaSQL."tbl_wettbewerb.wbtyp_kurzbz
and ".$cSchemaSQL."tbl_match.wettbewerb_kurzbz=".$cSchemaSQL."tbl_wettbewerb.wettbewerb_kurzbz
and (".$cSchemaSQL."tbl_match.matchbestaetigtvon IS NULL or ".$cSchemaSQL."tbl_match.matchbestaetigtvon<='')
";
if (!empty($match_id))
$qry.=" and tbl_match.match_id='".addslashes(trim($match_id))."' ";
if (!empty($cUid))
$qry.=" and tbl_wettbewerb.uid='".addslashes(trim($cUid))."' ";
// Forderer
if (!is_array($cTeam_forderer) && !empty($cTeam_forderer) )
{
$qry.=" AND UPPER(tbl_match.team_forderer)=UPPER('".addslashes(trim($cTeam_forderer))."') ";
}
elseif (is_array($cTeam_forderer) && count($cTeam_forderer)>0 )
{
if (isset($cTeam_forderer[0]['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cTeam_forderer);$indZEILE++)
$arrTmpTeam_kurzbz[]=trim($cTeam_forderer[$indZEILE]['team_kurzbz']);
$cTeam_forderer=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
elseif (isset($cTeam_forderer['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
$arrTmpTeam_kurzbz[]=trim($cTeam_forderer['team_kurzbz']);
$cTeam_forderer=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
$qry.=" AND UPPER(tbl_match.team_forderer) in ('".strtoupper(implode("','",$cTeam_forderer))."') ";
}
// Aaufforderungen - Einladung
if (!is_array($cTeam_kurzbz_einladungen) && !empty($cTeam_kurzbz_einladungen) )
{
$qry.=" AND UPPER(tbl_match.team_gefordert)=UPPER('".addslashes(trim($cTeam_kurzbz_einladungen))."') ";
}
elseif (is_array($cTeam_kurzbz_einladungen) && count($cTeam_kurzbz_einladungen)>0 )
{
if (isset($cTeam_kurzbz_einladungen[0]['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cTeam_kurzbz_einladungen);$indZEILE++)
$arrTmpTeam_kurzbz[]=trim($cTeam_kurzbz_einladungen[$indZEILE]['team_kurzbz']);
$cTeam_kurzbz_einladungen=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
elseif (isset($cTeam_kurzbz_einladungen['team_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrTmpTeam_kurzbz=array();
$arrTmpTeam_kurzbz[]=trim($cTeam_kurzbz_einladungen['team_kurzbz']);
$cTeam_kurzbz_einladungen=$arrTmpTeam_kurzbz;
unset($arrTmpTeam_kurzbz);
}
$qry.=" AND UPPER(tbl_match.team_gefordert) in ('".strtoupper(implode("','",$cTeam_kurzbz_einladungen))."') ";
}
// GEForderte
if (!is_array($cWettbewerb_kurzbz) && !empty($cWettbewerb_kurzbz) )
{
$qry.=" AND UPPER(tbl_match.wettbewerb_kurzbz)=UPPER('".addslashes(trim($cWettbewerb_kurzbz))."') ";
}
elseif (is_array($cWettbewerb_kurzbz) && count($cWettbewerb_kurzbz)>0 )
{
if (isset($cWettbewerb_kurzbz[0]['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrWettbewerb_kurzbz=array();
for ($indZEILE=0;$indZEILE<count($cWettbewerb_kurzbz);$indZEILE++)
$arrWettbewerb_kurzbz[]=trim($cTeam_kurzbz_einladungen[$indZEILE]['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$arrWettbewerb_kurzbz;
unset($arrWettbewerb_kurzbz);
}
elseif (isset($cWettbewerb_kurzbz['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$arrWettbewerb_kurzbz=array();
$arrWettbewerb_kurzbz[]=trim($cTeam_kurzbz_einladungen['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$arrWettbewerb_kurzbz;
unset($arrWettbewerb_kurzbz);
}
$qry.=" AND UPPER(tbl_match.wettbewerb_kurzbz) in ('".strtoupper(implode("','",$cWettbewerb_kurzbz))."') ";
}
# $qry.=" OFFSET 0 LIMIT ALL FOR SHARE OF tbl_match ;";
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$rows[]=$row;
}
$this->setWettbewerbeinladung($rows);
}
else
{
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerbeinladung();
}
//-------------------------------------------------------------------------------------------------
function unloadWettbewerbeinladungen()
{
$this->setError('');
$cSchemaSQL=$this->getschemaSQL();
$match_id=$this->getMatch_id();
if (empty($match_id))
{
$this->setError('Keine Match ID gefunden!');
return false;
}
$qry="";
$qry.="delete from ".$cSchemaSQL."tbl_match ";
$qry.=" * ";
$qry.=" where tbl_match.match_id='".addslashes(trim($match_id))."' ";
if($this->db_query($qry))
{
$this->setWettbewerbeinladung(null);
return true;
}
else
{
$this->setError($this->db_last_error());
return false;
}
return true;
}
} // Class komune_wettbewerb Ende
?>
-418
View File
@@ -1,418 +0,0 @@
<?php
//-------------------------------------------------------------------------------------------------
/* Copyright (C) 2008 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>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>,
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>.
*/
#--------------------------------------------------------------------------------------------------
/*
*
* @classe komune_wettbewerbteam
*
* @param connectSQL Datenbankverbindung
* @param uid Angemeleter Anwender
* @param team_kurzbz Team des Angemeleter Anwenders zum Wettbewerb
* @param wettbewerb_kurzbz Wettbewerbssubgruppen Key
*
* @return - kein Retourn des Konstruktors
*
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
class komune_wettbewerbteam extends basis_db
{
public $new;
public $newWettbewerbteam;
public $wettbewerbteam;
public $uid;
public $team_kurzbz;
public $team_kurzbz_old;
public $wettbewerb_kurzbz;
public $schemaSQL="kommune."; // string Datenbankschema
//-----Konstruktor
function __construct($uid="",$team_kurzbz="",$wettbewerb_kurzbz="")
{
parent::__construct();
$this->InitWettbewerbteam();
$this->setuid($uid);
$this->setTeam_kurzbz($team_kurzbz);
$this->setWettbewerb_kurzbz($wettbewerb_kurzbz);
}
//-----Initialisierung--------------------------------------------------------------------------------------------
function InitWettbewerbteam()
{
$this->setError('');
$this->setNewWettbewerbteam('');
$this->setWettbewerbteam('');
$this->setuid('');
$this->setTeam_kurzbz('');
$this->setTeam_kurzbz_old('');
$this->setWettbewerb_kurzbz('');
}
//-----NewRecord--------------------------------------------------------------------------------------------
function getNewRecord()
{
return $this->new;
}
function setNewRecord($switch)
{
$this->new=$switch;
}
//-----Error--------------------------------------------------------------------------------------------
function getError()
{
return $this->errormsg;
}
function setError($err)
{
$this->errormsg=$err;
}
//-----schemaSQL--------------------------------------------------------------------------------------------
function getSchemaSQL()
{
return $this->schemaSQL;
}
function setSchemaSQL($schemaSQL)
{
$this->schemaSQL=$schemaSQL;
}
//-----Neuer Datensatz--------------------------------------------------------------------------------------------
function getNewWettbewerbteam()
{
return $this->newWettbewerbteam;
}
function setNewWettbewerbteam($newWettbewerbteam)
{
$this->newWettbewerbteam=$newWettbewerbteam;
}
//-----Aenderung Datensatz wird wie Neuanlage gehandhabt -------------------------------------------------------------
function getUpdWettbewerbteam()
{
return $this->newWettbewerbteam;
}
function setUpdWettbewerbteam($newWettbewerbteam)
{
$this->newWettbewerbteam=trim($newWettbewerbteam);
}
//-----Aktueller Datensatz--------------------------------------------------------------------------------------------
function getWettbewerbteam()
{
return $this->wettbewerbteam;
}
function setWettbewerbteam($wettbewerbteam)
{
$this->wettbewerbteam=$wettbewerbteam;
}
//-----team_kurzbz--------------------------------------------------------------------------------------------
function getTeam_kurzbz()
{
return $this->team_kurzbz;
}
function setTeam_kurzbz($team_kurzbz)
{
$this->team_kurzbz=trim($team_kurzbz);
}
//-----team_kurzbz--------------------------------------------------------------------------------------------
function getTeam_kurzbz_old()
{
return $this->team_kurzbz_old;
}
function setTeam_kurzbz_old($team_kurzbz_old)
{
$this->team_kurzbz_old=trim($team_kurzbz_old);
}
//-----uid--------------------------------------------------------------------------------------------
function getUid()
{
return $this->uid;
}
function setUid($uid)
{
$this->uid=trim($uid);
}
//-----wettbewerb_kurzbz--------------------------------------------------------------------------------------------
function getWettbewerb_kurzbz()
{
return $this->wettbewerb_kurzbz;
}
function setWettbewerb_kurzbz($wettbewerb_kurzbz="")
{
$this->wettbewerb_kurzbz=trim($wettbewerb_kurzbz);
}
//-------------------------------------------------------------------------------------------------
function saveWettbewerbteam($newWettbewerbteam="")
{
// Initialisierung
$this->setError('');
// Plausib
if (!empty($newWettbewerbteam))
$this->setNewWettbewerbteam($newWettbewerbteam);
if (!is_array($this->getNewWettbewerbteam()))
{
$this->setError('Kein Wettbewerbsteam &uuml;bergeben');
return false;
}
$newWettbewerbteam=$this->getNewWettbewerbteam();
// Daten uebernahme
$cSchemaSQL=$this->getSchemaSQL();
$cTeam_kurzbz=$this->getTeam_kurzbz();
// Aenderungen muessen mit dem Team_kurzbz_old gekennzeichnet werden. Ansonst koennten falsche Daten geaendert werden
$cTeam_kurzbz_old=$this->getTeam_kurzbz_old();
$cUserUID=$this->getUid(); // Vor der Verarbeitung sicherstellen das Alle Anwender gelesen werden
$this->setUid('');
$this->setNewRecord(false);
if (!$origWettbewerbteam=$this->loadWettbewerbteam())
{
if ($this->getError()) // Beim Lesen ist ein Fehler aufgetreten
return false;
$this->setNewRecord(true);
}
$this->setUid($cUserUID);
unset($cUserUID);
if ($origWettbewerbteam && empty($cTeam_kurzbz_old)) // Datenrec bereits vorhanden
{
$this->setError('Das Team '.$cTeam_kurzbz.' ist bereits angelegt!');
return false;
}
$bTmpNewRecord=$this->getNewRecord(); // Neuanlage Switch sichern
// Aus dem Array newWettbewerbteam die Teaminformationen heraus holen
$cWettbewerb_kurzbz=(isset($newWettbewerbteam['wettbewerb_kurzbz']) ? $newWettbewerbteam['wettbewerb_kurzbz'] : '');
if (empty($cWettbewerb_kurzbz))
$cWettbewerb_kurzbz=(isset($newWettbewerbteam[0]['wettbewerb_kurzbz']) ? $newWettbewerbteam[0]['wettbewerb_kurzbz'] : '');
$team_bezeichnung=(isset($newWettbewerbteam['bezeichnung']) ? $newWettbewerbteam['bezeichnung'] : '');
$team_beschreibung=(isset($newWettbewerbteam['beschreibung']) ? $newWettbewerbteam['beschreibung'] : '');
$team_logo=(isset($newWettbewerbteam['logo']) ? $newWettbewerbteam['logo'] : null);
$team_rang=(isset($newWettbewerbteam['rang']) ? $newWettbewerbteam['rang'] : null);
// Ermitteln der Tabelle der Teamspieler
if (isset($newWettbewerbteam['array_user']))
$array_userUID=$newWettbewerbteam['array_user'];
else
{
$this->setError('Die Spieler / Team wurde nicht gefunden! ');
return false;
}
$qry="select * from ".$cSchemaSQL."tbl_teambenutzer , ".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.=" where tbl_wettbewerbteam.team_kurzbz =tbl_teambenutzer.team_kurzbz ";
$qry.=" and not ( UPPER(tbl_teambenutzer.team_kurzbz)='".addslashes(trim(strtoupper($cTeam_kurzbz_old)))."' and UPPER(tbl_teambenutzer.team_kurzbz)='".addslashes(trim(strtoupper($cTeam_kurzbz)))."' ) ";
$qry.=" and UPPER(tbl_teambenutzer.uid) in ('".strtoupper(implode("','",$array_userUID))."') ";
$qry.=" and UPPER(tbl_wettbewerbteam.wettbewerb_kurzbz)='".addslashes(trim(strtoupper($cWettbewerb_kurzbz)))."' ; ";
// Datenbankabfrage
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$this->setError(sprintf('Der Spieler %s wurde bereits im Team %s im Wettbewerb %s gefunden ! ',$row['uid'],$row['team_kurzbz'],$row['wettbewerb_kurzbz']));
return false;
}
}
$arrTmpCheckUID=array(); // Aus dem Array nur die Belegten UIDs suchen
for ($zeileIND=0;$zeileIND<count($array_userUID);$zeileIND++)
{
if (!empty($array_userUID[$zeileIND])) // Leere Daten entfernen (Inputmasken befuellung kann Wahllos erfolgen)
{
$array_userUID[$zeileIND]=trim($array_userUID[$zeileIND]);
$arrTmpCheckUID[]=$array_userUID[$zeileIND];
}
}
$array_userUID=$arrTmpCheckUID;
if (isset($arrTmpCheckUID)) unset($arrTmpCheckUID);
$this->setNewRecord($bTmpNewRecord);
$this->db_query(" BEGIN; ");
$qry="";
// Neuanlage - Insert
if ($this->getNewRecord())
{
$qry.=" INSERT into ".$cSchemaSQL."tbl_team (team_kurzbz,bezeichnung,beschreibung,logo) VALUES ('".addslashes(trim($cTeam_kurzbz))."','".addslashes(trim($team_bezeichnung))."','".addslashes(trim($team_beschreibung))."','".addslashes(trim($team_logo))."'); ";
for ($zeileIND=0;$zeileIND<count($array_userUID);$zeileIND++)
{
if (!empty($array_userUID[$zeileIND]))
$qry.=" INSERT into ".$cSchemaSQL."tbl_teambenutzer (uid, team_kurzbz) VALUES ('".addslashes(trim($array_userUID[$zeileIND]))."','".addslashes(trim($cTeam_kurzbz))."'); ";
}
$qry.=" INSERT into ".$cSchemaSQL."tbl_wettbewerbteam (team_kurzbz, wettbewerb_kurzbz,rang,punkte) VALUES ('".$cTeam_kurzbz."','".addslashes(trim($cWettbewerb_kurzbz))."',(select 1+count(wettbewerb_kurzbz) from ".$cSchemaSQL."tbl_wettbewerbteam where rang<9999 and upper(wettbewerb_kurzbz)=upper('".addslashes(trim($cWettbewerb_kurzbz))."')),0); ";
}
else
{
// Update Logo nur wenn Daten uebergeben wurden, sonst Logo auslassen
# if ($team_logo==null) $team_logo=(isset($origWettbewerbteam[0]['logo']) ? $origWettbewerbteam[0]['logo'] : null);
# if ($team_rang==null) $team_rang=(isset($origWettbewerbteam[0]['rang']) ? $origWettbewerbteam[0]['rang'] : null);
$qry.=" UPDATE ".$cSchemaSQL."tbl_team ";
$qry.=" set team_kurzbz='".addslashes(trim($cTeam_kurzbz))."',bezeichnung='".addslashes(trim($team_bezeichnung))."',beschreibung='".addslashes(trim($team_beschreibung))."'".($team_logo!=null?",logo='".addslashes($team_logo)."'":"");
$qry.=" WHERE upper(team_kurzbz)=upper('".$cTeam_kurzbz_old."'); ";
$qry.=" UPDATE ".$cSchemaSQL."tbl_wettbewerbteam set team_kurzbz='".addslashes(trim($cTeam_kurzbz))."'".($team_rang!=null?",rang=".$team_rang:"")." WHERE upper(team_kurzbz)=upper('".$cTeam_kurzbz_old."'); ";
// Alle bisher bestehenden DB-Eintraege in Array lesen fuer spaeteren vergleich ob Update/Delete
reset($origWettbewerbteam);
$arrTmpCheckUID=new stdClass;;
for ($zeileIND=0;$zeileIND<count($origWettbewerbteam);$zeileIND++)
{
$cTmpUID=trim($origWettbewerbteam[$zeileIND]['uid']);
$arrTmpCheckUID->$cTmpUID=$cTmpUID;
}
// Suchen Neuanlage - Update (nach Update den Array Eintrag entleeren sonst wird er nachher geloescht)
for ($zeileIND=0;$zeileIND<count($array_userUID);$zeileIND++)
{
$cTmpUID=trim($array_userUID[$zeileIND]);
if (isset($arrTmpCheckUID->$cTmpUID))
{
$qry.=" UPDATE ".$cSchemaSQL."tbl_teambenutzer set team_kurzbz='".addslashes(trim($cTeam_kurzbz))."' WHERE UPPER(uid)=UPPER('".addslashes($cTmpUID)."') AND upper(team_kurzbz)=upper('".$cTeam_kurzbz_old."'); ";
unset($arrTmpCheckUID->$cTmpUID);
}
elseif (!isset($arrTmpCheckUID->$cTmpUID))
{
$qry.=" INSERT into ".$cSchemaSQL."tbl_teambenutzer (uid, team_kurzbz) VALUES ('".addslashes(trim($cTmpUID))."','".addslashes(trim($cTeam_kurzbz))."'); ";
}
}
if (isset($zeileIND)) unset($zeileIND);
if (isset($array_userUID)) unset($array_userUID);
// Alle die noch in der DB-Alt Array sind muessen geloeschte sein
while (list( $key, $value ) = each($arrTmpCheckUID) )
$qry.=" DELETE from ".$cSchemaSQL."tbl_teambenutzer WHERE UPPER(uid)=UPPER('".addslashes($value)."') AND upper(team_kurzbz)=upper('".$cTeam_kurzbz_old."'); ";
if (isset($key)) unset($key);
if (isset($value)) unset($value);
if (isset($arrTmpCheckUID)) unset($arrTmpCheckUID);
}
if($this->db_query($qry))
{
$this->db_query(" COMMIT; ");
if (!$this->loadWettbewerbteam())
{
return false;
}
}
else
{
$this->db_query(" ROLLBACK; ");
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerbteam();
}
//-------------------------------------------------------------------------------------------------
function loadWettbewerbteam()
{
$this->setError('');
$cSchemaSQL=$this->getSchemaSQL();
$tmpUid=$this->getUid();
$cTeam_kurzbz=$this->getTeam_kurzbz_old();
if (empty($cTeam_kurzbz))
$cTeam_kurzbz=$this->getTeam_kurzbz();
$cWettbewerb_kurzbz=$this->getWettbewerb_kurzbz();
$qry="";
$qry.="SELECT * FROM ".$cSchemaSQL."tbl_teambenutzer,".$cSchemaSQL."tbl_team,".$cSchemaSQL."tbl_wettbewerbteam ";
$qry.=" WHERE UPPER(tbl_team.team_kurzbz)=UPPER(tbl_teambenutzer.team_kurzbz) ";
$qry.=" AND UPPER(tbl_wettbewerbteam.team_kurzbz)=UPPER(tbl_team.team_kurzbz) ";
// Check wie Postgre darauf reagiert Performenc
$qry.=" AND UPPER(tbl_wettbewerbteam.team_kurzbz)=UPPER(tbl_teambenutzer.team_kurzbz) ";
if (!empty($cTeam_kurzbz))
$qry.=" AND UPPER(tbl_teambenutzer.team_kurzbz)=UPPER('".$cTeam_kurzbz."') ";
if (!empty($tmpUid))
$qry.=" AND UPPER(tbl_teambenutzer.uid)=UPPER('".addslashes($tmpUid)."') ";
// Suche nach einem einzigen Wettbewerb
if (!is_array($cWettbewerb_kurzbz) && !empty($cWettbewerb_kurzbz) )
{
$qry.=" AND UPPER(tbl_wettbewerbteam.wettbewerb_kurzbz)=UPPER('".$cWettbewerb_kurzbz."') ";
}
elseif (is_array($cWettbewerb_kurzbz) && count($cWettbewerb_kurzbz)>0 )
{
if (isset($cWettbewerb_kurzbz[0]['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpWETTBEWERB=array();
for ($indZEILE=0;$indZEILE<count($selectWETTBEWERB);$indZEILE++)
$tmpWETTBEWERB[]=trim($selectWETTBEWERB[$indZEILE]['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$tmpWETTBEWERB;
unset($tmpWETTBEWERB);
}
elseif (isset($cWettbewerb_kurzbz['wettbewerb_kurzbz'])) // Check ob nicht kpl. Tablestruck in Array
{
$tmpWETTBEWERB=array();
$tmpWETTBEWERB[]=trim($selectWETTBEWERB['wettbewerb_kurzbz']);
$cWettbewerb_kurzbz=$tmpWETTBEWERB;
unset($tmpWETTBEWERB);
}
$qry.=" AND UPPER(tbl_wettbewerbteam.wettbewerb_kurzbz) in ('".strtoupper(implode("','",$cWettbewerb_kurzbz))."') ";
}
$qry.="ORDER BY tbl_wettbewerbteam.rang ;";
if($this->db_query($qry))
{
$rows=array();
while($row = $this->db_fetch_array())
{
$rows[]=$row;
}
$this->setWettbewerbteam($rows);
}
else
{
$this->setError($this->db_last_error());
return false;
}
return $this->getWettbewerbteam();
}
} // Class komune_wettbewerbteam Ende
?>
-93
View File
@@ -1,93 +0,0 @@
<?PHP /*
xslfo2pdf
Copyright (C) 2005 Tegonal GmbH
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.
Contact:
mike.toggweiler@tegonal.com
http://xslf2pdf.tegonal.com
*/ ?>
<?PHP
if ($_GET["file"] ) {
require_once("xslfo2pdf.php");
$buffer = file_get_contents($_GET["file"]);
$fo2pdf = new XslFo2Pdf();
if (!$fo2pdf->generatePdf($buffer, $_GET["file"], "D")) {
echo "Failed parsing file:".$_GET["file"]."<br>";
}
}
else if ($_FILES["file"]) {
$buffer = file_get_contents($_FILES['file']['tmp_name']);
require_once("xslfo2pdf.php");
$fo2pdf = new XslFo2Pdf();
if (!$fo2pdf->generatePdf($buffer, $_FILES['file']['name'], "D")) {
echo "Failed parsing file:".$_FILES['file']['name']."<br>";
//store file in specific directory that failed document may be checked by the developer team
file_put_contents("failed/".basename($_FILES['file']['name']));
echo "Stored file for inspection";
}
}
else {
?>
<div >
<a target="_new" href="http://www.tegonal.com/en"><img src="http://www.tegonal.com/images/tegonal_logo.png" border="0"></img></a>
<p>
Browse a local file to process:
<form name="extfile" action="index.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<input name="file" type="file" size="50" maxlength="100000" accept="text/*.xml">
<input type="submit" value="Process" />
</form>
</p>
<p>
Or choose one of the predefined examples<br />
<?PHP
$files = addDir("examples");
foreach ($files as $file) {
echo('<a href="index.php?file='.$file.'">'.$file.'</a>(<a href="'.$file.'">.xml</a>)<br>');
}
}
function addDir($dirname) {
$dir = dir($dirname);
$files = array();
while ($file = $dir->read()) {
if($file != "." && $file != "..") {
if (!is_dir($dirname."/".$file)) {
$path_parts = pathinfo($file);
if ($path_parts['extension'] == "xml" ||
$path_parts['extension'] == "fo") {
$files[$file] = $dirname . "/" . $file;
}
}
else {
$files += addDir($dirname."/".$file);
}
}
}
$dir->close();
asort($files);
return $files;
}
?>
</p>
<p>XPMT is kindly hosted on <br/><a class="normallink" href="http://sourceforge.net" target="_new">
<img src="http://sourceforge.net/sflogo.php?group_id=132608&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
</p>
</div>
</div>
-61
View File
@@ -1,61 +0,0 @@
<?PHP /*
xslfo2pdf
Copyright (C) 2005 Tegonal GmbH
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.
Contact:
mike.toggweiler@tegonal.com
http://xslf2pdf.tegonal.com
*/ ?>
<?PHP
if ($_GET["file"]) {
require_once("xslfo2pdf.php");
$buffer = file_get_contents($_GET["file"]);
$fo2pdf = new XslFo2Pdf();
if (!$fo2pdf->generatePdf($buffer, $_GET["file"], "D")) {
echo "Failed parsing file:".$_GET["file"]."<br>";
}
}
else {
$files = addDir("examples");
foreach ($files as $file) {
echo('<a href="xslfo2pdf_example.php?file='.$file.'">'.$file.'</a><br>');
}
}
function addDir($dirname) {
$dir = dir($dirname);
$files = array();
while ($file = $dir->read()) {
if($file != "." && $file != "..") {
if (!is_dir($dirname."/".$file)) {
$path_parts = pathinfo($file);
if ($path_parts['extension'] == "xml" ||
$path_parts['extension'] == "fo") {
$files[] = $dirname . "/" . $file;
}
}
else {
$files += addDir($dirname."/".$file);
}
}
}
$dir->close();
asort($files);
return $files;
}
?>
-196
View File
@@ -1,196 +0,0 @@
<?php
/* Copyright (C) 2008 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>.
* Gerald Simane-Senquens <gerald.simane-sequens@technikum-wien.at>.
*/
/*
* Aktualisiert in der Datenbank alle UID Felder und verlaengert diese von 16 auf 32 Zeichen
* Views die UIDs als Spalten enthalten werden geloescht und danach wieder angelegt
*/
require_once('../config/system.config.inc.php');
require_once('../include/basis_db.class.php');
$db = new basis_db();
//Alle Tabellen holen die UID als Spalte haben
//die 16 Zeichen lang ist.
$qry="
SELECT column_name as spalte, table_name as tabelle, table_schema as schema
FROM information_schema.columns
WHERE
column_name in('student_uid','uid','mitarbeiter_uid', 'insertvon','updatevon','koordinator',
'lektor','vorsitz','updateaktivvon','freigabevon_uid','vertretung_uid','freigabevon', 'lektor_uid')
AND data_type='character varying'
AND character_maximum_length='16'
ORDER BY table_name DESC, column_name";
$views=array();
$anzviews=0;
if($result = $db->db_query($qry))
{
$db->db_query('BEGIN');
while($row = $db->db_fetch_object($result))
{
//Alle Views die Spalten enthalten die geaendert werden loeschen
if(substr($row->tabelle,0,3)=='vw_')
{
$qry_view = "SELECT * FROM pg_views WHERE viewname='$row->tabelle'";
if($result_view = $db->db_query($qry_view))
{
if($row_view = $db->db_fetch_object($result_view))
{
$views[$anzviews]['definition']=$row_view->definition;
$views[$anzviews]['schema']=$row_view->schemaname;
$views[$anzviews]['viewname']=$row_view->viewname;
$anzviews++;
$qry_drp_view = "DROP VIEW $row_view->schemaname.$row_view->viewname;";
echo $qry_drp_view;
$db->db_query($qry_drp_view);
}
}
}
else
{
//Spalte in der Tabelle aendern
$qry_alter="ALTER TABLE $row->schema.$row->tabelle ALTER COLUMN $row->spalte TYPE varchar(32);";
echo $qry_alter.'<br>';
if($db->db_query($qry_alter))
echo "$row->tabelle : $row->spalte<br>";
else
echo "<b>Fehler: $qry_alter</b><br>";
}
}
// ----------- ort_kurzbz ------------ //
$qry="SELECT column_name as spalte, table_name as tabelle, table_schema as schema
FROM information_schema.columns
WHERE
column_name='ort_kurzbz'
AND data_type='character varying'
AND character_maximum_length='8'
ORDER BY table_name DESC, column_name";
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
//Alle Views die Spalten enthalten die geaendert werden loeschen
if(substr($row->tabelle,0,3)=='vw_')
{
$qry_view = "SELECT * FROM pg_views WHERE viewname='$row->tabelle'";
if($result_view = $db->db_query($qry_view))
{
if($row_view = $db->db_fetch_object($result_view))
{
$views[$anzviews]['definition']=$row_view->definition;
$views[$anzviews]['schema']=$row_view->schemaname;
$views[$anzviews]['viewname']=$row_view->viewname;
$anzviews++;
$qry_drp_view = "DROP VIEW $row_view->schemaname.$row_view->viewname;";
echo $qry_drp_view;
$db->db_query($qry_drp_view);
}
}
}
else
{
//Spalte in der Tabelle aendern
$qry_alter="ALTER TABLE $row->schema.$row->tabelle ALTER COLUMN $row->spalte TYPE varchar(16);";
echo $qry_alter.'<br>';
if($db->db_query($qry_alter))
echo "$row->tabelle : $row->spalte<br>";
else
echo "<b>Fehler: $qry_alter</b><br>";
}
}
}
//Views wieder anlegen
foreach ($views as $view)
{
$qry = "CREATE VIEW ".$view['schema'].".".$view['viewname']." AS ".$view['definition'];
if($db->db_query($qry))
echo $qry.'<br>';
else
echo '<b>Fehler beim Anlegen der View: '.$qry.'<br>';
}
//ViewBerechtigungen wieder einspielen
$qry ='
Grant select on campus.vw_benutzer to group "admin";
Grant select on campus.vw_benutzer to group "web";
Grant select on campus.vw_lehreinheit to group "admin";
Grant select on campus.vw_lehreinheit to group "web";
Grant select on campus.vw_mitarbeiter to group "admin";
Grant select on campus.vw_mitarbeiter to group "web";
Grant select on campus.vw_reservierung to group "admin";
Grant select on campus.vw_reservierung to group "web";
Grant select on campus.vw_stundenplan to group "admin";
Grant select on campus.vw_stundenplan to group "web";
Grant select on campus.vw_persongruppe to group "admin";
Grant select on campus.vw_persongruppe to group "web";
Grant select on campus.vw_student to group "admin";
Grant select on campus.vw_student to group "web";
Grant select on campus.vw_student_lehrveranstaltung to group "admin";
Grant select on campus.vw_student_lehrveranstaltung to group "web";
Grant select on lehre.vw_stundenplan to group "admin";
Grant select on lehre.vw_stundenplan to group "web";
Grant select on lehre.vw_stundenplandev to group "admin";
Grant select on lehre.vw_stundenplandev to group "web";
Grant select on lehre.vw_lva_stundenplan to group "admin";
Grant select on lehre.vw_lva_stundenplan to group "web";
Grant select on lehre.vw_lva_stundenplandev to group "admin";
Grant select on lehre.vw_lva_stundenplandev to group "web";
Grant select on lehre.vw_reservierung to group "admin";
Grant select on lehre.vw_reservierung to group "web";
Grant select on lehre.vw_fas_lehrveranstaltung to group "admin";
Grant select on lehre.vw_fas_lehrveranstaltung to group "web";
Grant select on vw_betriebsmittelperson to group "admin";
Grant select on vw_betriebsmittelperson to group "web";
Grant select on testtool.vw_ablauf to group "admin";
Grant select on testtool.vw_ablauf to group "web";
Grant select on testtool.vw_pruefling to group "admin";
Grant select on testtool.vw_pruefling to group "web";
Grant select on testtool.vw_auswertung to group "admin";
Grant select on testtool.vw_auswertung to group "web";
Grant select on testtool.vw_auswertung_kategorie to group "admin";
Grant select on testtool.vw_auswertung_kategorie to group "web";
Grant select on vw_studiensemester to group "admin";
--Grant select on public.vw_benutzerfunktion to group "admin";
Grant select on public.vw_prestudent to group "admin";
GRANT SELECT ON public.vw_prestudent to group web;
GRANT SELECT ON lehre.vw_stundenplandev_student_unr TO GROUP web;
GRANT SELECT ON lehre.vw_stundenplandev_student_unr TO GROUP admin;
';
echo $qry;
if(!$db->db_query($qry))
echo '<b>Fehler bei qry:</b>'.$qry;
if(!$db->db_query('COMMIT'))
echo '<b>Fehler beim Commit</b>';
else
echo '<br><br><b>Aktualisierung erfolgreich</b>';
}
?>
-33
View File
@@ -1,33 +0,0 @@
Anleitung zum Update von FH-Complete Version 1.2 auf Version 2.0
================================================================
Features der Version 2.0:
-------------------------
- Neues umfassenderes Rechtekonzept
- Datenbank UTF-8 kodiert
- Dateien die in der Datenbank gespeichert sind (PDFs, Bilder), sind nun base64 kodiert
- Organisationsstruktur kann über Organisationseinheiten abgebildet werden
- Datenbank Abstraktionsebene für den Einsatz alternativer Datenbanken
- Diverse Bugfixes
Update:
-------
Die folgenden Schritte sind für ein Upgrade von Version 1.2 auf Version 2.0 nötig:
- Updatescript /system/ExtendUidInDatabase.php starten - UID wird auf 32 Zeichen und Räume auf 16 Zeichen erweitert. (Funktioniert auch, wenn die Datenbank bereits als utf8 eingespielt ist) Laufzeit ca 20 min
- Datenbank Dump erstellen
- Datenbank als UTF8 neu einspielen
- Updatescript starten: /system/update12-20.php (Laufzeit: 2 sec)
- Konvertierung der PDFs und Bilder in der Datenbank von Hex auf base64: /system/hextobase64.php Laufzeit < 2 Minuten
- Konvertieren der Testtool-Daten: /system/TesttoolCleanEncoding.php Laufzeit: 2 sec
- Kopieren ALLER Scripten aus dem trunk inclusive der neuen configs (Scripten unter include/Excel, include/xslfo2pdf, include/xslfo2pdf/fpdf nicht vergessen)
- anpassen der configs (diese befinden sich ab sofort unter /config/)
- in der Tabelle public.tbl_vorlagestudiengang muss bei jeder Vorlage im Header das Encoding von "ISO-8859-15" auf "UTF-8" geändert werden
- die Files /trunk/system/xsl/Zeugnis_0_v1.xsl und ZeugnisEng_0_v1.xsl neu in die Tabelle public.tbl_vorlagestudiengang einspielen
(bei XSL-Vorlagen wird das Attribut content-length nun richtig(er) interpretiert. Deshalb muss an manchen Stellen dieser Wert angepasst werden an die tatsächlichen mm Werte)
- /system/checksystem.php starten
- Fertig!
Die Updatescripte im System Ordner verwenden alle die Config /config/system.config.inc.php
Die Scripten TesttoolCleanEncoding.php und hextobase64.php prüfen nicht ob das Script bereits ausgeführt wurde.
D.h. sie dürfen nur einmal gestartet werden, da die Daten sonst doppelt kodiert werden!!
-45
View File
@@ -1,45 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Roadmap</title>
</head>
<body>
<h1>Roadmap FH-Complete</h1>
<br>
<h2>Version 2.0</h2>
<ul>
<li>Erweiterte Architektur mit Basisklasse und DB-Abstraktion<br>
Einsatz von anderen DBMS wie Oracle oder Sybase (MSSQL) wird
m&ouml;glich</li>
<li>Rollenkonzept<br>
Berrechtigungen werden auf Rollen vergeben. Rollen k&ouml;nnen selbst
definiert werden.</li>
<li>Organisationseinheiten<br>
Als Basisstruktur wird eine rekursive Tabelle f&uuml;r
Organisationseinheiten eingef&uuml;hrt. Somit kann jede beliebige
Organisationsstruktur abgebildet werden. Studieng&auml;nge, Institute,
Kostenstellen, etc. werden dann auf OEen geh&auml;ngt.</li>
</ul>
Release: 1. Sept. 2009<br>
<br>
<h2>Version 2.2</h2>
<ul>
<li>einfache Modularchitektur</li>
<li>Projektverwaltungsmodul (F&amp;E BIS-Meldung)<br>
</li>
<li>einfaches mehrsprachiges CMS f&uuml;r CIS</li>
<li>XML/XSLT-Architektur f&uuml;r CIS<br>
</li>
</ul>
Release: 1. Sept. 2010<br>
<h2>Version 2.4</h2>
<ul>
<li>Ausbau LV-Plan (Schnittstellen, evtl. mehrere Zeitraster)<br>
</li>
<li>Integration von eGroupware<br>
</li>
</ul>
Release: 1. Sept. 2011<br>
<br>
</body>
</html>
-32
View File
@@ -1,32 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TesttoolCleanEncoding</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
/**
* Die Testtool Daten haben nach der Umstellung auf UTF8 ein Fehlerhaftes Encoding.
* Um dies zu bereinigen, muss dieses Script gestartet werden.
*
* ACHTUNG! Dieses Script darf nicht mehrmals auf die gleiche DB angewandt werden
*/
require_once('../config/system.config.inc.php');
require_once('../include/basis_db.class.php');
$db = new basis_db();
$db->db_query('BEGIN;');
$qry = "UPDATE testtool.tbl_frage_sprache SET text=convert_from(convert_to(text,'LATIN9'),'UTF8');
UPDATE testtool.tbl_vorschlag_sprache SET text=convert_from(convert_to(text,'LATIN9'),'UTF8') WHERE text<>'' and text is not null AND strpos(text,'ß')=0;";
if($db->db_query($qry))
echo "Aktualiserung erfolgreich";
else
echo "Fehler beim Aktualisieren:".$db->db_last_error();
$db->db_query('COMMIT;');
?>
</body>
</html>
-200
View File
@@ -1,200 +0,0 @@
<map version="0.9.0">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1263374154424" ID="ID_471564337" MODIFIED="1263374859450" TEXT="Firma">
<node CREATED="1263375363306" ID="ID_256219247" MODIFIED="1263375367578" POSITION="right" TEXT="Wo?">
<node CREATED="1263375008045" ID="ID_1507122203" MODIFIED="1266328965984" TEXT="Bestellung">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<ul>
<li>
Bestellung h&#228;ngt auf Standort.
</li>
<li>
Wenn optional eine Ansprechperson ausgew&#228;hlt wird, werden diese Kontaktdaten (FaxNummer) verwendet.
</li>
<li>
Vorausgew&#228;hlt wird die Kontaktperson aus der letzten Bestellung bei der gleichen Firma.
</li>
</ul>
</body>
</html>
</richcontent>
<node CREATED="1263377702917" ID="ID_1682615779" MODIFIED="1266329187998" TEXT="Lieferadressen">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
&#220;ber die tbl_standort wird die Standort-Adresse des Benutzers als Lieferadresse vorausgew&#228;hlt. Diese kann auf alle anderen Standort-Adressen ge&#228;ndert werden. GmbH
</body>
</html>
</richcontent>
</node>
<node CREATED="1263378163177" ID="ID_1716680379" MODIFIED="1263378165584" TEXT="Besteller">
<node CREATED="1263379642522" ID="ID_1173818220" MODIFIED="1263379644759" TEXT="Person"/>
<node CREATED="1263379647854" ID="ID_948357071" MODIFIED="1263379665802" TEXT="Firma die Bestellt"/>
</node>
<node CREATED="1263378281382" ID="ID_1757080766" MODIFIED="1266328811510" TEXT="Bestellnummer">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
Schema:
</p>
<ul>
<li>
Bestellung_id wird auf Bestellnummer kopiert.
</li>
</ul>
</body>
</html>
</richcontent>
</node>
<node CREATED="1263378351360" ID="ID_1889631166" MODIFIED="1263378354289" TEXT="Kostenstelle">
<node CREATED="1263378372810" ID="ID_853881088" MODIFIED="1263378377016" TEXT="Organisationseinheit"/>
</node>
<node CREATED="1263378541556" ID="ID_398359254" MODIFIED="1263379487063" TEXT="Projekt (optional)"/>
<node CREATED="1266329200388" ID="ID_1338939196" MODIFIED="1266329210151" TEXT="Template f&#xfc;r Bestellung">
<node CREATED="1266329275157" ID="ID_388004028" MODIFIED="1266329318934" TEXT="h&#xe4;ngt auf OE">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
verwendet wird die erste die im Baum gefunden wird.
</p>
</body>
</html>
</richcontent>
</node>
<node CREATED="1266329523636" ID="ID_689821816" MODIFIED="1266329543628" TEXT="muss kein PDF ergeben"/>
</node>
<node CREATED="1266329320742" ID="ID_1340046779" MODIFIED="1266329402740" TEXT="Rechnungsadressen">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
wie
</p>
</body>
</html>
</richcontent>
</node>
<node CREATED="1266329989261" ID="ID_1394802262" MODIFIED="1266330062776" TEXT="Unterschrift als Grafik?">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
Hier k&#246;nnte wirklich die Unterschrift vom obersten Freigeber verwendet werden.
</p>
</body>
</html>
</richcontent>
</node>
<node CREATED="1266330115411" ID="ID_755088728" MODIFIED="1266330422841" TEXT="Konto">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
Kostenstellenleiter kann sich aus dem bestehenden Kontorahmen verschiedene Konten f&#252;r seine Kostenstelle ausw&#228;hlen.
</p>
</body>
</html>
</richcontent>
</node>
<node CREATED="1266330485836" ID="ID_1123475806" MODIFIED="1266330488225" TEXT="Bericht">
<node CREATED="1266330490799" ID="ID_1732496060" MODIFIED="1266330508437" TEXT="Matrix Bestellungen/Konten"/>
<node CREATED="1266330511373" ID="ID_1515110412" MODIFIED="1266330518795" TEXT="Matrix Bestellungen/Projekte"/>
</node>
</node>
<node CREATED="1263375166897" ID="ID_1801119910" MODIFIED="1263375176181" TEXT="Projektarbeit">
<node CREATED="1263375198511" ID="ID_429711882" MODIFIED="1263375217261" TEXT="Berufspraktikum"/>
<node CREATED="1263375220355" ID="ID_1808182341" MODIFIED="1263375246015" TEXT="Projektarbeitsbetreuer">
<node CREATED="1266328827027" ID="ID_1909467504" MODIFIED="1266328849238" TEXT="Firmenbetreuer ist einer Firma zugeordnet"/>
</node>
</node>
<node CREATED="1263375116331" ID="ID_241137506" MODIFIED="1263375128511" TEXT="Betriebsmittel">
<node CREATED="1266327307866" ID="ID_848764622" MODIFIED="1266327314208" TEXT="Reparatur">
<node CREATED="1266328045783" ID="ID_195924258" MODIFIED="1266328169955" TEXT="bei Welcher Firma (Anmerkung)"/>
</node>
<node CREATED="1266327321534" ID="ID_386381454" MODIFIED="1266327344982" TEXT="Zuteilung Organisationseinheit"/>
<node CREATED="1266327349521" ID="ID_26128919" MODIFIED="1266327355410" TEXT="Zuteilung Person">
<node CREATED="1266327359579" ID="ID_1740997873" MODIFIED="1266327371222" TEXT="Datum von bis"/>
<node CREATED="1266327374219" ID="ID_1909929145" MODIFIED="1266327386509" TEXT="Kaution &#xfc;ber Konto"/>
<node CREATED="1266327451370" ID="ID_143017059" MODIFIED="1266327465481" TEXT="Datum R&#xfc;ckgabefrist"/>
</node>
<node CREATED="1266328018602" ID="ID_983489538" MODIFIED="1266328032315" TEXT="optionaler Verweis auf Bestellung"/>
</node>
<node CREATED="1263375026408" ID="ID_184537137" MODIFIED="1263375036792" TEXT="Organisationseinheit"/>
<node CREATED="1263375147640" ID="ID_1722259213" MODIFIED="1263375164658" TEXT="Lehrauftrag"/>
<node CREATED="1263375289953" ID="ID_115813900" MODIFIED="1263375297249" TEXT="PreInteressenten"/>
</node>
<node CREATED="1263375387346" ID="ID_1887819714" MODIFIED="1263375538199" POSITION="left" TEXT="Tag">
<node CREATED="1263375396681" ID="ID_1961756876" MODIFIED="1263375532731" TEXT="Partner"/>
<node CREATED="1263375406253" ID="ID_374534979" MODIFIED="1263375414382" TEXT="Schulen"/>
<node CREATED="1263375421988" ID="ID_1388610220" MODIFIED="1263375425446" TEXT="Lieferanten"/>
<node CREATED="1263375433075" ID="ID_206196011" MODIFIED="1263375439885" TEXT="Lektoren"/>
<node CREATED="1263375455157" ID="ID_471741296" MODIFIED="1263375458728" TEXT="Kunden"/>
<node CREATED="1263375461223" ID="ID_1999952010" MODIFIED="1263375463998" TEXT="Sponsoren"/>
</node>
<node CREATED="1263375585251" ID="ID_1612372534" MODIFIED="1263375592383" POSITION="right" TEXT="Typ">
<node CREATED="1263375677329" ID="ID_1019529139" MODIFIED="1263375681315" TEXT="Schulformen"/>
</node>
<node CREATED="1263375863234" ID="ID_453712036" MODIFIED="1263375866648" POSITION="left" TEXT="Standorte">
<node CREATED="1263375876619" ID="ID_195659885" MODIFIED="1263376629098" TEXT="Adresse (1:1)"/>
<node CREATED="1263375869470" ID="ID_1610538989" MODIFIED="1263376681081" TEXT="Person/Funktion (n:n)">
<node CREATED="1263377222733" ID="ID_1236560985" MODIFIED="1263377224330" TEXT="Kontakt"/>
</node>
<node CREATED="1263377216853" ID="ID_25819312" MODIFIED="1263377220558" TEXT="Kontakt"/>
</node>
<node CREATED="1263379520124" ID="ID_493781026" MODIFIED="1266327073117" POSITION="right" TEXT="Kundennummer">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
Wo wird die Kundenummer angeh&#228;ngt?
</p>
<p>
</p>
<ol>
<li>
zwischen Organisationseinheit und Firma<br />Vorerst werden nur die obersten Organisationseinheit verwendet (GmbH und FH TW)<br />Implementiert wird jedoch jetzt schon, dass die n&#228;chste/n&#228;heste Kundennummer verwendet wird.<br />
</li>
<li>
h&#228;ngt nur auf der Firma -&gt;<br />nein<br />
</li>
</ol>
</body>
</html>
</richcontent>
</node>
<node CREATED="1266327198308" ID="ID_1443789880" MODIFIED="1266327283793" POSITION="left" TEXT="Sperren">
<richcontent TYPE="NOTE"><html>
<head>
</head>
<body>
<p>
Wenn bei Firmen nichts mehr bestellt werden darf, kann der Administrator diese Firma sperren. (Blacklist) (Kein Tag)
</p>
</body>
</html>
</richcontent>
</node>
</node>
</map>
-84
View File
@@ -1,84 +0,0 @@
<?php
/* Copyright (C) 2012 FH 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: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/person.class.php');
$uid = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('admin'))
die('Sie haben keine Berechtigung für diese Seite');
//Alle Kartenuser holen
$qry = "
SELECT
nummer, betriebsmittelperson_id, person_id
FROM
wawi.tbl_betriebsmittelperson
JOIN wawi.tbl_betriebsmittel USING(betriebsmittel_id)
WHERE
tbl_betriebsmittelperson.uid is null
AND tbl_betriebsmittelperson.retouram is null
AND tbl_betriebsmittel.betriebsmitteltyp='Zutrittskarte'
AND EXISTS (SELECT * FROM public.tbl_benutzer WHERE person_id=tbl_betriebsmittelperson.person_id AND aktiv=true)";
$db = new basis_db();
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
if(!$user = getUidFromCardNumber($row->nummer))
{
$qry = "SELECT uid FROM public.tbl_benutzer WHERE aktiv AND person_id=".$db->db_add_param($row->person_id);
if($result_user = $db->db_query($qry))
{
//Wenn nur 1 aktiver User vorhanden ist, wird dieser genommen
if($db->db_num_rows($result_user)==1)
{
if($row_user = $db->db_fetch_object($result_user))
{
$user = $row_user->uid;
}
}
else
{
$pers = new person();
$pers->load($row->person_id);
echo "<br>Fot Found: $row->nummer PersonID: $row->person_id BetriebsmittelpersonID: $row->betriebsmittelperson_id $pers->vorname $pers->nachname<br>";
}
}
}
if($user!='')
{
$qry = "UPDATE wawi.tbl_betriebsmittelperson
SET uid=".$db->db_add_param($user)."
WHERE betriebsmittelperson_id=".$db->db_add_param($row->betriebsmittelperson_id);
if($db->db_query($qry))
echo '+';
else
echo '|';
}
}
}
?>
-100
View File
@@ -1,100 +0,0 @@
<?php
/* Copyright (C) 2010 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 >
*/
/**
* Scannt das documents Verzeichnis nach LV-Ordnern die nicht mehr benoetigt werden
*
* Parameter:
* stg_von ... Kennzahl ab der gescannt wird (inklusive)
* stg_bis ... Kennzahl bis zu der gescannt wird (inklusive)
*/
require_once('../config/cis.config.inc.php');
require_once('../include/basis_db.class.php');
$text='';
$getstr='';
$lv_arr = array();
$db = new basis_db();
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Unused Dirs</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Zu den folgenden Verzeichnissen sind keine aktiven Lehrveranstaltungen vorhanden:<br><br>
';
$qry = "SELECT * FROM lehre.tbl_lehrveranstaltung";
if (isset($_REQUEST["stg_von"]))
$getstr .= " studiengang_kz >= '".$_REQUEST["stg_von"]."'";
if (isset($_REQUEST["stg_bis"]))
{
if ($getstr != "")
$getstr .= " AND";
$getstr .= " studiengang_kz <= '".$_REQUEST["stg_bis"]."'";
}
if ($getstr != "")
$getstr = " WHERE".$getstr;
$qry.= ($getstr!=''?$getstr:' WHERE ').' AND tbl_lehrveranstaltung.aktiv ';
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$lv_arr[$row->studiengang_kz][$row->semester][$row->lehreverzeichnis] = 1;
}
}
$sqlstr = "SELECT studiengang_kz, lower(typ||kurzbz) as stg, max_semester FROM public.tbl_studiengang";
$sqlstr = $sqlstr.$getstr." ORDER BY typ, kurzbz";
if($result = $db->db_query($sqlstr))
{
while($row = $db->db_fetch_object($result))
{
echo "<hr><b>".$row->stg."</b><br>";
for ($i=1; $i <= $row->max_semester; $i++)
{
$dir = "../documents/".strtolower($row->stg)."/".$i."/";
echo "*** ".$i." ***<br>";
if (is_dir($dir))
{
$files = scandir($dir);
foreach ($files as $f)
{
if (is_dir($dir.$f) && $f != "." && $f != "..")
{
if (!key_exists($f, $lv_arr[$row->studiengang_kz][$i]))
{
echo $dir.$f.'<br>';
}
}
}
}
}
}
}
?>
</body>
</html>
-200
View File
@@ -1,200 +0,0 @@
<?php
/* Copyright (C) 2013 fhcomplete.org
*
* 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: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/studiengang.class.php');
require_once('../include/studienordnung.class.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/studienplan.class.php');
require_once('../include/lehrveranstaltung.class.php');
$uid = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('admin'))
die('Keine berechtigung');
$studiengang = new studiengang();
$studiengang->getAll('typ, kurzbz',true);
$db = new basis_db();
// Alle Studiengaenge durchlaufen
foreach($studiengang->result as $rowstg)
{
/*
$qry = "SELECT
studiensemester_kurzbz
FROM
lehre.tbl_lehrveranstaltung
JOIN lehre.tbl_lehreinheit USING(lehrveranstaltung_id)
JOIN public.tbl_studiensemester USING(studiensemester_kurzbz)
WHERE
tbl_lehrveranstaltung.studiengang_kz=".$db->db_add_param($rowstg->studiengang_kz, FHC_INTEGER)."
ORDER BY tbl_studiensemester.start LIMIT 1";
*/
$stsem = 'WS2013';
/*
if($result = $db->db_query($qry))
{
if($row = $db->db_fetch_object($result))
{
$stsem = $row->studiensemester_kurzbz;
}
}
*/
// eine Neue Studienordnung anlegen
$studienordnung = new studienordnung();
$studienordnung->studiengang_kz=$rowstg->studiengang_kz;
$studienordnung->bezeichnung=sprintf('%04s',$rowstg->studiengang_kz).'-'.$rowstg->kuerzel.'-'.$stsem;
$studienordnung->version='01';
$studienordnung->ects=($rowstg->max_semester*30);
$studienordnung->gueltigvon=$stsem;
$studienordnung->gueltigbis='';
$studienordnung->studiengangbezeichnung = $rowstg->bezeichnung;
$studienordnung->studiengangbezeichnung_englisch = $rowstg->english;
$studienordnung->studiengangkurzbzlang = $rowstg->kurzbzlang;
$studienordnung->insertvon = 'generate';
$studienordnung->akadgrad_id=1;
if(!$studienordnung->save())
{
echo 'Fehler bei Stg'.$rowstg->studiengang_kz.$studienordnung->errormsg;
continue;
}
else
$studienordnung_id = $studienordnung->studienordnung_id;
// Studienplan anlegen
if($rowstg->mischform)
{
$qry = "SELECT
distinct orgform_kurzbz
FROM
lehre.tbl_lehrveranstaltung
WHERE
tbl_lehrveranstaltung.studiengang_kz=".$db->db_add_param($rowstg->studiengang_kz);
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
if($row->orgform_kurzbz!='')
createStudienplan($row->orgform_kurzbz, $studienordnung_id, $rowstg, $studienordnung->bezeichnung);
}
}
}
else
{
createStudienplan($rowstg->orgform_kurzbz, $studienordnung_id, $rowstg, $studienordnung->bezeichnung);
}
}
/*
$qry = "SELECT * FROM public.tbl_studiensemester WHERE begin<now()";
$stsem = array();
if($result_stsem = $db->db_query($qry))
{
while($row_stsem = $db->db_fetch_object($result_stsem))
{
$stsem[] = $row_stsem->studiensemester_kurzbz;
}
}
*/
$qry="SELECT *, (Select max_semester FROM public.tbl_studiengang where studiengang_kz=a.studiengang_kz) as max_semester FROM lehre.tbl_studienordnung as a WHERE studienordnung_id=(Select max(studienordnung_id) FROM lehre.tbl_studienordnung WHERE studiengang_kz=a.studiengang_kz)";
if($result_sto = $db->db_query($qry))
{
while($row_sto = $db->db_fetch_object($result_sto))
{
echo $row_sto->bezeichnung.'<br>';
for($i=1;$i<=$row_sto->max_semester;$i++)
{
$qry="INSERT INTO lehre.tbl_studienordnung_semester(studienordnung_id, semester, studiensemester_kurzbz)
VALUES(".$db->db_add_param($row_sto->studienordnung_id).','.$i.',';
$stsem_arr=array('WS2013','SS2014','WS2014');
foreach($stsem_arr as $studiensemester)
{
$db->db_query($qry.$db->db_add_param($studiensemester).');');
}
}
}
}
function createStudienplan($orgform, $studienordnung_id, $rowstg, $studienordnungbezeichnung)
{
global $db;
$studienplan = new studienplan();
$studienplan->studienordnung_id = $studienordnung_id;
$studienplan->orgform_kurzbz=$orgform;
$studienplan->version = 'V1';
$studienplan->bezeichnung = $studienordnungbezeichnung.'-'.$orgform;
$studienplan->regelstudiendauer = $rowstg->max_semester;
$studienplan->sprache = $rowstg->sprache;
$studienplan->aktiv = true;
$wochen='15';
$qry = "SELECT wochen FROM public.tbl_semesterwochen WHERE studiengang_kz=".$db->db_add_param($rowstg->studiengang_kz)." LIMIT 1";
if($result = $db->db_query($qry))
{
if($row = $db->db_fetch_object($result))
{
$wochen = $row->wochen;
}
}
$studienplan->semesterwochen = $wochen;
$studienplan->testtool_sprachwahl = true;//$db->db_parse_bool($rowstg->testtool_sprachwahl);
$studienplan->insertvon = 'generate';
if(!$studienplan->save())
{
echo 'Studienplan failed for '.$rowstg->studiengang_kz.$studienplan->errormsg;
continue;
}
else
$studienplan_id = $studienplan->studienplan_id;
$qry = "SELECT
distinct lehrveranstaltung_id, semester, koordinator
FROM
lehre.tbl_lehrveranstaltung
WHERE
tbl_lehrveranstaltung.studiengang_kz=".$db->db_add_param($rowstg->studiengang_kz)."
AND (orgform_kurzbz is null or orgform_kurzbz=".$db->db_add_param($orgform).")
AND lehrtyp_kurzbz<>'lf'
AND tbl_lehrveranstaltung.aktiv";
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$lehrveranstaltung = new studienplan();
$lehrveranstaltung->new=true;
$lehrveranstaltung->studienplan_id=$studienplan_id;
$lehrveranstaltung->semester=$row->semester;
$lehrveranstaltung->pflicht=true;
$lehrveranstaltung->koordinator = $row->koordinator;
$lehrveranstaltung->lehrveranstaltung_id=$row->lehrveranstaltung_id;
$lehrveranstaltung->insertvon='generate';
$lehrveranstaltung->saveStudienplanLehrveranstaltung();
}
}
}
?>
-205
View File
@@ -1,205 +0,0 @@
<?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: Cbristian Paminger <cbristian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at> and
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>
*
*/
/**
* Dieses Script veraendert die Datenbank, damit die Dokumente (PDFs, Bilder, etc) die in
* der Datenbank gespeichert sind, nicht mebr HEX codiert, sondern base64 Codiert sind
*
* !!! Dieses Script muss von der CommandLine gestartet werden da es sonst zu einem Timeout kommt !!!
*/
header('Expires: -1');
header('Cache-Control: no-store, no-cache, must-revalidate' );
header('Pragma: no-cache' );
header('Content-Type: text/html;charset=UTF-8');
require_once('../config/system.config.inc.php');
require_once('../include/basis_db.class.php');
$next_row_counter=10;
$db = new basis_db();
if (!$db->db_query('BEGIN'))
die('Error bei begin');
echo "tbl_akte...".date('Y-m-d H:i:s')."<br>\n";
flush();
//Akte
$qry = "UPDATE public.tbl_akte SET inhalt = encode(decode(inhalt, 'hex'),'base64')";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntbl_akte...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
//Person
echo "tbl_person...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE public.tbl_person SET foto = encode(decode(foto, 'hex'),'base64') WHERE foto is not null";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntbl_person...".date('Y-m-d H:i:s')." ENDE ".$db->db_last_error()."<br>\n";
flush();
echo "<hr>\n";
//Testtool - tbl_frage_sprache.bild
echo "tbl_frage_sprache bild...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE testtool.tbl_frage_sprache SET bild = encode(decode(bild, 'hex'),'base64') WHERE bild is not null and bild<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntbl_frage_sprache bild...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
//Testtool - tbl_frage_sprache.bild
echo "tbl_frage_sprache audio...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE testtool.tbl_frage_sprache SET audio = encode(decode(audio, 'hex'),'base64') WHERE audio is not null AND audio<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntbl_frage_sprache audio...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
//Testtool - tbl_vorschlag_sprache.bild
echo "testtool.tbl_vorschlag_sprache bild...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE testtool.tbl_vorschlag_sprache SET bild = encode(decode(bild, 'hex'),'base64') WHERE bild is not null AND bild<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntesttool.tbl_vorschlag_sprache bild...".date('Y-m-d H:i:s')." ENDE <br>\n";
flush();
echo "<hr>\n";
//Testtool - tbl_vorschlag_sprache.audio
echo "testtool.tbl_vorschlag_sprache audio...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE testtool.tbl_vorschlag_sprache SET audio = encode(decode(audio, 'hex'),'base64') WHERE audio is not null AND audio<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ntesttool.tbl_vorschlag_sprache audio...".date('Y-m-d H:i:s')." ENDE <br>\n";
flush();
echo "<hr>\n";
//Kommune tbl_wettbewerb
echo "kommune.tbl_wettbewerb icon...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE kommune.tbl_wettbewerb SET icon = encode(decode(icon, 'hex'),'base64') WHERE icon is not null AND icon<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\nkommune.tbl_wettbewerb icon...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
//Kommune tbl_team
echo "kommune.tbl_team.logo...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE kommune.tbl_team SET logo = encode(decode(logo, 'hex'),'base64') WHERE logo is not null AND logo<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\nkommune.tbl_team logo...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
//tbl_sprache
echo "public.tbl_sprache flagge ...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE public.tbl_sprache SET flagge = encode(decode(flagge, 'hex'),'base64') WHERE flagge is not null AND flagge<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\npublic.tbl_sprache flagge...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
//tbl_erhalter
echo "public.tbl_erhalter logo ...".date('Y-m-d H:i:s')."<br>\n";
flush();
$qry = "UPDATE public.tbl_erhalter SET logo = encode(decode(logo, 'hex'),'base64') WHERE logo is not null AND logo<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\npublic.tbl_erhalter logo...".date('Y-m-d H:i:s')."<br>\n";
flush();
echo "<hr>\n";
$qry = "UPDATE campus.tbl_veranstaltungskategorie SET bild = encode(decode(bild, 'hex'),'base64') WHERE bild is not null AND bild<>''";
if(!$db->db_query($qry))
{
$db->db_query('ROLLBACK');
die('Fehler:'.$db->db_last_error());
}
echo "<br>\ncampus.tbl_veranstaltungskategorie bild...".date('Y-m-d H:i:s')." ENDE<br>\n";
flush();
echo "<hr>\n";
if(!$db->db_query('COMMIT'))
echo "<br>\n".date('Y-m-d H:i:s')." ERROR :".$db->db_last_error()."<br>\n".' line '. __LINE__ .' ; file ' . __FILE__;
else
echo "<br>\n<b>Aktualisierung abgeschlossen ".date('Y-m-d H:i:s')."</b>";
?>
-66
View File
@@ -1,66 +0,0 @@
<?php
/* Copyright (C) 2012 FH 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: Karl Burkhart <burkhart@technikum-wien.at>
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/basis_db.class.php');
?>
<html>
<head>
<title>Check Studenten</title>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="../skin/vilesci.css" type="text/css">
</head>
<body class="background_main">
<h2>Zuweisung von Zugangscodes zu Personen</h2>
<?php
$db = new basis_db();
$count = 0;
$countError=0;
$qry="SELECT person_id FROM public.tbl_person WHERE zugangscode is null";
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$qry_zugangscode = "UPDATE public.tbl_person Set zugangscode ='".uniqid()."' where person_id = '".$row->person_id."'";
if($db->db_query($qry_zugangscode))
$count+=1;
else
$countError+=1;
}
}
else
{
die('Es ist ein fehler bei der Abfrage aufgetreten');
}
echo $count." Datensätze wurden upgedatet dabei sind ".$countError." Fehler aufgetreten";
?>
</body>
</html>
-100
View File
@@ -1,100 +0,0 @@
<?php
/**
* Resettet den Usability Test auf der CIS-Redesign Seite
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/basis_db.class.php');
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Reset Usability Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h2>Reset Usability Test</h2>
<p>
<ul>
<li>Foto löschen</li>
<li>Fotostati löschen</li>
<li>Daten aus Urlaubstool löschen und Demodaten eintragen</li>
<li>Newseinträge löschen</li>
</ul>
</p>
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
<input type="submit" name="reset" value="Reset starten">
</form>';
/** echo '
<br />
<br />
<h2>Abgabetool</h2>
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
<input type="hidden" value="student1" name="uid">
<input type="submit" name="reset_abgabe" value="Projektabgaben von Student1 resetten">
</form>
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
<input type="hidden" value="student2" name="uid">
<input type="submit" name="reset_abgabe" value="Projektabgaben von Student2 resetten">
</form>
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
<input type="hidden" value="student3" name="uid">
<input type="submit" name="reset_abgabe" value="Projektabgaben von Student3 resetten">
</form>
'; */
if(isset($_POST['reset']))
{
/*echo ' <font color="green"><ul>
<li>Foto gelöscht</li>
<li>Fotostati gelöscht</li>
<li>Daten aus Urlaubstool gelöscht</li>
</ul></font> ';*/
$db = new basis_db();
$qry = "
delete from public.tbl_person_fotostatus where person_id in (30566,453);
delete from public.tbl_ampel_benutzer_bestaetigt where uid in ('gl1','if10b066');
update public.tbl_person set foto=NULL, foto_sperre=FALSE where person_id in (30566,453);
delete from campus.tbl_zeitsperre where mitarbeiter_uid='gl1';
INSERT INTO campus.tbl_zeitsperre (zeitsperretyp_kurzbz,mitarbeiter_uid,bezeichnung,vondatum,vonstunde,bisdatum,bisstunde,vertretung_uid,updateamum,updatevon,insertamum,insertvon,erreichbarkeit_kurzbz,freigabeamum,freigabevon) VALUES ('Urlaub', 'gl1', 'Urlaub', '2013-05-01', NULL, '2013-05-03', NULL, NULL,NULL,NULL, now(), 'gl1',NULL,now(), 'kindlm');
INSERT INTO campus.tbl_zeitsperre (zeitsperretyp_kurzbz,mitarbeiter_uid,bezeichnung,vondatum,vonstunde,bisdatum,bisstunde,vertretung_uid,updateamum,updatevon,insertamum,insertvon,erreichbarkeit_kurzbz,freigabeamum,freigabevon) VALUES ('Urlaub', 'gl1', 'Urlaub', '2013-05-06', NULL, '2013-05-10', NULL, NULL,NULL,NULL, now(), 'gl1',NULL,now(), 'kindlm');
INSERT INTO campus.tbl_zeitsperre (zeitsperretyp_kurzbz,mitarbeiter_uid,bezeichnung,vondatum,vonstunde,bisdatum,bisstunde,vertretung_uid,updateamum,updatevon,insertamum,insertvon,erreichbarkeit_kurzbz,freigabeamum,freigabevon) VALUES ('Urlaub', 'gl1', 'Urlaub', '2013-07-22', NULL, '2013-07-26', NULL, NULL,NULL,NULL, now(), 'gl1',NULL,now(), 'kindlm');
INSERT INTO campus.tbl_zeitsperre (zeitsperretyp_kurzbz,mitarbeiter_uid,bezeichnung,vondatum,vonstunde,bisdatum,bisstunde,vertretung_uid,updateamum,updatevon,insertamum,insertvon,erreichbarkeit_kurzbz,freigabeamum,freigabevon) VALUES ('Urlaub', 'gl1', 'Urlaub', '2013-07-29', NULL, '2013-08-02', NULL, NULL,NULL,NULL, now(), 'gl1',NULL,now(), 'kindlm');
delete from campus.tbl_news where insertvon='gl1';
delete from campus.tbl_contentsprache where insertvon='gl1';
delete from campus.tbl_content where insertvon='gl1';
";
if($db->db_query($qry))
echo '<font color="green">ERFOLGREICH BEENDET</font>';
else
echo '<font color="red">ERROR</font>'.$db->db_last_error();
}
/* if(isset($_POST['reset_abgabe']))
{
$uid=$_POST['uid'];
echo '<br />Resetting Abgabetool '.$uid.'...';
$db = new basis_db();
$qry = "
DELETE FROM campus.tbl_paabgabe
WHERE paabgabe_id IN(SELECT paabgabe_id
FROM
campus.tbl_paabgabe
JOIN lehre.tbl_projektarbeit USING(projektarbeit_id)
WHERE student_uid='".addslashes($uid)."');
DELETE FROM lehre.tbl_projektbetreuer WHERE projektarbeit_id IN(SELECT projektarbeit_id FROM lehre.tbl_projektarbeit WHERE student_uid='".addslashes($uid)."');
DELETE FROM lehre.tbl_projektarbeit WHERE student_uid='".addslashes($uid)."';
";
if($db->db_query($qry))
echo '<font color="green">done</font>';
else
echo '<font color="red">error</font>'.$db->db_last_error();
}*/
?>
-130
View File
@@ -1,130 +0,0 @@
<?php
/* Copyright (C) 2012 FH 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: Karl Burkhart <burkhart@technikum-wien.at>
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/basis_db.class.php');
require_once('../include/mail.class.php');
require_once('../include/person.class.php');
require_once('../include/kontakt.class.php');
?>
<html>
<head>
<title>Zugangscode Senden</title>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="../skin/vilesci.css" type="text/css">
</head>
<body class="background_main">
<h2>Email an Neuanfänger schicken</h2>
<?php
$db = new basis_db();
$count = 0;
$count_studenten = 0;
$countError = 0;
$qry = "SELECT * FROM public.tbl_benutzer
JOIN public.tbl_person USING(person_id)
WHERE uid LIKE '__12%'
AND foto is null";
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$kon_alt='';
$person = new person();
$person->load($row->person_id);
// private email holen
$kontakt = new kontakt();
$kontakt->load_persKontakttyp($row->person_id, 'email');
$zugangscode = $row->zugangscode;
$count_studenten+=1;
// Falls mehrere vorhanden sind, an alle schicken
foreach($kontakt->result as $kon)
{
if($kon_alt != $kon->kontakt)
{
if(sendMail($kon->kontakt, $row->nachname, $zugangscode))
{
echo $kon->kontakt.'</br>';
$count+=1;
}
else
$countError+=1;
}
$kon_alt = $kon->kontakt;
}
}
}
else
echo('Fehler bei der Abfrage aufgetreten');
echo $count.' Emails an '.$count_studenten.' Studenten geschickt. Es sind dabei '.$countError.' Fehler aufgetreten';
function sendMail($email, $name, $zugangscode)
{
// trim zugangscode
// an private email schicken
$msg = '<b>Sehr geehrter Herr/Frau '.$name.'</b><br><br>';
$msg.= 'Willkommen an der Fachhochschule Technikum Wien. <br><br>';
$msg.= 'Für Ihren FH-Ausweis, der gleichzeitig als Zutrittskarte dient, benötigen wir ein Foto von Ihnen.<br>';
$msg.= 'Bitte nutzen Sie den folgenden Link und den angegebenen Zugangscode um Ihr Foto hochzuladen.<br><br>';
$msg.= '<a href="https://cis.technikum-wien.at/cis/public/prestudententool/index.php">https://cis.technikum-wien.at/cis/public/prestudententool/index.php</a><br>';
$msg.= 'Zugangscode: '.trim($zugangscode).'<br><br>';
$msg.= 'Die Kriterien, die Ihr Foto erfüllen muss, finden Sie beim Upload oder unter <a href="https://cis.technikum-wien.at/cms/content.php?content_id=6174">https://cis.technikum-wien.at/cms/content.php?content_id=6174</a> <br><br>';
$msg.= 'Technische Unterstützung erhalten Sie unter <a href="mailto:support@technikum-wien.at">support@technikum-wien.at</a> <br><br>';
$msg.= 'Wir wünschen Ihnen einen erfolgreichen Start ins Studium!<br><br>';
$msg.= 'Fachhochschule Technikum Wien <br><br>';
$msg.= '---------------- <br><br>';
$msg.= '<b>Dear Mr/Ms '.$name.'</b><br><br>';
$msg.= 'Welcome to the University of Applied Sciences Technikum Wien.<br><br>';
$msg.= 'For your UAS identity card, which also serves as a key card, we need a photo of you.<br>';
$msg.= 'Please use the following link and the access code indicated in order to upload your photo.<br><br>';
$msg.= '<a href="https://cis.technikum-wien.at/cis/public/prestudententool/index.php?lang=English">https://cis.technikum-wien.at/cis/public/prestudententool/index.php</a><br>';
$msg.= 'Access code: '.trim($zugangscode).'<br><br>';
$msg.= 'You can find the criteria that your photo has to fulfil either when uploading or under <a href ="https://cis.technikum-wien.at/cms/content.php?content_id=6174&sprache=English">https://cis.technikum-wien.at/cms/content.php?content_id=6174</a><br><br>';
$msg.= 'Technical support is available under <a href="mailto:support@technikum-wien.at">support@technikum-wien.at</a> <br><br>';
$msg.= 'We wish you a successful start to your studies!<br><br>';
$msg.= 'University of Applied Sciences Technikum Wien';
$mail = new mail($email, 'no-reply', 'Fotoupload für Ihren FH-Ausweis', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
$mail->setHTMLContent($msg);
if($mail->send())
return true;
else
return false;
}
?>
</body>
</html>
-6
View File
@@ -1,6 +0,0 @@
<html>
<body>
<a href="sync_stpldev_stpl.php">LV-Plan Sync (Mail)</a>
<a href="sync_stpldev_stpl.php?sendmail=false">LV-Plan Sync (ohne Mails)</a>
</body>
</html>
-41
View File
@@ -1,41 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/wawi_kostenstelle.class.php');
$kostenstelle = new wawi_kostenstelle();
$kostenstelle->getAll();
$db = new basis_db();
foreach($kostenstelle->result as $row)
{
$qry = "INSERT INTO wawi.tbl_konto_kostenstelle(konto_id, kostenstelle_id, insertamum, insertvon)
SELECT konto_id, $row->kostenstelle_id, now(),'oesi' FROM wawi.tbl_konto WHERE kontonr::integer<100
AND konto_id NOT IN(SELECT konto_id FROM wawi.tbl_konto_kostenstelle WHERE kostenstelle_id='$row->kostenstelle_id')";
if(!$db->db_query($qry))
echo 'Failed:'.$qry;
}
echo '<br /><br />DONE';
?>
-174
View File
@@ -1,174 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
*/
/**
* Syncronisiert die Aufteilung von WaWi DB in FHComplete DB
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
if (!$conn_wawi = pg_pconnect(CONN_STRING_WAWI))
die('Es konnte keine Verbindung zum Server aufgebaut werden. *** File:='.__FILE__.' Line:='.__LINE__."\n");
$error_log='';
$update_log='';
$anzahl_aufteilungen=0;
$anzahl_insert=0;
$anzahl_update=0;
$anzahl_delete=0;
$anzahl_fehler=0;
$starttime=date("d.m.Y H:i:s");
?>
<html>
<head>
<title>Synchro - WaWi -&gt; FAS - Aufteilung</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
$qry="
SET CLIENT_ENCODING TO UNICODE;
SELECT
*, aufteilung.lupdate, aufteilung.cdate, bn_create.username_neu as insertvon, bn_update.username_neu as updatevon
FROM
aufteilung
JOIN studiengang USING(studiengang_id)
LEFT JOIN benutzer bn_update ON(aufteilung.luser=bn_update.user_id)
LEFT JOIN benutzer bn_create ON(aufteilung.luser=bn_create.user_id)
WHERE studiengang_id<>20
ORDER BY aufteilung_id
";
if($result=pg_query($conn_wawi, $qry))
{
$anzahl_aufteilungen=pg_num_rows($result);
while($row = pg_fetch_object($result))
{
//check, ob firma bereits übertragen
$qry_check="SELECT * FROM wawi.tbl_aufteilung WHERE aufteilung_id='".addslashes($row->aufteilung_id)."'";
if($result_check=$db->db_query($qry_check))
{
if($db->db_num_rows($result_check)>0)
{
$update = false;
//Aufteilung vorhanden - Änderungen im WaWi?
if($row_check = $db->db_fetch_object($result_check))
{
if($row_check->bestellung_id!=$row->bestellung_id)
{
$update = true;
$update_log.="\nBestellung_id von $row_check->bestellung_id auf $row->bestellung_id geändert";
}
if($row_check->oe_kurzbz!=$row->oe_kurzbz)
{
$update=true;
$update_log.="\nOrganisationseinheit von $row_check->oe_kurzbz auf $row->oe_kurzbz geändert";
}
if($row_check->anteil!=$row->anteil)
{
$update=true;
$update_log.="\nAnteil von $row_check->anteil auf $row->anteil geändert";
}
if($row_check->updatevon!=$row->username_neu)
{
$update=true;
$update_log.="\nUpdateVon von $row_check->updatevon auf $row->username_neu geändert";
}
if($update)
{
$qry = "UPDATE wawi.tbl_aufteilung SET
bestellung_id=".$db->addslashes($row->bestellung_id).",
oe_kurzbz=".$db->addslashes($row->oe_kurzbz).",
anteil=".$db->addslashes($row->anteil).",
updatevon=".$db->addslashes($row->updatevon).",
updateamum=".$db->addslashes($row->lupdate)."
WHERE aufteilung_id='".addslashes($row->aufteilung_id)."'";
if($db->db_query($qry))
{
$anzahl_update++;
}
else
{
$error_log.="\nFehler beim Update: $qry";
$anzahl_fehler++;
}
}
}
}
else
{
//Aufteilung nicht vorhanden
$qry="INSERT INTO wawi.tbl_aufteilung(aufteilung_id, bestellung_id, oe_kurzbz, anteil,
insertamum, insertvon, updateamum, updatevon) VALUES("
.$db->addslashes($row->aufteilung_id).","
.$db->addslashes($row->bestellung_id).","
.$db->addslashes($row->oe_kurzbz).","
.$db->addslashes($row->anteil).","
.$db->addslashes($row->cdate).","
.$db->addslashes($row->insertvon).","
.$db->addslashes($row->lupdate).","
.$db->addslashes($row->updatevon).");";
if($db->db_query($qry))
{
$anzahl_insert++;
}
else
{
$error_log.="\nFehler beim Insert: $qry";
$anzahl_fehler++;
}
}
}
else
{
$error_log.="\nFehler bei Select: $qry_check";
$anzahl_fehler++;
}
}
if(!$db->db_query("SELECT setval('wawi.seq_aufteilung_aufteilung_id',(SELECT max(aufteilung_id) FROM wawi.tbl_aufteilung));"))
{
$error_log.="\nFehler beim Update der Sequence";
$anzahl_fehler++;
}
//Mail versenden
$statistik="Aufteilung Default Sync\n--------------\n";
$statistik.="Beginn: ".$starttime." von ".DB_NAME." - Anzahl Einträge: ".$anzahl_aufteilungen."\n\n";
$statistik.="\nEingefügte Datensätze: $anzahl_insert";
$statistik.="\nGeänderte Datensätze: $anzahl_update";
$statistik.="\nFehler: $anzahl_fehler\n";
$synced=$statistik.$error_log.$update_log;
$mail = new mail(MAIL_ADMIN, "vilesci@".DOMAIN, "SYNC Aufteilung Default von ".DB_NAME, $synced);
$mail->setReplyTo("vilesci@".DOMAIN);
if(!$mail->send())
{
echo "<font color=\"#FF0000\">Fehler beim Versenden des Durchführungs-Mails!</font><br>";
}
}
?>
-174
View File
@@ -1,174 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
*/
/**
* Syncronisiert die Default Aufteilung von WaWi DB in FHComplete DB
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
if (!$conn_wawi = pg_pconnect(CONN_STRING_WAWI))
die('Es konnte keine Verbindung zum Server aufgebaut werden. *** File:='.__FILE__.' Line:='.__LINE__."\n");
$error_log='';
$update_log='';
$anzahl_aufteilungen=0;
$anzahl_insert=0;
$anzahl_update=0;
$anzahl_delete=0;
$anzahl_fehler=0;
$starttime = date("d.m.Y H:i:s");
?>
<html>
<head>
<title>Synchro - WaWi -&gt; FAS - Aufteilung Default</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
$qry="
SET CLIENT_ENCODING TO UNICODE;
SELECT
*, aufteilung_default.lupdate
FROM
aufteilung_default
JOIN studiengang USING(studiengang_id)
LEFT JOIN benutzer ON(aufteilung_default.luser=user_id)
WHERE studiengang_id<>20
ORDER BY aufteilung_id
";
if($result=pg_query($conn_wawi, $qry))
{
$anzahl_aufteilungen=pg_num_rows($result);
while($row = pg_fetch_object($result))
{
//check, ob firma bereits übertragen
$qry_check="SELECT * FROM wawi.tbl_aufteilung_default WHERE aufteilung_id='".addslashes($row->aufteilung_id)."'";
if($result_check=$db->db_query($qry_check))
{
if($db->db_num_rows($result_check)>0)
{
$update = false;
//Aufteilung vorhanden - Änderungen im WaWi?
if($row_check = $db->db_fetch_object($result_check))
{
if($row_check->kostenstelle_id!=$row->kostenstelle_id)
{
$update = true;
$update_log.="\nKostenstelle_id von $row_check->kostenstelle auf $row->kostenstelle_id geändert";
}
if($row_check->oe_kurzbz!=$row->oe_kurzbz)
{
$update=true;
$update_log.="\nOrganisationseinheit von $row_check->oe_kurzbz auf $row->oe_kurzbz geändert";
}
if($row_check->anteil!=$row->anteil)
{
$update=true;
$update_log.="\nAnteil von $row_check->anteil auf $row->anteil geändert";
}
if($row_check->updatevon!=$row->username_neu)
{
$update=true;
$update_log.="\nUpdateVon von $row_check->updatevon auf $row->username_neu geändert";
}
if($update)
{
$qry = "UPDATE wawi.tbl_aufteilung_default SET
kostenstelle_id=".$db->addslashes($row->kostenstelle_id).",
oe_kurzbz=".$db->addslashes($row->oe_kurzbz).",
anteil=".$db->addslashes($row->anteil).",
updatevon=".$db->addslashes($row->username_neu).",
updateamum=".$db->addslashes($row->lupdate)."
WHERE aufteilung_id='".addslashes($row->aufteilung_id)."'";
if($db->db_query($qry))
{
$anzahl_update++;
}
else
{
$error_log.="\nFehler beim Update: $qry";
$anzahl_fehler++;
}
}
}
}
else
{
//Aufteilung nicht vorhanden
$qry="INSERT INTO wawi.tbl_aufteilung_default(aufteilung_id, kostenstelle_id, oe_kurzbz, anteil,
insertamum, insertvon, updateamum, updatevon) VALUES("
.$db->addslashes($row->aufteilung_id).","
.$db->addslashes($row->kostenstelle_id).","
.$db->addslashes($row->oe_kurzbz).","
.$db->addslashes($row->anteil).","
.$db->addslashes($row->lupdate).","
.$db->addslashes($row->username_neu).","
.$db->addslashes($row->lupdate).","
.$db->addslashes($row->username_neu).");";
if($db->db_query($qry))
{
$anzahl_insert++;
}
else
{
$error_log.="\nFehler beim Insert: $qry";
$anzahl_fehler++;
}
}
}
else
{
$error_log.="\nFehler bei Select: $qry_check";
$anzahl_fehler++;
}
}
if(!$db->db_query("SELECT setval('wawi.seq_aufteilung_default_aufteilung_id',(SELECT max(aufteilung_id) FROM wawi.tbl_aufteilung_default));"))
{
$error_log.="\nFehler beim Update der Sequence";
$anzahl_fehler++;
}
//Mail versenden
$statistik="Aufteilung Default Sync\n--------------\n";
$statistik.="Beginn: ".$starttime." von ".DB_NAME." - Anzahl Einträge: ".$anzahl_aufteilungen."\n\n";
$statistik.="\nEingefügte Datensätze: $anzahl_insert";
$statistik.="\nGeänderte Datensätze: $anzahl_update";
$statistik.="\nFehler: $anzahl_fehler\n";
$synced=$statistik.$error_log.$update_log;
$mail = new mail(MAIL_ADMIN, "vilesci@".DOMAIN, "SYNC Aufteilung Default von ".DB_NAME, $synced);
$mail->setReplyTo("vilesci@".DOMAIN);
if(!$mail->send())
{
echo "<font color=\"#FF0000\">Fehler beim Versenden des Durchführungs-Mails!</font><br>";
}
}
?>
-287
View File
@@ -1,287 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
*/
/**
* Syncronisiert die Aufteilung von WaWi DB in FHComplete DB
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
require_once('../../include/benutzerberechtigung.class.php');
require_once('../../include/berechtigung.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
if (!$conn_wawi = pg_pconnect(CONN_STRING_WAWI))
die('Es konnte keine Verbindung zum Server aufgebaut werden. *** File:='.__FILE__.' Line:='.__LINE__."\n");
$error_log='';
$update_log='';
$anzahl=0;
$anzahl_insert=0;
$anzahl_update=0;
$anzahl_delete=0;
$anzahl_fehler=0;
$starttime=date("d.m.Y H:i:s");
checkBerechtigung('wawi/bestellung','Bestellungen verwalten');
checkBerechtigung('wawi/rechnung','Rechnungen verwalten');
checkBerechtigung('wawi/konto','Konten verwalten');
checkBerechtigung('wawi/kostenstelle','Kostenstellen verwalten');
checkBerechtigung('wawi/freigabe','Freigeben von Bestellungen');
checkBerechtigung('wawi/rechnung_freigeben','Freigeben von Rechnungen');
checkBerechtigung('wawi/rechnung_transfer','Setzen des TransferDatums von Rechnungen');
?>
<html>
<head>
<title>Synchro - WaWi -&gt; FAS - Berechtigung</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
/*
* Berechtigungen holen, Spalten:
* username_neu, lesen, schreiben, freigeben, verwalten, kostenstelle_id, oe_kurzbz
*
* Direkte Kostenstellenzuordnung
* UNION
* Direkte Studiengangszuordnung
*/
$qry="
SET CLIENT_ENCODING TO UNICODE;
SELECT
username_neu, lesen, schreiben, freigeben, verwalten, kostenstelle_id, null as oe_kurzbz
FROM
public.kostenstelle_benutzer
JOIN public.benutzer USING(user_id)
UNION
SELECT
username_neu, lesen, schreiben, freigeben, verwalten, null as kostenstelle_id, oe_kurzbz
FROM
public.studiengang_benutzer
JOIN public.benutzer USING(user_id)
JOIN public.studiengang USING(studiengang_id)
";
/*
* Wird nicht uebernommen:
*
* Kostenstellenzuordnung über Gruppen
* UNION
* Studiengangszuordnung über Gruppen
* UNION
SELECT
username_neu, lesen, schreiben, freigeben, verwalten, kostenstelle_id, null as oe_kurzbz
FROM
public.kostenstelle_gruppe
JOIN public.gruppe_benutzer USING(gruppe_id)
JOIN public.benutzer USING(user_id)
UNION
SELECT
username_neu, lesen, schreiben, freigeben, verwalten, null as kostenstelle_id, oe_kurzbz
FROM
public.studiengang_gruppe
JOIN public.gruppe_benutzer USING(gruppe_id)
JOIN public.benutzer USING(user_id)
JOIN public.studiengang USING(studiengang_id)
UNION
*/
if($result=pg_query($conn_wawi, $qry))
{
$anzahl=pg_num_rows($result);
while($row = pg_fetch_object($result))
{
if($row->username_neu=='test')
continue;
if($row->freigeben=='t' && $row->kostenstelle_id!='')
{
// wawi/freigabe suid kostenstelle_id
addBerechtigung($row->username_neu, 'wawi/freigabe', 'suid', null, $row->kostenstelle_id);
}
$art='';
if($row->lesen=='t')
$art='s';
if($row->schreiben=='t')
$art.='uid';
if($art!='')
{
// wawi/bestellung $art $kostenstelle_id/$oe_kurzbz
addBerechtigung($row->username_neu, 'wawi/bestellung', $art, $row->oe_kurzbz, $row->kostenstelle_id);
// wawi/rechnung $art $kostenstelle_id/$oe_kurzbz
addBerechtigung($row->username_neu, 'wawi/rechnung', $art, $row->oe_kurzbz, $row->kostenstelle_id);
// wawi/firma sui Firmenverwaltung fuer alle freischalten die eine berechtigung im wawi haben
addBerechtigung($row->username_neu, 'wawi/firma', 'sui', null, null);
}
}
/**
* Permissions aufgrund des Feldes perms
*/
//GST
$qry = "SELECT username_neu FROM public.benutzer WHERE perms='gst'";
if($result = pg_query($conn_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
addBerechtigung($row->username_neu, 'wawi/freigabe', 'suid', 'gst', null);
}
}
//REK
$qry = "SELECT username_neu FROM public.benutzer WHERE perms='rek'";
if($result = pg_query($conn_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
addBerechtigung($row->username_neu, 'wawi/freigabe', 'suid', 'etw', null);
}
}
//GMBH
$qry = "SELECT username_neu FROM public.benutzer WHERE perms='gmb'";
if($result = pg_query($conn_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
addBerechtigung($row->username_neu, 'wawi/freigabe', 'suid', 'gmbh', null);
}
}
//Admin
$qry = "SELECT username_neu FROM public.benutzer WHERE perms='admin'";
if($result = pg_query($conn_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
addBerechtigung($row->username_neu, 'wawi/konto', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/kostenstelle', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/bestellung', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/rechnung', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/rechnung_transfer', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/rechnung_freigeben', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/firma', 'suid', null, null);
addBerechtigung($row->username_neu, 'wawi/budget', 'suid', 'gst', null);
addBerechtigung($row->username_neu, 'wawi/storno', 'suid', 'gst', null);
}
}
//Mail versenden
$statistik="Berechtigung Sync\n--------------\n";
$statistik.="Beginn: ".$starttime." von ".DB_NAME." - Anzahl Einträge: ".$anzahl."\n\n";
$statistik.="\nEingefügte Datensätze: $anzahl_insert";
$statistik.="\nGeänderte Datensätze: $anzahl_update";
$statistik.="\nFehler: $anzahl_fehler\n";
$synced=$statistik.$error_log.$update_log;
$mail = new mail(MAIL_ADMIN, "vilesci@".DOMAIN, "SYNC Berechtigung von ".DB_NAME, $synced);
$mail->setReplyTo("vilesci@".DOMAIN);
if(!$mail->send())
{
echo "<font color=\"#FF0000\">Fehler beim Versenden des Durchführungs-Mails!</font><br>";
}
}
/**
* Prueft ob die Berechtigung (Benutzerrolle) vorhanden ist. Wenn nicht wird diese Angelegt
* @param $username
* @param $berechtigung_kurbz
* @param $art
* @param $oe_kurzbz
* @param $kostenstelle_id
*/
function addBerechtigung($username, $berechtigung_kurzbz, $art, $oe_kurzbz, $kostenstelle_id)
{
global $error_log, $anzahl_fehler, $anzahl_insert, $db;
$qry = "SELECT * FROM system.tbl_benutzerrolle
WHERE
uid='".addslashes($username)."'
AND berechtigung_kurzbz='".addslashes($berechtigung_kurzbz)."'";
if($oe_kurzbz!='')
$qry.=" AND oe_kurzbz='".addslashes($oe_kurzbz)."'";
if($kostenstelle_id!='')
$qry.=" AND kostenstelle_id='".addslashes($kostenstelle_id)."'";
if($art!='')
$qry.=" AND art='".addslashes($art)."'";
if($result = $db->db_query($qry))
{
if($db->db_num_rows($result)==0)
{
$rechte = new benutzerberechtigung();
$rechte->uid = $username;
$rechte->berechtigung_kurzbz = $berechtigung_kurzbz;
$rechte->art = $art;
$rechte->oe_kurzbz = $oe_kurzbz;
$rechte->kostenstelle_id = $kostenstelle_id;
$rechte->insertamum = date('Y-m-d H:i:s');
$rechte->inservon = 'Syncro';
$rechte->new = true;
if($rechte->save())
{
$anzahl_insert++;
}
else
{
$anzahl_fehler++;
$error_log.="\n".$rechte->errormsg;
}
}
}
}
/**
* Prueft ob eine Berechtigung vorhanden ist und legt diese ggf an
* @param $berechtigung_kurzbz
* @param $beschreibung
*/
function checkBerechtigung($berechtigung_kurzbz, $beschreibung)
{
global $error_log, $anzahl_fehler;
$berechtigung = new berechtigung();
if(!$berechtigung->load($berechtigung_kurzbz))
{
$berechtigung->berechtigung_kurzbz=$berechtigung_kurzbz;
$berechtigung->beschreibung=$beschreibung;
$berechtigung->new = true;
if(!$berechtigung->save())
{
$error_log.="\nFehler beim Anlegen der Berechtigung wawi/bestellung";
$anzahl_fehler++;
}
}
}
?>
-622
View File
@@ -1,622 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <burkhart@technikum-wien.at>.
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
require_once('../../include/datum.class.php');
$db = new basis_db();
$date = new datum();
$count_insert = 0;
$count_insert_detail = 0;
$count_insert_status = 0;
$count_update = 0;
$count_update_detail = 0;
$count_update = 0;
$count_delete = 0;
$error_count = 0;
$errormsg = '';
$starttime=date("d.m.Y H:i:s");
$bool_insert = false;
$firma_id = '';
if($con_wawi = pg_connect(CONN_STRING_WAWI))
{
if(!pg_query($con_wawi, 'SET CLIENT_ENCODING TO UNICODE;'))
{
$errormsg .= 'Fehler beim Setzen des Encodings';
}
$qry =" SELECT
*,
public.bestellung_freigegeben.bestellung_id as bestellung_id_freigegeben,
bestellung.titel as newtitel,
cbenutzer.username_neu as cusername,
lbenutzer.username_neu as lusername,
kst_benutzer.username_neu as kst_username,
rek_benutzer.username_neu as rek_username,
gst_benutzer.username_neu as gst_username,
gmb_benutzer.username_neu as gmb_username,
geliefert_benutzer.username_neu as geliefert_username,
besteller.username_neu as besteller_neu,
public.bestellung.firma_id as firma
FROM public.bestellung
LEFT JOIN public.bestellung_freigegeben USING (bestellung_id)
LEFT JOIN public.benutzer kst_benutzer ON (freigb_kst_user_id=kst_benutzer.user_id)
LEFT JOIN public.benutzer rek_benutzer ON (freigb_rek_user_id=rek_benutzer.user_id)
LEFT JOIN public.benutzer gst_benutzer ON (freigb_gst_user_id=gst_benutzer.user_id)
LEFT JOIN public.benutzer gmb_benutzer ON (freigabe_gmb_user_id=gmb_benutzer.user_id)
LEFT JOIN public.benutzer geliefert_benutzer ON(geliefert_user_id=geliefert_benutzer.user_id)
LEFT JOIN public.benutzer cbenutzer ON (public.bestellung.cuser=cbenutzer.user_id)
LEFT JOIN public.benutzer lbenutzer ON (public.bestellung.luser=lbenutzer.user_id)
LEFT JOIN public.benutzer besteller ON (public.bestellung.kontaktperson=besteller.user_id)
ORDER BY bestellung_id DESC";
if($result = pg_query($con_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
// firma id joinen
if ( $row->firma != '')
{
$qry_firma = "SELECT firma_id from public.tbl_firma where ext_id = '$row->firma'";
if($result_firma = $db->db_query($qry_firma))
{
if($row_firma = $db->db_fetch_object($result_firma))
{
$firma = $row_firma->firma_id;
}
}
else
{
//fehler aufgetreten
$error_count++;
$errormsg.= $qry_firma.' '.pg_last_error($con_wawi);
}
}
else
{
$firma = null;
}
// ob es den eintrag schon gibt.
$qry = "SELECT * FROM wawi.tbl_bestellung WHERE bestellung_id=$row->bestellung_id;";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)>0)
{
$bool_insert=false;
if($row_neu = $db->db_fetch_object($result_check))
{
//update der bestellung
if($row->bestellung_id_freigegeben != null)
$freigegeben = "t";
else
$freigegeben = "f";
if($row_neu->besteller_uid != $row->besteller_neu || $row_neu->kostenstelle_id != $row->kostenstelle_id || $row_neu->konto_id != $row->konto_id || $row_neu->firma_id != $firma || $row_neu->bestell_nr != $row->bestellnr ||
$row_neu->titel != $row->newtitel || $row_neu->bemerkung != $row->bemerkungen || $row_neu->liefertermin != $row->liefertermin || $row_neu->updatevon != $row->lusername ||
$row_neu->insertvon != $row->cusername || $date->formatDatum($row_neu->updateamum, 'Y-m-d H:i:s') != $date->formatDatum($row->lupdate, 'Y-m-d H:i:s') ||
$date->formatDatum($row_neu->insertamum, 'Y-m-d H:i:s') != $date->formatDatum($row->erstellung, 'Y-m-d H:i:s') || $row_neu->freigegeben!=$freigegeben)
{
$qry="UPDATE wawi.tbl_bestellung SET besteller_uid = ".$db->addslashes($row->besteller_neu).", kostenstelle_id = ".$db->addslashes($row->kostenstelle_id).", konto_id = ".$db->addslashes($row->konto_id).", firma_id =
".$db->addslashes($firma)." ,bestell_nr = ".$db->addslashes($row->bestellnr).", titel = ".$db->addslashes($row->newtitel).", bemerkung = ".$db->addslashes($row->bemerkungen).", freigegeben=".($freigegeben=='t'?'true':'false').", liefertermin=
".$db->addslashes($row->liefertermin).", updateamum = ".$db->addslashes($row->lupdate).", updatevon = ".$db->addslashes($row->lusername).", insertamum = ".$db->addslashes($row->erstellung).", insertvon =
".$db->addslashes($row->cusername)." WHERE bestellung_id = ".$db->addslashes($row->bestellung_id).";";
if($db->db_query($qry) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry.' '.$db->db_last_error();
}
$count_update++;
$errormsg.= "Update Bestellung_id: ".$row->bestellung_id.'<br>';
}
}
if($row->freigb_kst != '')
{
// gibt es schon die freigabe
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Freigabe' AND oe_kurzbz is null;";
// echo $qry;
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->kst_username).",null,".$db->addslashes($row->freigb_kst).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
// Prüfung ob sich Freigabe geändert hat
if($row->freigb_rek != '')
{
// gibt es schon die freigabe
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Freigabe' and oe_kurzbz = 'etw'";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->rek_username).",'etw',".$db->addslashes($row->freigb_rek).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
if($row->freigb_gst != '')
{
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Freigabe' and oe_kurzbz = 'gst';";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->gst_username).",'gst',".$db->addslashes($row->freigb_gst).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
if($row->freigabe_gmb != '')
{
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Freigabe' and uid = ".$db->addslashes($row->gmb_username)." and oe_kurzbz = 'gmbh'";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->gmb_username).",'gmbh',".$db->addslashes($row->freigabe_gmb).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
if($row->geliefert != '')
{
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Lieferung' and uid = ".$db->addslashes($row->geliefert_username).";";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Lieferung').",".$db->addslashes($row->geliefert_username).",null,".$db->addslashes($row->geliefert).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
if($row->bestellung != '')
{
$qry = "SELECT * FROM wawi.tbl_bestellung_bestellstatus where bestellung_id = ".$db->addslashes($row->bestellung_id)." and bestellstatus_kurzbz = 'Bestellung'";
if($result_check = $db->db_query($qry))
{
if($db->db_num_rows($result_check)==0)
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Bestellung').",null, null,".$db->addslashes($row->bestellung).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
}
else
{
// insert bestellung
if($row->bestellung_id_freigegeben != null)
$freigegeben = "true";
else
$freigegeben = "false";
// lieferadresse,rechnungsadresse = immer 1 -> public.tbl_adresse id1
$qry="INSERT INTO wawi.tbl_bestellung(bestellung_id, besteller_uid, kostenstelle_id, konto_id, firma_id, lieferadresse,
rechnungsadresse, freigegeben, bestell_nr, titel, bemerkung, liefertermin, updateamum, updatevon, insertamum, insertvon,
ext_id) VALUES (
".$db->addslashes($row->bestellung_id).",".$db->addslashes($row->besteller_neu).",".$db->addslashes($row->kostenstelle_id).",
".$db->addslashes($row->konto_id).",".$db->addslashes($firma).",".$db->addslashes('1').",".$db->addslashes('1').",
".$freigegeben.",".$db->addslashes($row->bestellnr).",".$db->addslashes($row->newtitel).",".$db->addslashes($row->bemerkungen).",
".$db->addslashes($row->liefertermin).",".$db->addslashes($row->lupdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->erstellung).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->bestellung_id).")";
//echo $qry;
if($db->db_query($qry) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry.' '.$db->db_last_error();
}
$bool_insert=true;
$count_insert++;
// insert tbl_bestellung_bestellstatus
if($row->freigb_kst != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->kst_username).",null,".$db->addslashes($row->freigb_kst).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
if($row->freigb_rek != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->rek_username).",'etw',".$db->addslashes($row->freigb_rek).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
if($row->freigb_gst != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->gst_username).",'gst',".$db->addslashes($row->freigb_gst).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
if($row->freigabe_gmb != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Freigabe').",".$db->addslashes($row->gmb_username).",'gmbh',".$db->addslashes($row->freigabe_gmb).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
if($row->geliefert != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Lieferung').",".$db->addslashes($row->geliefert_username).",null,".$db->addslashes($row->geliefert).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
if($row->bestellung != '')
{
$qry_stati = "INSERT INTO wawi.tbl_bestellung_bestellstatus(bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES(
".$db->addslashes($row->bestellung_id).",".$db->addslashes('Bestellung').",null, null,".$db->addslashes($row->bestellung).",
".$db->addslashes($row->cusername).",".$db->addslashes($row->cdate).",".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).")";
if($db->db_query($qry_stati) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry_stati.' '.$db->db_last_error();
}
$count_insert_status++;
}
}
}
// alle bestelldetails zu bestellung holen
$qry = "SELECT
*, benutzer.username_neu as lusername
FROM
public.bestelldetail
LEFT JOIN public.benutzer ON(bestelldetail.luser=benutzer.user_id)
WHERE bestellung_id = $row->bestellung_id";
if($result_detail = pg_query($con_wawi, $qry))
{
while($row = pg_fetch_object($result_detail))
{
//echo $row->bestelldetail_id."<br>";
// ob eintrag in neuer Tabelle schon vorhanden ist
$qry = "SELECT * FROM wawi.tbl_bestelldetail WHERE bestelldetail_id = $row->bestelldetail_id";
if($bool_insert || $result_check = $db->db_query($qry))
{
if($bool_insert || $db->db_num_rows($result_check)==0)
{
// insert bestelldetails
$qry = "INSERT INTO wawi.tbl_bestelldetail (bestelldetail_id, bestellung_id, position, menge, verpackungseinheit,
beschreibung, artikelnummer, preisprove, mwst, erhalten, sort, text, insertamum, insertvon, updateamum, updatevon)
VALUES (
".$db->addslashes($row->bestelldetail_id).",".$db->addslashes($row->bestellung_id).",".$db->addslashes($row->pos).",
".$db->addslashes($row->menge).",".$db->addslashes($row->ve).",".$db->addslashes($row->beschreibung).",
".$db->addslashes($row->artikelnr).",".$db->addslashes($row->preisve).",".$db->addslashes($row->mwst).",
".$db->addslashes($row->erhalten).",".$db->addslashes($row->pos).", false ,".$db->addslashes($row->lupdate).",
".$db->addslashes($row->lusername).",".$db->addslashes($row->lupdate).",".$db->addslashes($row->lusername).")";
//echo $qry;
if($db->db_query($qry) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry.' '.$db->db_last_error();
}
$count_insert_detail++;
}
else
{
// update bestelldetails
if($row_neu = $db->db_fetch_object($result_check))
{
if($row_neu->bestellung_id != $row->bestellung_id || $row_neu->position != $row->pos || $row_neu->menge != $row->menge ||$row_neu->verpackungseinheit != $row->ve ||
$row_neu->beschreibung != $row->beschreibung || $row_neu->artikelnummer != $row->artikelnr || round($row_neu->preisprove,2) != round($row->preisve,2) || $row_neu->mwst != $row->mwst)
{
//echo $row->preisve."<br>";
//echo $row_neu->preisprove."<br><br>";
$qry = "UPDATE wawi.tbl_bestelldetail SET position =
".$db->addslashes($row->pos).", menge = ".$db->addslashes($row->menge).", verpackungseinheit = ".$db->addslashes($row->ve).", beschreibung =
".$db->addslashes($row->beschreibung).", artikelnummer = ".$db->addslashes($row->artikelnr).", preisprove =
".$db->addslashes($row->preisve).", mwst = ".$db->addslashes($row->mwst).", erhalten = ".$db->addslashes($row->erhalten).", sort =
".$db->addslashes($row->pos).", text = false, insertamum = ".$db->addslashes($row->lupdate).", insertvon = ".$db->addslashes($row->lusername).", updateamum =
".$db->addslashes($row->lupdate).", updatevon = ".$db->addslashes($row->lusername)." WHERE bestelldetail_id = ".$db->addslashes($row->bestelldetail_id).";";
if($db->db_query($qry) != true)
{
// Fehler
$error_count++;
$errormsg.= $qry.' '.$db->db_last_error();
}
$count_update_detail++;
$errormsg.= "Update Bestelldetail_id: ".$row->bestelldetail_id.'<br>';
}
}
}
}
}
}
} // ende while
}
else
{
$error_count++;
$errormsg.= "Verbindung zu Datenbank fehlgeschlagen.";
}
// delete --> bestellungen die es im wawi nicht mehr gibt
$qry_delete = "DELETE
FROM
wawi.tbl_bestellung
WHERE NOT EXISTS (
SELECT bestellung_id FROM
dblink(
'".CONN_STRING_WAWI."'::text,
'SELECT bestellung_id FROM public.bestellung WHERE bestellung_id=' || tbl_bestellung.bestellung_id
)
as foo(bestellung_id integer));";
if($result_delete = $db->db_query($qry_delete))
{
$count_delete += $db->db_affected_rows($result_delete);
}
else
{
$error_count++;
$errormsg.= "Fehler beim Löschen der Bestellungen! ".$db->db_last_error();
}
// delete --> bestelldetails die es im wawi nicht mehr gibt
$qry_delete = "DELETE
FROM
wawi.tbl_bestelldetail
WHERE NOT EXISTS (
SELECT bestelldetail_id FROM
dblink(
'".CONN_STRING_WAWI."'::text,
'SELECT bestelldetail_id FROM public.bestelldetail WHERE bestelldetail_id=' || tbl_bestelldetail.bestelldetail_id
)
as foo(bestelldetail_id integer));";
if($result_delete = $db->db_query($qry_delete))
{
$count_delete += $db->db_affected_rows($result_delete);
}
else
{
$error_count++;
$errormsg.= "Fehler beim Löschen der Bestelldetails! ".$db->db_last_error();
}
if ($count_insert >0)
{
$max_qry= "SELECT MAX(bestellung_id) as max FROM wawi.tbl_bestellung";
if($result_max = $db->db_query($max_qry))
{
if($row_max = $db->db_fetch_object($result_max))
{
$set_qry ="SELECT setval('wawi.seq_bestellung_bestellung_id', $row_max->max)";
$db->db_query($set_qry);
}
else
{
$error_count++;
$errormsg.= $set_qry.' '.$db->db_last_error();
}
}
else
$error_count++;
}
if ($count_insert_detail >0)
{
$max_qry= "SELECT MAX(bestelldetail_id) as max from wawi.tbl_bestelldetail";
if($result_max = $db->db_query($max_qry))
{
if($row_max = $db->db_fetch_object($result_max))
{
$set_qry ="SELECT setval('wawi.seq_bestelldetail_bestelldetail_id', $row_max->max)";
$db->db_query($set_qry);
}
else
{
$error_count++;
$errormsg.= $set_qry.' '.$db->db_last_error();
}
}
else
$error_count++;
}
if ($count_insert_status >0)
{
$max_qry= "SELECT MAX(bestellung_bestellstatus_id) as max from wawi.tbl_bestellung_bestellstatus";
if($result_max = $db->db_query($max_qry))
{
if($row_max = $db->db_fetch_object($result_max))
{
$set_qry ="SELECT setval('wawi.seq_bestellung_bestellstatus_bestellung_bestellstatus_id', $row_max->max)";
$db->db_query($set_qry);
}
else
{
$error_count++;
$errormsg.= $set_qry.' '.$db->db_last_error();
}
}
else
$error_count++;
}
echo $errormsg;
$send_msg = "
Bestellungen Syncro
Beginn: ".$starttime." von ".DB_NAME."
$count_update Bestellungen wurden geändert.
$count_update_detail Bestelldetails wurden geändert.
$count_insert Bestellungen wurden hinzugefügt.
$count_insert_detail Bestelldetails wurden hinzugefügt.
$count_insert_status Bestellstati wurden hinzugefügt.
$count_delete Bestellungen wurden gelöscht.
$error_count Fehler sind dabei aufgetreten.
";
echo $send_msg;
$mail = new mail(MAIL_ADMIN, 'vilesci@technikum-wien.at', 'WaWi Syncro - Bestellung', $send_msg.$errormsg);
if(!$mail->send())
echo 'Fehler beim Senden des Mails';
else
echo '<br> Mail verschickt!';
}
?>
-213
View File
@@ -1,213 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <burkhart@technikum-wien.at>.
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
require_once('../../include/datum.class.php');
$errormsg = '';
$ausgabe = '';
$updated_lines = '';
$error_count=0;
$insert_count=0;
$update_count=0;
$interval ='';
$date = new datum();
$db = new basis_db();
//Datenbankverbindung zur WaWi Datenbank herstellen
if ($conn_wawi = pg_pconnect(CONN_STRING_WAWI))
{
//Encoding auf UTF8 setzen, da die WaWi Datenbank LATIN9 kodiert ist
if(!pg_query($conn_wawi, 'SET CLIENT_ENCODING TO UNICODE;'))
{
$errormsg .= 'Fehler beim Setzen des Encodings';
$error_count++;
}
//Alle Kontoeintraege aus der WaWi Datenbank holen
$qry = 'SELECT
*,
cbenutzer.username as cusername,
lbenutzer.username as lusername,
konto.lupdate as lkontoupdate
FROM
public.konto
LEFT JOIN public.benutzer cbenutzer ON (cuser=user_id)
LEFT JOIN public.benutzer lbenutzer ON (konto.luser=lbenutzer.user_id)
;';
if($result = pg_query($conn_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
//Dazupassenden Eintrag in der neuen Datenbank suchen
$qry = "SELECT *, beschreibung[1] AS first_beschreibung FROM wawi.tbl_konto WHERE konto_id='".addslashes($row->konto)."'";
if($result_neu = $db->db_query($qry))
{
if($db->db_num_rows($result_neu)>0)
{
//Wenn der Eintrag in der neuen Datenbank bereits vorhanden ist -> Update
if($row_neu = $db->db_fetch_object($result_neu))
{
$update = 'UPDATE wawi.tbl_konto SET ';
$bedingung = '';
//Spalten ueberpruefen
if($row_neu->kontonr != $row->kontonr)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " kontonr=".$db->addslashes($row->kontonr);
$updated_lines .= "kontonr von: \"".$row_neu->kontonr."\" auf: \"".$row->kontonr."\"\n";
$update_count++;
}
//Wenn sich Beschreibung ändert, ändert sich kurzbeschreibung auch mit
if($row_neu->first_beschreibung != $row->beschreibung)
{
$kurzbz = substr($row->beschreibung, 0, 32);
if($bedingung!='')
$bedingung.=',';
$bedingung .= " beschreibung[1]=".$db->addslashes($row->beschreibung);
$bedingung .= ", kurzbz =".$db->addslashes($kurzbz);
$updated_lines .= "beschreibung von: \"".$row_neu->first_beschreibung."\" auf: \"".$row->beschreibung."\" \n";
$updated_lines .= "kurzbz von: \"".$row_neu->kurzbz."\" auf: \"".$kurzbz."\" \n";
$update_count+= 2;
}
if($date->formatDatum($row_neu->insertamum, 'Y-m-d H:i:s') != $date->formatDatum($row->cdate, 'Y-m-d H:i:s'))
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " insertamum=".$db->addslashes($row->cdate);
$updated_lines .= "insertamum von: \"".$row_neu->insertamum."\" auf: \"".$row->cdate."\" \n";
$update_count++;
}
if ($row_neu->insertvon != $row->cusername)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " insertvon=".$db->addslashes($row->cusername);
$updated_lines .= "insertvon von: \"".$row_neu->insertvon."\" auf: \"".$row->cusername."\" \n";
$update_count++;
}
if($date->formatDatum($row_neu->updateamum, 'Y-m-d H:i:s') != $date->formatDatum($row->lkontoupdate, 'Y-m-d H:i:s'))
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " updateamum=".$db->addslashes($row->lkontoupdate);
$updated_lines .= "updateamum von: \"".$row_neu->updateamum."\" auf: \"".$row->lkontoupdate."\" \n";
$update_count++;
}
if($row_neu->updatevon != $row->lusername)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " updatevon=".$db->addslashes($row->lusername);
$updated_lines .= "updatevon von: \"".$row_neu->updatevon."\" auf: \"".$row->lusername."\" \n";
$update_count++;
}
if($updated_lines != '')
$ausgabe .= "ID ".$row_neu->konto_id.": ".$updated_lines."\n \n";
$updated_lines ='';
}
if ($bedingung !='')
{
$update .= $bedingung." WHERE konto_id =".$row_neu->konto_id.";";
//echo ($update);
$db->db_query($update);
}
}
else
{
//Wenn der Eintrag noch nicht vorhanden ist, dann wird er neu angelegt
$kurzbz = substr($row->beschreibung, 0, 32);
$insert_qry = "INSERT INTO
wawi.tbl_konto
(konto_id, kontonr, beschreibung, kurzbz, aktiv, insertamum, insertvon, updateamum, updatevon)
VALUES (
".$row->konto.",".$row->kontonr.","."ARRAY[".$db->addslashes($row->beschreibung).", 'EE_".$row->beschreibung."']".",
".$db->addslashes($kurzbz).", true, ".$db->addslashes($row->cdate).",".$db->addslashes($row->cusername).",
".$db->addslashes($row->lkontoupdate).",".$db->addslashes($row->lusername).");";
$insert_count++;
//echo ($insert_qry);
if($db->db_query($insert_qry) != true)
$error_count++;
}
}
}
}
}
else
{
$errormsg .= 'Es konnte keine Verbindung zum WAWI Server aufgebaut werden';
$error_count++;
}
//Sequenz neu setzen
if ($insert_count >0)
{
$max_qry= "SELECT MAX(konto_id) as max from wawi.tbl_konto";
if($result_max = $db->db_query($max_qry))
{
if($row_max = $db->db_fetch_object($result_max))
{
$set_qry ="SELECT setval('wawi.seq_konto_konto_id', $row_max->max)";
$db->db_query($set_qry);
}
else
$error_count++;
}
else
$error_count++;
}
$msg = "
$update_count Datensätze wurden geändert.
$insert_count Datensätze wurden hinzugefügt.
$error_count Fehler sind dabei aufgetreten!
$ausgabe
";
$msg.=$errormsg;
$mail = new mail(MAIL_ADMIN, 'vilesci.technikum-wien.at', 'WaWi Syncro - Konto', $msg);
if(!$mail->send())
echo 'Fehler beim Senden des Mails';
else
echo '<br> Mail verschickt!';
?>
-358
View File
@@ -1,358 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <burkhart@technikum-wien.at>.
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
require_once('../../include/datum.class.php');
$errormsg = '';
$error_count = 0;
$insert_count =0;
$update_count =0;
$updated_lines ='';
$ausgabe ='';
$date = new datum();
$db = new basis_db();
//Datenbankverbindung zum WaWi Server herstellen
if($con_wawi = pg_connect(CONN_STRING_WAWI))
{
if(!pg_query($con_wawi, 'SET CLIENT_ENCODING TO UNICODE;'))
{
$errormsg .= 'Fehler beim Setzen des Encodings';
}
//Alle Kostenstellen aus der WaWi Datenbank holen
$qry = 'SELECT
*,
cbenutzer.username as cusername,
lbenutzer.username as lusername,
dbenutzer.username as dusername,
kostenstelle.lupdate as lkostenupdate,
kostenstelle.cdate as ckostendate,
kostenstelle.bezeichnung as kostenbezeichnung,
kostenstelle.kurzzeichen as kostenkurzzeichen,
kostenstelle.duser as deleteuser,
kostenstelle.ddate as deletedate
FROM
public.kostenstelle
LEFT JOIN public.benutzer cbenutzer ON (cuser=user_id)
LEFT JOIN public.benutzer lbenutzer ON (kostenstelle.luser=lbenutzer.user_id)
LEFT JOIN public.benutzer dbenutzer ON (kostenstelle.duser=dbenutzer.user_id)
LEFT JOIN public.studiengang stud ON (kostenstelle.studiengang_id=stud.studiengang_id)
;';
if($result = pg_query($con_wawi, $qry))
{
while($row = pg_fetch_object($result))
{
//Dazupassenden Eintrag in der neuen Datenbank suchen
$qry = "SELECT * from wawi.tbl_kostenstelle WHERE kostenstelle_id = '$row->kostenstelle_id' ;";
if($result_neu = $db->db_query($qry))
{
if($db->db_num_rows($result_neu)>0)
{
// Update des Eintrages
if($row_neu = $db->db_fetch_object($result_neu))
{
$update = 'UPDATE wawi.tbl_kostenstelle SET ';
$bedingung = '';
//Spalten ueberpruefen
if($row_neu->kostenstelle_id != $row->kostenstelle_id)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " kostenselle_id=".$db->addslashes($row->kostenstelle_id);
$updated_lines .= "kostenstelle_id von: \"".$row_neu->kostenstelle_id."\" auf: \"".$row->kostenstelle_id."\"\n";
$update_count++;
}
if($row_neu->oe_kurzbz != $row->oe_kurzbz)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " oe_kurzbz=".$db->addslashes($row->oe_kurzbz);
$updated_lines .= "oe_kurzbz von: \"".$row_neu->oe_kurzbz."\" auf: \"".$row->oe_kurzbz."\"\n";
$update_count++;
}
if($row_neu->bezeichnung != $row->kostenbezeichnung)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " bezeichnung=".$db->addslashes($row->kostenbezeichnung);
$updated_lines .= "beschreibung von: \"".$row_neu->bezeichnung."\" auf: \"".$row->kostenbezeichnung."\"\n";
$update_count++;
}
if($row_neu->kurzbz != $row->kostenkurzzeichen)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " kurzbz=".$db->addslashes($row->kostenkurzzeichen);
$updated_lines .= "kurzbz von: \"".$row_neu->kurzbz."\" auf: \"".$row->kostenkurzzeichen."\"\n";
$update_count++;
}
if($row_neu->ext_id != $row->kostenstelle_id)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " ext_id=".$db->addslashes($row->kostenstelle_id);
$updated_lines .= "ext_id von: \"".$row_neu->ext_id."\" auf: \"".$row->kostenstelle_id."\"\n";
$update_count++;
}
if($row_neu->kostenstelle_nr != $row->kostenstelle_nr)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " kostenstelle_nr=".$db->addslashes($row->kostenstelle_nr);
$updated_lines .= "kostenstelle_nr von: \"".$row_neu->kostenstelle_nr."\" auf: \"".$row->kostenstelle_nr."\"\n";
$update_count++;
}
if($date->formatDatum($row_neu->insertamum, 'Y-m-d H:i:s') != $date->formatDatum($row->ckostendate, 'Y-m-d H:i:s'))
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " insertamum=".$db->addslashes($row->ckostendate);
$updated_lines .= "insertamum von: \"".$row_neu->insertamum."\" auf: \"".$row->ckostendate."\"\n";
$update_count++;
}
if($row_neu->insertvon != $row->cusername)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " insertvon=".$db->addslashes($row->cusername);
$updated_lines .= "insertvon von: \"".$row_neu->insertvon."\" auf: \"".$row->cusername."\"\n";
$update_count++;
}
if($date->formatDatum($row_neu->updateamum, 'Y-m-d H:i:s') != $date->formatDatum($row->lkostenupdate, 'Y-m-d H:i:s'))
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " updateamum=".$db->addslashes($row->lkostenupdate);
$updated_lines .= "updateamum von: \"".$row_neu->updateamum."\" auf: \"".$row->lkostenupdate."\"\n";
$update_count++;
}
if($row_neu->updatevon != $row->lusername)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " updatevon=".$db->addslashes($row->lusername);
$updated_lines .= "updatevon von: \"".$row_neu->updatevon."\" auf: \"".$row->lusername."\"\n";
$update_count++;
}
if($date->formatDatum($row_neu->deaktiviertamum, 'Y-m-d H:i:s') != $date->formatDatum($row->deletedate, 'Y-m-d H:i:s'))
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " deaktiviertamum=".$db->addslashes($row->deletedate);
$updated_lines .= "deaktiviertamum von: \"".$row_neu->deaktiviertamum."\" auf: \"".$row->deletedate."\"\n";
$update_count++;
}
if($row_neu->deaktiviertvon != $row->dusername)
{
if($bedingung!='')
$bedingung.=',';
$bedingung .= " deaktiviertvon=".$db->addslashes($row->dusername);
$updated_lines .= "deaktiviertvon von: \"".$row_neu->deaktiviertvon."\" auf: \"".$row->dusername."\"\n";
if(($row->dusername) != '')
{
// wenn dusername gesetzt ist, aktiv auf false setzen
$bedingung.= ", aktiv = false";
$updated_lines .= "aktiv = false \n";
$update_count++;
}
else
{
$bedingung.=", aktiv = true";
$updated_lines .= "aktiv = true \n";
$update_count++;
}
$update_count++;
}
if($updated_lines != '')
$ausgabe .= "ID ".$row_neu->kostenstelle_id.": ".$updated_lines."\n \n";
$updated_lines ='';
}
if ($bedingung !='')
{
$update .= $bedingung." WHERE kostenstelle_id =".$row_neu->kostenstelle_id.";";
echo "$update <br>";
if($db->db_query($update) != true)
{
$errormsg.= "Fehler bei Update aufgetreten. ID:$row_neu->kostenstelle_id";
$error_count++;
}
}
if($row->budget=='')
{
$row->budget=0;
}
$gj = 'GJ2010-2011';
//Budget
$qry_budget = "SELECT budget FROM wawi.tbl_budget WHERE kostenstelle_id = '$row_neu->kostenstelle_id' AND geschaeftsjahr_kurzbz='$gj'";
if($result_budget = $db->db_query($qry_budget))
{
$qry_budget='';
if($row_budget = $db->db_fetch_object($result_budget))
{
if($row_budget->budget!=$row->budget)
{
$qry_budget = "UPDATE wawi.tbl_budget SET budget='$row->budget WHERE kostenstelle_id='$row_neu->kostenstelle_id' AND geschaeftsjahr_kurzbz='$gj'";
$updated_lines .= "budget im gj $gj von: \"".$row_budget->budget."\" auf: \"".$row->budget."\"\n";
$update_count++;
}
}
else
{
$qry_budget = "INSERT INTO wawi.tbl_budget(kostenstelle_id, geschaeftsjahr_kurzbz, budget) VALUES('".$row_neu->kostenstelle_id."','".$gj."','".$row->budget."');";
$updated_lines .= "budget im gj $gj auf: \"".$row->budget."\"\n";
$insert_count++;
}
if($qry_budget!='')
{
if(!$db->db_query($qry_budget))
{
$error_count++;
$errormsg.="Fehler beim Aktualisieren des Budgets:".$qry_budget;
}
}
}
}
else
{
$aktiv = 'true';
if(isset($row->dusername))
$aktiv = 'false';
// Insert neuen Eintrag
$insert_qry = "INSERT INTO
wawi.tbl_kostenstelle
(kostenstelle_id, oe_kurzbz, bezeichnung, kurzbz, aktiv, updateamum, updatevon, insertamum, insertvon, ext_id, kostenstelle_nr, deaktiviertvon, deaktiviertamum)
VALUES (
".$db->addslashes($row->kostenstelle_id).",".$db->addslashes($row->oe_kurzbz).",".$db->addslashes($row->kostenbezeichnung).",
".$db->addslashes($row->kostenkurzzeichen).", $aktiv,".$db->addslashes($row->lkostenupdate).",
".$db->addslashes($row->lusername).",".$db->addslashes($row->ckostendate).",".$db->addslashes($row->cusername).",
".$db->addslashes($row->kostenstelle_id).",".$db->addslashes($row->kostenstelle_nr).",
".$db->addslashes($row->dusername).",".$db->addslashes($row->deletedate).");";
//echo "$insert_qry <br>";
$insert_count++;
if($db->db_query($insert_qry) != true)
{
$errormsg.= "Fehler bei Insert aufgetreten. ID: $row->kostenstelle_id";
$error_count++;
$insert_count--;
}
if($row->budget=='')
{
$row->budget=0;
}
$gj = 'GJ2010-2011';
$qry_budget = "INSERT INTO wawi.tbl_budget(kostenstelle_id, geschaeftsjahr_kurzbz, budget) VALUES('".$row->kostenstelle_id."','".$gj."','".$row->budget."');";
if(!$db->db_query($qry_budget))
{
$error_count++;
$errormsg.="Fehler beim Aktualisieren des Budgets:".$qry_budget;
}
}
}
}
}
}
else
{
$errormsg .= 'Es konnte keine Verbindung zum WAWI Server aufgebaut werden';
$error_count++;
}
if ($insert_count >0)
{
// Sequenz erhöhen
$max_qry= "SELECT MAX(kostenstelle_id) as max from wawi.tbl_kostenstelle";
if($result_max = $db->db_query($max_qry))
{
if($row_max = $db->db_fetch_object($result_max))
{
$set_qry ="SELECT setval('wawi.seq_kostenstelle_kostenstelle_id', $row_max->max)";
$db->db_query($set_qry);
}
else
{
$error_count++;
$errormsg.= "Fehler bei Select setval aufgetreten ";
}
}
else
{
$error_count++;
$errormsg.= "Fehler bei Select MAX aufgetreten";
}
}
$msg = "
$update_count Datensätze wurden geändert.
$insert_count Datensätze wurden hinzugefügt.
$error_count Fehler sind dabei aufgetreten!
$ausgabe
";
// Nachricht versenden
$msg.=$errormsg;
$mail = new mail(MAIL_ADMIN, 'vilesci.technikum-wien.at', 'WaWi Syncro - Kostenstelle', $msg);
if(!$mail->send())
echo 'Fehler beim Senden des Mails';
else
echo '<br> Mail verschickt!';
?>
-98
View File
@@ -1,98 +0,0 @@
<?php
/* Copyright (C) 2011 FH 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: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
*/
require_once('../../config/system.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/content.class.php');
$db = new basis_db();
$qry = 'SELECT * FROM campus.tbl_news';
$gesamt=0;
$fehler=0;
$ok=0;
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$gesamt++;
$xml = '<news>
<verfasser><![CDATA['.$row->verfasser.']]></verfasser>
<betreff><![CDATA['.$row->betreff.']]></betreff>
<text><![CDATA['.$row->text.']]></text>
</news>';
$content = new content();
$content->template_kurzbz = 'news';
$content->oe_kurzbz = 'etw';
$content->updatevon = $row->updatevon;
$content->updateamum = $row->updateamum;
$content->insertamum = $row->insertamum;
$content->insertvon = $row->insertvon;
$content->aktiv = true;
$content->menu_open=false;
$content->content = $xml;
$content->sichtbar = true;
$content->sprache = 'German';
$content->titel = $row->betreff;
$content->version = 1;
if($content->save(true))
{
if($content->saveContentSprache(true))
{
$qry = "UPDATE campus.tbl_news SET content_id='".$content->content_id."' WHERE news_id='".$row->news_id."';";
if($db->db_query($qry))
{
echo "ID $row->news_id angelegt<br>";
$ok++;
}
else
{
echo "News Update Failed $row->news_id<br>";
$fehler++;
}
}
else
{
echo "Content Sprache Update Failed $row->news_id<br>";
$fehler++;
}
}
else
{
echo "Content Update Failed $row->news_id<br>";
$fehler++;
}
}
}
else
{
echo 'Fehler beim Laden der News';
}
echo "
Gesamt: $gesamt<br>
OK: $ok<br>
Fehler: $fehler<br>
";
?>
-278
View File
@@ -1,278 +0,0 @@
<?php
/* Copyright (C) 2010 FH 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
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
*/
/**
* Syncronisiert die Aufteilung von WaWi DB in FHComplete DB
*/
require_once('../../config/wawi.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/mail.class.php');
require_once('../../include/datum.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
if (!$conn_wawi = pg_pconnect(CONN_STRING_WAWI))
die('Es konnte keine Verbindung zum Server aufgebaut werden. *** File:='.__FILE__.' Line:='.__LINE__."\n");
$error_log='';
$update_log='';
$anzahl_gesamt=0;
$anzahl_insert=0;
$anzahl_update=0;
$anzahl_delete=0;
$anzahl_fehler=0;
$starttime=date("d.m.Y H:i:s");
$datum_obj = new datum();
?>
<html>
<head>
<title>Synchro - WaWi -&gt; FAS - Rechnungen</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
$qry="
SET CLIENT_ENCODING TO UNICODE;
SELECT
*, rechnung.lupdate, bn_update.username_neu as updatevon
FROM
rechnung
LEFT JOIN benutzer bn_update ON(rechnung.luser=bn_update.user_id)
ORDER BY r_id;
";
if($result=pg_query($conn_wawi, $qry))
{
$anzahl_gesamt=pg_num_rows($result);
while($row = pg_fetch_object($result))
{
//check, ob rechnung bereits übertragen
$qry_check="SELECT * FROM wawi.tbl_rechnung WHERE rechnung_id='".addslashes($row->r_id)."'";
if($result_check=$db->db_query($qry_check))
{
if($db->db_num_rows($result_check)>0)
{
$update = false;
//Rechnung vorhanden
if($row_check = $db->db_fetch_object($result_check))
{
if($row_check->bestellung_id!=$row->bestellung_id)
{
$update = true;
$update_log.="\nBestellung_id von $row_check->bestellung_id auf $row->bestellung_id geändert";
}
if($row_check->buchungsdatum!=$row->buchungsdatum)
{
$update=true;
$update_log.="\nBuchungsdatum von $row_check->buchungsdatum auf $row->buchungsdatum geändert";
}
if($row_check->rechnungsnr!=$row->rechnungsnr)
{
$update=true;
$update_log.="\nRechnungsnr von $row_check->rechnungsnr auf $row->rechnungsnr geändert";
}
if($row_check->transfer_datum!=$row->transfer_datum)
{
$update=true;
$update_log.="\nTransferDatum von $row_check->transfer_datum auf $row->transfer_datum geändert";
}
if($row_check->buchungstext!=$row->buchungstext)
{
$update=true;
$update_log.="\nBuchungstext von $row_check->buchungstext auf $row->buchungstext geändert";
}
if($row_check->updatevon!=$row->updatevon)
{
$update=true;
$update_log.="\nUpdatevon von $row_check->updatevon auf $row->updatevon geändert";
}
if($row_check->updateamum!=$datum_obj->formatDatum($row->lupdate))
{
$update=true;
$update_log.="\nUpdateamum von $row_check->updateamum auf $row->lupdate geändert";
}
if($update)
{
$qry = "UPDATE wawi.tbl_rechnung SET
bestellung_id=".$db->addslashes($row->bestellung_id).",
buchungsdatum=".$db->addslashes($row->buchungsdatum).",
rechnungsnr=".$db->addslashes($row->rechnungsnr).",
transfer_datum=".$db->addslashes($row->transfer_datum).",
buchungstext=".$db->addslashes($row->buchungstext).",
updatevon=".$db->addslashes($row->updatevon).",
updateamum=".$db->addslashes($datum_obj->formatDatum($row->lupdate))."
WHERE rechnung_id='".addslashes($row->r_id)."'";
if($db->db_query($qry))
{
$anzahl_update++;
}
else
{
$error_log.="\nFehler beim Update: $qry";
$anzahl_fehler++;
}
}
//Rechnungsbetrag
for($i=1;$i<=3;$i++)
{
$mwst = 'mwst'.$i;
$betrag = 'betrag'.$i;
if($row->$mwst!='')
{
$qry = "SELECT * FROM wawi.tbl_rechnungsbetrag
WHERE rechnung_id=".$db->addslashes($row->r_id)." AND ext_id='$i'";
if($result_rbetrag = $db->db_query($qry))
{
if($row_rbetrag = $db->db_fetch_object($result_rbetrag))
{
//Update
if($row_rbetrag->betrag!=round($row->$betrag,2))
{
$qry = "UPDATE wawi.tbl_rechnungsbetrag SET
betrag=".$db->addslashes($row->$betrag)."
mwst=".$db->addslashes($row->$betrag)."
WHERE rechnungsbetrag_id=".$db->addslashes($row_rbetrag->rechnungsbetrag_id);
if($db->db_query($qry))
{
$anzahl_update++;
$update_log.="\nBetrag von $row_rbetrag->betrag auf ".$row->$betrag." geändert bei Mwst ".$row->$mwst;
}
}
}
else
{
//Insert
$qry = "INSERT INTO wawi.tbl_rechnungsbetrag(rechnung_id, mwst, betrag, ext_id) VALUES(".
$db->addslashes($row->r_id).",".
$db->addslashes($row->$mwst).",".
$db->addslashes($row->$betrag).",'".$i."');";
if($db->db_query($qry))
{
$anzahl_insert++;
$update_log.="\nRechnungsbetrag hinzugefügt Mwst ".$row->$mwst." Betrag ".$row->$betrag;
}
}
}
else
{
$anzahl_fehler++;
$error_log.="\nFehler beim Select: $qry";
}
}
}
//Loeschen von ueberfluessigen Rechnungsbetraegen
$qry="DELETE FROM wawi.tbl_rechnungsbetrag
WHERE mwst NOT IN(".$db->addslashes($row->mwst1).",".$db->addslashes($row->mwst2).",".$db->addslashes($row->mwst3).")
AND rechnung_id=".$db->addslashes($row->r_id);
if($result_delete = $db->db_query($qry))
{
$rechnungsbetrag_delete = $db->db_affected_rows($result_delete);
if($rechnungsbetrag_delete>0)
{
$update_log.="\n $rechnungsbetrag_delete Rechnungsbetrag Einträge gelöscht";
$anzahl_delete+=$rechnungsbetrag_delete;
}
}
else
{
$anzahl_fehler++;
$error_log.="\nFehler bei Delete: $qry";
}
}
}
else
{
//Aufteilung nicht vorhanden
$qry="INSERT INTO wawi.tbl_rechnung(rechnung_id, bestellung_id, rechnungstyp_kurzbz,
buchungsdatum, rechnungsnr, rechnungsdatum, transfer_datum, buchungstext,
freigegeben, freigegebenamum, freigegebenvon, insertamum, insertvon,
updateamum, updatevon) VALUES("
.$db->addslashes($row->r_id).","
.$db->addslashes($row->bestellung_id).","
."'Rechnung',"
.$db->addslashes($row->buchungsdatum).","
.$db->addslashes($row->rechnungsnr).","
.$db->addslashes($row->rechnungsdatum).","
.$db->addslashes($row->transfer_datum).","
.$db->addslashes($row->buchungstext).","
."true,"
.$db->addslashes($datum_obj->formatDatum($row->lupdate)).","
.$db->addslashes($row->updatevon).","
.$db->addslashes($datum_obj->formatDatum($row->lupdate)).","
.$db->addslashes($row->updatevon).","
.$db->addslashes($datum_obj->formatDatum($row->lupdate)).","
.$db->addslashes($row->updatevon).");";
if($row->mwst1!='')
$qry.="INSERT INTO wawi.tbl_rechnungsbetrag(rechnung_id, mwst, betrag, ext_id) VALUES(".$db->addslashes($row->r_id).",".$db->addslashes($row->mwst1).",".$db->addslashes($row->betrag1).",1);";
if($row->mwst2!='')
$qry.="INSERT INTO wawi.tbl_rechnungsbetrag(rechnung_id, mwst, betrag, ext_id) VALUES(".$db->addslashes($row->r_id).",".$db->addslashes($row->mwst2).",".$db->addslashes($row->betrag2).",2);";
if($row->mwst3!='')
$qry.="INSERT INTO wawi.tbl_rechnungsbetrag(rechnung_id, mwst, betrag, ext_id) VALUES(".$db->addslashes($row->r_id).",".$db->addslashes($row->mwst3).",".$db->addslashes($row->betrag3).",3);";
if($db->db_query($qry))
{
$anzahl_insert++;
}
else
{
$error_log.="\nFehler beim Insert: $qry";
$anzahl_fehler++;
}
}
}
else
{
$error_log.="\nFehler bei Select: $qry_check";
$anzahl_fehler++;
}
}
$qry = "
SELECT setval('wawi.seq_rechnung_rechnung_id',(SELECT max(rechnung_id) FROM wawi.tbl_rechnung));
SELECT setval('wawi.seq_rechnungsbetrag_rechnungsbetrag_id',(SELECT max(rechnungsbetrag_id) FROM wawi.tbl_rechnungsbetrag));
";
if(!$db->db_query($qry))
{
$error_log.="\nFehler beim Update der Sequence";
$anzahl_fehler++;
}
//Mail versenden
$statistik="Rechnung Sync\n--------------\n";
$statistik.="Beginn: ".$starttime." von ".DB_NAME." - Anzahl Einträge: ".$anzahl_gesamt."\n\n";
$statistik.="\nEingefügte Datensätze: $anzahl_insert";
$statistik.="\nGeänderte Datensätze: $anzahl_update";
$statistik.="\nFehler: $anzahl_fehler\n";
$synced=$statistik.$error_log.$update_log;
$mail = new mail(MAIL_ADMIN, "vilesci@".DOMAIN, "SYNC Rechnung von ".DB_NAME, $synced);
$mail->setReplyTo("vilesci@".DOMAIN);
if(!$mail->send())
{
echo "<font color=\"#FF0000\">Fehler beim Versenden des Durchführungs-Mails!</font><br>";
}
}
?>
-104
View File
@@ -1,104 +0,0 @@
<?php
/* Copyright (C) 2008 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>.
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/mail.class.php');
echo '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Stundenplan-Check (stpldev-le)</title>
</head>
<body>';
// Startvariablen setzen
$adress='fas_sync@technikum-wien.at';
$adress_stpl='stpl@technikum-wien.at';
$message_stpl='';
$message_sync='';
$count_del=0;
$count_ins=0;
$count_upd=0;
$count_err=0;
$db = new basis_db();
// Mails an die Lektoren und Verbaende
$message='';
// Mail Headers festlegen
$headers= "MIME-Version: 1.0\r\n";
$headers.="Content-Type: text/html; charset=UTF-8\r\n";
$message_begin='Dies ist eine automatische Mail!<BR>Es haben sich folgende Aenderungen in Ihrem Stundenplan ergeben:<BR>';
/**************************************************
* Datensaetze holen die nicht mehr plausibel sind
*/
echo 'Folgende Lehreinheiten sind nicht plausibel.<BR>';flush();
$sql_query="SELECT DISTINCT lehreinheit_id,studiengang_kz,semester,gruppe_kurzbz,mitarbeiter_uid,ort_kurzbz,
tbl_lehreinheitmitarbeiter.mitarbeiter_uid AS lehreinheitmitarbeiter_uid
FROM lehre.tbl_stundenplandev LEFT OUTER JOIN lehre.tbl_lehreinheitmitarbeiter USING (lehreinheit_id, mitarbeiter_uid)
WHERE datum>=now() AND tbl_lehreinheitmitarbeiter.mitarbeiter_uid IS NULL;";
if (!$result = $db->db_query($sql_query))
{
echo $sql_query.' fehlgeschlagen!<BR>'.$db->db_last_error();
$message.=$sql_query.' fehlgeschlagen!<BR>'.$db->db_last_error();
}
else
{
flush();
while ($row = $db->db_fetch_object($result))
{
echo $row->lehreinheit_id.'-'.$row->studiengang_kz.'-'.$row->semester.'-'.$row->gruppe_kurzbz.'-'.$row->mitarbeiter_uid.'-'.$row->ort_kurzbz.'<BR>';
$message.=$row->lehreinheit_id.'-'.$row->studiengang_kz.'-'.$row->semester.'-'.$row->gruppe_kurzbz.'-'.$row->mitarbeiter_uid.'-'.$row->ort_kurzbz.'<BR>';
}
$message.='</table>';
}
/**************************************************
* Mails verschicken
*/
// Mail an Admin
$message_tmp=$count_upd.' Datens&auml;tze wurden ge&auml;ndert.<BR>
'.$count_ins.' Datens&auml;tze wurden hinzugef&uuml;gt.<BR>
'.$count_del.' Datens&auml;tze wurden gel&ouml;scht.<BR>
'.$count_err.' Fehler sind dabei aufgetreten!<BR><BR>';
echo '<BR>'.$message_tmp;
$message_sync='<HTML><BODY>'.$message_tmp.$message_sync.$message_stpl.'</BODY></HTML>';
$mail = new mail('pam@technikum-wien.at','stpl@technikum-wien.at','Stundenplan update','');
$mail->setHTMLContent($message);
$mail->send();
$message_stpl='<HTML><BODY>'.$message_tmp.$message_stpl.'</BODY></HTML>';
$mail = new mail('stpl@technikum-wien.at','stpl@technikum-wien.at','Stundenplan update','');
$mail->setHTMLContent($message);
$mail->send();
?>
</body>
</html>
-360
View File
@@ -1,360 +0,0 @@
<?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 <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at> and
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>
******************************************************************************
* Beschreibung:
* Dieses Skript fuehrt Datenbankupdates von Version 1.2 auf 2.0 durch
*/
require_once('../config/system.config.inc.php');
require_once('../include/basis_db.class.php');
$db = new basis_db();
echo '<H1>DB-Updates!</H1>';
echo '<H2>Version 1.2 &rarr; 2.0</H2>';
// **************** lehre.tbl_prestudentstatus -> tbl_prestudentstatus ************************
if(!@$db->db_query('SELECT * FROM public.tbl_status LIMIT 1;'))
{
$qry = "ALTER TABLE public.tbl_rolle RENAME TO tbl_status;
ALTER TABLE public.tbl_prestudentrolle RENAME TO tbl_prestudentstatus;
ALTER TABLE public.tbl_status RENAME COLUMN rolle_kurzbz TO status_kurzbz;
ALTER TABLE public.tbl_prestudentstatus RENAME COLUMN rolle_kurzbz TO status_kurzbz;
UPDATE pg_catalog.pg_constraint SET conname='pk_tbl_status' WHERE conname='pk_tbl_rolle';
UPDATE pg_catalog.pg_constraint SET conname='orgform_prestudentstatus' WHERE conname='orgform_prestudentrolle';
UPDATE pg_catalog.pg_constraint SET conname='pk_tbl_prestudentstatus' WHERE conname='pk_tbl_prestudentrolle';
UPDATE pg_catalog.pg_constraint SET conname='prestudent_prestudentstatus' WHERE conname='prestudent_prestudentrolle';
UPDATE pg_catalog.pg_constraint SET conname='status_prestudentstatus' WHERE conname='rolle_prestudentrolle';
UPDATE pg_catalog.pg_constraint SET conname='studiensemester_prestudentstatus' WHERE conname='studiensemester_prestudentrolle';
CREATE OR REPLACE FUNCTION get_rolle_prestudent (integer, character varying) returns character varying as $$
DECLARE i_prestudent_id ALIAS FOR $1;
DECLARE cv_studiensemester_kurzbz ALIAS FOR $2;
DECLARE rec RECORD;
BEGIN
IF (cv_studiensemester_kurzbz IS NULL) THEN
SELECT INTO rec status_kurzbz
FROM public.tbl_prestudentstatus
WHERE prestudent_id=i_prestudent_id
ORDER BY datum desc,insertamum desc, ext_id desc
LIMIT 1;
ELSE
SELECT INTO rec status_kurzbz
FROM tbl_prestudentstatus
WHERE prestudent_id=i_prestudent_id AND studiensemester_kurzbz=cv_studiensemester_kurzbz
ORDER BY datum desc,insertamum desc, ext_id desc
LIMIT 1;
END IF;
RETURN rec.status_kurzbz;
END;
$$ LANGUAGE plpgsql;
";
if(!$db->db_query($qry))
echo '<strong>public.tbl_status: '.$db->db_last_error().' </strong><br>';
else
echo ' public.tbl_status: Umbenannt auf tbl_status!<br>
constrains umbenannt
public.tbl_prestudentstatus: Umbenannt auf tbl_prestudentstatus!<br>
constrains umbenannt';
}
// *************** public.tbl_organisationseinheit *******************************
if(!@$db->db_query('SELECT * FROM public.tbl_organisationseinheit LIMIT 1;'))
{
$qry = "CREATE TABLE public.tbl_organisationseinheit
(
oe_kurzbz Character varying(32) NOT NULL,
oe_parent_kurzbz Character varying(32),
bezeichnung Character varying(256),
organisationseinheittyp_kurzbz Character varying(16) NOT NULL
)
WITH (OIDS=FALSE);
ALTER TABLE public.tbl_organisationseinheit ADD CONSTRAINT pk_tbl_organisationseinheit PRIMARY KEY (oe_kurzbz);
ALTER TABLE public.tbl_organisationseinheit ADD CONSTRAINT oe_parent_oe FOREIGN KEY (oe_parent_kurzbz) REFERENCES public.tbl_organisationseinheit (oe_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
CREATE TABLE public.tbl_organisationseinheittyp
(
organisationseinheittyp_kurzbz Character varying(16) NOT NULL,
bezeichnung Character varying(256),
beschreibung text
)
WITH (OIDS=FALSE);
ALTER TABLE public.tbl_organisationseinheittyp ADD CONSTRAINT pk_organisationseinheittyp PRIMARY KEY (organisationseinheittyp_kurzbz);
ALTER TABLE public.tbl_organisationseinheit ADD CONSTRAINT organisationseinheit_organisationseinheittyp FOREIGN KEY (organisationseinheittyp_kurzbz) REFERENCES public.tbl_organisationseinheittyp (organisationseinheittyp_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
GRANT SELECT on public.tbl_organisationseinheit TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE on public.tbl_organisationseinheit TO GROUP ".DB_FAS_USER_GROUP.";
GRANT SELECT on public.tbl_organisationseinheittyp TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE on public.tbl_organisationseinheittyp TO GROUP ".DB_FAS_USER_GROUP.";
ALTER TABLE public.tbl_studiengang ADD COLUMN oe_kurzbz character varying(32);
ALTER TABLE public.tbl_studiengang ADD CONSTRAINT studiengang_organisationseinheit FOREIGN KEY (oe_kurzbz) REFERENCES public.tbl_organisationseinheit (oe_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE public.tbl_fachbereich ADD COLUMN oe_kurzbz character varying(32);
ALTER TABLE public.tbl_fachbereich ADD CONSTRAINT fachbereich_organisationseinheit FOREIGN KEY (oe_kurzbz) REFERENCES public.tbl_organisationseinheit (oe_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
-- ORGANISATIONSEINHEITEN Anlegen
INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, bezeichnung, beschreibung) VALUES('Erhalter',null, null);
INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, bezeichnung, beschreibung) VALUES('Studienzentrum',null, null);
INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, bezeichnung, beschreibung) VALUES('Studiengang',null, null);
INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, bezeichnung, beschreibung) VALUES('Institut',null, null);
INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, bezeichnung, beschreibung) VALUES('Abteilung',null, null);
-- Technikum Wien Spezifisch!!
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('etw',null,'Technikum Wien','Erhalter');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ctee','etw','Communication Technologies & Electronic Engineering','Studienzentrum');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bel','ctee','BEL','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bew','ctee','BEW','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bic','ctee','BIC','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mes','ctee','MES','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mie','ctee','MIE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mtm','ctee','MTM','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mti','ctee','MTI','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('EmbeddedSystems','ctee','Embedded System','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Telecom','ctee','Telecommunications & Internet Technologies','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ElectronicEng','ctee','Electronic Engineering','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('itbs','etw','Information Technologies & Business Solutions','Studienzentrum');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bif','itbs','BIF','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bit','itbs','BIT','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bwi','itbs','BWI','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mic','itbs','MIC','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mit','itbs','MIT','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mse','itbs','MSE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mwi','itbs','MWI','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mgs','itbs','MGS','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Informatik','itbs','Informatik','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Wirtschaftsinf','itbs','Wirtschaftsinformatik','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('InformationEng','itbs','Information Engineering & Security','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('eet','etw','Engineering & Environmental Technologies','Studienzentrum');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('biw','eet','BIW','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('miw','eet','MIW','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bmr','eet','BMR','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mmr','eet','MMR','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bee','eet','BEE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mee','eet','MEE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Mechatronics','eet','Mechatronics','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('AdvancedTech','eet','Advanced Technologies','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ErnEnergie','eet','Erneuerbare Energietechnologien','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('lst','etw','Life Science Technologies','Studienzentrum');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bbe','lst','BBE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('bst','lst','BST','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mbe','lst','MBE','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mgr','lst','MGR','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mst','lst','MST','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('mut','lst','MUT','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('BiomedTech','lst','Biomedizinische Technik & Umweltmanagement','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('SportsEng','lst','Sports Engineering and Biomechanics','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('AngewandteMath','etw','Angewandte Mathematik und Naturwissenschaften','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('MgmntWirtRecht','etw','Management, Wirtschaft, Recht','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Sozialkompetenz','etw','Sozialkompetenz- und Managementmethoden','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Sprachen','etw','Sprachen und Kulturwissenschaften','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Dummy','etw','Dummy','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Freifaecher','etw','Freifaecher','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Praxissemester','etw','Praxissemester','Institut');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('eak','etw','Aufbaukurse','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('lca','etw','Cisco Academy','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ltc','etw','LLL China','Studiengang');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Auslandsbuero','etw','Auslandsbüro','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Bibliothek','etw','Bibliothek','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Geschaeftsltg','etw','Geschäftsleitung','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Unternehmenskommunikation','etw','Unternehmenskommunikation','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Infrastruktur','etw','Infrastruktur','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Haustechnik','Infrastruktur','Haustechnik','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ServiceDesk','Infrastruktur','ServiceDesk','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('Systementwicklung','Infrastruktur','Systementwicklung','Abteilung');
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) VALUES('ZentrServices','Infrastruktur','ZentraleServices','Abteilung');
-- Alle noch nicht eingetragenen Institute und Studiengaenge direkt unter etw haengen
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) SELECT lower(typ::varchar(1) || kurzbz), 'etw', UPPER(typ::varchar(1) || kurzbz), 'Studiengang' FROM public.tbl_studiengang WHERE lower(typ::varchar(1) || kurzbz) not in (SELECT oe_kurzbz FROM public.tbl_organisationseinheit) AND studiengang_kz<>999;
INSERT INTO public.tbl_organisationseinheit(oe_kurzbz, oe_parent_kurzbz, bezeichnung, organisationseinheittyp_kurzbz) SELECT fachbereich_kurzbz, 'etw', bezeichnung, 'Institut' FROM public.tbl_fachbereich WHERE fachbereich_kurzbz not in (SELECT oe_kurzbz FROM public.tbl_organisationseinheit);
-- Eintraege in Tabelle Studiengang und Fachbereich
UPDATE public.tbl_studiengang set oe_kurzbz = lower(typ::varchar(1) || kurzbz) WHERE lower(typ::varchar(1) || kurzbz) in(select oe_kurzbz FROM public.tbl_organisationseinheit);
UPDATE public.tbl_fachbereich set oe_kurzbz=fachbereich_kurzbz WHERE fachbereich_kurzbz in(select oe_kurzbz FROM public.tbl_organisationseinheit);
";
if(!$db->db_query($qry))
echo '<strong>public.tbl_organisationseinheit: '.$db->db_last_error().' </strong><br>';
else
echo ' public.tbl_organisationseinheit: Tabelle wurde hinzugefgt!<br>';
;
}
// ************* system.tbl_berechtigung ******************
if(!@$db->db_query('SELECT * FROM system.tbl_berechtigung LIMIT 1;'))
{
$qry = "CREATE SCHEMA system;
GRANT USAGE ON SCHEMA system TO GROUP ".DB_CIS_USER_GROUP.";
GRANT USAGE ON SCHEMA system TO GROUP ".DB_FAS_USER_GROUP.";
CREATE TABLE system.tbl_benutzerrolle
(
benutzerberechtigung_id serial NOT NULL,
rolle_kurzbz Character varying(32),
berechtigung_kurzbz Character varying(32),
uid Character varying(16),
funktion_kurzbz Character varying(16),
oe_kurzbz Character varying(32),
art Character varying(5) DEFAULT 's'::character varying NOT NULL,
studiensemester_kurzbz Character varying(16),
start Date,
ende Date,
negativ Boolean DEFAULT FALSE NOT NULL,
updateamum Timestamp,
updatevon Character varying(16),
insertamum Timestamp DEFAULT now(),
insertvon Character varying(16)
)
WITH (OIDS=FALSE);
CREATE INDEX idx_userberechtigung_uid ON system.tbl_benutzerrolle (uid);
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT pk_tbl_benutzerberechtigung PRIMARY KEY (benutzerberechtigung_id);
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_benutzer FOREIGN KEY (uid) REFERENCES public.tbl_benutzer (uid) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_funktion FOREIGN KEY (funktion_kurzbz) REFERENCES public.tbl_funktion (funktion_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
CREATE TABLE system.tbl_berechtigung
(
berechtigung_kurzbz Character varying(32) NOT NULL,
beschreibung Character varying(256)
)
WITH (OIDS=FALSE);
ALTER TABLE system.tbl_berechtigung ADD CONSTRAINT pk_tbl_berechtigung PRIMARY KEY (berechtigung_kurzbz);
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_berechtigung FOREIGN KEY (berechtigung_kurzbz) REFERENCES system.tbl_berechtigung (berechtigung_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_organisationseinheit FOREIGN KEY (oe_kurzbz) REFERENCES public.tbl_organisationseinheit (oe_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_studiensemester FOREIGN KEY (studiensemester_kurzbz) REFERENCES public.tbl_studiensemester (studiensemester_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
CREATE TABLE system.tbl_rolle
(
rolle_kurzbz Character varying(32) NOT NULL,
beschreibung Character varying(256)
)
WITH (OIDS=FALSE);
CREATE TABLE system.tbl_rolleberechtigung
(
berechtigung_kurzbz Character varying(32) NOT NULL,
rolle_kurzbz Character varying(32),
art Character varying(5)
)
WITH (OIDS=FALSE);
ALTER TABLE system.tbl_rolle ADD CONSTRAINT pk_tbl_rolle PRIMARY KEY (rolle_kurzbz);
ALTER TABLE system.tbl_rolleberechtigung ADD CONSTRAINT pk_tbl_rolleberechtigung PRIMARY KEY(berechtigung_kurzbz, rolle_kurzbz);
ALTER TABLE system.tbl_rolleberechtigung ADD CONSTRAINT rolleberechtigung_rolle FOREIGN KEY(rolle_kurzbz) REFERENCES system.tbl_rolle (rolle_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE system.tbl_rolleberechtigung ADD CONSTRAINT rolleberechtigung_berechtigung FOREIGN KEY(berechtigung_kurzbz) REFERENCES system.tbl_berechtigung (berechtigung_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE system.tbl_benutzerrolle ADD CONSTRAINT benutzerrolle_rolle FOREIGN KEY (rolle_kurzbz) REFERENCES system.tbl_rolle (rolle_kurzbz) ON DELETE RESTRICT ON UPDATE CASCADE;
GRANT SELECT ON system.tbl_benutzerrolle TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT ON system.tbl_berechtigung TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT ON system.tbl_rolle TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT ON system.tbl_rolleberechtigung TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT, UPDATE ON system.tbl_benutzerrolle_benutzerberechtigung_id_seq TO GROUP ".DB_FAS_USER_GROUP.";
GRANT SELECT, UPDATE ON system.tbl_benutzerrolle_benutzerberechtigung_id_seq TO GROUP ".DB_CIS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE ON system.tbl_benutzerrolle TO GROUP ".DB_FAS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE ON system.tbl_berechtigung TO GROUP ".DB_FAS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE ON system.tbl_rolle TO GROUP ".DB_FAS_USER_GROUP.";
GRANT SELECT, INSERT, UPDATE, DELETE ON system.tbl_rolleberechtigung TO GROUP ".DB_FAS_USER_GROUP.";
--- SYNCRONISIEREN
INSERT INTO system.tbl_rolle(rolle_kurzbz, beschreibung) SELECT berechtigung_kurzbz, beschreibung FROM public.tbl_berechtigung;
-- Berechtigungen uebernehmen
INSERT INTO system.tbl_benutzerrolle(uid, funktion_kurzbz, rolle_kurzbz, berechtigung_kurzbz, art, oe_kurzbz,
studiensemester_kurzbz, start, ende, negativ, updateamum, updatevon, insertamum, insertvon)
SELECT
uid, null, berechtigung_kurzbz, null, art,
CASE WHEN fachbereich_kurzbz IS NOT NULL THEN (SELECT oe_kurzbz FROM public.tbl_fachbereich WHERE fachbereich_kurzbz=tbl_benutzerberechtigung.fachbereich_kurzbz)
WHEN studiengang_kz IS NOT NULL THEN (SELECT oe_kurzbz FROM public.tbl_studiengang WHERE studiengang_kz=tbl_benutzerberechtigung.studiengang_kz)
ELSE null
END,
studiensemester_kurzbz, start, ende, false, updateamum, updatevon, insertamum, insertvon
FROM public.tbl_benutzerberechtigung;
--- ALTE TABELLE LOESCHEN
DROP TABLE public.tbl_benutzerberechtigung;
-- Berechtigung anlegen
INSERT INTO system.tbl_berechtigung(berechtigung_kurzbz, beschreibung) SELECT rolle_kurzbz, beschreibung FROM system.tbl_rolle;
-- Berechtigungen zu den Rollen
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) SELECT rolle_kurzbz, rolle_kurzbz, 'suid' FROM system.tbl_rolle;
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('mitarbeiter','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('lehre','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('lv-plan','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('raumres','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('assistenz','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('news','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('preinteressent','admin','suid');
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('veranstaltung','admin','suid');
-- Bei alle ohne oe_kurzbz die Organisaitonseinheit auf etw setzen (admins)
UPDATE system.tbl_benutzerrolle SET oe_kurzbz='etw' WHERE oe_kurzbz is null;
";
if(!$db->db_query($qry))
echo '<strong>system schema: '.$db->db_last_error().' </strong><br>';
else
echo 'system schema: Berechtigungstabellen wurden hinzugefuegt!<br>';
}
// **************** public.tbl_benutzerfunktion ************************
if(!@$db->db_query('SELECT oe_kurzbz FROM public.tbl_benutzerfunktion LIMIT 1;'))
{
$qry = "ALTER TABLE public.tbl_benutzerfunktion ADD COLUMN oe_kurzbz Character varying(32);
ALTER TABLE public.tbl_benutzerfunktion ADD COLUMN datum_von Date;
ALTER TABLE public.tbl_benutzerfunktion ADD COLUMN datum_bis Date;
-- studiengang in oe_kurzbz kopieren
UPDATE public.tbl_benutzerfunktion SET oe_kurzbz = (SELECT lower(typ::varchar(1) || kurzbz) FROM public.tbl_studiengang WHERE studiengang_kz=tbl_benutzerfunktion.studiengang_kz);
DROP VIEW public.vw_benutzerfunktion;
ALTER TABLE public.tbl_benutzerfunktion ALTER COLUMN oe_kurzbz SET NOT NULL;
-- spalte loeschen
ALTER TABLE public.tbl_benutzerfunktion DROP COLUMN studiengang_kz;
";
if(!$db->db_query($qry))
echo '<strong>public.tbl_benutzerfunktion: '.$db->db_last_error().' </strong><br>';
else
echo ' public.tbl_benutzerfunktion: Umbenannt auf oe_kurzbz statt studiengang_kz hinzugefuegt!<br>
Datum Von/Bis hinzugefuegt';
}
?>
-450
View File
@@ -1,450 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0040)http://www.fh-wedel.de/~herbert/html/vi/ -->
<HTML><HEAD><TITLE>Herbert's Homepage: VI-Kurzreferenz</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content=HTML-Files name=keywords>
<META
content="vi, Elvis, Kurzeinführung,&#10; Kurzreferenz, Einführung, Referenz"
name=keywords>
<META content=Herbert name=Author><!--
Copyright (c): Herbert, FH Wedel
Note that this document is provided "as is",
WITHOUT WARRANTY of any kind either expressed or implied.
-->
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<h1>VI Einführung und Kurzreferenz</h1>
<DIV align=right><A href="http://www.fh-wedel.de/~herbert/html/index.html"
POSITION="">[eine Ebene höher]</A>&nbsp;<A
href="http://www.fh-wedel.de/~herbert/htdig/index.html" POSITION="">[Suchen]</A>
</DIV>
<P>
<TABLE width="100%">
<TBODY>
<TR>
<TD vAlign=top>
<H2>Inhalt</H2></TD>
<TD vAlign=top width="30%">
<DIV align=right><A name=at000
href="http://www.fh-wedel.de/~herbert/html/vi/#at001">[weiter]</A>
</DIV></TD></TR></TBODY></TABLE>
<UL>
<LI><A
href="http://www.fh-wedel.de/~herbert/html/vi/#einfuehrung">Einführung</A>
<UL>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#betriebsarten">VI
Betriebsarten</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#visualmode">Der Visual
Mode</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#exmode">Der Ex
Mode</A> </LI></UL>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#kommandos">Wichtige VI
Kommandos</A>
<UL>
<LI><A
href="http://www.fh-wedel.de/~herbert/html/vi/#konvention">Konvention</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#starten">Starten des
VI</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#beenden">Beenden des
VI</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#laden">Dateien
laden</A>
<LI><A
href="http://www.fh-wedel.de/~herbert/html/vi/#cursorbewegungen">Cursorbewegungen</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#eingeben">Text
eingeben</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#aendern">Text
ändern</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#loeschen">Text
löschen</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#zwischenablagen">Die
Zwischenablagen im VI</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#suchenersetzen">Suchen
und Ersetzen</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#bookmarks">Bookmarks
im VI</A>
<LI><A href="http://www.fh-wedel.de/~herbert/html/vi/#goodies">Sonstige
Goodies</A> </LI></UL></LI></UL><A name=einfuehrung>
<P>
<HR width="100%" noShade SIZE=1>
<TABLE width="100%">
<TBODY>
<TR>
<TD vAlign=top>
<H2>Einführung</H2></TD>
<TD vAlign=top width="30%">
<DIV align=right><A href="http://www.fh-wedel.de/~herbert/html/vi/#attop"
POSITION="">[Seitenanfang]</A> <A name=at001
href="http://www.fh-wedel.de/~herbert/html/vi/#at002">[weiter]</A>
</DIV></TD></TR></TBODY></TABLE></A><A name=betriebsarten>
<P>
<H3>VI Betriebsarten</H3></A>Der vi kennt drei Betriebsarten:
<OL>
<LI>Der <EM>visual mode</EM>, in dem jeder Tastendruck als Kommando
interpretiert wird. Dies ist die Standardbetriebsart des vi!
<LI>Der <EM>ex mode</EM>, in dem über die Kommandozeile komplexe Befehle, wie
z.B. Suchen und Ersetzen eingegeben werdne können.
<LI>Der <EM>input mode</EM>, in dem Text eingegeben werden kann. </LI></OL><A
name=visualmode>
<P>
<H3>Der Visual Mode</H3></A>Der Visual Mode ist wie gesagt die
Standardbetriebsart des vi, d.h., man befindet sich direkt nach dem Start des vi
darin. Aus allen anderen Betriebsarten kommt man jederzeit durch Drücken der
<EM>Escape</EM> Taste zurück.
<P>Die Idee dahinter ist, daß man, solange kein Text eingegeben wird, ohne Hilfe
von Maus oder erweiterter Tastatur (Pfeiltasten usw.) in der editierten Datei
durch Bewegen des Cursors, Springen und mit Hilfe von Bookmarks navigieren kann.
Das ermöglicht Arbeit mit einem sehr hohen Tempo und auch auf Terminals ohne
erweiterte Tastatur.
<P><A name=exmode>
<P>
<H3>Der Ex Mode</H3></A>Der Ex Mode dient dazu, auch komplexere Kommandos oder
Makros eingeben zu können, die durch jeweils einfache Tastendrücke im Visual
Mode so nicht möglich wären.
<P>Man erreicht den Ex Mode aus dem Visual Mode heraus und zwar durch Drücken
von ":". Ein Kommando im Ex Mode wird abgebrochen durch <EM>Escape</EM> oder
beendet durch <EM>Enter</EM>. <A name=inputmode>
<P>
<H3>Der Input Mode</H3></A>Der Input Mode dient zum Eingeben von Text. Hier
werden die normalen Tasten als einzugebende Buchstaben interpretiert. Andere
Befehle aus dem Visual Mode, die auf Tasten liegen, die so nicht druckbar sind,
wie z.B. <EM>Ctrl-F</EM> und <EM>Ctrl-B</EM> (<EM>PageDown</EM>und
<EM>PageUp</EM>), stehen weiterhin zur Verfügung.
<P>Der Input Mode kann durch verschiedene Visual Kommandos eingeleitet werden.
Mehr dazu unter <A href="http://www.fh-wedel.de/~herbert/html/vi/#eingeben">Text
eingeben</A>.
<P>Der Input Mode wird verlassen durch <EM>Escape</EM>, man landet somit wieder
im Visual Mode.
<P><A name=kommandos>
<P>
<HR width="100%" noShade SIZE=1>
<TABLE width="100%">
<TBODY>
<TR>
<TD vAlign=top>
<H2>Wichtige VI Kommandos</H2></TD>
<TD vAlign=top width="30%">
<DIV align=right><A href="http://www.fh-wedel.de/~herbert/html/vi/#attop"
POSITION="">[Seitenanfang]</A> <A name=at002
href="http://www.fh-wedel.de/~herbert/html/vi/#at003">[weiter]</A>
</DIV></TD></TR></TBODY></TABLE></A><A name=konvention>
<P>
<H3>Konvention</H3></A>Im Folgenden werden einige oft benutzte VI-Kommandos
aufgelistet. Fast alle dieser Kommandos sind <EM>Visual</EM> Kommandos.
<EM>Ex</EM> Kommandos werden durch das <EM>":"</EM> am Anfang gekennzeichnet.
<P>Manche (meist <EM>Visual</EM>) Kommandos haben noch ein <EM>[Count]</EM>
vorangestellt. Das heißt, daß das Kommando normalerweise einmal, bei einer
vorher gedrückten Zahl <EM>n</EM> aber <EM>n</EM>-mal ausgeführt wird. <A
name=starten>
<P>
<H3>Starten des VI</H3></A>Der VI kann mit oder ohne Angabe eines Dateinamen
gestartet werden. Wird ein Dateiname angegeben, wird die Datei geladen oder,
falls sie noch nicht existiert, neu erzeugt. Aufrufe können sein:
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>vi </CODE></TD>
<TD>Aufruf von vi mit leerem Text-Puffer. </TD></TR>
<TR>
<TD vAlign=top><CODE>vi <EM>Dateiname</EM> </CODE></TD>
<TD>Datei wird geladen und der Cursor bei der ersten Zeile plaziert.
</TD></TR>
<TR>
<TD vAlign=top><CODE>vi <EM>+ Dateiname</EM> </CODE></TD>
<TD>Datei wird geladen und der Cursor bei der letzten Zeile plaziert.
</TD></TR>
<TR>
<TD vAlign=top><CODE>vi <EM>+n Dateiname</EM> </CODE></TD>
<TD>Datei wird geladen und der Cursor bei der <EM>n</EM>-ten Zeile
plaziert. </TD></TR>
<TR>
<TD vAlign=top><CODE>vi <EM>+/Zeichenkette Dateiname</EM> </CODE></TD>
<TD>Datei wird geladen und der Cursor bei der Zeile mit
<EM>Zeichenkette</EM> plaziert. </TD></TR></TBODY></TABLE>
<P>Hinweis: Die meisten vi-Versionen beherrschen auch das Bearbeiten mehrerer
Dateien, allerdings unterscheiden sich die Implementierungen meistens.
<P>Moderne Implementierungen wie z.B. <EM>Elvis</EM> können auch den Bildschirm
in Fenster unterteilen. Hierzu verweise ich aber auf die Dokumentation des
jeweiligen vi-Clones! <A name=beenden>
<P>
<H3>Beenden des VI</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>:wq </CODE></TD>
<TD>Speichern und vi verlassen. </TD></TR>
<TR>
<TD vAlign=top><CODE>:q </CODE></TD>
<TD>vi verlassen, falls Datei unverändert </TD></TR>
<TR>
<TD vAlign=top><CODE>:q! </CODE></TD>
<TD>vi verlassen, egal ob Datei verändert oder nicht. </TD></TR>
<TR>
<TD vAlign=top><CODE>:w </CODE></TD>
<TD>Datei speichern </TD></TR></TBODY></TABLE><A name=laden>
<P>
<H3>Dateien laden</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>e <EM>Datei</EM> </CODE></TD>
<TD><EM>Datei</EM> wird geladen, wenn sie existiert, ansonsten erzeugt.
</TD></TR>
<TR>
<TD vAlign=top><CODE>:next </CODE></TD>
<TD>Die nächste Datei wird geladen, falls vi mit mehreren Dateien
aufgerufen wurde. </TD></TR>
<TR>
<TD vAlign=top><CODE>:prev </CODE></TD>
<TD>Die vorherige Datei wird geladen, falls vi mit mehreren Dateien
aufgerufen wurde. </TD></TR></TBODY></TABLE><A name=cursorbewegungen>
<P>
<H3>Cursorbewegungen</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>j </CODE></TD>
<TD>Den Cursor um eine (bzw. <EM>Count</EM>) Zeile runter. usw.). </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>k </CODE></TD>
<TD>Den Cursor um eine (bzw. <EM>Count</EM>) Zeile rauf. usw.). </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>l </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Zeichen rechts. usw.). </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>h </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Zeichen links. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>w </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Wort rechts. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>b </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Wort links. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>h </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Zeichen links. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>h </CODE></TD>
<TD>Den Cursor um ein (bzw. <EM>Count</EM>) Zeichen links. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>G </CODE></TD>
<TD>Springe zum Ende der Datei oder, falls <EM>Count</EM> gegeben, zu
Zeile <EM>Count</EM>. </TD></TR>
<TR>
<TD vAlign=top><EM>Ctrl-f </EM></TD>
<TD>Page-Down. </TD></TR>
<TR>
<TD vAlign=top><EM>Ctrl-b </EM></TD>
<TD>Page-Up. </TD></TR>
<TR>
<TD vAlign=top><CODE>^ </CODE></TD>
<TD>Springe zum Anfang der aktuellen Zeile. </TD></TR>
<TR>
<TD vAlign=top><CODE>$ </CODE></TD>
<TD>Springe zum Ende der aktuellen Zeile. </TD></TR></TBODY></TABLE><A
name=eingeben>
<P>
<H3>Text eingeben</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>i </CODE></TD>
<TD>(insert), Eingabe vor dem aktuellen Zeichen. </TD></TR>
<TR>
<TD vAlign=top><CODE>a </CODE></TD>
<TD>(append), Eingabe nach dem aktuellen Zeichen. </TD></TR>
<TR>
<TD vAlign=top><CODE>I </CODE></TD>
<TD>(Insert), Eingabe am Anfang der aktuellen Zeile. </TD></TR>
<TR>
<TD vAlign=top><CODE>A </CODE></TD>
<TD>(Append), Eingabe am Ende der aktuellen Zeile. </TD></TR>
<TR>
<TD vAlign=top><CODE>o </CODE></TD>
<TD>neue Zeile und Eingabe nach der aktuellen Zeile. </TD></TR>
<TR>
<TD vAlign=top><CODE>O </CODE></TD>
<TD>neue Zeile und Eingabe vor der aktuellen Zeile. </TD></TR>
<TR>
<TD vAlign=top><EM>Ctrl-v </EM></TD>
<TD>Eingabe eines Steuerzeichens. </TD></TR></TBODY></TABLE><A name=aendern>
<P>
<H3>Text ändern</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>r<EM>Zeichen</EM> </CODE></TD>
<TD>(replace), Änderung des aktuellen Buchstaben in <EM>Zeichen</EM>.
</TD></TR>
<TR>
<TD vAlign=top><CODE>R </CODE></TD>
<TD>(Replace), Überschreibemodus vom aktuellen Buchstaben aus. </TD></TR>
<TR>
<TD vAlign=top><CODE>cw<EM>Wort</EM> </CODE></TD>
<TD>ersetzt das Wort vor dem Cursor durch <EM>Wort</EM>. </TD></TR>
<TR>
<TD vAlign=top><CODE>cc<EM>Zeichenkette</EM> </CODE></TD>
<TD>ersetzt die aktuelle oder nächste Zeile durch <EM>Zeichenkette</EM>
</TD></TR>
<TR>
<TD vAlign=top><CODE>J </CODE></TD>
<TD>hängt die der aktuellen folgende Zeile an die aktuelle an und
positioniert den Cursor "dazwischen". </TD></TR></TBODY></TABLE><A
name=loeschen>
<P>
<H3>Text löschen</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE><EM>[Count]<EM>x </em></em></CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) Zeichen unter dem Cursor (nach rechts) wird
gelöscht. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]<EM>X </em></em></CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) Zeichen links vom dem Cursor wird gelöscht.
</TD></TR>
<TR>
<TD vAlign=top><CODE>D </CODE></TD>
<TD>löscht von der Cursorposition bis zum Zeilenende. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>dd </CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) Zeilen werden gelöscht. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>d<EM>[Richtung]</EM> </CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) mal wird in <EM>Richtung</EM> (rechts, links,
oben, unten, wortweise, was es eben so gibt!) gelöscht.
</TD></TR></TBODY></TABLE><A name=zwischenablagen>
<P>
<H3>Die Zwischenablagen im VI</H3></A>Der VI hat ziemlich viele Zwischenablagen.
Zum Einen sind das die, die beim Löschen automatisch gefüllt werden (man kann
auch ohne zu löschen Text in diese Ablagen schieben), zum Anderen gibt es noch
26 weitere, die man selbst belegen kann.
<P>Die sogenannten <EM>Delete Buffer</EM>, also die Zwischenablagen, die durch
das Löschen (z.B. durch <CODE>dd</CODE>) gefüllt werden, sind wie ein Stack
organisiert, d.h., nach jedem Löschen verschiebt sich der Inhalt der Ablagen um
Einen nach hinten. Diese Ablagen werden adressiert über die Zifferntasten 1 bis
0, es gibt also 10 Stück.
<P>Außerdem kann noch beliebig Text in die anderen 26 Ablagen schmeißen, die
durch die Tasten a-z adressiert sind. Die Vorgehensweise bei beiden Arten ist
identisch: Zwischenablage auswählen und dann kopieren, einfügen oder was auch
immer.
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>"<EM>1..0, a..z</EM> </CODE></TD>
<TD>Die Ablage <EM>1..0</EM> bzw. <EM>a..z</EM> für die nächste Aktion
auswälen. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>y<EM>[Richtung]</EM> </CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) mal wird in <EM>Richtung</EM> (rechts, links,
oben, unten, wortweise, was es eben so gibt!) in die aktuelle
Zwischenablage kopiert. </TD></TR>
<TR>
<TD vAlign=top><CODE><EM>[Count]</EM>yy </CODE></TD>
<TD>1 (bzw. <EM>Count</EM>) Zeilen werden in die aktuelle Zwischenablage
kopiert. </TD></TR>
<TR>
<TD vAlign=top><EM>Beliebige <A
href="http://www.fh-wedel.de/~herbert/html/vi/#loeschen">Löschaktion</A>
</EM></TD>
<TD>Gelöschter Text wird in die aktuelle Zwischenablage kopiert. </TD></TR>
<TR>
<TD vAlign=top><CODE>p </CODE></TD>
<TD>Der Inhalt der aktuellen Zwischenablage wird hinter dem Cursor
eingefügt. </TD></TR>
<TR>
<TD vAlign=top><CODE>P </CODE></TD>
<TD>Der Inhalt der aktuellen Zwischenablage wird vor dem Cursor eingefügt.
</TD></TR></TBODY></TABLE><A name=suchenersetzen>
<P>
<H3>Suchen und Ersetzen</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>/<EM>Regex</EM> </CODE></TD>
<TD>Suche vorwärts nach dem regulären Ausdruck <EM>Regex</EM>. </TD></TR>
<TR>
<TD vAlign=top><CODE>?<EM>Regex</EM> </CODE></TD>
<TD>Suche rückwärts nach dem regulären Ausdruck <EM>Regex</EM>. </TD></TR>
<TR>
<TD vAlign=top><CODE>n </CODE></TD>
<TD>Wiederholt das letzte Suchkommando. </TD></TR>
<TR>
<TD vAlign=top><CODE>N </CODE></TD>
<TD>Wiederholt das letzte Suchkommando in die jeweils andere Richtung.
</TD></TR>
<TR>
<TD vAlign=top><CODE>f<EM>Zeichen</EM> </CODE></TD>
<TD>Sucht nach <EM>Zeichen</EM> in der aktuellen Zeile vorwärts. </TD></TR>
<TR>
<TD vAlign=top><CODE>F<EM>Zeichen</EM> </CODE></TD>
<TD>Sucht nach <EM>Zeichen</EM> in der aktuellen Zeile rückwärts. </TD></TR>
<TR>
<TD vAlign=top><CODE>:%s/<EM>Quelle</EM>/<EM>Ziel</EM>/ </CODE></TD>
<TD>Ersetzt <EM>Quelle</EM> im Text <EM>einmal</EM> durch <EM>Ziel</EM>.
</TD></TR>
<TR>
<TD vAlign=top><CODE>:%s/<EM>Quelle</EM>/<EM>Ziel</EM>/g </CODE></TD>
<TD>Ersetzt <EM>Quelle</EM> im Text <EM>überall</EM> durch <EM>Ziel</EM>.
</TD></TR></TBODY></TABLE><A name=bookmarks>
<P>
<H3>Bookmarks im VI</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>m<EM>Key</EM> </CODE></TD>
<TD>Setzt eine Marke an der aktuellen Stelle unter dem Namen der Taste
<EM>Key</EM>. </TD></TR>
<TR>
<TD vAlign=top><CODE>'<EM>Key</EM> </CODE></TD>
<TD>Springt zu der <EM>Zeile</EM> mit der Marke <EM>Key</EM>. </TD></TR>
<TR>
<TD vAlign=top><CODE>`<EM>Key</EM> </CODE></TD>
<TD>Springt zu der <EM>Stelle</EM> mit der Marke <EM>Key</EM>.
</TD></TR></TBODY></TABLE><A name=goodies>
<P>
<H3>Sonstige Goodies</H3></A>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD vAlign=top><CODE>. </CODE></TD>
<TD>Wiederholt die letzte Editieraktion, z.B. die Texteingabe seit das
letzte Mal der <EM>Visual Mode</EM> verlassen wurde, Suchen und Ersetzen
oder was auch immer. </TD></TR>
<TR>
<TD vAlign=top><CODE>%</CODE> über einer Klammer </TD>
<TD>Springt mit dem Cursor auf die korrespondierende öffnende bzw.
schließende Klammer. </TD></TR>
<TR>
<TD vAlign=top><CODE>:tag </CODE><EM>C-Identifier</EM>
<BR><CODE>Ctrl-]</CODE> (auf <EM>C-Identifier</EM>) </TD>
<TD>Sucht in der aktuellen C-Tags-Datei nach <EM>C-Identifier</EM> und
öffnet bei Erfolg einen Buffer mit der entsprechenden Quelltextdatei an
der entsprechenden Stelle. Siehe hierzu das Utility <EM>ctags</EM>, das
mit jedem VI installiert wird. </TD></TR></TBODY></TABLE>
<P><A name=at003></A>
<DIV align=right><A href="http://www.fh-wedel.de/~herbert/html/vi/#attop"
POSITION="">[Seitenanfang]</A> <A
href="http://www.fh-wedel.de/~herbert/html/index.html" POSITION="">[eine Ebene
höher]</A> <A
href="http://www.fh-wedel.de/cgi-bin/xml2html/~herbert/html/vi/index.html?DEFSTYLE=multilingual.style&amp;LANGUAGE=schwob"
POSITION="">[nach Schwäbisch übersetzen]</A></DIV>
<HR width="100%" noShade SIZE=1>
<TABLE width="100%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=left>Letzte Änderung: 30.04.2001 </DIV></TD>
<TD vAlign=top>
<DIV align=right>
<ADDRESS>© <A href="mailto:herbert@fh-wedel.de">Herbert</A> &nbsp;&nbsp;<A
href="http://www.fh-wedel.de/~herbert">[seine Homepage]</A> &nbsp;&nbsp;<A
href="http://www.fh-wedel.de/~herbert/htdig/index.html">[durchsuchen]</A>
</ADDRESS></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
-22
View File
@@ -1,22 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>FAS-Installation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</head>
<body>
<h2>Links für die FAS-Installation</h2>
<a href="../../content/InstallationsanleitungFASonline.html">Installationsanleitung</a><br><br>
<a href="http://www.seamonkey-project.org/releases/2.11">Seamonkey Download (Version 2.11)</a><br>
<a href="XPI/orbit-1.8f5-MiK.xpi">Orbit 3+1 Theme</a><br>
<br>
<h3>Images:</h3>
<a href="../../skin/images/fhcomplete.bmp">fhcomplete.bmp</a><br>
<a href="../../skin/images/Tempus.ico">tempus.ico</a><br>
<a href="../../skin/images/FAS.ico">fas.ico</a><br>
<h3>XPI:</h3>
<a href="XPI/Seamonkey2.11/fhcomplete/fhcomplete.xpi">FH Complete.xpi</a><br>
<!--<a href="XPI/TempusTWProduktiv/Tempus.xpi">Tempus.xpi</a><br>-->
</body>
</html>
-447
View File
@@ -1,447 +0,0 @@
<?php
/*
###########################################################################
# htaccess-Generator #
###########################################################################
# #
# Copyright © 2000+2001 by Alexander Mieland (DMA147.ThW.N) #
# Contact: dma147@gamesweb.com / http://www.apboard.de #
# #
###########################################################################
# Dieses Script ist vollkommen frei und kostenlos erhältlich. #
# Dieses Script darf an Dritte weitergegeben werden, Vorraussetzung #
# ist, dass der Code unverändert bleibt und diese Text-Datei #
# !!! WICHTIG !!!.txt mit weitergegeben wird. #
# Dieses Script ist herunterzuladen unter: http://www.apboard.de #
###########################################################################
*/
$version="v.1.6";
function error($text) {
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><div align=\"center\"><p><font face=\"Geneva, Arial, Helvetica, san-serif\" size=\"4\" color=\"#FF0000\"><b><font color=\"#FF3300\">ERROR:</font></b></font></p>
<p><b><font face=\"Geneva, Arial, Helvetica, san-serif\" size=\"2\" color=\"#333333\">Das Script meldet folgenden Fehler:<br>&quot;<font size=\"3\" color=\"#FF3300\">".$text."</font>&quot; </font></b></p>
<p><b><font face=\"Geneva, Arial, Helvetica, san-serif\" size=\"2\" color=\"#333333\"><br>[ - <a href=\"./access.php\">Index</a> - <a href=\"javascript:history.go(-1)\">Zur&uuml;ck</a> - ]</font></b></p><br><br><br>
</div></td></tr></table></b></font></form></td><td width=\"3%\">&nbsp;</td></tr><tr><td width=\"4%\">&nbsp;</td><td width=\"93%\"><div align=\"right\"><font face=\"Geneva, Arial, Helvetica, san-serif\" size=\"1\" color=\"#666666\"><br>
htaccess-Generator Copyright &copy; 2000+2001 by <a href=\"mailto:dma147@gamesweb.com\">Alexander Mieland (DMA147)</a></font></div></td><td width=\"3%\">&nbsp;</td></tr></table></td></tr></table></body></html>";
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>htaccess-Generator <?php echo $version; ?></title><style type="text/css">
a:link { color:#0033FF; text-decoration:none; }
a:visited { color:#0033FF; text-decoration:none; }
a:active { color:#FF3300; text-decoration:none; }
a:hover { color:#FF3300; text-decoration:none; }
</style></head><body bgcolor="#666666" text="#333333" link="#0033FF" vlink="#0033CC" alink="#FF3300" topmargin="30"><br><br><br><table width="550" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr bgcolor="#CCCCCC"><td width="2%" height="31">&nbsp;</td><td width="96%" height="31" bgcolor="#CCCCCC">
<div align="center"><font face="Geneva, Arial, Helvetica, san-serif" size="3" color="#666666"><b><font size="4">DMA`s <font color="#FF3300">htaccess</font>-Generator <?php echo $version; ?></font></b></font></div>
</td><td width="2%" height="31">&nbsp;</td></tr><tr><td width="2%" bgcolor="#CCCCCC">&nbsp;</td><td width="96%"> <font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#333333">
<br>Script zum erstellen eines kompletten, passwortgesch&uuml;tzen Bereichs auf dem Server.<br><font color="#FF3300"><b><li>Das Verzeichnis, welches gesch&uuml;tzt werden soll, MUSS chmod 777 haben!
<li>Dieses Script muss IN dem, zu sch&uuml;tzenden Verzeichnis liegen!<br><br><br><br></b></font></font></td><td width="2%" bgcolor="#CCCCCC">&nbsp;</td></tr><tr><td width="2%" bgcolor="#CCCCCC">&nbsp;</td><td width="96%">
<?php
if (!isset($auswahl)):
?>
<br>
<div align="center"> <font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<font size="3" color="#FF3300">htaccess</font><font size="3">-Men&uuml;</font><br>
<br>
</b></font>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b><a href="./access.php?auswahl=neu">Neuen
Admin-Bereich erstellen</a>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
<td width="50%">
<div align="left"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;<a href="./access.php?auswahl=change">Einen
Admin-Bereich &auml;ndern</a></b></font></div>
</td>
</tr>
<tr>
<td width="50%">
<div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
<td width="50%">
<div align="left"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
</tr>
<tr>
<td width="50%">
<div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b><a href="./access.php?auswahl=open">Einen
Admin-Bereich wieder &ouml;ffnen</a>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
<td width="50%">
<div align="left"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;<a href="http://www.apboard.de">Zur
Homepage des Generators</a></b></font></div>
</td>
</tr>
<tr>
<td width="50%">
<div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
<td width="50%">
<div align="left"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
</tr>
<tr>
<td width="50%">
<div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b><a href="mailto:dma147@gamesweb.com?subject=Mail%20aus%20dem%20Generator%20heraus">Dem
Autor eine eMail schicken</a>&nbsp;&nbsp;&nbsp;</b></font></div>
</td>
<td width="50%">
<div align="left"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#333333"><b>&nbsp;&nbsp;&nbsp;<a href="http://www.dmx147.de/download/htaccess.zip">Die
neueste Version downloaden</a></b></font></div>
</td>
</tr>
</table>
<br>
<br>
<br>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
</b> </font> </div>
<?php
elseif ($auswahl == "neu"):
if (!isset($user)):
?>
<br>
<div align="center"> <font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<font size="4" color="#FF3300">Neuen Bereich anlegen</font></b></font><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666">
<br>
<br>
<br>
<br>
<a href="./access.php?auswahl=neu&user=1">Bereich mit nur einem User anlegen</a><br>
<br>
<a href="./access.php?auswahl=neu&user=2">Bereich mit mehreren Usern anlegen</a><br>
<br>
<br>
<br>
[ - <a href="./access.php">index</a> - ]</font>
<br>
<br>
<br>
</div>
<?php
elseif ($user == "1"):
if (!isset($save)):
?>
<form method="post" action="./access.php" name="send">
<center>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<div align="center"><br>
Neuen Admin-Bereich erstellen </div>
</b></font>
</center>
<div align="center"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b><br>
<br>
Vergib einen Namen für den Bereich (max. 30 Zeichen):<br>
<input type="text" name="realm" maxsize=30>
<br>
<br>
Gib den Usernamen ein:<br>
<input type="text" name="name">
<br>
<br>
Gib das Passwort zweimal ein:<br>
<input type="password" name="pwd1">
<br>
<input type="password" name="pwd2">
<input type="hidden" name="save" value="yes">
<input type="hidden" name="user" value="1">
<input type="hidden" name="auswahl" value="neu">
<br>
<br>
<input type="submit" name="submit" value="speichern">
</b></font></div>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
</b></font>
</form>
<?php
elseif ($save == "yes"):
if ($name == "" || $name == " " || $pwd1 == "" || $pwd2 == "")
{
error("Da fehlt doch was???!!!");
} else {
if ($pwd1 == $pwd2) {
$passwd = crypt($pwd2);
$inhalt = $name.":".$passwd;
$i=1;
while(!$pwfile) {
if(file_exists("./.htpasswd0$i")) $i++;
else $pwfile=".htpasswd0$i";
}
$wf = fopen ("./".$pwfile, "w+");
if(!fwrite ($wf,$inhalt)) error($pwfile." konnte nicht geschrieben werden! Bitte das Verzeichnis auf 777 chmoden! (Info in wichtig.txt!)");
fclose ($wf);
$path = $SCRIPT_FILENAME;
$path = ereg_replace('/access.php', '', $path);
$htaccessinhalt = "AuthType Basic\nAuthName \"".$realm." - found at: http://www.apboard.de\"\nAuthUserFile ".$path."/".$pwfile."\nrequire valid-user";
$wf = fopen ("./.htaccess", "w+");
if(!fwrite ($wf,$htaccessinhalt)) error(".htaccess konnte nicht geschrieben werden! Bitte das Verzeichnis auf 777 chmoden! (Info in wichtig.txt!)");
fclose ($wf);
echo "<br><br><p><font color=#FF3300>Die .htpasswd wurde mit folgendem Inhalt gespeichert:</font><br>".$inhalt."</p>
<font color=#FF3300>Die .htaccess wurde mit folgendem Inhalt gespeichert:</font><br><pre>".$htaccessinhalt."</pre></p><br>
<hr><br>
Denken Sie daran, dass man versteckte Dateien auf einem Server mit einem FTP-Programm manchmal nicht sieht!<br>
Da die Datei &quot;.htpasswd&quot; eine versteckte Datei ist (in Unix ist alles, mit Punkt vorne, versteckt),
Kann es sein, dass sie sie nicht sehen. Sie können sie sich aber dennoch runterladen, indem sie in die FTP-Console
Ihres FTP-Clients folgendes eingeben:&nbsp;&nbsp;&nbsp;get .htpasswd<br><br></font>";
} else {
echo "<br><br><br>";
error("Die beiden Passwort-Eingaben unterscheiden sich voneinander!");
}
}
endif;
?>
<font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#666666"><center><br>
<br>
[ - <a href="./access.php">Index</a> - ]<br>
</center>
</font><br>
<?php
elseif ($user == "2"):
if (!isset($save)):
?>
<form method="post" action="./access.php" name="send">
<center>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<div align="center"><br>
Neuen Admin-Bereich erstellen </div>
</b></font>
</center>
<div align="center"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b><br>
<br>
Vergib einen Namen für den Bereich (max. 30 Zeichen):<br>
<input type="text" name="realm" maxsize=30>
<br>
<br>
Gib den 1. Usernamen ein:<br>
<input type="text" name="name">
<br>
<br>
Gib das 1. Passwort zweimal ein:<br>
<input type="password" name="pwd1">
<br>
<input type="password" name="pwd2">
<input type="hidden" name="save" value="no">
<input type="hidden" name="user" value="2">
<input type="hidden" name="auswahl" value="neu">
<br>
<br>
<input type="submit" name="submit" value="speichern">
</b></font></div>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
</b></font>
</form>
<?php
elseif ($save == "no"):
if ($submit == "speichern" || $submit == "weitere User"):
if ($name == "" || $name == " " || $pwd1 == "" || $pwd2 == "")
{
error("Da fehlt doch was???!!!");
} else {
if ($pwd1 == $pwd2) {
$passwd = crypt($pwd2);
$inhalt1 .= $name.":".$passwd."\n";
?>
<form method="post" action="./access.php" name="send">
<center>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<div align="center"><br>
Weitere User</div>
</b></font>
</center>
<div align="center"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b><br>
<br>
Gib den nächsten Usernamen ein:<br>
<input type="text" name="name">
<br>
<br>
Gib das nächste Passwort zweimal ein:<br>
<input type="password" name="pwd1">
<br>
<input type="password" name="pwd2">
<input type="hidden" name="save" value="no">
<input type="hidden" name="user" value="2">
<input type="hidden" name="auswahl" value="neu">
<input type="hidden" name="inhalt1" value="<?php echo $inhalt1; ?>">
<input type="hidden" name="realm" value="<?php echo $realm; ?>">
<br>
<br>
<input type="submit" name="submit" value="weitere User">&nbsp;&nbsp;
<input type="submit" name="submit" value="endgültig speichern">
</b></font></div>
<font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
</b></font>
</form>
<?php
} else {
echo "<br><br><br>";
error("Die beiden Passwort-Eingaben unterscheiden sich voneinander!");
}
}
elseif ($submit == "endgültig speichern"):
if ($name == "" || $name == " " || $pwd1 == "" || $pwd2 == "")
{
error("Da fehlt doch was???!!!");
} else {
if ($pwd1 == $pwd2) {
$passwd = crypt($pwd2);
$inhalt1 .= $name.":".$passwd."\n";
$i=1;
while(!$pwfile) {
if(file_exists("./.htpasswd0$i")) $i++;
else $pwfile=".htpasswd0$i";
}
$wf = fopen ("./".$pwfile, "w+");
if(!fwrite ($wf,$inhalt1)) error($pwfile." konnte nicht geschrieben werden! Bitte das Verzeichnis auf 777 chmoden! (Info in wichtig.txt!)");
fclose ($wf);
$path = $SCRIPT_FILENAME;
$path = ereg_replace('/access.php', '', $path);
$htaccessinhalt = "AuthType Basic\nAuthName \"".$realm." - found at: http://www.apboard.de\"\nAuthUserFile ".$path."/".$pwfile."\nrequire valid-user";
$wf = fopen ("./.htaccess", "w+");
if(!fwrite ($wf,$htaccessinhalt)) error(".htaccess konnte nicht geschrieben werden! Bitte das Verzeichnis auf 777 chmoden! (Info in wichtig.txt!)");
fclose ($wf);
$inhalt2 = str_replace("\n", "<br>", $inhalt1);
echo "<br><br><p><font color=#FF3300>Die .htpasswd wurde mit folgendem Inhalt gespeichert:</font><br>".$inhalt2."</p>
<font color=#FF3300>Die .htaccess wurde mit folgendem Inhalt gespeichert:</font><br><pre>".$htaccessinhalt."</pre></p><br>
<hr><br>
Denken Sie daran, dass man versteckte Dateien auf einem Server mit einem FTP-Programm manchmal nicht sieht!<br>
Da die Datei &quot;.htpasswd&quot; eine versteckte Datei ist (in Unix ist alles, mit Punkt vorne, versteckt),
Kann es sein, dass sie sie nicht sehen. Sie können sie sich aber dennoch runterladen, indem sie in die FTP-Console
Ihres FTP-Clients folgendes eingeben:&nbsp;&nbsp;&nbsp;get .htpasswd<br><br></font>";
} else {
echo "<br><br><br>";
error("Die beiden Passwort-Eingaben unterscheiden sich voneinander!");
}
}
endif;
endif;
?>
<font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#666666"><center><br>
<br>
[ - <a href="./access.php">Index</a> - ]<br>
</center>
</font><br>
<?php
endif;
elseif ($auswahl == "change"):
?>
<br>
<div align="center"> <font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<font size="3">Admin-Bereich ändern</font><br>
<font size="2" color="#333333"><br>
<font color=#ff0000><b>VORSICHT!</b><br>
Dies sollten nur Leute machen, die auch wirklich wissen, was sie tun!<br><br></font>
<br>
<?php
if (!isset($pwdatei)):
?>
<form method=post action=access.php>
Folgende Datei ändern:<br>
<?php
echo "<select name=pwdatei>";
$handle=opendir('.');
while ($file = readdir ($handle)) {
if ($file == ".htaccess" || eregi(".htpasswd", $file)) {
echo "<option>".$file."</option>";
}
}
closedir($handle);
echo "</select>";
?>
<br><br>
<input type="hidden" name="auswahl" value="change">
<input type="submit" name="submit" value="ändern">&nbsp;&nbsp;&nbsp;
<input type="submit" name="submit" value="löschen">
</form>
<?php
elseif (isset($pwdatei)):
if ($submit == "ändern"):
if (!isset($save)):
?>
<form method=post action=access.php>
Folgende Datei ändern:<br>
<?php
echo $pwdatei."<br>";
$fp = fopen ("./".$pwdatei, "r");
$inhalt = fread ($fp, filesize("./".$pwdatei));
echo "<TEXTAREA NAME=\"inhalt\" cols=\"60\" rows=\"14\">".$inhalt."</TEXTAREA>";
fclose ($fp);
?>
<br><br>
<input type="hidden" name="pwdatei" value="<?php echo $pwdatei; ?>">
<input type="hidden" name="save" value="1">
<input type="hidden" name="auswahl" value="change">
<input type="submit" name="submit" value="Datei speichern">
</form>
<?php
elseif ($save == "1"):
$fp = fopen ("./".$pwdatei, "w+");
if (!fwrite ($fp, $inhalt)) {
error ("Datei konnte nicht geschrieben werden!");
} else {
echo"<b>Datei erfolgreich gespeichert!</b><br>[ - <a href=access.php>Index</a> - ]<br>";
}
fclose ($fp);
endif;
elseif ($submit == "löschen"):
if (!isset($del)):
echo "Die Datei ".$pwdatei." wirklich löschen?<br><br>";
echo "[ - <a href=\"./access.php?auswahl=change&pwdatei=".$pwdatei."&submit=löschen&del=JA\">JA</a> - <a href=\"./access.php\">NEIN!</a> - ]";
elseif ($del == "JA"):
if(file_exists("./".$pwdatei)) {
if (!unlink("./".$pwdatei)) {
error($pwdatei." konnte nicht gelöscht werden! Bitte manuell, per FTP löschen.");
} else {
echo "<br>Datei ".$pwdatei." wurde erfolgreich gelöscht!<br>[<a href=access.php>Index</a>]<br><br>";
}
} else {
error("Diese Datei ist nicht vorhanden!!??");
}
endif;
endif;
endif;
?>
<br><br>
</font></b> </font> <font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#666666"><br>
[ - <a href="javascript:history.go(-1)">zur&uuml;ck</a> - ]<br>
<br>
<br>
<br>
<b> </b> </font> </div>
<?php
elseif ($auswahl == "open"):
?>
<br>
<div align="center"> <font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#666666"><b>
<font size="3">Admin-Bereich wieder öffnen</font><br>
<font size="2" color="#333333"><br>
<?php
if (!isset($del)):
echo "Den geschützen Bereich wirklich wieder für alle freigeben?<br>(Datei .htaccess wirklich löschen?)<br><br>";
echo "[ - <a href=\"./access.php?auswahl=open&del=JA\">JA</a> - <a href=\"./access.php\">NEIN!</a> - ]";
elseif ($del == "JA"):
if(file_exists("./.htaccess")) {
if (!unlink("./.htaccess")) {
error(".htaccess konnte nicht gelöscht werden! Bitte manuell, per FTP löschen.");
} else {
echo "<br>Datei .htaccess wurde erfolgreich gelöscht!<br>[<a href=access.php>Index</a>]<br><br>";
}
} else {
error("Keine .htaccess - Datei zum löschen vorhanden!!??");
}
endif;
?>
<br>
</font></b> </font> <font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#666666"><br>
[ - <a href="javascript:history.go(-1)">zur&uuml;ck</a> - ]<br>
<br>
<br>
<br>
<b> </b> </font> </div>
<?php
endif;
?>
</td><td width="2%" bgcolor="#CCCCCC">&nbsp;</td></tr><tr bgcolor="#CCCCCC"><td width="2%">&nbsp;</td><td width="96%"><div align="right"><font face="Geneva, Arial, Helvetica, san-serif" size="1" color="#666666"><br>
<font color="#FF3300">htaccess</font>-Generator Copyright &copy; 2000+2001 by <a href="mailto:dma147@gamesweb.com">Alexander Mieland (DMA147)</a></font></div></td><td width="2%">&nbsp;</td></tr></table></td></tr></table></body></html>
-21
View File
@@ -1,21 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="de_AT">
<head>
<title>VileSci - Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css" />
</head>
<frameset cols="220,*">
<frame src="menu.html" id="nav" name="nav" frameborder="0" />
<frame src="main.html" id="main" name="main" frameborder="0" />
<noframes>
<body bgcolor="#FFFFFF">
This application works only with a frames-enabled browser.<br />
<a href="main.php">Use without frames</a>
</body>
</noframes>
</frameset>
</html>
-21
View File
@@ -1,21 +0,0 @@
<HTML>
<HEAD>
<TITLE>Mail Test</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<P>Test-Seite zum verschicken von Mails.</P>
<FORM name="form1" method="post" action="mailtest.php">
Adresse:
<INPUT type="text" name="adress">
<BR>
Subject:
<INPUT type="text" name="subject">
<BR>
<INPUT type="submit" name="Send" value="Abschicken">
</FORM>
<P>&nbsp; </P>
</BODY>
</HTML>
-10
View File
@@ -1,10 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8"></HEAD>
<BODY>
<?php
//for ($i=0;$i<100;$i++)
echo mail($adress,$subject,"test");
?>
</BODY>
</HTML>
-30
View File
@@ -1,30 +0,0 @@
<HTML>
<HEAD>
<TITLE>VileSci-Admin</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</HEAD>
<BODY class="background_main">
<H2>VileSci Administration</H2>
<H3>Tools</H3>
<UL>
<LI><A href="../../phppgadmin/index.php" class="linkblue" target="_blank">phpPgAdmin</A></LI>
<LI><A href="../../phpmyadmin/index.php" class="linkblue" target="_blank">phpMyAdmin</A></LI>
<LI><A href="test/index.html" class="linkblue">Server-Tests</A></LI>
<!--<LI><A href="reihungstest/index.html" class="linkblue">ReihungsTest</A></LI>-->
<LI><A href="htaccess/access.php" class="linkblue">.htaccess-Generator</A></LI>
<LI><A href="VI-Kurzreferenz.html" class="linkblue">VI-Kurzreferenz</A></LI>
</UL>
<HR>
<H3>Admin</H3>
<UL>
<LI><A href="sipassdb.php" class="linkblue">SiPass Datenbank</A></LI>
</UL>
<HR>
<H3>Extras</H3>
<UL>
<LI><A href="fasinstall.html" class="linkblue">FAS-Installation</A></LI>
</UL>
</BODY>
</HTML>
-70
View File
@@ -1,70 +0,0 @@
<?php
/* Copyright (C) 2012 FH 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: Karl Burkhart <burkhart@technikum-wien.at>
*/
require_once('../../../config/vilesci.config.inc.php');
require_once('../../../include/mail.class.php');
?>
<HTML>
<HEAD>
<TITLE>VileSci-ServerTests</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</HEAD>
<?php
$msg='';
// Test-Email versenden
if(isset($_POST['Abschicken']))
{
$mail = new mail($_POST['sendto'], $_POST['sendfrom'], 'Test', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
$mail->setHTMLContent('Dies ist ein Test');
if(!$mail->send())
$msg.= '<span class="error">Fehler beim Senden des Mails</span><br />';
else
$msg.= ' Mail verschickt an '.$_POST['sendto'];
}
?>
<BODY class="background_main">
<H2>VileSci ServerTests</H2>
<UL>
<LI><A href="php-info.php" class="linkblue">PHP-Info</A></LI>
<LI><A href="pdftest/test.php" class="linkblue">PDF-Test</A></LI>
<LI>
<FORM name="mail" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
Mail Verschicken an:
<INPUT type="text" name="sendto" value="pam@technikum-wien.at"><br>
Von:
<INPUT type="text" name="sendfrom" value=""> <br>
<INPUT type="submit" name="Abschicken" value="Go">
</FORM>
<BR>
<BR>
<?php echo $msg; ?>
</LI>
</UL>
</BODY>
</HTML>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +0,0 @@
<?php
$fp = fopen("./bestell.pdf", "r");
header("Content-type: application/pdf");
fpassthru($fp);
fclose($fp);
?>
@@ -1,30 +0,0 @@
<html>
<head>
<title>Bestellschein</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$fp = fopen("bestell.pdf", "w");
$pdf = pdf_open($fp);
pdf_set_info_author($pdf, "Dodik Thomas");
PDF_set_info_title($pdf, "Bestellung");
PDF_set_info_author($pdf, "Thomas Dodik");
pdf_set_info_creator($pdf, "PHP");
pdf_set_info_subject($pdf, "Subject");
PDF_begin_page($pdf, 595, 842);
PDF_add_outline($pdf, "Page 1");
pdf_set_font($pdf, "Times-Roman", 30, 4);
pdf_set_text_rendering($pdf, 1);
PDF_show_xy($pdf, "Times-Roman", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330,740);
pdf_stroke($pdf);
PDF_end_page($pdf);
PDF_close($pdf);
fclose($fp);
?>
<A HREF=../bestell_pdf_get.php>finished</A>
</body>
</html>
File diff suppressed because it is too large Load Diff
-91
View File
@@ -1,91 +0,0 @@
<?php
$pdffilename = "clock.pdf";
$radius = 200;
$margin = 20;
$pagecount = 40;
$fp = fopen($pdffilename, "w");
$pdf = pdf_open($fp);
pdf_set_info_creator($pdf, "pdf_clock.php3");
pdf_set_info_author($pdf, "Uwe Steinmann");
pdf_set_info_title($pdf, "Analog Clock");
while($pagecount-- > 0) {
pdf_begin_page($pdf, 2 * ($radius + $margin), 2 * ($radius + $margin));
pdf_set_transition($pdf, 4); /* wipe */
pdf_set_duration($pdf, 0.5);
pdf_translate($pdf, $radius + $margin, $radius + $margin);
pdf_save($pdf);
pdf_setrgbcolor($pdf, 0.0, 0.0, 1.0);
/* minute strokes */
pdf_setlinewidth($pdf, 2.0);
for ($alpha = 0; $alpha < 360; $alpha += 6) {
pdf_rotate($pdf, 6.0);
pdf_moveto($pdf, $radius, 0.0);
pdf_lineto($pdf, $radius-$margin/3, 0.0);
pdf_stroke($pdf);
}
pdf_restore($pdf);
pdf_save($pdf);
/* 5 minute strokes */
pdf_setlinewidth($pdf, 3.0);
for ($alpha = 0; $alpha < 360; $alpha += 30) {
pdf_rotate($pdf, 30.0);
pdf_moveto($pdf, $radius, 0.0);
pdf_lineto($pdf, $radius-$margin, 0.0);
pdf_stroke($pdf);
}
$ltime = getdate();
/* draw hour hand */
pdf_save($pdf);
pdf_rotate($pdf,-(($ltime['minutes']/60.0)+$ltime['hours']-3.0)*30.0);
pdf_moveto($pdf, -$radius/10, -$radius/20);
pdf_lineto($pdf, $radius/2, 0.0);
pdf_lineto($pdf, -$radius/10, $radius/20);
pdf_closepath($pdf);
pdf_fill($pdf);
pdf_restore($pdf);
/* draw minute hand */
pdf_save($pdf);
pdf_rotate($pdf,-(($ltime['seconds']/60.0)+$ltime['minutes']-15.0)*6.0);
pdf_moveto($pdf, -$radius/10, -$radius/20);
pdf_lineto($pdf, $radius * 0.8, 0.0);
pdf_lineto($pdf, -$radius/10, $radius/20);
pdf_closepath($pdf);
pdf_fill($pdf);
pdf_restore($pdf);
/* draw second hand */
pdf_setrgbcolor($pdf, 1.0, 0.0, 0.0);
pdf_setlinewidth($pdf, 2);
pdf_save($pdf);
pdf_rotate($pdf, -(($ltime['seconds'] - 15.0) * 6.0));
pdf_moveto($pdf, -$radius/5, 0.0);
pdf_lineto($pdf, $radius, 0.0);
pdf_stroke($pdf);
pdf_restore($pdf);
/* draw little circle at center */
pdf_circle($pdf, 0, 0, $radius/30);
pdf_fill($pdf);
pdf_restore($pdf);
pdf_end_page($pdf);
}
$pdf = pdf_close($pdf);
fclose($fp);
echo "<A HREF=getpdf.php?filename=".$pdffilename.">finished</A>";
?>
@@ -1,6 +0,0 @@
<?php
header("Content-type: application/pdf");
$fp = fopen($filename, "r");
fpassthru($fp);
fclose($fp);
?>
Binary file not shown.
-33
View File
@@ -1,33 +0,0 @@
<?php
# $Id: hello.php,v 1.3.2.2 2002/01/22 19:48:48 tm Exp $
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "hello.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "Hello world (PHP)");
PDF_begin_page($p, 595, 842);
# Change "host" encoding to "winansi" or whatever you need!
$font = PDF_findfont($p, "Helvetica-Bold", "host", 0);
PDF_setfont($p, $font, 18.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, "Hello world!");
PDF_continue_text($p, "(says PHP)");
PDF_end_page($p);
PDF_close($p);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hello.pdf");
print $buf;
PDF_delete($p);
?>
-39
View File
@@ -1,39 +0,0 @@
<?php
# $id$
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "image.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "image sample (PHP)");
$imagefile = "nesrin.jpg";
$image = PDF_open_image_file($p, "jpeg", $imagefile, "", 0);
if (!$image) {
die("Couldn't open image ".$imagefile);
}
# See the PDFlib manual for more advanced image size calculations
$width = PDF_get_value($p, "imagewidth", $image);
$height = PDF_get_value($p, "imageheight", $image);
# We generate a page with the image's dimensions
PDF_begin_page($p, $width, $height);
PDF_place_image($p, $image, 0, 0, 1);
PDF_close_image($p, $image);
PDF_end_page($p);
PDF_close($p);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=image.pdf");
print $buf;
PDF_delete($p);
?>
@@ -1,21 +0,0 @@
<?php
$fp = fopen("test.pdf", "w");
$pdf = pdf_open($fp);
pdf_set_info_author($pdf, "Uwe Steinmann");
pdf_set_info_title($pdf, "Test for PHP wrapper of PDFlib 2.0");
pdf_set_info_author($pdf, "Name of Author");
pdf_set_info_creator($pdf, "See Author");
pdf_set_info_subject($pdf, "Testing");
pdf_begin_page($pdf, 595, 842);
pdf_add_outline($pdf, "Page 1");
pdf_set_font($pdf, "Times-Roman", 30, 4);
pdf_set_text_rendering($pdf, 1);
pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
pdf_close($pdf);
fclose($fp);
echo "<A HREF=getpdf.php>finished</A>";
?>
-94
View File
@@ -1,94 +0,0 @@
<?php
# $id$
$RADIUS = 200.0;
$MARGIN = 20.0;
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "pdfclock.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "PDF clock (PHP)");
PDF_begin_page($p, 2 * ($RADIUS + $MARGIN), 2 * ($RADIUS + $MARGIN));
PDF_translate($p, $RADIUS + $MARGIN, $RADIUS + $MARGIN);
PDF_setcolor($p, "both", "rgb", 0.0, 0.0, 1.0, 0.0);
PDF_save($p);
# minute strokes
PDF_setlinewidth($p, 2.0);
for ($alpha = 0; $alpha < 360; $alpha += 6)
{
PDF_rotate($p, 6.0);
PDF_moveto($p, $RADIUS, 0.0);
PDF_lineto($p, $RADIUS-$MARGIN/3, 0.0);
PDF_stroke($p);
}
PDF_restore($p);
PDF_save($p);
# 5 minute strokes
PDF_setlinewidth($p, 3.0);
for ($alpha = 0; $alpha < 360; $alpha += 30)
{
PDF_rotate($p, 30.0);
PDF_moveto($p, $RADIUS, 0.0);
PDF_lineto($p, $RADIUS-$MARGIN, 0.0);
PDF_stroke($p);
}
$ltime = getdate();
# draw hour hand
PDF_save($p);
PDF_rotate($p, -(($ltime['minutes']/60.0)+$ltime['hours']-3.0)*30.0);
PDF_moveto($p, -$RADIUS/10, -$RADIUS/20);
PDF_lineto($p, $RADIUS/2, 0.0);
PDF_lineto($p, -$RADIUS/10, $RADIUS/20);
PDF_closepath($p);
PDF_fill($p);
PDF_restore($p);
# draw minute hand
PDF_save($p);
PDF_rotate($p, -(($ltime['seconds']/60.0)+$ltime['minutes']-15.0)*6.0);
PDF_moveto($p, -$RADIUS/10, -$RADIUS/20);
PDF_lineto($p, $RADIUS * 0.8, 0.0);
PDF_lineto($p, -$RADIUS/10, $RADIUS/20);
PDF_closepath($p);
PDF_fill($p);
PDF_restore($p);
# draw second hand
PDF_setcolor($p, "both", "rgb", 1.0, 0.0, 0.0, 0.0);
PDF_setlinewidth($p, 2);
PDF_save($p);
PDF_rotate($p, -(($ltime['seconds'] - 15.0) * 6.0));
PDF_moveto($p, -$RADIUS/5, 0.0);
PDF_lineto($p, $RADIUS, 0.0);
PDF_stroke($p);
PDF_restore($p);
# draw little circle at center
PDF_circle($p, 0, 0, $RADIUS/30);
PDF_fill($p);
PDF_restore($p);
PDF_end_page($p);
PDF_close($p);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=pdfclock.pdf");
print $buf;
PDF_delete($p);
?>
@@ -1,67 +0,0 @@
<?php
# $Id: personalize.php,v 1.6.2.2 2002/01/28 17:17:11 rp Exp $
$col1 = 70;
$col2 = 335;
$infile = "PDFlib-purchase-order.pdf";
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "personalize.php");
PDF_set_info($p, "Author", "Thomas Merz");
PDF_set_info($p, "Title", "PDFlib personalization demo (php)");
$form = PDF_open_pdi($p, $infile, "", 0);
if (!$form) {
die( "Couldn't open input file".$infile);
}
$page = PDF_open_pdi_page($p, $form, 1, "");
if (!$page) {
die("Couldn't open page 1 in ".$infile);
}
$font = PDF_findfont($p, "Helvetica-Bold", "host", 0);
# get the dimensions of the imported form
$width = PDF_get_pdi_value($p, "width", $form, $page, 0);
$height = PDF_get_pdi_value($p, "height", $form, $page, 0);
PDF_begin_page($p, $width, $height);
PDF_place_pdi_page($p, $page, 0, 0, 1, 1);
PDF_close_pdi_page($p, $page);
PDF_setfont($p, $font, 18);
PDF_set_value($p, "leading", 24);
PDF_set_text_pos($p, $col1, 486);
PDF_show($p, "Doublecheck, Inc.");
PDF_continue_text($p, "Petra Porst");
PDF_continue_text($p, "500, Market St.");
PDF_continue_text($p, "94110 San Francisco, CA");
PDF_continue_text($p, "");
PDF_continue_text($p, "USA");
PDF_continue_text($p, "+1/950/123-4567");
PDF_continue_text($p, "+1/950/123-4568");
PDF_continue_text($p, "");
PDF_continue_text($p, "petra\@doublecheck.com");
$datestr = date("j M Y");
PDF_set_text_pos($p, $col2, 104);
PDF_continue_text($p, $datestr);
PDF_end_page($p);
PDF_close($p);
PDF_close_pdi($p, $form);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=pdfclock_php.pdf");
print $buf;
PDF_delete($p);
?>
@@ -1,76 +0,0 @@
<?php
# $Id: quickreference.php,v 1.6.2.3 2002/06/14 14:59:53 rp Exp $
$infile = "PDFlib-manual.pdf";
$maxrow = 2;
$maxcol = 2;
$pagecount = 4;
$width = 500.0;
$height = 770.0;
$startpage = 132;
$endpage = 135;
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "quickreference.php");
PDF_set_info($p, "Author", "Thomas Merz");
PDF_set_info($p, "Title", "mini imposition demo (php)");
$manual = PDF_open_pdi($p, $infile, "", 0);
if (!$manual) {
die("Couldn't open input file ".$infile);
}
$row = 0;
$col = 0;
for ($pageno = $startpage; $pageno <= $endpage; $pageno++) {
if ($row == 0 && $col == 0) {
PDF_begin_page($p, $width, $height);
$font = PDF_findfont($p, "Helvetica-Bold", "host", 0);
PDF_setfont($p, $font, 18);
PDF_set_text_pos($p, 25, $height-24);
PDF_show($p, "PDFlib 4.0 Quick Reference");
}
$page = PDF_open_pdi_page($p, $manual, $pageno, "");
if (!$page) {
die("Couldn't open page $pageno in $infile.\n");
}
PDF_place_pdi_page($p, $manual, $width/$maxcol*$col, $height - ($row + 1)
* $height/$maxrow, 1/$maxrow, 1/$maxrow);
PDF_close_pdi_page($p, $page);
$col++;
if ($col == $maxcol) {
$col = 0;
$row++;
}
if ($row == $maxrow) {
$row = 0;
PDF_end_page($p);
}
}
# finish the last partial page
if ($row != 0 || $col != 0) {
PDF_end_page($p);
}
PDF_close($p);
PDF_close_pdi($p, $manual);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hello_php.pdf");
print $buf;
PDF_delete($p);
?>
-33
View File
@@ -1,33 +0,0 @@
<?php
# $Id: hello.php,v 1.3.2.2 2002/01/22 19:48:48 tm Exp $
$p = PDF_new();
PDF_open_file($p, "");
PDF_set_info($p, "Creator", "PDF-LIB");
PDF_set_info($p, "Author", "Christian Paminger");
PDF_set_info($p, "Title", "TEST (PHP)");
PDF_begin_page($p, 595, 842);
# Change "host" encoding to "winansi" or whatever you need!
$font = PDF_findfont($p, "Courier", "host", 0);
PDF_setfont($p, $font, 10.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, "Kalender");
PDF_continue_text($p, "(says PHP)");
PDF_end_page($p);
PDF_close($p);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hello.pdf");
print $buf;
PDF_delete($p);
?>
-6
View File
@@ -1,6 +0,0 @@
<?php
//Header("WWW-Authenticate: Basic realm=\"My Realm\"");
unset($PHP_AUTH_USER);
Header("HTTP/1.0 401 Unauthorized");
phpinfo();
?>
-7
View File
@@ -1,7 +0,0 @@
<?php
ini_set(sendmail_from, "pam@technikum-wien.at");
if (!mail($sendto,"Test","Dies ist ein Test","From: pam@technikum-wien.at\r\n"."Reply-To: webmaster@technikum-wien.at\r\n"))
die ("Mail konnte nicht verschickt werden!");
else
die ("Mail wurde an $sendto verschickt! [PHP]");
?>
-561
View File
@@ -1,561 +0,0 @@
<?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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
/**
* Administrationsseite fuer Lehrfaecher
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/fachbereich.class.php');
require_once('../../include/studiengang.class.php');
require_once('../../include/lehrfach.class.php');
require_once('../../include/functions.inc.php');
require_once('../../include/benutzerberechtigung.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
$stg_kz=(isset($_REQUEST['stg_kz'])?$_REQUEST['stg_kz']:0);
if(!is_numeric($stg_kz) && $stg_kz!='')
$stg_kz='0';
$gg='';
$f=new fachbereich();
$f->getAll();
$fachbereiche=$f->result;
$s=new studiengang();
$s->getAll('typ, kurzbz', false);
$studiengang=$s->result;
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if (isset($_GET['filter_stg_kz']) || isset($_POST['filter_stg_kz']))
$filter_stg_kz=(isset($_GET['filter_stg_kz'])?$_GET['filter_stg_kz']:$_POST['filter_stg_kz']);
else
$filter_stg_kz='';
if (isset($_GET['filter_semester']) || isset($_POST['filter_semester']))
$filter_semester=(isset($_GET['filter_semester'])?$_GET['filter_semester']:$_POST['filter_semester']);
else
$filter_semester='';
if (isset($_GET['filter_fachbereich_kurzbz']) || isset($_POST['filter_fachbereich_kurzbz']))
$filter_fachbereich_kurzbz=(isset($_GET['filter_fachbereich_kurzbz'])?$_GET['filter_fachbereich_kurzbz']:$_POST['filter_fachbereich_kurzbz']);
else
$filter_fachbereich_kurzbz='';
if (isset($_GET['filter_aktiv']) || isset($_POST['filter_aktiv']))
$filter_aktiv=(isset($_GET['filter_aktiv'])?$_GET['filter_aktiv']:$_POST['filter_aktiv']);
else
$filter_aktiv='';
if (isset($_POST['neu']))
{
$stg_obj = new studiengang();
if(!$stg_obj->load($_POST['stg_kz']))
die('Studiengang wurde nicht gefunden');
if(!$rechte->isBerechtigt('lehre/lehrfach', $stg_obj->oe_kurzbz, 'sui'))
die('Sie haben keine Berechtigung fuer diese Aktion');
$lf = new lehrfach();
$lf->new=true;
$lf->studiengang_kz=$_POST['stg_kz'];
$lf->fachbereich_kurzbz=$_POST['fachbereich_kurzbz'];
$lf->kurzbz=$_POST['kurzbz'];
$lf->bezeichnung = $_POST['bezeichnung'];
$lf->farbe = $_POST['farbe'];
$lf->aktiv = true;
$lf->semester = $_POST['semester'];
$lf->sprache = $_POST['sprache'];
$lf->updateamum = date('Y-m-d H:i:s');
$lf->updatevon = $user;
$lf->insertamum = date('Y-m-d H:i:s');
$lf->insertvon = $user;
if(!$lf->save())
{
echo "<br>$lf->errormsg<br>";
}
}
if (isset($_GET['neu']))
{
$stg_obj = new studiengang();
if(!$stg_obj->load($_GET['stg_kz']))
die('Studiengang wurde nicht gefunden');
if(!$rechte->isBerechtigt('lehre/lehrfach', $stg_obj->oe_kurzbz, 'sui'))
die('Sie haben keine Berechtigung fuer diese Aktion');
$lf = new lehrfach();
$lf->new=true;
$lf->studiengang_kz=$_GET['stg_kz'];
$lf->fachbereich_kurzbz=$_GET['fachbereich_kurzbz'];
$lf->kurzbz=$_GET['kurzbz'];
$lf->bezeichnung = $_GET['bezeichnung'];
$lf->farbe = $_GET['farbe'];
$lf->aktiv = true;
$lf->semester = $_GET['semester'];
$lf->sprache = $_GET['sprache'];
$lf->updateamum = date('Y-m-d H:i:s');
$lf->updatevon = $user;
$lf->insertamum = date('Y-m-d H:i:s');
$lf->insertvon = $user;
if(!$lf->save())
{
echo "<br>$lf->errormsg<br>";
}
}
if (isset($_POST['type']) && $_POST['type']=='editsave')
{
$stg_obj = new studiengang();
if(!$stg_obj->load($_POST['stg_kz']))
die('Studiengang wurde nicht gefunden');
if(!$rechte->isBerechtigt('lehre/lehrfach', $stg_obj->oe_kurzbz, 'sui'))
die('Sie haben keine Berechtigung fuer diese Aktion');
$lf = new lehrfach();
$lf->new=false;
$lf->lehrfach_id = $_POST['lehrfach_id'];
$lf->studiengang_kz=$_POST['stg_kz'];
$lf->fachbereich_kurzbz=$_POST['fachbereich_kurzbz'];
$lf->kurzbz=$_POST['kurzbz'];
$lf->bezeichnung = $_POST['bezeichnung'];
$lf->farbe = $_POST['farbe'];
$lf->aktiv = isset($_POST['aktiv']);
$lf->semester = $_POST['semester'];
$lf->sprache = $_POST['sprache'];
$lf->updateamum = date('Y-m-d H:i:s');
$lf->updatevon = $user;
if(!$lf->save())
{
echo "<br>$lf->errormsg<br>";
}
}
$outp='<form method="GET" action="'.$_SERVER['PHP_SELF'].'">';
$s=array();
$outp.= " Studiengang: <SELECT name='filter_stg_kz'>";
$count_fb = count($rechte->getFbKz());
if($count_fb>0)
$outp.= '<option value="" >-- Alle --</option>';
@$s['']->max_sem=8;
$s['']->kurzbz='';
foreach ($studiengang as $stg)
{
if($rechte->isBerechtigt('lehre/lehrfach:begrenzt', $stg->oe_kurzbz))
{
if($count_fb==0 && $filter_stg_kz=='')
$filter_stg_kz=$stg->studiengang_kz;
if($stg->studiengang_kz==$filter_stg_kz)
$selected='selected';
else
$selected='';
$outp.= '<option value="'.$stg->studiengang_kz.'" '.$selected.'>'.$stg->kuerzel.'</option>';
}
@$s[$stg->studiengang_kz]->max_sem=$stg->max_semester;
$s[$stg->studiengang_kz]->kurzbz=$stg->kuerzel;
}
$outp.="</SELECT>";
$outp.=" Semester: <SELECT name='filter_semester'>";
$outp.= '<option value="" >-- Alle --</option>';
for ($i=0;$i<=$s[$filter_stg_kz]->max_sem;$i++)
{
if($filter_semester!='' && $i==$filter_semester)
$selected='selected';
else
$selected='';
$outp.= '<option value="'.$i.'" '.$selected.'>'.$i.'</option>';
}
$outp.="</SELECT>";
$outp.= " Institut: <SELECT name='filter_fachbereich_kurzbz'>";
$outp.= '<option value="">-- Alle --</option>';
foreach ($fachbereiche as $fb)
{
if($fb->fachbereich_kurzbz==$filter_fachbereich_kurzbz)
$selected='selected';
else
$selected='';
if($fb->aktiv)
{
$outp.= '<option value="'.$fb->fachbereich_kurzbz.'" '.$selected.'>'.$fb->bezeichnung.'</option>';
}
else
{
$outp.= '<option style="color: red;" value="'.$fb->fachbereich_kurzbz.'" '.$selected.'>'.$fb->bezeichnung.'</option>';
}
}
$outp.="</SELECT>";
$outp.="</SELECT>";
$outp.=" Aktiv: <SELECT name='filter_aktiv'>";
$outp.= "<option value=''".($filter_aktiv==''?' selected':'').">-- Alle --</OPTION>";
$outp.= "<option value='true'".($filter_aktiv=='true'?'selected':'').">-- Aktiv --</OPTION>";
$outp.= "<option value='false'".($filter_aktiv=='false'?'selected':'').">-- Nicht aktiv --</OPTION>";
$outp.= '</SELECT>';
$outp.="
<input type='submit' value='Anzeigen'>
</form>";
echo '
<html>
<head>
<title>Lehrfach Verwaltung</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
<link rel="stylesheet" href="../../skin/colorpicker.css" type="text/css"/>
<script type="text/javascript" src="../../include/js/jquery.js"></script>
<script type="text/javascript" src="../../include/js/colorpicker.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#t1").tablesorter(
{
sortList: [[2,0],[4,0],[0,0]],
widgets: ["zebra"]
});
$("#farbe").ColorPicker(
{
onSubmit: function(hsb, hex, rgb, el)
{
$(el).val(hex);
$(el).ColorPickerHide();
},
onBeforeShow: function ()
{
$(this).ColorPickerSetColor(this.value);
}
})
.bind("keyup", function()
{
$(this).ColorPickerSetColor(this.value);
});
});
</script>
</head>
<body>
<H2>Lehrfach Verwaltung ('.$s[$filter_stg_kz]->kurzbz.' '.$filter_semester.' '.$filter_fachbereich_kurzbz.')</H2>
';
echo $outp;
if($filter_stg_kz=='' && $filter_fachbereich_kurzbz=='' && !isset($_GET['type']))
die('Bitte einen Studiengang oder Fachbereich auswaehlen');
if (isset($_GET['type']) && $_GET['type']=='aktiv')
{
$lf = new lehrfach();
$lf->load($_GET['lehrfach_nr']);
$stg_obj = new studiengang();
if(!$stg_obj->load($lf->studiengang_kz))
die('Studiengang konnte nicht ermittelt werden');
if(!$rechte->isBerechtigt('lehre/lehrfach:begrenzt',$stg_obj->oe_kurzbz,'sui'))
die('Sie haben keine Berechtigung fuer diese Aktion');
if ($lf->aktiv)
$lf->aktiv=false;
else
$lf->aktiv=true;
$lf->updatevon = $user;
if(!$lf->save())
{
echo "<br>$lf->errormsg<br>";
}
unset($_GET['type']);
}
if (isset($_GET['type']) && $_GET['type']=='edit')
{
$lf=new lehrfach();
$lf->load($_GET['lehrfach_nr']);
$stg_obj = new studiengang();
if(!$stg_obj->load($lf->studiengang_kz))
die('Studiengang konnte nicht ermittelt werden');
if(!$rechte->isBerechtigt('lehre/lehrfach',$stg_obj->oe_kurzbz,'sui'))
die('Sie haben keine Berechtigung fuer diese Aktion');
echo '<form name="lehrfach_edit" method="post" action="lehrfach.php?filter_stg_kz='.$filter_stg_kz.'&filter_semester='.$filter_semester.'&filter_fachbereich_kurzbz='.$filter_fachbereich_kurzbz.'&filter_aktiv='.$filter_aktiv.'">';
echo '<p><b>Edit Lehrfach: '.$_GET['lehrfach_nr'].'</b>';
echo '<table>';
echo '<tr><td>';
echo " Studiengang:</td><td>\n <SELECT name='stg_kz'>";
foreach ($studiengang as $stg)
{
if($stg->studiengang_kz==$lf->studiengang_kz)
$selected='selected';
else
$selected='';
echo "\n".'<option value="'.$stg->studiengang_kz.'" '.$selected.'>'.$stg->kuerzel.'</option>';
}
echo "</SELECT></td></tr>";
echo "<tr><td>Semester:</td><td> <SELECT name='semester'>";
for ($i=0;$i<=$s[$lf->studiengang_kz]->max_sem;$i++)
{
if($i==$lf->semester)
$selected='selected';
else
$selected='';
echo '<option value="'.$i.'" '.$selected.'>'.$i.'</option>';
}
echo "</SELECT></td></tr>";
echo '
<tr><td>Institut</td><td><SELECT name="fachbereich_kurzbz" '.($lf->farbe==""?'onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')':'').'">
<option value="-1">- ausw&auml;hlen -</option>';
foreach($fachbereiche as $fb)
{
if($fb->fachbereich_kurzbz==$lf->fachbereich_kurzbz)
$selected='selected';
else
$selected='';
if($fb->aktiv)
{
echo "<option value=\"$fb->fachbereich_kurzbz\" farbe=\"$fb->farbe\" $selected";
}
else
{
echo "<option style=\"color: red;\" value=\"$fb->fachbereich_kurzbz\" farbe=\"$fb->farbe\" $selected";
}
echo " >$fb->fachbereich_kurzbz.$gg</option>\n";
}
echo '</SELECT></td></tr>';
echo '<tr><td>Name</td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value="'.$lf->bezeichnung.'"></td></tr>';
echo '<tr><td>Kurzbezeichnung</td><td>';
echo '<input type="text" name="kurzbz" size="15" maxlength="12" value="'.$lf->kurzbz.'"></td></tr>';
echo '<tr><td>Farbe</td><td>';
echo '<input type="text" name="farbe" id="farbe" size="15" maxlength="7" value="'.$lf->farbe.'"></td></tr>';
echo '<tr><td>Aktiv</td><td><input type="checkbox" name="aktiv" value="1" '.($lf->aktiv?'checked':'').' />';
echo '<tr><td>Sprache</td><td><select name="sprache">';
$qry1="SELECT * FROM public.tbl_sprache";
if(!$result1=$db->db_query($qry1))
{
die( "Fehler bei der DB-Connection");
}
while($row1=$db->db_fetch_object($result1))
{
if($row1->sprache==$lf->sprache)
echo "<option value='$row1->sprache' selected>$row1->sprache</option>";
else
echo "<option value='$row1->sprache'>$row1->sprache</option>";
}
echo '</select></td></tr>';
echo '</table>';
echo '<input type="hidden" name="type" value="editsave">';
echo '<input type="hidden" name="lehrfach_id" value="'.$lf->lehrfach_id.'">';
echo '<input type="submit" name="save" value="Speichern">';
echo '</p><hr></form>';
}
else
{
if($rechte->isBerechtigt('lehre/lehrfach',null,'sui'))
{
//Neuanlage
echo '
<form action="lehrfach.php?filter_stg_kz='.$filter_stg_kz.'&filter_semester='.$filter_semester.'&filter_fachbereich_kurzbz='.$filter_fachbereich_kurzbz.'&filter_aktiv='.$filter_aktiv.'" method="post" name="lehrfach_neu" id="lehrfach_neu">
<p><b>Neues Lehrfach</b>: <br/>';
echo '<table>';
echo '<tr><td>';
echo " Studiengang:</td><td> <SELECT name='stg_kz'>";
foreach ($studiengang as $stg)
{
if($stg->studiengang_kz==$filter_stg_kz)
$selected='selected';
else
$selected='';
echo '<option value="'.$stg->studiengang_kz.'" '.$selected.'>'.$stg->kuerzel.'</option>';
}
echo "</SELECT></td></tr>";
echo "<tr><td>Semester:</td><td> <SELECT name='semester'>";
for ($i=0;$i<=$s[$filter_stg_kz]->max_sem;$i++)
{
if($filter_semester!='' && $i==$filter_semester)
$selected='selected';
else
$selected='';
echo '<option value="'.$i.'" '.$selected.'>'.$i.'</option>';
}
echo "</SELECT></td></tr>";
echo '
<tr><td>Institut</td><td><SELECT name="fachbereich_kurzbz" onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')">
<option value="-1">- ausw&auml;hlen -</option>';
foreach($fachbereiche as $fb)
{
if($fb->aktiv)
{
echo "<option value=\"$fb->fachbereich_kurzbz\" farbe=\"$fb->farbe\"";
}
else
{
echo "<option style=\"color: red;\" value=\"$fb->fachbereich_kurzbz\" farbe=\"$fb->farbe\"";
}
echo " >$fb->fachbereich_kurzbz</option>\n";
}
echo '</SELECT></td></tr>';
echo '<tr><td>Name</td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value=""></td></tr>';
echo '<tr><td>Kurzbezeichnung</td><td>';
echo '<input type="text" name="kurzbz" size="15" maxlength="12" value=""></td></tr>';
echo '<tr><td>Farbe</td><td>';
echo '<input type="text" name="farbe" id="farbe" size="15" maxlength="7" value=""></td></tr>';
echo '<tr><td>Sprache</td><td><select name="sprache">';
$qry1="SELECT * FROM public.tbl_sprache";
if(!$result1=$db->db_query($qry1))
die( 'Fehler bei der DB-Connection');
while($row1=$db->db_fetch_object($result1))
echo "<option value='$row1->sprache'>$row1->sprache</option>";
echo '</select></td></tr> </table>';
echo '
<input type="hidden" name="type" value="save">
<input type="submit" name="neu" value="Speichern">
</p>
</form>
<hr>';
}
}
if(!isset($_GET['type']))
{
if($rechte->isBerechtigt('lehre/lehrfach'))
$where = '';
else
$where = ' AND aktiv=true';
$sql_query="SELECT
tbl_lehrfach.lehrfach_id AS Nummer, tbl_lehrfach.kurzbz AS Fach, tbl_lehrfach.bezeichnung AS Bezeichnung,
tbl_lehrfach.farbe AS Farbe, fachbereich_kurzbz as fachbereich, tbl_lehrfach.aktiv, tbl_lehrfach.sprache AS Sprache,
tbl_lehrfach.studiengang_kz, tbl_lehrfach.semester
FROM
lehre.tbl_lehrfach
WHERE true
".($filter_stg_kz!=''?"AND tbl_lehrfach.studiengang_kz='$filter_stg_kz'":'')."
".($filter_semester!=''?"AND semester='$filter_semester'":'')."
".($filter_fachbereich_kurzbz!=''?"AND fachbereich_kurzbz = '$filter_fachbereich_kurzbz'":'')."
".($filter_aktiv!=''?"AND aktiv = '$filter_aktiv'":'')."
$where
ORDER BY tbl_lehrfach.kurzbz, tbl_lehrfach.lehrfach_id";
//echo $sql_query;
if(!$result_lehrfach=$db->db_query($sql_query))
error("Lehrfach not found!");
if ($result_lehrfach!=0)
{
echo '
<h3>&Uuml;bersicht - '.$db->db_num_rows($result_lehrfach).' Einträge</h3>
<table class="tablesorter" id="t1">
<thead>';
echo "
<tr>
<th>ID</th>
<th>Stg</th>
<th>Sem</th>
<th>Kurzbz</th>
<th>Bezeichnung</th>
<th>Farbe</th>
<th>Aktiv</th>
<th>Institut</th>
<th>Sprache</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>";
$num_rows=$db->db_num_rows($result_lehrfach);
for($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object($result_lehrfach);
echo "
<tr>
<td>$row->nummer</td>
<td>".$s[$row->studiengang_kz]->kurzbz."</td>
<td>$row->semester</td>
<td>$row->fach</td>
<td>$row->bezeichnung</td>
<td style=\"background-color: #$row->farbe;\" >$row->farbe</td>".
"<td valign='middle' align='center'><form style='margin:0; padding:0' action=\"lehrfach.php?lehrfach_nr=$row->nummer&type=aktiv&filter_stg_kz=$filter_stg_kz&filter_semester=$filter_semester&filter_fachbereich_kurzbz=$filter_fachbereich_kurzbz&filter_aktiv=$filter_aktiv\" method='POST'><input type='image' src='../../skin/images/".($row->aktiv=='t'?'true.png':'false.png')."' height='20' style='border:0px;'></form></td>".
"<td>$row->fachbereich</td>
<td>$row->sprache</td>
<td>";
if($rechte->isBerechtigt('lehre/lehrfach', null, 'sui'))
echo "<a href=\"lehrfach.php?lehrfach_nr=$row->nummer&type=edit&filter_stg_kz=$filter_stg_kz&filter_semester=$filter_semester&filter_fachbereich_kurzbz=$filter_fachbereich_kurzbz&filter_aktiv=$filter_aktiv\">Edit</a>";
echo "</td></tr>";
}
echo '</tbody></table>';
}
else
echo "Kein Eintrag gefunden!";
}
?>
<br>
</body>
</html>
-74
View File
@@ -1,74 +0,0 @@
<html>
<head>
<title>Stundenplan säubern</title>
</head>
<body>
<h3>Stundenplan s&auml;ubern</h3>
<p>Folgende Eintr&auml;ge kommen doppelt vor:</p>
<p>
<?php
// Stundenplantabelle aus Datenbank holen
mysql_connect($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or die ("Unable to connect to SQL-Server");
@mysql_select_db("FHDaten") or die ("Unable to select database");
$mysql_query="SELECT * FROM stundenplan ORDER BY id";
$result=mysql_query($mysql_query);
$num_rows=mysql_num_rows($result);
$num_fields=mysql_num_fields($result);
$anz=0;
// Tabelle für vergleiche vorbereiten
for ($i=0; $i<$num_rows; $i++)
{
$row=mysql_fetch_row($result);
$help_str="";
$stdplan_table[$i][1]="";
for ($j=0; $j<$num_fields; $j++)
{
if ($j==0)
$stplan_table[$i][0]=$row[$j];
else
$help_str.=$row[$j];
}
$stdplan_table[$i][1]=$help_str;
}
// Tabelle auf doppelte Einträge durchsuchen
$equl=false;
for ($i=1; $i<$num_rows; $i++)
{
if (!strcmp($stdplan_table[$i-1][1],$stdplan_table[$i][1]))
{
echo $stdplan_table[$i][1],"<br>";
if (!$equl)
{
$equl=true;
echo $stdplan_table[$i][1],"<br>";
$anz++;
}
}
else
$equl=false;
}
echo "$anz doppelte Einträge wurden gefunden und gelöscht.<br>$num_rows Einträge gesamt.";
/*$foo = 0;
for ($j=0; $j<$num_rows; $j++)
{
$bestell_id=mysql_result($result, $j, "ID");
$bestell_nr=mysql_result($result, $j, "BestellNr");
$bgcolor = $cfgBgcolorOne;
$foo % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
echo "<tr bgcolor=$bgcolor>";
echo "<td bgcolor=$bgcolor><div align=\"right\">$bestell_id</div></td>";
echo "<td bgcolor=$bgcolor><div align=\"right\">$bestell_nr</div></td>";
echo "<td><a href=\"bestell_det_ueb.php3?bestellid=$bestell_id\">Details</A></td>";
$body.="$bestell_nr: \t http://data.technikum-wien.at/bestellungen/bestell_det_ueb.php3?bestellid=$bestell_id\n";
echo "</tr>\n";
$foo++;
} */
?>
</p>
<hr>
Erstellt am 28. Mai 2001 von <a href="mailto:humer@technikum-wien.at">Christian Humer</a><br>
Letzte Änderung: 28. Mai 2001 von <a href="mailto:humer@technikum-wien.at">Christian Humer</a>
</body>
</html>
-54
View File
@@ -1,54 +0,0 @@
<html>
<head>
<title>Stundenplan säubern</title>
</head>
<body>
<h3>Stundenplan s&auml;ubern</h3>
<p>Folgende Eintr&auml;ge kommen doppelt vor:</p>
<p>
<?php
// Stundenplantabelle aus Datenbank holen
mysql_connect($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or die ("Unable to connect to SQL-Server");
@mysql_select_db("FHDaten") or die ("Unable to select database");
$mysql_query="SELECT * FROM stundenplan ORDER BY studiengang_id, lehrverband_id, lektor_id, lehrfach_id, ort_id, woche, tag, stundentafel_id, typ_id";
$result=mysql_query($mysql_query);
$num_rows=mysql_num_rows($result);
$num_fields=mysql_num_fields($result);
$anz=0;
// Tabelle für vergleiche vorbereiten
for ($i=0; $i<$num_rows; $i++)
{
$row=mysql_fetch_row($result);
$help_str="";
$stdplan_table[$i][0]=$row[0];
for ($j=1; $j<$num_fields; $j++)
$help_str.=$row[$j];
$stdplan_table[$i][1]=$help_str;
//echo "<br>helpstr=".$help_str." - table0=".$stdplan_table[$i][0]." - table1=".$stdplan_table[$i][1];
}
//Sortieren
for ($i=1; $i<$num_rows; $i++)
{
$erg=strcmp($stdplan_table[$i-1][1],$stdplan_table[$i][1]);
if ($erg==0)
{
echo $stdplan_table[$i][1]."<br>";
$mysql_query="DELETE FROM stundenplan WHERE id=".$stdplan_table[$i][0];
$result=mysql_query($mysql_query);
$anz++;
}
}
echo "$anz doppelte Einträge wurden gefunden und gelöscht.<br>$num_rows Einträge gesamt.";
?>
</p>
<hr>
Erstellt am 28. Mai 2001 von <a href="mailto:humer@technikum-wien.at">Christian Humer</a><br>
Letzte Änderung: 18. Juni 2001 von <a href="mailto:humer@technikum-wien.at">Christian Humer</a>
</body>
</html>
-253
View File
@@ -1,253 +0,0 @@
<?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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
$sql_query="SELECT * FROM tbl_studiengang WHERE studiengang_kz>0 ORDER BY kurzbz";
$result_stg=$db->db_query($sql_query);
if(!$result_stg)
die("studiengang not found! ".$db->db_last_error());
$type=(isset($_REQUEST['type'])?$_REQUEST['type']:'');
$mode=(isset($_REQUEST['mode'])?$_REQUEST['mode']:'');
$stg_kz=(isset($_REQUEST['stg_kz'])?$_REQUEST['stg_kz']:'0');
$tagv=(isset($_REQUEST['tagv'])?$_REQUEST['tagv']:'1');
$monatv=(isset($_REQUEST['monatv'])?$_REQUEST['monatv']:'1');
$jahrv=(isset($_REQUEST['jahrv'])?$_REQUEST['jahrv']:date('Y'));
$tagb=(isset($_REQUEST['tagb'])?$_REQUEST['tagb']:'31');
$monatb=(isset($_REQUEST['monatb'])?$_REQUEST['monatb']:'12');
$jahrb=(isset($_REQUEST['jahrb'])?$_REQUEST['jahrb']:date('Y'));
if ($mode=='del')
{
$sql_query="DELETE FROM lehre.tbl_stundenplan WHERE studiengang_kz=$stg_kz AND datum>='$jahrv-$monatv-$tagv' AND datum<='$jahrb-$monatb-$tagb'";
//echo $sql_query.'<BR>';
if ($result=$db->db_query($sql_query))
$anz=$db->db_affected_rows($result);
else
$anz=0;
echo $anz.' Records deleted! '.$db->db_last_error().'<hr>';
}
?>
<html>
<head>
<title>Delete Stundenplan</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<H1>Delete from Stundenplan</H1>
<hr>
<form name="stdplan" method="post" action="stdplan_delete.php">
<p>Studiengang
<select name="stg_kz">
<?php
$num_rows=$db->db_num_rows($result_stg);
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_stg, $i);
echo "<option ". ($stg_kz==$row->studiengang_kz?' selected=\" selected\" ' :'')." value=\"$row->studiengang_kz\">$row->kurzbz</option>";
}
?>
</select>
</p>
<p> Von (inkl): Tag
<input type="text" name="tagv" size="3" maxlength="2" value="<?php echo $tagv; ?>">
Monat
<input type="text" name="monatv" size="3" maxlength="2" value="<?php echo $monatv; ?>">
Jahr
<input type="text" name="jahrv" size="5" maxlength="4" value="<?php echo $jahrv; ?>">
</p>
<p> Bis (inkl): Tag
<input type="text" name="tagb" size="3" maxlength="2" value="<?php echo $tagb; ?>">
Monat
<input type="text" name="monatb" size="3" maxlength="2" value="<?php echo $monatb; ?>">
Jahr
<input type="text" name="jahrb" size="5" maxlength="4" value="<?php echo $jahrb; ?>">
</p>
<p>
<input type="hidden" name="mode" value="del">
<input type="submit" name="Save" value="Ausf&uuml;hren">
</p>
<hr>
</form>
<?php
if ($type=="save")
{
$error=false;
$stunde=$stdbegin;
echo "Auftrag wird ausgeführt!<br>";
echo "Kontrolle auf Doppelbelegungen! ... ";
// checken auf Ort
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT id FROM stundenplan WHERE datum='$datum' AND stunde_id='$std' AND ort_id='$ortid'";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden auf Ort=$ortid Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
// checken auf Lehrfach
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT id FROM stundenplan WHERE datum='$datum' AND stunde_id='$std' AND lehrfach_id='$lehrfachid'";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden auf Lehrfach=$lehrfachid Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
// checken auf Verband
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT semester, verband, gruppe, studiengang_kz FROM tbl_stundenplan WHERE datum='$datum' AND stunde_id='$std' AND studiengang_kz='$stg_kz' AND semester='$semester' AND (verband='$verband' OR verband=NULL) AND (gruppe='$gruppe' OR gruppe=NULL)";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
$row=$db->db_fetch_object($result,0);
echo "error!<br>Doppelbelegung gefunden auf Datum=$datum - Stunde=$stunde - StudiengangID=$row->studiengang_id - Semester=$row->semester Verband=$row->verband Gruppe=$row->gruppe!<br>";
$error=true;
}
}
// checken auf Ort im Einheitenplan
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT id FROM einheitenplan WHERE datum='$datum' AND stunde_id='$std' AND ort_id='$ortid'";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden im Einheitenplan auf Ort=$ortid Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
// checken auf Lehrfach im Einheitenplan
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT id FROM einheitenplan WHERE datum='$datum' AND stunde_id='$std' AND lehrfach_id='$lehrfachid'";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden im Einheitenplan auf Lehrfach=$lehrfachid Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
//Einfügen in die Datenbank
if (!$error)
{
echo "OK!<br>";
$date[mday]=$tag; $date[mon]=$monat; $date[year]=$jahr;
$datum=$jahr."-".$monat."-".$tag;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$rythmus));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
if (($verband=='0') && ($gruppe==0))
$sql_query="INSERT INTO stundenplan (studiengang_id, semester, verband, gruppe, lehrfach_id, ort_id, datum, stunde_id) VALUES ('$stgid', '$semester', NULL, NULL, '$lehrfachid', '$ortid', '$datum', '$std')";
elseif ($gruppe=0)
$sql_query="INSERT INTO stundenplan (studiengang_id, semester, verband, gruppe, lehrfach_id, ort_id, datum, stunde_id) VALUES ('$stgid', '$semester', '$verband', NULL, '$lehrfachid', '$ortid', '$datum', '$std')";
else
$sql_query="INSERT INTO stundenplan (studiengang_id, semester, verband, gruppe, lehrfach_id, ort_id, datum, stunde_id) VALUES ('$stgid', '$semester', '$verband', '$gruppe', '$lehrfachid', '$ortid', '$datum', '$std')";
//echo $sql_query;
$result=$db->db_query($sql_query);
if(!$result)
{
echo $db->db_last_error()."<br>";
$error=true;
}
else
echo "Studiengang_ID: $stgid - Semester: $semester - Verband: $verband - Gruppe: $gruppe - Lehrfach_ID: $lehrfachid - Ort_ID: $ortid - Datum: $datum - Stunde: $std -- Eingefuegt!<br>";
}
if (!$error)
echo "Einfügen erfolgreich abgeschlossen!<br>";
else
echo "Es ist ein Fehler aufgetreten!<br>";
}
}
?>
</body>
</html>
-373
View File
@@ -1,373 +0,0 @@
<?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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
/**
* @updated 10.11.2004 (WM)
* todo: unr als string?
*
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
$sql_query="SELECT studiengang_kz, kurzbz, bezeichnung FROM public.tbl_studiengang WHERE studiengang_kz>0 ORDER BY kurzbz";
//echo $sql_query."<br>";
$result_stg=$db->db_query($sql_query);
if(!$result_stg)
die("studiengang not found! ".$db->db_last_error());
$sql_query="SELECT lehrfach_id, kurzbz,bezeichnung FROM lehre.tbl_lehrfach where aktiv=true or aktiv is null ORDER BY kurzbz";
$result_lehrf=$db->db_query($sql_query);
if(!$result_lehrf)
die("lehrfach not found! ".$db->db_last_error());
$sql_query="SELECT tbl_person.person_id, kurzbz FROM public.tbl_person, public.tbl_mitarbeiter where person_id=personalnummer and lektor=true ORDER BY kurzbz";
$result_lektor=$db->db_query($sql_query);
if(!$result_lektor)
die("lehre.lektor not found! ".$db->db_last_error());
$sql_query="SELECT ort_kurzbz FROM tbl_ort ORDER BY ort_kurzbz";
$result_ort=$db->db_query($sql_query);
if(!$result_ort)
die("ort not found! ".$db->db_last_error());
$sql_query="SELECT * FROM lehre.tbl_lehreinheit ORDER BY lehrform_kurzbz";
$result_einheit=$db->db_query($sql_query);
if(!$result_einheit)
die("Einheit not found! ".$db->db_last_error());
$sql_query="SELECT lehrform_kurzbz,bezeichnung FROM lehre.tbl_lehrform where verplanen=true ORDER BY lehrform_kurzbz";
$result_lehrform=$db->db_query($sql_query);
if(!$result_lehrform)
die("Lehrform not found! ".$db->db_last_error());
$stgid=(isset($_REQUEST['stgid'])?$_REQUEST['stgid']:1);
$lektorid=(isset($_REQUEST['lektorid'])?$_REQUEST['lektorid']:1);
$semester=(isset($_REQUEST['semester'])?$_REQUEST['semester']:0);
$verband=(isset($_REQUEST['verband'])?$_REQUEST['verband']:0);
$gruppe=(isset($_REQUEST['gruppe'])?$_REQUEST['gruppe']:0);
$tag=(isset($_REQUEST['tag'])?$_REQUEST['tag']:1);
$monat=(isset($_REQUEST['monat'])?$_REQUEST['monat']:1);
$jahr=(isset($_REQUEST['jahr'])?$_REQUEST['jahr']:date('Y'));
$stdbegin=(isset($_REQUEST['stdbegin'])?$_REQUEST['stdbegin']:1);
$stdblock=(isset($_REQUEST['stdblock'])?$_REQUEST['stdblock']:1);
$stdsemester=(isset($_REQUEST['stdsemester'])?$_REQUEST['stdsemester']:1);
$lehrformid=(isset($_REQUEST['lehrformid'])?$_REQUEST['lehrformid']:1);
?>
<html>
<head>
<title>Stundenplan Check</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</head>
<body>
<H2>Eingabe in Stundenplan</H2>
<hr>
<form name="stdplan" method="post" action="stdplan_insert.php">
<p>Studiengang
<select name="stgid">
<?php
if ($result_stg)
$num_rows=$db->db_num_rows($result_stg);
else
$num_rows=0;
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_stg, $i);
if ($stgid==$row->studiengang_kz)
echo "<option value=\"$row->studiengang_kz\" selected>$row->kurzbz $row->bezeichnung</option>";
else
echo "<option value=\"$row->studiengang_kz\">$row->kurzbz $row->bezeichnung</option>";
}
?>
</select></p>
<p>Semester
<select name="semester">
<?php
for ($i=1;$i<9;$i++)
{
if (isset($_POST['semester']) && $_POST['semester']==$i)
echo "<option value=\"$i\" selected>$i</option>";
else
echo "<option value=\"$i\">$i</option>";
}
?>
</select>
Verband
<select name="verband">
<option value="0">*</option>
<?php
for ($i='A';$i<'E';$i++)
{
if (isset($_POST['verband']) && $_POST['verband']==$i)
echo "<option value=\"$i\" selected>$i</option>";
else
echo "<option value=\"$i\">$i</option>";
}
?>
</select>
Gruppe
<select name="gruppe">
<option value="0">*</option>
<?php
for ($i=1;$i<3;$i++)
{
if (isset($_POST['gruppe']) && $_POST['gruppe']==$i)
echo "<option value=\"$i\" selected>$i</option>";
else
echo "<option value=\"$i\">$i</option>";
}
?>
</select>
</p>
<p>
[ Einheit
<select name="einheit_kurzbz">
<?php
$num_rows=$db->db_num_rows($result_einheit);
echo "<option value=\"-1\" selected>- auswaehlen -</option>";
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_einheit, $i);
if ($stgid==$row->lehreinheit_id)
echo "<option value=\"$row->lehreinheit_id\" selected>$row->lehrform_kurzbz</option>";
else
echo "<option value=\"$row->lehreinheit_id\">$row->lehrform_kurzbz</option>";
}
?>
</select> ]
Lehrfach
<select name="lehrfachid">
<?php
$num_rows=$db->db_num_rows($result_lehrf);
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_lehrf, $i);
if ($_POST['lehrfachid']==$row->lehrfach_nr)
echo "<option value=\"$row->lehrfach_nr\" selected>$row->kurzbz $row->bezeichnung</option>";
else
echo "<option value=\"$row->lehrfach_nr\">$row->kurzbz $row->bezeichnung</option>";
}
?>
</select>
<p>
Unterrichtsnummer
<input type="text" name="unr" size="15" maxlength="20" value="<?php echo $unr; ?>">
</p>
Lektor
<SELECT name="lektorid">
<?php
$num_rows=$db->db_num_rows($result_lektor);
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_lektor, $i);
if ($_POST['lektorid']==$row->uid)
echo "<option value=\"$row->uid\" selected>$row->kurzbz</option>";
else
echo "<option value=\"$row->uid\">$row->kurzbz</option>";
}
?>
</SELECT>
Lehrform
<SELECT name="lehrformid">
<?php
while($row=$db->db_fetch_object ($result_lehrform))
{
if ($_POST['lehrformid']==$row->lehrform_kurzbz)
echo "<option value=\"$row->lehrform_kurzbz\" selected>($row->lehrform_kurzbz) $row->bezeichnung</option>";
else
echo "<option value=\"$row->lehrform_kurzbz\">($row->lehrform_kurzbz) $row->bezeichnung</option>";
}
?>
</SELECT>
</p>
<p>
Ort
<select name="ortid">
<?php
$num_rows=$db->db_num_rows($result_ort);
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_ort, $i);
if ($_POST['ortid']==$row->ort_kurzbz)
echo "<option value=\"$row->ort_kurzbz\" selected>$row->ort_kurzbz</option>";
else
echo "<option value=\"$row->ort_kurzbz\">$row->ort_kurzbz</option>";
}
?>
</select>
Tag
<input type="text" name="tag" size="3" maxlength="2" value="<?php echo $tag; ?>">
Monat
<input type="text" name="monat" size="3" maxlength="2" value="<?php echo $monat; ?>">
Jahr
<input type="text" name="jahr" size="5" maxlength="4" value="<?php echo $jahr; ?>">
1. Stunde
<input type="text" name="stdbegin" size="3" maxlength="2" value="<?php echo $stdbegin; ?>">
</p>
<p>Stunden/Block
<input type="text" name="stdblock" size="3" maxlength="2" value="<?php echo $stdblock; ?>">
Stunden/Semester
<input type="text" name="stdsemester" size="4" maxlength="3" value="<?php echo $stdsemester; ?>">
Rythmus
<input type="text" name="rythmus" size="2" maxlength="1" value="<?php echo $_POST['rythmus']; ?>">
w&ouml;chig
</p>
<p>
<input type="hidden" name="type" value="save">
<input type="submit" name="Save" value="Ausf&uuml;hren">
</p>
<hr>
</form>
<?php
if ($type=="save")
{
$error=false;
$stunde=$stdbegin;
echo "Auftrag wird ausgefuehrt!<br>";
echo "Kontrolle auf Doppelbelegungen! ... ";
// checken auf Ort
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
$datum=$tag.".".$monat.".".$jahr;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$_POST['rythmus']));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND ort_kurzbz='".$_POST['ortid']."'";
if ($_POST['unr']=='')
$sql_query.=" AND unr IS NOT NULL";
else
$sql_query.=" AND unr!=".$_POST['unr'];
echo $sql_query;
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden auf Ort=".$_POST['ortid']." Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
// checken auf Lektor im Stundenplan
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
$datum=$tag.".".$monat.".".$jahr;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$_POST['rythmus']));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND uid='".$_POST['$lektorid']."'";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
echo "error!<br>Doppelbelegung gefunden auf Lektor=".$_POST['$lektorid']." Datum=$datum Stunde=$stunde!<br>";
$error=true;
}
}
// checken auf Verband
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
$datum=$tag.".".$monat.".".$jahr;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$_POST['rythmus']));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
$sql_query="SELECT semester, verband, gruppe, tbl_stundenplandev.studiengang_kz,tbl_studiengang.kurzbz FROM tbl_stundenplandev JOIN tbl_studiengang using(studiengang_kz) WHERE datum='$datum' AND stunde='$std' AND studiengang_kz='".$_POST['stgid']."' AND semester='$semester' AND (verband='".$_POST['verband']."' OR verband=NULL) AND (gruppe='".$_POST['gruppe']."' OR gruppe=NULL)";
$result=$db->db_query($sql_query);
if($result && ($db->db_num_rows($result)>0))
{
$row=$db->db_fetch_object($result,0);
echo "error!<br>Doppelbelegung gefunden auf Datum=$datum - Stunde=$stunde - Studiengang=$row->kurzbz - Semester=$row->semester Verband=$row->verband Gruppe=$row->gruppe!<br>";
$error=true;
}
}
//Einfuegen in die Datenbank
if (!$error)
{
echo "OK!<br>";
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
$datum=$tag.".".$monat.".".$jahr;
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
{
$std=$stunde+($i % $stdblock);
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
{
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
$date=getdate($time+(604800*$_POST['rythmus']));
$datum=$date[year]."-".$date[mon]."-".$date[mday];
}
// todo: unr als string?
$sql_query="INSERT INTO tbl_stundenplandev (studiengang_kz, semester, verband, gruppe, lehrfach_nr, uid, ort_kurzbz, datum, stunde,einheit_kurzbz,unr,updateamum,updatevon, lehrform_kurzbz) ".
"VALUES ('".$_POST['stgid']."', '".$_POST['semester']."', '".$_POST['verband']."', '".$_POST['gruppe']."', '".$_POST['lehrfachid']."', '".$_POST['lektorid']."', '".$_POST['ortid']."', '$datum', $std,".($_POST['einheit_kurzbz']==-1?'NULL':"'".$_POST['einheit_kurzbz']."'").",".($_POST['unr']==-1?'NULL':$_POST['unr']).",now(),'".$_SERVER['PHP_AUTH_USER']."','".$_POST['lehrformid']."')";
echo $sql_query;
$result=$db->db_query($sql_query);
if(!$result)
{
echo $db->db_last_error()."<br>";
$error=true;
}
else
echo "Studiengang_ID: ".$_POST['stgid']." - Semester: ".$_POST['semester']." - Verband: ".$_POST['verband']." - Gruppe: ".$_POST['gruppe']." - Lehrfach_Nr: ".$_POST['lehrfachid']." - Lektor_ID: ".$_POST['lektorid']." - Lehrform: ".$_POST['lehrformid']." - Ort_ID: ".$_POST['ortid']." - Datum: $datum - Stunde: $std -- Eingefuegt!<br>";
}
if (!$error)
echo "Einfuegen erfolgreich abgeschlossen!<br>";
else
echo "Es ist ein Fehler aufgetreten!<br>";
}
}
?>
</body>
</html>
-109
View File
@@ -1,109 +0,0 @@
<?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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
/**
* Changes: 23.10.2004: Anpassung an neues DB-Schema (WM)
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
include('../../include/functions.inc.php');
if(!($erg=$db->db_query("SELECT studiengang_kz, UPPER(typ::varchar(1) || kurzbz) as kurzbz, bezeichnung FROM public.tbl_studiengang ORDER BY kurzbz ASC")))
die($db->db_last_error());
$num_rows=$db->db_num_rows($erg);
?>
<html>
<head>
<title>Studenten Uebersicht</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</head>
<body class="background_main">
<h4>Studenten Übersicht</h4>
<table border="1">
<tr>
<?php
for ($i=0;$i<$num_rows;$i++)
{
$row=@$db->db_fetch_object($erg, $i);
echo "<th>$row->kurzbz<BR><SMALL>$row->bezeichnung</SMALL></th>";
}
?>
</tr>
<tr bgcolor="#DDDDDD" valign="top">
<?php
for ($i=0; $i<$num_rows; $i++)
{
echo "<td nowrap>";
$row=$db->db_fetch_object($erg, $i);
$stg_kzbz=$row->kurzbz;
$stg_kz=$row->studiengang_kz;
$sql_query="SELECT DISTINCT semester FROM public.tbl_student WHERE studiengang_kz=$stg_kz ORDER BY semester";
//echo $sql_query;
if(!($result_sem=$db->db_query($sql_query)))
die($db->db_last_error());
$nr_sem=$db->db_num_rows($result_sem);
for ($j=0; $j<$nr_sem; $j++)
{
$row_sem=$db->db_fetch_object($result_sem, $j);
echo "<a class=\"h1\" href=\"studenten_uebersicht_det.php?stg_kz=$stg_kz&sem=$row_sem->semester\">$stg_kzbz-$row_sem->semester</a><br>";
$sql_query="SELECT DISTINCT verband FROM public.tbl_student WHERE studiengang_kz=$stg_kz AND semester=$row_sem->semester ORDER BY verband";
//echo $sql_query;
if(!($result_ver=$db->db_query($sql_query)))
die($db->db_last_error());
$nr_ver=$db->db_num_rows($result_ver);
for ($k=0; $k<$nr_ver; $k++)
{
$row_ver=$db->db_fetch_object($result_ver, $k);
echo "&nbsp;- <a class=\"linkblue\" href=\"studenten_uebersicht_det.php?stg_kz=$stg_kz&sem=$row_sem->semester&ver=$row_ver->verband\">$stg_kzbz-$row_sem->semester$row_ver->verband</a><br>";
$sql_query="SELECT DISTINCT gruppe FROM public.tbl_student WHERE studiengang_kz=$stg_kz AND semester=$row_sem->semester AND verband='$row_ver->verband' ORDER BY gruppe";
//echo $sql_query;
if(!($result_grp=$db->db_query($sql_query)))
die($db->db_last_error());
$nr_grp=$db->db_num_rows($result_grp);
for ($l=0; $l<$nr_grp; $l++)
{
$row_grp=$db->db_fetch_object($result_grp, $l);
echo "&nbsp;&nbsp;- <a class=\"linkgreen\" href=\"studenten_uebersicht_det.php?stg_kz=$stg_kz&sem=$row_sem->semester&ver=$row_ver->verband&grp=$row_grp->gruppe\">$stg_kzbz-$row_sem->semester$row_ver->verband$row_grp->gruppe</a><br>";
}
}
}
echo"</td>";
}
?>
</tr>
</table>
</body>
</html>
@@ -1,99 +0,0 @@
<?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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
/**
* Changes: 22.10.2004: Anpassung an neues DB-Schema (WM)
*/
include('../../include/functions.inc.php');
$sql_query="SELECT uid, titelpre, vorname, nachname, UPPER(typ::varchar(1) || kurzbz) as kurzbz, semester, verband, gruppe, matrikelnr FROM campus.vw_student JOIN public.tbl_studiengang USING(studiengang_kz) WHERE true ";
if (isset($_GET['stg_kz']))
$sql_query.="AND studiengang_kz='".addslashes($_GET['stg_kz'])."' ";
if (isset($_GET['sem']) && is_numeric($_GET['sem']))
$sql_query.="AND semester=".$_GET['sem']." ";
if (isset($_GET['ver']))
$sql_query.="AND verband='".addslashes($_GET['ver'])."' ";
if (isset($_GET['grp']) && is_numeric($_GET['grp']))
$sql_query.="AND gruppe=".$_GET['grp']." ";
$sql_query.="ORDER BY nachname, kurzbz, semester, verband";
if(!($erg=$db->db_query($sql_query)))
die($db->db_last_error());
$num_rows=$db->db_num_rows($erg);
?>
<html>
<head>
<title>Detail Studenten</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</head>
<body class="background_main">
<h4>Detailansicht</h4>
Results: <?php echo $num_rows; ?><br>
<br>
<table border="0">
<tr><th>Titel</th><th>Vornamen</th><th>Nachname</th><th>STG</th><th>Sem.</th><th>Verband</th><th>Gruppe</th><th>Matrikelnr.</th><th>eMail</th></tr>
<?php
for ($i=0; $row=$db->db_fetch_object($erg); $i++)
{
$zeile=$i % 2;
$vorname=$row->vorname;
$nachname=$row->nachname;
$stgkurzbz=$row->kurzbz;
$titel=$row->titelpre;
$matrikelnr=$row->matrikelnr;
$sem=$row->semester;
$ver=$row->verband;
$grp=$row->gruppe;
$id=$row->uid;
$emailtw=$id.'@technikum-wien.at';
?>
<tr class="liste<?php echo $zeile; ?>">
<td><?php echo $titel; ?></td>
<td><?php echo $vorname; ?></td>
<td><?php echo $nachname; ?></td>
<td><?php echo $stgkurzbz; ?></td>
<td><?php echo $sem; ?></td>
<td><?php echo $ver; ?></td>
<td><?php echo $grp; ?></td>
<td><?php echo $matrikelnr; ?></td>
<td><a href="mailto:<?php echo $emailtw; ?>"><?php echo $emailtw; ?></a></td>
<td><a href="student_edit.php?id=<?php echo $id; ?>" class="linkblue">Edit</a></td>
</tr>
<?php
}
?>
</table>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More