<?php
// $Header: /home/CVS/rps/sfs/sfs.php,v 1.9 2008/09/16 07:09:47 yoxel Exp $
/*
* ----START-LICENCE----
* Copyright 2002-2008 Yoxel Systems, Santa Clara, CA, USA (hide@address.com)
*
* 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
* -----END-LICENCE-----
*/
require_once('../includes/db.inc');
require_once('includes/sfs/sfs.inc');
require_once('includes/dashboard.inc');
$page_title='Sales Forecasting System';
$on_load_str='OrganizeDashboardOnLoad();';
$on_resize_str='OrganizeDashboard(-1);';
require_once('includes/header.inc');
if($is_customer)
_quit_error("You are not allowed to use this part of the site.");
$opt=0;
$xok=TRUE;
$rts = new ForecastTracker();
if (isset($_GET['id']))
print '
<script language="JavaScript">
sfs_view_win_open("'.$_GET['id'].'");
</script>
';
?>
<script language="JavaScript">
<!--
function rid_check(form){
if (form.id.value == '')
return alert('No ID specified.');
if (int_check(form.id))
return alert('Please enter integer value.');
sfs_view_win_open(form.id.value);
//-->
}
</script>
<?php
$dboard=new DashBoard();
$dboard->output_dashboard('psls/sfs',$uid);
require_once("includes/footer.inc");
?>