Location: PHPKode > projects > tbvs > tbvs-1.1/BearbeiterShow.php
<? // this section is managed by php-mgr : you may change / enhance the part with the program versions
//
//  This php section is being managed by php-mgr ver 1, 
//  If you make changes in this section then your changes will be overwritten in later releases of this file !
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  File          : ./BearbeiterShow.php ( 05/24/2010 )
//  Language      : php
//  Description   : Formular, um die Daten eines vorhandenen Bearbeiter anzuzeigen 
//  Project       : tbvs - Das Tiefbauverwaltungssystem
//  Project Site  : http://tbvs.sourceforge.net/
//  Project wiki  : http://scratchpad.wikia.com/wiki/Tbvs
//  Created by    : Rainer Stötter ( hide@address.com ), 03/02/2010
//  Copyright (c) : 2007 - 2010, Rainer Stötter, All rights reserved
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  License
//
//  This file has been released under GNU GENERAL PUBLIC LICENSE
//  (see http://www.gnu.org/licenses/gpl.html)
//
//
// * GNU General Public License (Version 3, June 2009 )
// *
// * 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 3 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. 
//   
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  
//	[[Requests]]
//
//
//		_GET['bea']
//		_GET['bk']
//		_GET['mandant']
//		_GET['prj']
//
//	[[End of requests]]
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  
//	[[Functions]]
//
//
//		function CheckParameters()
//		function ShowBearbeiter($mandant,$bk,$bea,$prj)
//
//	[[End of functions]]
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  
//	[[Classes]]
//
//
//	no classes were found
//
//	[[End of classes]]
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  
//	[[Versions of file ./BearbeiterShow.php]]
//
//	02.03.2010	Rainer Stötter (tbvs-1.08006)
//			Module created
//			a
//
//	[[End of versions]]
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  CVS
//
//  $Log:…$
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 
// here ends the section which is managed by php-mgr ver 1
//

//{TOOLVER=01,00000}{OLSTART=00492}{OLLEN=00063}
?><?php

/*********************************************************************************
* BearbeiterShow.php
*
* Funktion :
*	Anzeige der Daten eines Bearbeiters
* Parameter : 
*	$mandant 	ID des akuellen Mandanten
*       $bk             ID des aktuellen Buchungskreises
*       $bk             ID der Firma
**********************************************************************************/

require_once("./functions/checkuser.inc.php");	//	Login ist erforderlich
require_once("./functions/prolog.inc.php");	//	Datei mit vorgestellten Routinen
require_once("./functions/debug.inc.php");	//	Debugging-Funktionen
require_once("./functions/tbvs.inc.php");	//	systemweite Konstanten und Funktionen
require_once("./functions/tbvs-db.inc.php");	//	systemweite Datenbankfunktionen

function ShowBearbeiter($mandant,$bk,$bea, $prj) {
	
  $msgBuchungskreis = id2msg( 2422 );
  $msgMandant = id2msg( 2421 );

  $msgZuDenBearbeitern = id2msg( 8391 );
  $msgReset = id2msg( 2754 );
  $msgEditRecord = id2msg( 2429 );

        $msgID = id2msg( 2972 );
        $msgName = id2msg( 1022 );
        $msgVorname = id2msg( 8351 );
        $msgStrasse = id2msg( 2071 );
        $msgPLZ = id2msg( 1025 );
        $msgOrt = id2msg( 1026 );
        $msgTelefon = id2msg( 2075 );
        $msgFax = id2msg( 2076 );

        $msgZuDenBearbeitern = id2msg( 8391 );
        $msgBearbeiter = id2msg( 8392 );

        $msgAbteilung = id2msg( 2168 );
        $msgProjekt = id2msg( 1083 );	

	$row = GetBearbeiter($mandant,$bk, $prj, $bea);

    $prjName = ID2PROJNRProjekt($mandant, $bk, $prj);  $ueberschrift = "<h2>" . sprintf( id2msg( 9871 ), $bea, $prjName, $row->Name . "," . $row->Vorname ) . "</h2><p>";  echo( $ueberschrift );

//	echo "<FORM ACTION=FirmaEditCheck.php METHOD='post'>";	
	echo "<TABLE>";
	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'>$msgMandant";
	echo "<TD ALIGN='LEFT'>";
	echo hent( ID2NameMandant($mandant) );
	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'>$msgBuchungskreis";
	echo "<TD ALIGN='LEFT'>";
	echo  hent( ID2NameBuchungskreis($mandant, $bk) );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'>$msgProjekt";
	echo "<TD ALIGN='LEFT'>";
	echo hent( ID2TitelProjekt($mandant, $bk, $prj) );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgID";
	echo "<TD ALIGN='LEFT'>";
	echo hent( $row->ID_BEARBEITER );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgName";
	echo "<TD ALIGN='LEFT'>";
	echo hent( $row->Name );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgVorname";
	echo "<TD ALIGN='LEFT'>";
	echo hent( $row->Vorname );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgStrasse";
	echo "<TD ALIGN='LEFT'>";
	echo hent( $row->Strasse );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgPLZ";
	echo "<TD ALIGN='LEFT'>";
	echo $row->PLZ;

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgOrt";
	echo "<TD ALIGN='LEFT'>";
	echo hent( $row->Ort );

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgTelefon";
	echo "<TD ALIGN='LEFT'>";
	echo $row->Telefon;

	echo "<TR>";
	echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgTelefax";
	echo "<TD ALIGN='LEFT'>";
	echo $row->Telefax;


	echo "</TABLE>";
	
	echo "<br><a href=BearbeiterEdit.php?mandant=$mandant&bk=$bk&bea=$bea&prj=$prj> $msgEditRecord </a>";
	echo "<br><a href=BearbeiterList.php?mandant=$mandant&bk=$bk>$msgZuDenBearbeitern </a>  ";
}	// function ShowMandant

function CheckParameters() {
    if (! isset($_GET['mandant']) ) 
            die (id2msg( 1070 ));
    if (! isset($_GET['bk']) ) 
            die (id2msg( 1071 ));
    if (! isset($_GET['bea']) ) 
            die ( id2msg( 8390 ) );
    if (! isset($_GET['prj']) ) 
            die ( id2msg( 8371 ) );

}

CheckParameters ( );

$mandant=$_GET['mandant'];
$bk=$_GET['bk'];
$bea=$_GET['bea'];
$prj=$_GET['prj'];


$mname = hent( ID2NameMandant($mandant) );
$bkname = hent( ID2NameBuchungskreis($mandant, $bk) );
$beaname= hent( ID2NameBearbeiter($mandant, $bk, $prj, $bea) );


display_title( sprintf( id2msg( 8430 ), $beaname, $mname, $bkname ) );

DisplayHeader();
ShowBearbeiter($mandant,$bk,$bea, $prj);


require_once("./functions/epilog.inc.php");	//	Datei mit nachgestellten Routinen

?>

Return current item: tbvs