Current File : /home/inlingua/public_html/icentex/admin/oral_excel_retain.php
<?php 
ini_set("memory_limit","128M"); 
//this sets it unlimited
//echo"<br><br>";
 ini_set("max_execution_time",0);
include("header.php");
// Include the database connection details
require('dbConnection.php');

// Include common functions
require('commonFunc.php');

// Include common functions
require('globalVars.php');

// Include the table handler class
require('dbHandler.class.php');
require('letter.php');
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();

?>
<div class="clear"></div>
<?php include("left.php"); ?>
<div id="content-wrap" style="padding-top:20px;" >
  <div id="content-box" >
		<div id="toolbar-title" >
			<h3>
Oral Excel Report 

</h3>
			
			<div class="clear"></div>
		</div>
		<div id="toolbar-box">
		  <div class="toolbar" id="toolbar"></div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
		
		<div id="element-box">
			<div class="m">
				<table class="adminform">
					<tbody><tr>
												<td valign="top" width="55%">
												

<br>
<?php
$half=$_REQUEST[half];
	$month=$_REQUEST[month];
	$year=$_REQUEST[year];
	

	


if($_REQUEST['month']!="All" && $_REQUEST['year']!="All")
{	
$num = cal_days_in_month(CAL_GREGORIAN, $month, $year); // 31
//echo "There was $num days in August 2003";
//$date1="".$year."-".$month."-01";
//$date2="".$year."-".$month."-".$num."";
//$datetime2="".$date2."";

$datemk1=mktime(0,0,0,$month,11,$year);
$datemk2=mktime(0,0,0,$month+1,10,$year);
$date1=date("Y-m-d",$datemk1);
$date2=date("Y-m-d",$datemk2);
}else{
  $date1="All";
  $date2="All";
}


	
include("05featuredemo1_oral.php");

if($_REQUEST['location']=="All")
{
echo"<div><a href='uploads/".$date1." to ".$date2."_oral.xlsx'>Click Here To Save</a></div>";
}
else
{
echo"<div><a href='uploads/".$date1." to ".$date2."_".$_REQUEST['location']."_oral.xlsx'>Click Here To Save</a></div>";
}


?>


<div id="cpanel">
				<div style="float: left;">
			<div class="icon"></div>
		</div>
				<div style="float: left;">
			<div class="icon"></div>
		</div>
				
				<div style="float: left;"></div>
			</div>
	</td>
												<td valign="top" width="45%">&nbsp;</td>
					</tr>
				</tbody></table>
			</div>
		</div>
		<div class="clear"></div>
		<p class="copyright">&nbsp;</p>
  </div>
</div>
</body></html>