mirror of https://github.com/fspc/biketree.git
Bike Tree - https://biketree.bikelover.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
7 years ago
|
<?php session_start(); ?>
|
||
|
<html>
|
||
|
<head>
|
||
|
<SCRIPT LANGUAGE="JavaScript">
|
||
|
function popUp(URL)
|
||
|
{
|
||
|
day = new Date();
|
||
|
id = day.getTime();
|
||
|
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=300,left = 362,top = 234');");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<?php
|
||
|
|
||
|
include ("../settings.php");
|
||
|
include ("../language/$cfg_language");
|
||
|
include ("../classes/db_functions.php");
|
||
|
include ("../classes/security_functions.php");
|
||
|
include ("../classes/display.php");
|
||
|
|
||
|
$lang=new language();
|
||
|
$dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang);
|
||
|
$sec=new security_functions($dbf,'Report Viewer',$lang);
|
||
|
|
||
|
if(!$sec->isLoggedIn())
|
||
|
{
|
||
|
header ("location: ../login.php");
|
||
|
exit();
|
||
|
}
|
||
|
if(isset($_POST['date_range']))
|
||
|
{
|
||
|
$date_range=$_POST['date_range'];
|
||
|
$dates=explode(':',$date_range);
|
||
|
$date1=$dates[0];
|
||
|
$date2=$dates[1];
|
||
|
}
|
||
|
|
||
|
$display=new display($dbf->conn,$cfg_theme,$cfg_currency_symbol,$lang);
|
||
|
$display->displayTitle("$cfg_company $lang->profitReport");
|
||
|
$tableheaders=array("$lang->date","$lang->totalAmountSoldWithOutTax","$lang->profit");
|
||
|
$display->displayTotalsReport($cfg_tableprefix,'profit',$tableheaders,$date1,$date2,'id','');
|
||
|
?>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|