<?php
@session_start();
if($_SESSION['SECEXP'] !=''){

	}else{
		//echo "Go And Fuck Your Self";die;
	}


?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11" >
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo SITEURL?>/css/ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo SITEURL?>/css/ie7.css">
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo SITEURL?>/css/ie7.css">

<style>
/*Total Result Pages */


/* menu CSS */


.total_time{
	text-align: center; 
	border: 1px solid black;
	color: rgb(255, 81, 0);
}


.total_100_data{
	background-color: rgba(111, 243, 59, 0.507); 
	border: 1px solid black;
	width:100%;
}


.total_10{
	display: inline; 
	border: 1px solid black; 
	text-align: center; 
	padding: 0px;
	width:9.5%;
	height:40;
	margin-top:2px;
	margin-left:1px;
}
</style>

</head>

<body style="background-color:#CF9;">
<div class="menus">
          <ul style="">
              <?php echo innerAdminMenu()?>
          </ul>
        </div>
	<div class="total_menus">
		
        <ul style="background-color:red;">

			<li style="margin-left: 5em;"><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&frmdate=<?php echo $_REQUEST['frmdate']?>">All </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=0000&frmdate=<?php echo $_REQUEST['frmdate']?>">0000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=1000&frmdate=<?php echo $_REQUEST['frmdate']?>">1000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=2000&frmdate=<?php echo $_REQUEST['frmdate']?>">2000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=3000&frmdate=<?php echo $_REQUEST['frmdate']?>">3000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=4000&frmdate=<?php echo $_REQUEST['frmdate']?>">4000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=5000&frmdate=<?php echo $_REQUEST['frmdate']?>">5000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=6000&frmdate=<?php echo $_REQUEST['frmdate']?>">6000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=7000&frmdate=<?php echo $_REQUEST['frmdate']?>">7000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=8000&frmdate=<?php echo $_REQUEST['frmdate']?>">8000 </a></li>
			<li><a href="<?php echo SITEURL?>/result/?u=<?php echo $_REQUEST['u']?>&id=<?php echo $_REQUEST['id']?>&flag=1&sernum=9000&frmdate=<?php echo $_REQUEST['frmdate']?>">9000 </a></li>

		</ul>
	</div>
    <hr>
	<div class="container-float" style="border: 1px solid black;margin-top:10px;">

		<!-- SECTION REPIT START -->
		
		<div class="total_ten_section">
            <?php
				$where = '';
				if($_REQUEST['sernum'] !=''){
					$where = ' AND sernum="'.$_REQUEST['sernum'].'"';
				}
				$adminID = $_REQUEST['id'];
				$_REQUEST['frmdate'] = '2021-12-30';
				$_REQUEST['todate'] = '2021-12-30';
            	 $sql = 'SELECT lotTime FROM '.$DB->pre.'result_tran WHERE uID="'.$adminID.'" AND lotdate="'.$_REQUEST['frmdate'].'" '.$where.' GROUP BY lotTime ORDER BY lotID DESC';
				$R = $DB->dbRows($sql);
				foreach($R as $R){
			?>
            <div class="total_time" style="margin:0px auto;">
				<h2><?php echo $R['lotTime']?></h2>
			</div>
            <div style="width:100%; border:0px solid blue; display:inline">
            <?php
            	 $sqlW = 'SELECT * FROM '.$DB->pre.'result_tran WHERE uID="'.$adminID.'" AND lotdate="'.$_REQUEST['frmdate'].'" AND lotTime="'.$R['lotTime'].'"  '.$where;;
				$W = $DB->dbRows($sqlW);	

				foreach($W as $k=>$W){
			?>
            
                <div style="width:20%; display:inline; border:0px solid red; padding:38px; font-weight:bold; font-size:25px;">
                <?php
                	echo $W['cellID'];
				?>
                </div>
            
            
            
            
            <?php }?>
            </div>
			<?php } ?>
		</div>

		<!-- END OF SECTION -->	
        
	</div>

</body>
</html>