
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="<?php echo SITEURL?>/css/style.css">
<script type="text/javascript" src="<?php echo SITEURL?>/js/jquery.min1.js"></script>
<script type="text/javascript" src="<?php echo SITEURL?>/mod/lottery/x-lottery.inc.js"></script>


</head>

<body>
	<div class="total_menus">
		<ul>
			<li> <a href="<?php echo SITEURL.'/lottery/?u='.$_REQUEST['u'].'&userID='.$_REQUEST['userID'];?>"><img src="<?php echo SITEURL?>/images/close_page.png"></a></li>

			<li style="margin-left: 5em;"><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>">All </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=0000">0000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=1000">1000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=2000">2000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=3000">3000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=4000">4000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=5000">5000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=6000">6000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=7000">7000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=8000">8000 </a></li>
			<li><a href="<?php echo SITEURL?>/lottery/lot-result/?u=<?php echo $_REQUEST['u']?>&userID=<?php echo $_REQUEST['userID']?>&sernum=9000">9000 </a></li>
            <li style="background-color:rgba(17, 17, 17, 0.404);"><a style="color:#fff !important; font-weight:bold;" id="time" id="timer"></a></li>
		</ul>
	</div>
	<div class="container-float" style="border: 1px solid black">

		<!-- SECTION REPIT START -->
		
		<div class="total_ten_section">
			
            <?php
				$where = '';
				if($_REQUEST['sernum'] !=''){
					$where = ' AND sernum="'.$_REQUEST['sernum'].'"';
				}
				$adminID = getRetailerAdmin($_REQUEST['userID']);
            	$sql = 'SELECT lotTime FROM '.$DB->pre.'result_tran WHERE uID="'.$adminID.'" AND lotdate="'.date('Y-m-d').'" '.$where.' GROUP BY lotTime';
				$R = $DB->dbRows($sql);
				foreach($R as $R){
			?>
            <div class="total_time" style="">
				<h2><?php echo $R['lotTime']?></h2>
			</div>
            <?php
            	$sqlW = 'SELECT * FROM '.$DB->pre.'result_tran WHERE uID="'.$adminID.'" AND lotdate="'.date('Y-m-d').'" AND lotTime="'.$R['lotTime'].'" '.$where;
				$W = $DB->dbRows($sqlW);

				
			?>
			<div class="total_100_data" style="">
				<?php
                    		foreach($W as $W){
					?>
                <div class="total_10"><p><?php 
				// $W['lotnum'].$W['cellID'];
				if(strlen($W['cellID']) == '1'){
					echo $W['lotnum'].'0'.$W['cellID'];
				}else{
					echo $W['lotnum'].$W['cellID'];
				}
				
				?></p></div>
                        <?php }?>
                
				
                <?php } ?>
			</div>
            
		</div>

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

</body>
</html>