Popup-Fenster für offene Zahlungen im CIS

This commit is contained in:
Martin Tatzber
2014-01-24 13:31:15 +00:00
parent e05922edd2
commit cdc8251d9a
2 changed files with 77 additions and 1 deletions
+5 -1
View File
@@ -118,7 +118,11 @@
//Auszahlung
}
else
echo $p->t('tools/offen');
{
echo '<a onclick="window.open(';
echo "'zahlungen_details.php?buchungsnr=".$row['parent']->buchungsnr."','Zahlungsdetails','height=320,width=550,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,dependent=yes');return false;";
echo '" href="#">'.$p->t('tools/offen').'</a>';
}
echo '</td>';
echo '</tr>';
}
+72
View File
@@ -0,0 +1,72 @@
<?php
/* Copyright (C) 2014 fhcomplete.org
*
* 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: Martin Tatzber <tatzberm@technikum-wien.at>,
*/
require_once('../../../config/cis.config.inc.php');
// require_once('../../../include/functions.inc.php');
require_once('../../../include/konto.class.php');
if(isset($_GET['buchungsnr']))
$buchungsnr=$_GET['buchungsnr'];
else
$buchungsnr='';
$konto=new konto();
$konto->load($buchungsnr);
$konto->getBuchungstyp();
$buchungstyp = array();
foreach ($konto->result as $row)
$buchungstyp[$row->buchungstyp_kurzbz]=$row->beschreibung;
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Zahlungsdetails</title>
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
<link href="../../../skin/fhcomplete.css.php" rel="stylesheet" type="text/css">
</head>
<body>';
echo '<table class="tabcontent">
<tr>
<td>Buchungstyp</td>
<td>'.$buchungstyp[$konto->buchungstyp_kurzbz].'</td>
<tr>
<td>Buchungstext</td>
<td>'.$konto->buchungstext.'</td>
</tr><tr>
<td>Empfänger</td>
<td>FHTW</td>
</tr><tr>
<td>IBAN</td>
<td>AT99 1111 2222 3333 4444</td>
</tr><tr>
<td>BIC</td>
<td>ABCDEFGHIJK</td>
</tr><tr>
<td>Betrag</td>
<td>'.$konto->betrag.'</td>
</tr><tr>
<td>Zahlungsreferenz</td>
<td>'.$konto->zahlungsreferenz.'</td>
</table>';
echo '</body></html>';
?>