<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>
<?php
include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";

if (get_magic_quotes_gpc()) {
    $_POST = array_map('stripslashes_deep', $_POST);
    $_GET = array_map('stripslashes_deep', $_GET);
    $_COOKIE = array_map('stripslashes_deep', $_COOKIE); 
} 

if(isset( $_SESSION["sess_adminname"]) and $_SESSION["sess_adminname"]!= ""){
	$adminname = $_SESSION["sess_adminname"];
}else{
	header("Location:login.php");
	exit;
}

include "../includes/htmltop.php";
?>
<body topmargin="0">
<script>
	function displayFinancialReports()
	{
					
		if(document.getElementById("financial_block").style.display == "none")
		{
			document.getElementById("financial_block").style.display = "";
		}
		
			
	}
	
</script>
<body>
		
		<center>
		
		<div align="left" id="layout">
		
		
				
				
				<!--header area start -->
<?php

	include_once("../includes/topheader_admin.php")

?>
				
				<!--header area end -->
				
				
				
				
				<div align="left" class="main_body">
				<!--main body start -->
				
				
				
<?php
	include_once("../includes/admintopmenu.php")
?>		
																					
								
					<div align="left" class="content_area">
					
					<!--content area start -->
							
					<div align="left" class="page_title">Reports</div>
					<div align="center" class="text_information grey_tr"><?php echo $message?></div>
            		<br>
											
					<div align="left">																			

																		
					<table width="100%" border="0" cellpadding="0" cellspacing="0" class="manage_table">
				
					<tr>
						<td align="center" valign="top">
							
							
								<table width="100%" class="reports" border="0">
									<tr class="brd_btmlines">
										<td width="5%">&nbsp;</td>
										<td width="7%" class="bg_clrs"><img src="../images/reports.jpg"></td>
										<td width="88%" align="left" class="bg_clrs"><a class="links" href="products_viewed_report.php">Products Viewed</a></td>
									</tr>
									<tr>
										<td width="5%">&nbsp;</td>
										<td class="bg_clrs"><img src="../images/reports.jpg"></td>
										<td align="left" class="bg_clrs"><a class="links" href="products_purchased_report.php">Products Purchased</a></td>
									</tr>
									
							<!--		
									<tr>
										<td width="5%">&nbsp;</td>
										<td><img src="../images/reports.jpg"></td>
										<td><a class="links" href="customer_orders_report.php">Customer Orders Total</a></td>
									</tr>
									
									
									
									<tr>
										<td width="5%">&nbsp;</td>
										<td><img src="../images/reports.jpg"></td>
										<td align="left"><a class="links" href="gift_coupon_report.php">Gift Coupon</a></td>
									</tr>
									
							-->			
									
									<tr>
										<td width="5%">&nbsp;</td>
										<td class="bg_clrs"><img src="../images/reports.jpg"></td>
										<td align="left" class="bg_clrs"><a class="links" href="#" onClick="displayFinancialReports();">Financial Reports</a></td>
									</tr>
									
									<tr>
										<td colspan="3">
											<div id="financial_block" style="display:none">
												<table cellpadding="0" cellspacing="0" width="100%" border="0">
													<tr>
														<td width="5%"><img src="../images/financial_image.jpg"></td>
														<td align="left"><a class="links" href="total_sales_report.php">Total Sales</a></td>
													</tr>
													<tr>
														<td width="5%"><img src="../images/financial_image.jpg"></td>
														<td align="left"><a  style="cursor:pointer" href="commission_report.php" class="links">Commissions</a></td>
													</tr>
												</table>
									</div>										</tr>
									
								
						<!--

Multicart 2.0 Upgradation starts

-->				
	
	
	
					</table>
					</td>
					</tr>
					</table>




					</div>
						
						
				<!--content area end-->
								
				</div>
				
								
					<div align="left" class="clear_float"><img src="<?php echo $imagefolder;?>/clear.gif" alt="" width="1" height="1" /></div>
				<!--main body end -->
				</div>
				
				
<?php
	include "../includes/footer.php";
?>