ea-Geiercode
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Source for file cashbook.html.php

Documentation is available at cashbook.html.php

  1. <?php
  2. /**
  3.  * HTML functions for cash book
  4.  *
  5.  * LICENSE:
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the
  13.  * GNU General Public License for more details.
  14.  * You should have received a copy of the GNU General Public License along
  15.  * with this program; if not, write to the Free Software Foundation, Inc.,
  16.  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17.  *
  18.  * @package       ea-Geier
  19.  * @subpackage code
  20.  * @author       m2mtech <tech@m2m.at>
  21.  * @copyright  2007 m2m server software gmbh
  22.  * @license       http://www.gnu.org/licenses/gpl.html GNU General Public License Version 2
  23.  * @version       $Id: cashbook.html.php 144 2007-09-04 11:38:15Z m2mtech $
  24.  * @link       http://www.ea-geier.at/
  25.  */
  26.  
  27. /**
  28.  * cash book overview
  29.  *
  30.  * @param  eaSmarty        Smarty object
  31.  * @param  eaInput        data
  32.  * @return boolean        status
  33.  */
  34. function eaHTMLCashBook(&$smarty&$out{
  35.     $smarty->assign_by_ref('opt'$out->options);
  36.     $smarty->assign_by_ref('data'$out->post);
  37.     $smarty->assign_by_ref('error'$out->error);
  38.     $smarty->assign('stylesheet''cashbook.css');
  39.     $smarty->assign('content'$smarty->fetch('cashbook.tpl'));
  40.     return true;
  41. }
  42.  
  43. /**
  44.  * cash book overview - print
  45.  *
  46.  * @param  eaSmarty        Smarty object
  47.  * @param  eaInput        data
  48.  * @return boolean        status
  49.  */
  50. function eaPrintCashBook(&$smarty&$out{
  51.     $smarty->assign_by_ref('opt'$out->options);
  52.     $smarty->assign_by_ref('data'$out->post);
  53.     $smarty->assign('stylesheet''cashbook.css');
  54.     $smarty->assign('content'$smarty->fetch('cashbookprint.tpl'));
  55.     return true;
  56. }
  57.  
  58. /**
  59.  * cash-book overview - csv export
  60.  *
  61.  * @param  eaSmarty        Smarty object
  62.  * @param  eaInput        data
  63.  * @return boolean        status
  64.  */
  65. function eaCSVCashBook(&$smarty&$out{
  66.     $smarty->assign_by_ref('opt'$out->options);
  67.     $smarty->assign_by_ref('data'$out->post);
  68.     require_once('code/csv.html.php');
  69.     eaPrepareCVSSmarty($smarty'cashbook.csv');
  70.     $smarty->display('cashbookcsv.tpl');
  71.     exit;;
  72. }
  73.  
  74. /**
  75.  * cash book item
  76.  *
  77.  * @param  eaSmarty        Smarty object
  78.  * @param  eaInput        data
  79.  * @return boolean        status
  80.  */
  81. function eaHTMLCashBookItem(&$smarty&$out{
  82.     $smarty->assign_by_ref('opt'$out->options);
  83.     $smarty->assign_by_ref('data'$out->post);
  84.     $smarty->assign_by_ref('error'$out->error);
  85.     $smarty->assign('stylesheet''cashbook.css');
  86.     $smarty->assign('content'$smarty->fetch('cashbookitem.tpl'));
  87.     return true;
  88. }
  89.  
  90. /**
  91.  * cash book item - print
  92.  *
  93.  * @param  eaSmarty        Smarty object
  94.  * @param  eaInput        data
  95.  * @return boolean        status
  96.  */
  97. function eaPrintCashBookItem(&$smarty&$out{
  98.     $smarty->assign_by_ref('data'$out->post);
  99.     $smarty->assign('stylesheet''cashbook.css');
  100.     $smarty->assign('content'$smarty->fetch('cashbookitemprint.tpl'));
  101.     return true;
  102. }
  103.  
  104. /**
  105.  * cash-book item - csv export
  106.  *
  107.  * @param  eaSmarty        Smarty object
  108.  * @param  eaInput        data
  109.  * @return boolean        status
  110.  */
  111. function eaCSVCashBookItem(&$smarty&$out{
  112.     $smarty->assign_by_ref('data'$out->post);
  113.     require_once('code/csv.html.php');
  114.     eaPrepareCVSSmarty($smarty'cashbookitem' $out->post['numID''.csv');
  115.     $smarty->display('cashbookitemcsv.tpl');
  116.     exit;;
  117. }
  118.  
  119. ?>

Documentation generated on Sun, 09 Sep 2007 17:07:59 +0200 by phpDocumentor 1.3.1