Source for file main.inc.php
Documentation is available at main.inc.php
* php functions for main screen
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* @author m2mtech <tech@m2m.at>
* @copyright 2007 m2m server software gmbh
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License Version 2
* @version $Id: main.inc.php 148 2007-09-07 16:02:29Z m2mtech $
* @link http://www.ea-geier.at/
* html functions for main screen
require_once('code/main.html.php');
* generate data for html output of travel expenses
* @param eaInput input data
if (!isset ($in->options)) return false;
if (!isset ($opt['clients'])) return false;
$oldPrefix = $db->_prefix;
$oldDebug = $db->_db->debug;
foreach ($opt['clients'] as $id => $name) {
require_once('code/cashbook.db.php');
$opt[$id]['cashbook']['count'] = 0;
require_once('code/assets.db.php');
$opt[$id]['assets']['count'] = 0;
require_once('code/purchasebook.db.php');
$opt[$id]['purchasebook']['count'] = 0;
require_once('code/travel.db.php');
$opt[$id]['travel']['count'] = 0;
$db->_prefix = $oldPrefix;
$db->_db = ADONewConnection($conf['dsn']);
$db->_db->SetFetchMode(ADODB_FETCH_ASSOC);
$db->_db->debug = $oldDebug;
|