<? // 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 : ./AbrechnungsmodusAdd.php ( 05/24/2010 )
// Language : php
// Description : Formular, um die Daten für einen neu anzulegenden Abrechnungsmodus einzugeben
// 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 ), 02/16/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['bk']
// _GET['mandant']
//
// [[End of requests]]
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// [[Functions]]
//
//
// function AddNewAbrechnungsmodus($mandant,$bk)
// function CheckParameters()
// function jsPrepare()
//
// [[End of functions]]
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// [[Classes]]
//
//
// no classes were found
//
// [[End of classes]]
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// [[Versions of file ./AbrechnungsmodusAdd.php]]
//
// 16.02.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=00497}{OLLEN=00079}
?><?php
/*********************************************************************************
* AbrechnungsmodusAdd.php
*
* Funktion :
* einen neuen Abrechnungsmodus anlegen
* Parameter :
* mandant : Nummer des zugehörigen Mandanten
* bk : aktueller Buchungskreis
*
**********************************************************************************/
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
?>
<script type="text/javascript" src="js/tabber.js"></script>
<link rel="stylesheet" href="js/tabber.css" TYPE="text/css" MEDIA="screen">
<link rel="stylesheet" href="js/tabber-print.css" TYPE="text/css" MEDIA="print">
<script type = "text/javascript">
<!-- hide me from older browsers
function validateForm ( ) {
var
error_string = "";
// check the text field
if ( window.document.AbrechnungsmodusAddForm.Modus.value == "" ) {
error_string += msgKeinModus;
}
if ( error_string == "" ) {
return true;
} else {
error_string = msgErrors + error_string;
alert( error_string );
return false;
}
} // function validateForm
</script>
<?php
function jsPrepare() {
$msgErrors = html_entity_decode (id2msg( 8160 ));
$msgKeinModus = html_entity_decode (id2msg( 8450 ));
echo "<script type = 'text/javascript'>";
echo "var msgErrors='$msgErrors'; ";
echo "var msgKeinModus='$msgKeinModus'; ";
echo "</script>";
}
function AddNewAbrechnungsmodus( $mandant, $bk ) {
$msgZuDenModi = id2msg( 8451 );
$msgReset = id2msg( 2754 );
$msgSaveData = id2msg( 8454 );
$msgModus = id2msg( 8452 );
$msgBemerkung = id2msg( 8453 );
echo "<FORM
NAME=AbrechnungsmodusAddForm
ACTION=AbrechnungsmodusAddCheck.php
METHOD='post'
OnSubmit = 'var the_result = validateForm( ); return the_result;'
>";
echo "<div class='tabber'>";
echo "<div class='tabbertab' title='$msgModus'>";
echo "<table>";
# echo "<TR>";
# echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'>Nummer";
# echo "<TD ALIGN='LEFT'>";
# echo $mandant;
# echo "<INPUT TYPE='text' NAME='id_mandant' VALUE='$mandant' SIZE='20' MAXLENGTH='150'>";
echo "<TR>";
echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'>$msgModus*";
echo "<TD ALIGN='LEFT'>";
echo "<INPUT TYPE='text' NAME='Modus' VALUE='' SIZE='20' MAXLENGTH='20'>";
echo "<TR>";
echo "<TD ALIGN='RIGHT' VALIGN='MIDDLE'> $msgBemerkung";
echo "<TD ALIGN='LEFT'>";
echo "<INPUT TYPE='text' NAME='Bemerkung' VALUE='' SIZE='50' MAXLENGTH='50'>";
echo "</table>";
echo "</div>";
/*
echo "<div class='tabbertab' title='$msgAnschrift'>";
echo "<table>";
echo "</table>";
echo "</div>";
*/
echo "</div>";
echo "<INPUT TYPE='hidden' NAME='mandant' VALUE='$mandant'>";
echo "<INPUT TYPE='hidden' NAME='bk' VALUE='$bk'>";
echo "<p><INPUT TYPE='submit' VALUE='$msgSaveData'";
echo "<INPUT TYPE='reset' VALUE='$msgReset'>";
echo "<br><a href=AbrechnungsmodusList.php?mandant=$mandant&bk=$bk>$msgZuDenModi </a> ";
// ===============================================================================
} // function AddNewAbrechnungsmodus
# Mandantennummer muß Parameter sein
function CheckParameters() {
if (! isset($_GET['mandant']))
die(id2msg( 1103 ));
if (! isset($_GET['bk']))
die(id2msg( 1104 ));
} // function CheckParameters()
jsPrepare( );
CheckParameters();
$mandant=$_GET['mandant'];
$bk=$_GET['bk'];
$MandName = hent( ID2NameMandant($mandant) );
$bkName = hent( ID2NameBuchungskreis($mandant,$bk) );
display_title( sprintf( id2msg( 2413 ), $bkName, $MandName ) );
DisplayHeader();
AddNewAbrechnungsmodus( $mandant, $bk );
/* ================================================================-------------------------------- */
require_once("./functions/epilog.inc.php"); // Datei mit nachgestellten Routinen
?>