<?php @session_start();?>


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

<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/home/x-home.inc.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo SITEURL?>/css/ie7.css">

</head>

<body>
	<div class="container">
		<div class="row inline">
			<div class="navstyle">
				

				 <input id="hideAdminID" name="hideAdminID" type="hidden" value="<?php echo $_REQUEST['id']?>">
                        <input id="hideDrawTime" name="hideDrawTime" type="hidden" value="<?php echo drawTime();?>">
			</div>
			<div class="menus">
			<ul>
				  <?php echo innerAdminMenu()?>
			</ul>
		</div>

		</div>

		<div class="row">
			<div class="a-form" style="width: 1192px; float: left;">
				<ul class="tick_li">
                	<?php
                    	
						$sql1 = 'SELECT * FROM '.$DB->pre.'lottary WHERE tranID="'.$_REQUEST['tranID'].'" group by tranID ';
						$D1 = $DB->dbRow($sql1);
					
					?>
					<li>SHREE ONLINE </li>
					<li>For Amusement Only</li>
					<li>Dr. <?php echo $D1['lotDate']?> <?php echo $D1['lotTime']?> </li>
					<li>Per Ticket Point <?php echo $D1['point']?> Total Point <?php echo $D1['ticketTot']?></li>
					<li><?php echo date('d-m-Y')?> <?php echo date('h:i:s')?></li>
					<li style="background-color: cyan;">Retailer Code 
					<?php 
						$sqlU = 'SELECT userCode FROM '.$DB->pre.'users WHERE id="'.$D1['uID'].'"';
						$U = $DB->dbRow($sqlU);
						echo $U['userCode'];
					?> </li>
				</ul>
				<div class="ticket_1" style="background-color: rgb(255, 255, 255);">
					<table>
					<tr class="tick_menu0">
						<th style="padding-left: 66px;">Number </th>
						<th style="padding-left: 85px; padding-right: 86px;">Qty</th>
						<th>Number </th>
						<th style="padding-left: 85px; padding-right: 86px;">Qty</th>
						<th>Number </th>
						<th style="padding-left: 85px; padding-right: 86px;">Qty</th>
					</tr>
					</table>
				
				</div>

				<div class="row">
					<div class="ticket_2" style="width: 100%; display: inline-block;">
					<?php

						$sql = 'SELECT * FROM '.$DB->pre.'lottary WHERE tranID="'.$_REQUEST['tranID'].'"';
						$D = $DB->dbRows($sql);
						foreach($D as $D){
							
							
							?>
							<div class="tick01">							
							<div class="bx1">
								
								<div class="bx1_sm1"><?php 
								
								if(strlen($D['cellID']) == 1){

                                                            echo "000".$D['cellID'];

                                                    }
                                                    if(strlen($D['cellID']) == 2){

                                                            echo "00".$D['cellID'];

                                                    }   
                                                    if(strlen($D['cellID']) == 3){

                                                            echo "0".$D['cellID'];

                                                    }
                                                    if(strlen($D['cellID']) == 4){

                                                            echo $D['cellID'];

                                                    }

								?></div>
								<div class="bx1_sm2"><b></b></div>

							</div>
							
							<div class="bx2">
								
								<div class="bx2_sm1"><b><?php echo $D['cv']?></b></div>
								
								
							</div>
						</div>
							<?php

						}
					?>

						

						

						

						


					</div>
				</div>
			</div>
				
			
		</div>

	</div>

</body>
</html>
