This commit is contained in:
Andreas Österreicher
2009-07-15 09:45:45 +00:00
parent ac0125dedc
commit 380a0b8360
4 changed files with 10 additions and 109 deletions
-1
View File
@@ -102,7 +102,6 @@ $menu=array
(
'name'=>'Mitarbeiter','permissions'=>array('admin','lv-plan','support'),
'Übersicht'=>array('name'=>'Übersicht', 'link'=>'personen/lektor_uebersicht.php', 'target'=>'main'),
'Neu'=>array('name'=>'Neu', 'link'=>'personen/lektor_edit.php?new=1', 'target'=>'main'),
'Institute'=>array('name'=>'Institute', 'link'=>'personen/institutsliste.php', 'target'=>'main'),
'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main'),
'Resturlaub'=>array('name'=>'Urlaub', 'link'=>'personen/resturlaub_frameset.html', 'target'=>'main')
-41
View File
@@ -1,41 +0,0 @@
<?php
include('../config.inc.php');
include('../../include/functions.inc.php');
?>
<html>
<head>
<title>Lektor Edit</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../include/styles.css" type="text/css">
</head>
<body class="background_main">
<h4>Lektor Neu</h4>
<form name="lektor_new" action="lektor_new_save.php">
<table border="<?php echo $cfgBorder;?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
<tr>
<td>UID*</td>
<td><input type="text" name="uid"></td></tr>
<tr><td>Titel</td><td><input type="text" name="titel"></td></tr>
<tr><td>Vornamen</td><td><input type="text" name="vornamen"></td></tr>
<tr><td>Nachname</td><td><input type="text" name="nachname"></td></tr>
<tr><td>Geburtsdatum*</td><td><input type="text" name="gebdatum"></td></tr>
<tr><td>gebort</td><td><input type="text" name="gebort"></td></tr>
<tr><td>eMail Technikum</td><td><input type="text" name="emailtw"></td></tr>
<tr><td>eMail Forward</td><td><input type="text" name="emailforw"></td></tr>
<tr><td>eMail Alias</td><td><input type="text" name="emailalias"></td></tr>
<tr><td>Kurzbezeichnung</td><td><input type="text" name="kurzbz"></td></tr>
<tr><td>Telefon Technikum</td><td><input type="text" name="studiengang_id"></td></tr>
<tr><td>Fix Angestellt</td><td><SELECT name="fixangestellt">
<OPTION value="t">Ja</OPTION>
<OPTION value="f" selected>Nein</OPTION>
</SELECT></td></tr>
</table>
<input type="submit" name="Save" value="Speichern">
<input type="hidden" name="id" value="<?php echo $id; ?>">
</form>
</body>
</html>
-55
View File
@@ -1,55 +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.');
include('../../include/functions.inc.php');
foreach ($_REQUEST as $key => $value)
{
$key=$value;
}
$sql_query="INSERT INTO lektor (uid, titel, vornamen, nachname,gebdatum, gebort, gebzeit,emailtw,emailforw,emailalias,kurzbz,teltw,fixangestellt) ";
$sql_query.="VALUES('$uid','$titel','$vornamen','$nachname','$gebdatum','$gebort','00:00','$emailtw','$emailforw','$emailalias','$kurzbz','$teltw','$fixangestellt')";
//echo $sql_query;
if(!($erg=$db->db_query($sql_query)))
die($db->db_last_error());
?>
<html>
<head>
<title>Lektor Speichern</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../include/styles.css" type="text/css">
</head>
<body class="background_main">
<h4>Lektor Speichern</h4>
Speichern erfolgreich!
</body>
</html>
@@ -1,10 +1,8 @@
<?php
require('../../../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.');
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.');
@@ -24,15 +22,15 @@ $error=false;
$fausgabe='<table>';
define("DB_SERVER","192.168.101.230:1433");
define("DB_USER","sa");
define("DB_PASSWD","P1ss0ff");
define("DB_DB","asco4");
define("MDB_SERVER","192.168.101.230:1433");
define("MDB_USER","sa");
define("MDB_PASSWD","P1ss0ff");
define("MDB_DB","asco4");
// zugriff auf mssql-datenbank
if (!$conn_ext=mssql_connect (DB_SERVER, DB_USER, DB_PASSWD))
if (!$conn_ext=mssql_connect (MDB_SERVER, MDB_USER, MDB_PASSWD))
die('Fehler beim Verbindungsaufbau!');
mssql_select_db(DB_DB, $conn_ext);
mssql_select_db(MDB_DB, $conn_ext);
//letzte Nummer
$sql_query="SELECT max(asco.employee.reference) AS last_keynr FROM asco.employee;";