mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
This commit is contained in:
@@ -45,6 +45,7 @@ class firma
|
||||
var $updateamum; // @var timestamp
|
||||
var $updatevon; // @var bigint
|
||||
var $firmentyp_kurzbz; // @var
|
||||
var $schule; // @var boolean
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
@@ -107,6 +108,7 @@ class firma
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->ext_id = $row->ext_id;
|
||||
$this->schule = ($row->schule=='t'?true:false);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -172,7 +174,7 @@ class firma
|
||||
if($this->new)
|
||||
{
|
||||
//Neuen Datensatz einfuegen
|
||||
$qry='INSERT INTO public.tbl_firma (name, adresse, email, telefon, fax, anmerkung, firmentyp_kurzbz, updateamum, updatevon, insertamum, insertvon, ext_id) VALUES('.
|
||||
$qry='INSERT INTO public.tbl_firma (name, adresse, email, telefon, fax, anmerkung, firmentyp_kurzbz, updateamum, updatevon, insertamum, insertvon, ext_id, schule) VALUES('.
|
||||
$this->addslashes($this->name).', '.
|
||||
$this->addslashes($this->adresse).', '.
|
||||
$this->addslashes($this->email).', '.
|
||||
@@ -184,7 +186,8 @@ class firma
|
||||
$this->addslashes($this->updatevon).', '.
|
||||
$this->addslashes($this->insertamum).', '.
|
||||
$this->addslashes($this->insertvon).', '.
|
||||
$this->addslashes($this->ext_id).'); ';
|
||||
$this->addslashes($this->ext_id).','.
|
||||
($this->schule?'true':'false').'); ';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -206,8 +209,9 @@ class firma
|
||||
'fax='.$this->addslashes($this->fax).', '.
|
||||
'anmerkung='.$this->addslashes($this->anmerkung).', '.
|
||||
'updateamum= now(), '.
|
||||
'updatevon='.$this->addslashes($this->updatevon).', '.
|
||||
'firmentyp_kurzbz='.$this->addslashes($this->firmentyp_kurzbz).' '.
|
||||
'updatevon='.$this->addslashes($this->updatevon).', '.
|
||||
'firmentyp_kurzbz='.$this->addslashes($this->firmentyp_kurzbz).', '.
|
||||
'schule='.($this->schule?'true':'false').' '.
|
||||
'WHERE firma_id='.$this->addslashes($this->firma_id).';';
|
||||
}
|
||||
//echo $qry;
|
||||
@@ -299,7 +303,7 @@ class firma
|
||||
$fa->insertamum = $row->insertamum;
|
||||
$fa->insertvon = $row->insertvon;
|
||||
$fa->ext_id = $row->ext_id;
|
||||
|
||||
$fa->schule = ($row->schule=='t'?true:false);
|
||||
$this->result[] = $fa;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<?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>.
|
||||
*/
|
||||
/*
|
||||
* include fuer zusaetzliche Menuepunkte im FAS
|
||||
*/
|
||||
|
||||
//include der JS files
|
||||
|
||||
//echo '<script type="application/x-javascript" src="'.APP_ROOT.'include/'.EXT_FKT_PATH.'/fas_zusatzmenues.js.php" />';
|
||||
|
||||
//Menuepunkte
|
||||
|
||||
/*
|
||||
echo '
|
||||
<menu label="Statistik" accesskey="S">
|
||||
<menupopup>
|
||||
<menuitem
|
||||
label = "Test"
|
||||
oncommand = "MenuIncStatistikTest()"
|
||||
accesskey = "T"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
';
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +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 <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
/*
|
||||
* Javascript Code fuer die zusaetzlichen Menuepunkte im FAS
|
||||
*/
|
||||
?>
|
||||
|
||||
function MenuIncStatistikTest()
|
||||
{
|
||||
alert('Test');
|
||||
}
|
||||
Reference in New Issue
Block a user