<?
session_start();
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
$user_level=$_SESSION['user_level'];
$unit=$_REQUEST['unit'];	
if(strlen($brcode)<=0)
{
 print "<script> alert('Session timed out'); parent.document.location='../ind.php'; </script>";
 return;
}

include_once("../test.php");
//if($unit=='Telcon')
	include_once("../opendb.php");
//else if($unit=='Mahindra')
//{
//	$db=mysqli_connect("localhost","root");
//	mysqli_select_db("mahdb1") or die(mysqli_error($db));
//	print $unit;
//}

?>
<title>Xpress</title>
    <script src="../rightclick_deactive.js"></script>
    <script type="text/javascript" src="../scripts/jquery-latest.js"></script>
	<link type="text/css" href="../includes/style1.css" rel="stylesheet" />
	<link type="text/css" href="../css/form.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function() {
          if ($.browser.msie && $.browser.version.substr(0,1)<7)
          {
			$('li').has('ul').mouseover(function(){
				$(this).children('ul').show();
				}).mouseout(function(){
				$(this).children('ul').hide();
				})
          }
        });        
    </script>
<body bgcolor='#3b5998'>

<?php include_once('top.php'); ?>
<form action='<?print $PHP_SELF?>'>
<table class='container'><tr><td>
<center>
<table>
<tr><td><font color='white'>Date</font> </td><td><font color='white'>dd </font><input type=text name='d' size=2 value='<?print date('d',time())?>'>
<font color='white'>mm</font> <input type=text name='m' size=2 value='<?print date('m',time())?>'>
<font color='white'>yy</font> <input type=text name='y' size=4 value='<?print date('Y',time())?>'></td>
<td><input type=submit name='print' value='Print'></td></tr>
</table>
<?
if($print)
{
  $dt=$y.'-'.$m.'-'.$d;
  print "<script> window.open('prndstate.php?dt=$dt'); </script>";
}

?>
</td></tr></table>
<style>
 body,td{font-family:arial narrow;font-size:14;color:black;}
 th{font-family:arial narrow;font-size:14;color:black;background-color:silver}
 
</style>
