mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +00:00
This commit is contained in:
@@ -1,16 +1,31 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Technikum-Wien
|
||||
/* 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.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
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.');
|
||||
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
|
||||
|
||||
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
|
||||
$error_log='';
|
||||
@@ -42,7 +57,7 @@ if(isset($_POST['anlegen']))
|
||||
{
|
||||
$qry="INSERT INTO public.tbl_person (geschlecht,titelpre,vorname,nachname,updatevon) VALUES
|
||||
('".$_POST['geschlecht']."','".$_POST['titel']."','".$_POST['vorname']."','".$_POST['nachname']."','Administrator');";
|
||||
if($result = pg_query($conn, $qry))
|
||||
if($result = $db->db_query($qry))
|
||||
echo 'Person '.$_POST['nachname'].' wurde in VileSci angelegt!<BR>';
|
||||
}
|
||||
|
||||
@@ -62,7 +77,7 @@ if(isset($_POST['anlegen2']))
|
||||
{
|
||||
$qry="INSERT INTO public.tbl_firma (name,adresse,email,telefon,firmentyp_kurzbz,updatevon) VALUES
|
||||
('".$_POST['name']."','".$_POST['adresse']."','".$_POST['email']."','".$_POST['telefon']."','Partnerfirma','Administrator');";
|
||||
if($result = pg_query($conn, $qry))
|
||||
if($result = $db->db_query($qry))
|
||||
echo 'Firma '.$_POST['name'].' wurde in VileSci angelegt!<BR>';
|
||||
}
|
||||
|
||||
@@ -86,9 +101,9 @@ $qryvilesci.=" UNION SELECT titelpre, nachname, vorname, titelpost, person_id
|
||||
FROM public.tbl_person JOIN tbl_benutzer USING (person_id) JOIN tbl_mitarbeiter ON (uid=mitarbeiter_uid)";
|
||||
if (isset($_GET['all']))
|
||||
$qryvilesci.=" ORDER BY nachname;";
|
||||
if($resultvilesci = pg_query($conn, $qryvilesci))
|
||||
if($resultvilesci = $db->db_query($qryvilesci))
|
||||
{
|
||||
while($rowvilesci = pg_fetch_object($resultvilesci))
|
||||
while($rowvilesci = $db->db_fetch_object($resultvilesci))
|
||||
{
|
||||
$combobox[$i]=trim($rowvilesci->nachname)." ".trim($rowvilesci->vorname).' '.trim(trim($rowvilesci->titelpre).' '.trim($rowvilesci->titelpost));
|
||||
$nachname[$i]=trim($rowvilesci->nachname);
|
||||
@@ -101,9 +116,9 @@ $qryvilesci="SELECT firma_id,name, adresse,email,telefon,firmentyp_kurzbz FROM
|
||||
if (isset($_GET['all']))
|
||||
$qryvilesci.=" ORDER BY name;";
|
||||
$m=0;
|
||||
if($resultvilesci = pg_query($conn, $qryvilesci))
|
||||
if($resultvilesci = $db->db_query($qryvilesci))
|
||||
{
|
||||
while($rowvilesci = pg_fetch_object($resultvilesci))
|
||||
while($rowvilesci = $db->db_fetch_object($resultvilesci))
|
||||
{
|
||||
$firmabox[$m]=trim($rowvilesci->name);
|
||||
$firmaname[$m]=trim($rowvilesci->name);
|
||||
|
||||
@@ -1,16 +1,32 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Technikum-Wien
|
||||
/* 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.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
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.');
|
||||
|
||||
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
|
||||
$error_log='';
|
||||
$text = '';
|
||||
@@ -38,7 +54,7 @@ if(isset($_POST['anlegen']))
|
||||
{
|
||||
$qry="INSERT INTO public.tbl_person (geschlecht,titelpre,vorname,nachname,updatevon) VALUES
|
||||
('".$_POST['geschlecht']."','".$_POST['titel']."','".$_POST['vorname']."','".$_POST['nachname']."','Administrator');";
|
||||
if($result = pg_query($conn, $qry))
|
||||
if($result = $db->db_query($qry))
|
||||
echo 'Person '.$_POST['nachname'].' wurde in VileSci angelegt!<BR>';
|
||||
}
|
||||
|
||||
@@ -85,9 +101,9 @@ $qryvilesci.=" UNION SELECT titelpre, nachname, vorname, titelpost, person_id
|
||||
FROM public.tbl_person JOIN tbl_benutzer USING (person_id) JOIN tbl_mitarbeiter ON (uid=mitarbeiter_uid)";
|
||||
if (isset($_GET['all']))
|
||||
$qryvilesci.=" ORDER BY nachname;";
|
||||
if($resultvilesci = pg_query($conn, $qryvilesci))
|
||||
if($resultvilesci = $db->db_query($qryvilesci))
|
||||
{
|
||||
while($rowvilesci = pg_fetch_object($resultvilesci))
|
||||
while($rowvilesci = $db->db_fetch_object($resultvilesci))
|
||||
{
|
||||
$combobox[$i]=trim($rowvilesci->nachname)." ".trim($rowvilesci->vorname).' '.trim(trim($rowvilesci->titelpre).' '.trim($rowvilesci->titelpost));
|
||||
$nachname[$i]=trim($rowvilesci->nachname);
|
||||
|
||||
@@ -1,4 +1,28 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Ueberpruefung der Daten fuer Datenbankintegration FAS->VILESCI
|
||||
*
|
||||
@@ -14,8 +38,12 @@
|
||||
* Danach wird eine Mail an die zustaendige Assistentin geschickt.
|
||||
*/
|
||||
|
||||
include("../../config.inc.php");
|
||||
|
||||
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.');
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@@ -43,18 +71,15 @@ TR.liste1
|
||||
<body>
|
||||
<?php
|
||||
|
||||
if(!$conn=pg_pconnect(CONN_STRING_FAS))
|
||||
if(!$conn_fas=pg_pconnect(CONN_STRING_FAS))
|
||||
die("Fehler beim Connecten zur DB");
|
||||
if(!$conn_calva=pg_pconnect(CONN_STRING))
|
||||
die("Fehler beim Connecten zur DB");
|
||||
|
||||
|
||||
//Liste der Studiengaenge holen
|
||||
$qry="Select studiengang_kz, kurzbzlang from tbl_studiengang";
|
||||
if(!$result=pg_exec($conn_calva,$qry))
|
||||
if(!$result=$db->db_query($qry))
|
||||
die("Fehler beim Auslesen der Studiengaenge");
|
||||
|
||||
$studiengaenge=array();
|
||||
while($row=pg_fetch_object($result))
|
||||
while($row=$db->db_fetch_object($result))
|
||||
$studiengaenge[$row->studiengang_kz]=$row->kurzbzlang;
|
||||
|
||||
//alle Kurzbezeichnungen trimmen
|
||||
@@ -76,9 +101,8 @@ TR.liste1
|
||||
AND a.ausbildungssemester_fk=ausbildungssemester.ausbildungssemester_pk order by studiengang.kennzahl";
|
||||
|
||||
$arr=array();
|
||||
if(!$result=pg_exec($conn,$qry))
|
||||
die("Fehler bei qry".pg_last_error($conn));
|
||||
|
||||
if(!$result=pg_query($conn_fas,$qry))
|
||||
die("Fehler bei qry".pg_last_error($conn_fas));
|
||||
while($row=pg_fetch_object($result))
|
||||
{
|
||||
if((!array_key_exists($row->pk1.$row->pk2,$arr) || $arr[$row->pk1.$row->pk2]['bez1']!=$row->bez1)
|
||||
@@ -171,11 +195,9 @@ TR.liste1
|
||||
lva1.ausbildungssemester_fk=lva2.ausbildungssemester_fk
|
||||
ORDER BY lva1.studiengang_fk";
|
||||
|
||||
if(!$result=pg_exec($conn,$qry))
|
||||
if(!$result=pg_query($conn_fas,$qry))
|
||||
die("Fehler beim ueberpruefen der Stammdaten");
|
||||
|
||||
$laststg='0';
|
||||
|
||||
//Tabelle aufbauen
|
||||
while($row=pg_fetch_object($result))
|
||||
{
|
||||
@@ -242,8 +264,8 @@ TR.liste1
|
||||
AND studiengang.studiengang_pk=a.studiengang_fk
|
||||
AND a.ausbildungssemester_fk=ausbildungssemester_pk order by studiengang.kennzahl";
|
||||
$arr=array();
|
||||
if(!$result=pg_exec($conn,$qry))
|
||||
die("Fehler bei qry".pg_last_error($conn));
|
||||
if(!$result=pg_query($conn_fas,$qry))
|
||||
die("Fehler bei qry".pg_last_error($conn_fas));
|
||||
|
||||
while($row=pg_fetch_object($result))
|
||||
{
|
||||
@@ -319,10 +341,8 @@ TR.liste1
|
||||
if($elem!='0')
|
||||
{
|
||||
$qry="Select email from tbl_studiengang where studiengang_kz='$elem'";
|
||||
$result=pg_exec($conn_calva,$qry);
|
||||
|
||||
$row=pg_fetch_object($result);
|
||||
|
||||
$result=$db->db_query($qry);
|
||||
$row=$db->db_fetch_object($result);
|
||||
echo "<br>".$studiengaenge[$elem]." goes to $row->email<br><br>";
|
||||
echo $mesg[$elem];
|
||||
if($row->email!='')
|
||||
|
||||
@@ -1,16 +1,31 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Technikum-Wien
|
||||
/* 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.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
include('../../config.inc.php');
|
||||
|
||||
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
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.');
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
|
||||
$adress='[email protected]';
|
||||
//$adress='[email protected]';
|
||||
@@ -47,177 +62,28 @@ TR.liste1
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
$qry1='';
|
||||
if(isset($_POST['person_pk']))
|
||||
{
|
||||
if(isset($_POST['familienname']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", familienname='".$_POST['familienname']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "familienname='".$_POST['familienname']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['vorname']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", vorname='".$_POST['vorname']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "vorname='".$_POST['vorname']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['anrede']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", anrede='".$_POST['anrede']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "anrede='".$_POST['anrede']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['vornamen']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", vornamen='".$_POST['vornamen']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "vornamen='".$_POST['vornamen']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['geschlecht']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", geschlecht='".$_POST['geschlecht']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "geschlecht='".$_POST['geschlecht']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebdat']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebdat='".$_POST['gebdat']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebdat='".$_POST['gebdat']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebort']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebort='".$_POST['gebort']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebort='".$_POST['gebort']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['staatsbuergerschaft']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", staatsbuergerschaft='".$_POST['staatsbuergerschaft']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "staatsbuergerschaft='".$_POST['staatsbuergerschaft']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['familienstand']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", familienstand='".$_POST['familienstand']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "familienstand='".$_POST['familienstand']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['svnr']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", svnr='".$_POST['svnr']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "svnr='".$_POST['svnr']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['anzahlderkinder']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", anzahlderkinder='".$_POST['anzahlderkinder']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "anzahlderkinder='".$_POST['anzahlderkinder']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['ersatzkennzeichen']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", ersatzkennzeichen='".$_POST['ersatzkennzeichen']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "ersatzkennzeichen='".$_POST['ersatzkennzeichen']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['titel']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", titel='".$_POST['titel']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "titel='".$_POST['titel']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebnation']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebnation='".$_POST['gebnation']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebnation='".$_POST['gebnation']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['postnomentitel']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", postnomentitel='".$_POST['postnomentitel']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "postnomentitel='".$_POST['postnomentitel']."'";
|
||||
}
|
||||
}
|
||||
$qry1.=(isset($_POST['familienname'])?(!empty($qry1)?',':'')."familienname='".addslashes(trim($_POST['familienname']))."'" :'');
|
||||
$qry1.=(isset($_POST['vorname'])?(!empty($qry1)?',':'')."vorname='".addslashes(trim($_POST['vorname']))."'" :'');
|
||||
$qry1.=(isset($_POST['anrede'])?(!empty($qry1)?',':'')."anrede='".addslashes(trim($_POST['anrede']))."'" :'');
|
||||
$qry1.=(isset($_POST['vornamen'])?(!empty($qry1)?',':'')."vornamen='".addslashes(trim($_POST['vornamen']))."'" :'');
|
||||
$qry1.=(isset($_POST['geschlecht'])?(!empty($qry1)?',':'')."geschlecht='".addslashes(trim($_POST['geschlecht']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebdat'])?(!empty($qry1)?',':'')."gebdat='".addslashes(trim($_POST['gebdat']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebort'])?(!empty($qry1)?',':'')."gebort='".addslashes(trim($_POST['gebort']))."'" :'');
|
||||
$qry1.=(isset($_POST['staatsbuergerschaft'])?(!empty($qry1)?',':'')."staatsbuergerschaft='".addslashes(trim($_POST['staatsbuergerschaft']))."'" :'');
|
||||
$qry1.=(isset($_POST['familienstand'])?(!empty($qry1)?',':'')."familienstand='".addslashes(trim($_POST['familienstand']))."'" :'');
|
||||
$qry1.=(isset($_POST['svn'])?(!empty($qry1)?',':'')."svn='".addslashes(trim($_POST['svn']))."'" :'');
|
||||
$qry1.=(isset($_POST['anzahlderkinder'])?(!empty($qry1)?',':'')."anzahlderkinder='".addslashes(trim($_POST['anzahlderkinder']))."'" :'');
|
||||
$qry1.=(isset($_POST['ersatzkennzeichen'])?(!empty($qry1)?',':'')."ersatzkennzeichen='".addslashes(trim($_POST['ersatzkennzeichen']))."'" :'');
|
||||
$qry1.=(isset($_POST['titel'])?(!empty($qry1)?',':'')."titel='".addslashes(trim($_POST['titel']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebnation'])?(!empty($qry1)?',':'')."gebnation='".addslashes(trim($_POST['gebnation']))."'" :'');
|
||||
$qry1.=(isset($_POST['postnomentitel'])?(!empty($qry1)?',':'')."postnomentitel='".addslashes(trim($_POST['postnomentitel']))."'" :'');
|
||||
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry = "UPDATE person SET ".$qry1. " WHERE person_pk=".$_POST['person_pk'];
|
||||
|
||||
if(pg_query($conn_fas, $qry))
|
||||
{
|
||||
echo "Erfolgreich gespeichert: ".$qry;
|
||||
|
||||
@@ -1,16 +1,31 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Technikum-Wien
|
||||
/* 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.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
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.');
|
||||
|
||||
|
||||
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
|
||||
$error_log='';
|
||||
@@ -39,7 +54,7 @@ if(isset($_POST['anlegen']))
|
||||
{
|
||||
$qry="INSERT INTO public.tbl_person (geschlecht,titelpre,vorname,nachname,updatevon) VALUES
|
||||
('".$_POST['geschlecht']."','".$_POST['titel']."','".$_POST['vorname']."','".$_POST['nachname']."','Administrator');";
|
||||
if($result = pg_query($conn, $qry))
|
||||
if($result = $db->db_query($qry))
|
||||
echo 'Person '.$_POST['nachname'].' wurde in VileSci angelegt!<BR>';
|
||||
}
|
||||
|
||||
@@ -70,9 +85,9 @@ $qryvilesci.=" UNION SELECT titelpre, nachname, vorname, titelpost, person_id
|
||||
FROM public.tbl_person JOIN tbl_benutzer USING (person_id) JOIN tbl_mitarbeiter ON (uid=mitarbeiter_uid)";
|
||||
if (isset($_GET['all']))
|
||||
$qryvilesci.=" ORDER BY nachname;";
|
||||
if($resultvilesci = pg_query($conn, $qryvilesci))
|
||||
if($resultvilesci = $db->db_query($qryvilesci))
|
||||
{
|
||||
while($rowvilesci = pg_fetch_object($resultvilesci))
|
||||
while($rowvilesci = $db->db_fetch_object($resultvilesci))
|
||||
{
|
||||
$combobox[$i]=trim($rowvilesci->nachname)." ".trim($rowvilesci->vorname).' '.trim(trim($rowvilesci->titelpre).' '.trim($rowvilesci->titelpost));
|
||||
$nachname[$i]=trim($rowvilesci->nachname);
|
||||
|
||||
@@ -1,15 +1,30 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Technikum-Wien
|
||||
/* 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.
|
||||
*
|
||||
* Authors: Christian Paminger <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
include('../../config.inc.php');
|
||||
|
||||
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
|
||||
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.');
|
||||
$conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlgeschlagen");
|
||||
|
||||
|
||||
@@ -49,177 +64,27 @@ TR.liste1
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
$qry1 ='';
|
||||
if(isset($_POST['person_pk']))
|
||||
{
|
||||
if(isset($_POST['familienname']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", familienname='".$_POST['familienname']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "familienname='".$_POST['familienname']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['vorname']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", vorname='".$_POST['vorname']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "vorname='".$_POST['vorname']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['anrede']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", anrede='".$_POST['anrede']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "anrede='".$_POST['anrede']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['vornamen']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", vornamen='".$_POST['vornamen']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "vornamen='".$_POST['vornamen']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['geschlecht']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", geschlecht='".$_POST['geschlecht']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "geschlecht='".$_POST['geschlecht']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebdat']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebdat='".$_POST['gebdat']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebdat='".$_POST['gebdat']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebort']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebort='".$_POST['gebort']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebort='".$_POST['gebort']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['staatsbuergerschaft']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", staatsbuergerschaft='".$_POST['staatsbuergerschaft']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "staatsbuergerschaft='".$_POST['staatsbuergerschaft']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['familienstand']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", familienstand='".$_POST['familienstand']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "familienstand='".$_POST['familienstand']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['svnr']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", svnr='".$_POST['svnr']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "svnr='".$_POST['svnr']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['anzahlderkinder']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", anzahlderkinder='".$_POST['anzahlderkinder']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "anzahlderkinder='".$_POST['anzahlderkinder']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['ersatzkennzeichen']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", ersatzkennzeichen='".$_POST['ersatzkennzeichen']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "ersatzkennzeichen='".$_POST['ersatzkennzeichen']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['titel']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", titel='".$_POST['titel']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "titel='".$_POST['titel']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['gebnation']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", gebnation='".$_POST['gebnation']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "gebnation='".$_POST['gebnation']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['postnomentitel']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", postnomentitel='".$_POST['postnomentitel']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "postnomentitel='".$_POST['postnomentitel']."'";
|
||||
}
|
||||
}
|
||||
$qry1.=(isset($_POST['familienname'])?(!empty($qry1)?',':'')."familienname='".addslashes(trim($_POST['familienname']))."'" :'');
|
||||
$qry1.=(isset($_POST['vorname'])?(!empty($qry1)?',':'')."vorname='".addslashes(trim($_POST['vorname']))."'" :'');
|
||||
$qry1.=(isset($_POST['anrede'])?(!empty($qry1)?',':'')."anrede='".addslashes(trim($_POST['anrede']))."'" :'');
|
||||
$qry1.=(isset($_POST['vornamen'])?(!empty($qry1)?',':'')."vornamen='".addslashes(trim($_POST['vornamen']))."'" :'');
|
||||
$qry1.=(isset($_POST['geschlecht'])?(!empty($qry1)?',':'')."geschlecht='".addslashes(trim($_POST['geschlecht']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebdat'])?(!empty($qry1)?',':'')."gebdat='".addslashes(trim($_POST['gebdat']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebort'])?(!empty($qry1)?',':'')."gebort='".addslashes(trim($_POST['gebort']))."'" :'');
|
||||
$qry1.=(isset($_POST['staatsbuergerschaft'])?(!empty($qry1)?',':'')."staatsbuergerschaft='".addslashes(trim($_POST['staatsbuergerschaft']))."'" :'');
|
||||
$qry1.=(isset($_POST['familienstand'])?(!empty($qry1)?',':'')."familienstand='".addslashes(trim($_POST['familienstand']))."'" :'');
|
||||
$qry1.=(isset($_POST['svn'])?(!empty($qry1)?',':'')."svn='".addslashes(trim($_POST['svn']))."'" :'');
|
||||
$qry1.=(isset($_POST['anzahlderkinder'])?(!empty($qry1)?',':'')."anzahlderkinder='".addslashes(trim($_POST['anzahlderkinder']))."'" :'');
|
||||
$qry1.=(isset($_POST['ersatzkennzeichen'])?(!empty($qry1)?',':'')."ersatzkennzeichen='".addslashes(trim($_POST['ersatzkennzeichen']))."'" :'');
|
||||
$qry1.=(isset($_POST['titel'])?(!empty($qry1)?',':'')."titel='".addslashes(trim($_POST['titel']))."'" :'');
|
||||
$qry1.=(isset($_POST['gebnation'])?(!empty($qry1)?',':'')."gebnation='".addslashes(trim($_POST['gebnation']))."'" :'');
|
||||
$qry1.=(isset($_POST['postnomentitel'])?(!empty($qry1)?',':'')."postnomentitel='".addslashes(trim($_POST['postnomentitel']))."'" :'');
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry = "UPDATE person SET ".$qry1. " WHERE person_pk=".$_POST['person_pk'];
|
||||
|
||||
if(pg_query($conn_fas, $qry))
|
||||
{
|
||||
echo "Erfolgreich gespeichert: ".$qry;
|
||||
@@ -230,188 +95,29 @@ if(isset($_POST['person_pk']))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$qry2='';
|
||||
if(isset($_POST['student']))
|
||||
{
|
||||
/*if(isset($_POST['studiengang']) )
|
||||
{
|
||||
if(strlen(trim($qry1))>0)
|
||||
{
|
||||
$qry1.= ", studiengang='".$_POST['studiengang']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry1= "studiengang='".$_POST['studiengang']."'";
|
||||
}
|
||||
}*/
|
||||
if(isset($_POST['zgv']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgv='".$_POST['zgv']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgv='".$_POST['zgv']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['zgvdatum']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgvdatum='".$_POST['zgvdatum']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgvdatum='".$_POST['zgvdatum']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['zgvort']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgvort='".$_POST['zgvort']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgvort='".$_POST['zgvort']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['zgvmagister']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgvmagister='".$_POST['zgvmagister']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgvmagister='".$_POST['zgvmagister']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['zgvmagisterdatum']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgvmagisterdatum='".$_POST['zgvmagisterdatum']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgvmagisterdatum='".$_POST['zgvmagisterdatum']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['zgvmagisterort']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", zgvmagisterort='".$_POST['zgvmagisterort']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "zgvmagisterort='".$_POST['zgvmagisterort']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['punkte']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", punkte='".$_POST['punkte']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "punkte='".$_POST['punkte']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['perskz']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", perskz='".$_POST['perskz']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "perskz='".$_POST['perskz']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['aufgenommenam']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", aufgenommenam='".$_POST['aufgenommenam']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "aufgenommenam='".$_POST['aufgenommenam']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['beendigungsdatum']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", beendigungsdatum='".$_POST['beendigungsdatum']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "beendigungsdatum='".$_POST['beendigungsdatum']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['aufmerksamdurch']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", aufmerksamdurch='".$_POST['aufmerksamdurch']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "aufmerksamdurch='".$_POST['aufmerksamdurch']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['aufnahmeschluessel']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", aufnahmeschluessel='".$_POST['aufnahmeschluessel']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "aufnahmeschluessel='".$_POST['aufnahmeschluessel']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['aufnahmeschluesselfk']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", aufnahmeschluessel_fk='".$_POST['aufnahmeschluesselfk']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "aufnahmeschluessel_fk='".$_POST['aufnahmeschluesselfk']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['berufstaetigkeit']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", berufstaetigkeit='".$_POST['berufstaetigkeit']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "berufstaetigkeit='".$_POST['berufstaetigkeit']."'";
|
||||
}
|
||||
}
|
||||
if(isset($_POST['angetreten']) )
|
||||
{
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry2.= ", angetreten='".$_POST['angetreten']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry2= "angetreten='".$_POST['angetreten']."'";
|
||||
}
|
||||
}
|
||||
$qry2.=(isset($_POST['zgv'])?(!empty($qry2)?',':'')."zgv='".addslashes(trim($_POST['zgv']))."'" :'');
|
||||
$qry2.=(isset($_POST['zgvdatum'])?(!empty($qry2)?',':'')."zgvdatum='".addslashes(trim($_POST['zgvdatum']))."'" :'');
|
||||
$qry2.=(isset($_POST['zgvort'])?(!empty($qry2)?',':'')."zgvort='".addslashes(trim($_POST['zgvort']))."'" :'');
|
||||
$qry2.=(isset($_POST['zgvmagister'])?(!empty($qry2)?',':'')."zgvmagister='".addslashes(trim($_POST['zgvmagister']))."'" :'');
|
||||
$qry2.=(isset($_POST['zgvmagisterdatum'])?(!empty($qry2)?',':'')."zgvmagisterdatum='".addslashes(trim($_POST['zgvmagisterdatum']))."'" :'');
|
||||
$qry2.=(isset($_POST['zgvmagisterort'])?(!empty($qry2)?',':'')."zgvmagisterort='".addslashes(trim($_POST['zgvmagisterort']))."'" :'');
|
||||
$qry2.=(isset($_POST['punkte'])?(!empty($qry2)?',':'')."punkte='".addslashes(trim($_POST['punkte']))."'" :'');
|
||||
$qry2.=(isset($_POST['perskz'])?(!empty($qry2)?',':'')."perskz='".addslashes(trim($_POST['perskz']))."'" :'');
|
||||
$qry2.=(isset($_POST['aufgenommenam'])?(!empty($qry2)?',':'')."aufgenommenam='".addslashes(trim($_POST['aufgenommenam']))."'" :'');
|
||||
$qry2.=(isset($_POST['beendigungsdatum'])?(!empty($qry2)?',':'')."beendigungsdatum='".addslashes(trim($_POST['beendigungsdatum']))."'" :'');
|
||||
$qry2.=(isset($_POST['aufmerksamdurch'])?(!empty($qry2)?',':'')."aufmerksamdurch='".addslashes(trim($_POST['aufmerksamdurch']))."'" :'');
|
||||
$qry2.=(isset($_POST['aufnahmeschluessel'])?(!empty($qry2)?',':'')."aufnahmeschluessel='".addslashes(trim($_POST['aufnahmeschluessel']))."'" :'');
|
||||
$qry2.=(isset($_POST['aufnahmeschluesselfk'])?(!empty($qry2)?',':'')."aufnahmeschluesselfk='".addslashes(trim($_POST['aufnahmeschluesselfk']))."'" :'');
|
||||
|
||||
$qry2.=(isset($_POST['berufstaetigkeit'])?(!empty($qry2)?',':'')."berufstaetigkeit='".addslashes(trim($_POST['berufstaetigkeit']))."'" :'');
|
||||
$qry2.=(isset($_POST['angetreten'])?(!empty($qry2)?',':'')."angetreten='".addslashes(trim($_POST['angetreten']))."'" :'');
|
||||
if(strlen(trim($qry2))>0)
|
||||
{
|
||||
$qry = "UPDATE student SET ".$qry2. " WHERE student_pk=".$_POST['student'];
|
||||
|
||||
if(pg_query($conn_fas, $qry))
|
||||
{
|
||||
echo nl2br("\nErfolgreich gespeichert: ".$qry);
|
||||
@@ -422,6 +128,7 @@ if(isset($_POST['student']))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$qry1='';
|
||||
|
||||
// OR (p1.ersatzkennzeichen=p2.ersatzkennzeichen AND p1.ersatzkennzeichen IS NOT NULL AND p1.ersatzkennzeichen<>'')
|
||||
|
||||
@@ -1,7 +1,30 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
/**
|
||||
* ermoeglicht das Eintragen der Kurzbezeichnung bei Lehrveranstaltungen ohne kurzbz
|
||||
*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
@@ -16,15 +39,19 @@
|
||||
|
||||
<H1>FAS - Lehrveranstaltung</h1>
|
||||
<?php
|
||||
require_once('../../config.inc.php');
|
||||
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.');
|
||||
|
||||
|
||||
//DB Verbindung herstellen
|
||||
if (!$conn = @pg_pconnect(CONN_STRING_FAS))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
if (!$conn_fas = @pg_pconnect(CONN_STRING_FAS))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
$qry = "SET CLIENT_ENCODING TO 'LATIN9';SELECT * FROM studiengang order by studiengangsart, kuerzel";
|
||||
|
||||
if(!$result = pg_query($conn, $qry))
|
||||
if(!$result = pg_query($conn_fas, $qry))
|
||||
die('Fehler beim lesen aus der DB');
|
||||
|
||||
if(isset($_GET['studiengang']))
|
||||
@@ -35,7 +62,7 @@
|
||||
if(isset($_POST['kurzbz']) && isset($_GET['lehrveranstaltung_id']) && is_numeric($_GET['lehrveranstaltung_id']))
|
||||
{
|
||||
$qry = "UPDATE lehrveranstaltung SET kurzbezeichnung='".addslashes(strtoupper($_POST['kurzbz']))."' WHERE lehrveranstaltung_pk='".$_GET['lehrveranstaltung_id']."';";
|
||||
if(pg_query($conn, $qry))
|
||||
if(pg_query($conn_fas, $qry))
|
||||
echo "Erfolgreich gespeichert";
|
||||
else
|
||||
echo "<span style='font-color: Red;'>Fehler beim Speichern</span>";
|
||||
@@ -66,7 +93,7 @@
|
||||
die('Bitte einen Studiengang auswaehlen');
|
||||
$qry = "SELECT *, ausbildungssemester.name as ausbildungssemestername, lehrveranstaltung.name as lehrveranstaltungname FROM lehrveranstaltung, ausbildungssemester, studiensemester WHERE lehrveranstaltung.ausbildungssemester_fk=ausbildungssemester.ausbildungssemester_pk AND lehrveranstaltung.studiensemester_fk=studiensemester.studiensemester_pk AND (lehrveranstaltung.kurzbezeichnung is null OR lehrveranstaltung.kurzbezeichnung='') AND lehrveranstaltung.studiengang_fk='".addslashes($stg)."' ORDER BY lehrveranstaltung_pk";
|
||||
|
||||
if(!$result = pg_query($conn, $qry))
|
||||
if(!$result = pg_query($conn_fas, $qry))
|
||||
die('Fehler beim lesen aus der Datenbank');
|
||||
$anz = pg_num_rows($result);
|
||||
echo " $anz Datensaetze gefunden";
|
||||
@@ -79,7 +106,7 @@
|
||||
//Vorschlag suchen
|
||||
$kuerzel='';
|
||||
$qry = "SELECT kurzbezeichnung FROM lehrveranstaltung WHERE studiengang_fk='$row->studiengang_fk' AND ausbildungssemester_fk='$row->ausbildungssemester_fk' AND name='$row->lehrveranstaltungname' AND kurzbezeichnung is not null AND kurzbezeichnung<>''";
|
||||
$result_kurzbz = pg_query($conn, $qry);
|
||||
$result_kurzbz = pg_query($conn_fas, $qry);
|
||||
while($row_kurzbz = pg_fetch_object($result_kurzbz))
|
||||
$kuerzel .= $row_kurzbz->kurzbezeichnung.',';
|
||||
|
||||
|
||||
+40
-13
@@ -1,3 +1,31 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
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.');
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Abgleich der Lehrfaecher</title>
|
||||
@@ -6,39 +34,38 @@
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include('../vilesci/config.inc.php');
|
||||
$conn=pg_connect(CONN_STRING);
|
||||
$sql_query='SELECT tbl_stundenplan.*, tbl_lehrfach.lehrform_kurzbz, tbl_lehrfach.kurzbz AS lehrfach, tbl_lehrfach.bezeichnung, tbl_lehrfach.farbe
|
||||
FROM tbl_stundenplan, tbl_lehrfach WHERE tbl_stundenplan.lehrfach_nr=tbl_lehrfach.lehrfach_nr
|
||||
AND (tbl_stundenplan.studiengang_kz!=tbl_lehrfach.studiengang_kz
|
||||
OR tbl_stundenplan.semester!=tbl_lehrfach.semester)'; //LIMIT 10000
|
||||
|
||||
//echo $sql_query."<br>";
|
||||
$result=pg_query($conn, $sql_query);
|
||||
$num_rows=pg_numrows($result);
|
||||
$result=$db->db_query($sql_query);
|
||||
$num_rows=@$db->db_num_rows($result);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=pg_fetch_object($result,$i);
|
||||
$row=$db->db_fetch_object($result,$i);
|
||||
$sql_query="SELECT lehrfach_nr FROM tbl_lehrfach WHERE studiengang_kz=$row->studiengang_kz
|
||||
AND semester=$row->semester AND kurzbz='$row->lehrfach' AND lehrform_kurzbz='$row->lehrform_kurzbz'";
|
||||
//echo $sql_query."<br>";
|
||||
if (!$res=pg_exec($conn, $sql_query))
|
||||
echo pg_last_error($conn).'<br>';
|
||||
if (!$res=$db->db_query($sql_query))
|
||||
echo $db->db_last_error().'<br>';
|
||||
else
|
||||
if (pg_numrows($res)>=1)
|
||||
if ($db->db_num_rows($res)>=1)
|
||||
{
|
||||
$lehrfach_nr=pg_fetch_object($res);
|
||||
$lehrfach_nr=$db->db_fetch_object($res);
|
||||
$lehrfach_nr=$lehrfach_nr->lehrfach_nr;
|
||||
$sql_query="update tbl_stundenplan set lehrfach_nr=$lehrfach_nr WHERE stundenplan_id=$row->stundenplan_id";
|
||||
//echo $sql_query."<br>";
|
||||
if (!$ergebniss=pg_query($conn, $sql_query))
|
||||
echo pg_last_error($conn).'<br>';
|
||||
if (!$ergebniss=$db->db_query($sql_query))
|
||||
echo $db->db_last_error().'<br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql_query="INSERT INTO tbl_lehrfach (studiengang_kz,semester,kurzbz,lehrform_kurzbz,bezeichnung,fachbereich_id,farbe) VALUES ($row->studiengang_kz,$row->semester,'$row->lehrfach','$row->lehrform_kurzbz','$row->bezeichnung',0,'$row->farbe');";
|
||||
echo $sql_query.'<BR>';
|
||||
if (!$ergebniss=pg_query($conn, $sql_query))
|
||||
echo pg_last_error($conn).'<br>';
|
||||
if (!$ergebniss=$db->db_query($sql_query))
|
||||
echo $db->db_last_error().'<br>';
|
||||
}
|
||||
}
|
||||
echo $num_rows.' Datensaetze abgeglichen! Fertig<br>';
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on 16.11.2005
|
||||
*
|
||||
*/
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Pragma: no-cache");
|
||||
// content type setzen
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
|
||||
|
||||
// xml
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
// DAO
|
||||
include('../vilesci/config.inc.php');
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
||||
// Orte holen
|
||||
$sql_query="Select tbl_mailgrp.mailgrp_kurzbz,tbl_mailgrp.studiengang_kz,tbl_mailgrp.beschreibung,tbl_mailgrp.sichtbar,tbl_mailgrp.generiert,tbl_mailgrp.aktiv, tbl_person.vornamen, tbl_person.nachname, (tbl_person.uid || '@technikum-wien.at') as email from tbl_mailgrp, tbl_personmailgrp, tbl_person where tbl_mailgrp.mailgrp_kurzbz=tbl_personmailgrp.mailgrp_kurzbz AND tbl_personmailgrp.uid=tbl_person.uid ORDER by mailgrp_kurzbz, nachname,vornamen";
|
||||
if(!$result=pg_query($conn, $sql_query))
|
||||
$error_msg.=pg_errormessage($conn);
|
||||
else
|
||||
$num_rows=@pg_numrows($result);
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/vilesci/mailgrp';
|
||||
?>
|
||||
|
||||
<RDF:RDF
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:GRP="<?php echo $rdf_url; ?>/rdf#"
|
||||
>
|
||||
|
||||
<?php
|
||||
$descr='';
|
||||
$sequenz='';
|
||||
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$grpLAST=($i>0?pg_fetch_object($result,$i-1):null);
|
||||
$grp=pg_fetch_object($result,$i);
|
||||
$grpNEXT=(($i<$num_rows-1)?pg_fetch_object($result,$i+1):null);
|
||||
$currentgrp=$grp->mailgrp_kurzbz;
|
||||
$lastgrp=$grpLAST->mailgrp_kurzbz;
|
||||
$nextGRP=$grpNEXT->mailgrp_kurzbz;
|
||||
|
||||
if ($lastgrp!=$currentgrp || $i==0)
|
||||
$descr.='<RDF:Description RDF:about="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'" >
|
||||
<GRP:mailgrp>'.$grp->mailgrp_kurzbz.'</GRP:mailgrp>
|
||||
<GRP:vorname></GRP:vorname>
|
||||
<GRP:nachname></GRP:nachname>
|
||||
</RDF:Description>'."\n";
|
||||
$descr.=' <RDF:Description RDF:about="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'/'.$grp->email.'" >
|
||||
<GRP:mailgrp>'.$grp->email.'</GRP:mailgrp>
|
||||
<GRP:vorname>'.$grp->vornamen.'</GRP:vorname>
|
||||
<GRP:nachname>'.$grp->nachname.'</GRP:nachname>
|
||||
</RDF:Description>'."\n";
|
||||
|
||||
if ($lastgrp!=$currentgrp)
|
||||
$sequenz.='<RDF:li RDF:resource="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'" />
|
||||
<RDF:li>
|
||||
<RDF:Seq RDF:about="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'" >'."\n";
|
||||
if ($nextGRP!=$currentgrp || $i==$num_rows-1)
|
||||
$sequenz.='<RDF:li RDF:resource="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'/'.$grp->email.'" />
|
||||
</RDF:Seq>
|
||||
</RDF:li>'."\n";
|
||||
elseif ($lastgrp==$currentgrp || $nextGRP==$currentgrp || $num_rows==1)
|
||||
$sequenz.='<RDF:li RDF:resource="'.$rdf_url.'/'.$grp->mailgrp_kurzbz.'/'.$grp->email.'" />'."\n";
|
||||
}
|
||||
$sequenz='<RDF:Seq about="'.$rdf_url.'/alle-grp">'."\n".$sequenz.'
|
||||
</RDF:Seq>';
|
||||
|
||||
echo $descr;
|
||||
echo $sequenz;
|
||||
|
||||
?>
|
||||
</RDF:RDF>
|
||||
@@ -1,105 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Liste der in FAS geloeschten Lehrveranstaltungen
|
||||
*/
|
||||
include('../vilesci/config.inc.php');
|
||||
include('../include/functions.inc.php');
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
//Variablen laden
|
||||
#gss $error_msg.=loadVariables($conn,$REMOTE_USER);
|
||||
$error_msg.=loadVariables($REMOTE_USER);
|
||||
|
||||
if ($type=='new')
|
||||
{
|
||||
$sql_query="INSERT INTO tbl_personmailgrp (uid, mailgrp_kurzbz) VALUES ('".$_POST['personid']."','".$_POST['mailgrpid']."')";
|
||||
//echo $sql_query;
|
||||
if(!$result=pg_exec($conn, $sql_query))
|
||||
$error=pg_errormessage($conn);
|
||||
}
|
||||
elseif ($type=='del')
|
||||
{
|
||||
$sql_query='DELETE FROM tbl_lehrveranstaltung WHERE lehrveranstaltung_id='.$_GET['lva_id'];
|
||||
if(!$result=pg_exec($conn, $sql_query))
|
||||
$error=pg_errormessage($conn);
|
||||
}
|
||||
elseif ($type=='delall')
|
||||
{
|
||||
$sql_query='DELETE FROM tbl_stundenplan WHERE lehrveranstaltung_id='.$_GET['lva_id'];
|
||||
$sql_query.=';DELETE FROM tbl_stundenplandev WHERE lehrveranstaltung_id='.$_GET['lva_id'];
|
||||
$sql_query.=';DELETE FROM tbl_lehrveranstaltung WHERE lehrveranstaltung_id='.$_GET['lva_id'];
|
||||
if(!$result=pg_exec($conn, $sql_query))
|
||||
$error=pg_errormessage($conn);
|
||||
}
|
||||
|
||||
$sql_query="SELECT * FROM tbl_lehrveranstaltung WHERE fas_id NOT IN
|
||||
(SELECT fas_id FROM vw_fas_lehrveranstaltung WHERE (studiensemester_kurzbz='$semester_aktuell' ) ) AND (fas_id!=0 OR fas_id IS NOT NULL) AND ( (studiensemester_kurzbz='$semester_aktuell' ) )";
|
||||
|
||||
if(!$result=pg_exec($conn, $sql_query))
|
||||
die (pg_errormessage($conn));
|
||||
$num_rows=pg_numrows($result);
|
||||
?>
|
||||
|
||||
<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">
|
||||
<?php
|
||||
if (isset($error))
|
||||
echo $error;
|
||||
elseif ($type=='del')
|
||||
echo 'Lehrveranstaltung wurde gelöscht!';
|
||||
?>
|
||||
<h2><a href="index.html">Admin</a> Lehrveranstaltungen (im FAS geloescht)</h2>
|
||||
Anzahl:<?php echo $num_rows; ?>
|
||||
<br>
|
||||
<br>
|
||||
<table border="0">
|
||||
<tr bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<th></th><th></th><th>ID</th><th>lvnr</th><th>unr</th><th>lektor</th><th>Lehrfach</th>
|
||||
<th>KZ</th><th>FB</th><th>S</th><th>V</th><th>G</th><th>Einheit</th>
|
||||
<th>Raumtyp</th><th>RaumtypA</th><th>SS</th><th>SB</th>
|
||||
<th>WR</th><th>KW</th><th>Semester</th><th>Anmerkung</th>
|
||||
<th>fas_id</th></tr>
|
||||
<?php
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
{
|
||||
$row=pg_fetch_object($result,$i);
|
||||
?>
|
||||
<tr class="liste<?php echo ($i%2); ?>">
|
||||
<td><a href="stdplan_lva_del.php?type=del&lva_id=<?php echo $row->lehrveranstaltung_id; ?>" class="linkblue">Delete</a></td>
|
||||
<td><a href="stdplan_lva_del.php?type=delall&lva_id=<?php echo $row->lehrveranstaltung_id; ?>" class="linkblue">DeleteAll</a></td>
|
||||
<td><?php echo $row->lehrveranstaltung_id; ?></td>
|
||||
<td><?php echo $row->lvnr; ?></td>
|
||||
<td><?php echo $row->unr; ?></td>
|
||||
<td><?php echo $row->lektor; ?></td>
|
||||
<td><?php echo $row->lehrfach_nr; ?></td>
|
||||
<td><?php echo $row->studiengang_kz; ?></td>
|
||||
<td><?php echo $row->fachbereich_id; ?></td>
|
||||
<td><?php echo $row->semester; ?></td>
|
||||
<td><?php echo $row->verband; ?></td>
|
||||
<td><?php echo $row->gruppe; ?></td>
|
||||
<td><?php echo $row->einheit_kurzbz; ?></td>
|
||||
<td><?php echo $row->raumtyp; ?></td>
|
||||
<td><?php echo $row->raumtypalternativ; ?></td>
|
||||
<td><?php echo $row->semesterstunden; ?></td>
|
||||
<td><?php echo $row->stundenblockung; ?></td>
|
||||
<td><?php echo $row->wochenrythmus; ?></td>
|
||||
<td><?php echo $row->start_kw; ?></td>
|
||||
<td><?php echo $row->studiensemester_kurzbz; ?></td>
|
||||
<td><?php echo $row->anmerkung; ?></td>
|
||||
<td><?php echo $row->fas_id; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user