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

Source for file purchasebook.html.php

Documentation is available at purchasebook.html.php

  1. <?php
  2. /**
  3.  * HTML functions for purchase 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: purchasebook.html.php 145 2007-09-04 14:49:18Z m2mtech $
  24.  * @link       http://www.ea-geier.at/
  25.  */
  26.  
  27. /**
  28.  * purchase-book overview
  29.  *
  30.  * @param  eaSmarty        Smarty object
  31.  * @param  eaInput        data
  32.  * @return boolean        status
  33.  */
  34. function eaHTMLPurchaseBook(&$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''purchasebook.css');
  39.     $smarty->assign('topnav'$smarty->fetch('purchasebooknav.tpl'));
  40.     $smarty->assign('content'$smarty->fetch('purchasebook.tpl'));
  41.     return true;
  42. }
  43.  
  44. /**
  45.  * purchase-book overview - print
  46.  *
  47.  * @param  eaSmarty        Smarty object
  48.  * @param  eaInput        data
  49.  * @return boolean        status
  50.  */
  51. function eaPrintPurchaseBook(&$smarty&$out{
  52.     $smarty->assign_by_ref('opt'$out->options);
  53.     $smarty->assign_by_ref('data'$out->post);
  54.     $smarty->assign('stylesheet''purchasebook.css');
  55.     $smarty->assign('content'$smarty->fetch('purchasebookprint.tpl'));
  56.     return true;
  57. }
  58.  
  59. /**
  60.  * purchase-book overview - csv export
  61.  *
  62.  * @param  eaSmarty        Smarty object
  63.  * @param  eaInput        data
  64.  * @return boolean        status
  65.  */
  66. function eaCSVPurchaseBook(&$smarty&$out{
  67.     $smarty->assign_by_ref('opt'$out->options);
  68.     $smarty->assign_by_ref('data'$out->post);
  69.     require_once('code/csv.html.php');
  70.     eaPrepareCVSSmarty($smarty'purchasebook.csv');
  71.     $smarty->display('purchasebookcsv.tpl');
  72.     exit;;
  73. }
  74.  
  75. /**
  76.  * purchase-book item
  77.  *
  78.  * @param  eaSmarty        Smarty object
  79.  * @param  eaInput        data
  80.  * @return boolean        status
  81.  */
  82. function eaHTMLPurchaseBookItem(&$smarty&$out{
  83.     $smarty->assign_by_ref('opt'$out->options);
  84.     $smarty->assign_by_ref('data'$out->post);
  85.     $smarty->assign_by_ref('error'$out->error);
  86.     $smarty->assign('stylesheet''purchasebook.css');
  87.     $smarty->assign('topnav'$smarty->fetch('purchasebooknav.tpl'));
  88.     $smarty->assign('content'$smarty->fetch('purchasebookitem.tpl'));
  89.     return true;
  90. }
  91.  
  92. /**
  93.  * purchase-book item print
  94.  *
  95.  * @param  eaSmarty        Smarty object
  96.  * @param  eaInput        data
  97.  * @return boolean        status
  98.  */
  99. function eaPrintPurchaseBookItem(&$smarty&$out{
  100.     $smarty->assign_by_ref('opt'$out->options);
  101.     $smarty->assign_by_ref('data'$out->post);
  102.     $smarty->assign('stylesheet''purchasebook.css');
  103.     $smarty->assign('content'$smarty->fetch('purchasebookitemprint.tpl'));
  104.     return true;
  105. }
  106.  
  107. /**
  108.  * purchase-book overview - csv export
  109.  *
  110.  * @param  eaSmarty        Smarty object
  111.  * @param  eaInput        data
  112.  * @return boolean        status
  113.  */
  114. function eaCSVPurchaseBookItem(&$smarty&$out{
  115.     $smarty->assign_by_ref('opt'$out->options);
  116.     $smarty->assign_by_ref('data'$out->post);
  117.     require_once('code/csv.html.php');
  118.     eaPrepareCVSSmarty($smarty'purchasebookitem' $out->post['numID''.csv');
  119.     $smarty->display('purchasebookitemcsv.tpl');
  120.     exit;;
  121. }
  122.  
  123. ?>

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