<?php

 //   @session_start();
   
    
?>

<DOCTYPE html>
<html lang="en">
<head>

<link href="<?php echo SITEURL?>/css/styles.css" rel="stylesheet" />

<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">

<style>
body {
  margin: 0;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}

.container,
.container-fluid,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
.dropdown {
  position: relative;
  display: inline-block;
  float:left;
  margin:5px;
}
.dropdown span{
	background-color:rgba(153,102,255,1);
	padding:5px 10px;
	border-radius:6px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 15px;
  z-index: 1;
  margin-left:-35px;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content ul li{
	text-align:left;
	list-style-type:none;
	line-height:30px;
}
.dropdown-content ul li a{
	color:black;
	text-decoration:none;
}
.dropdown-content ul{
	padding-left:5px
}
td{
	padding:1px 2px;
}
table input{
  border: 1px solid black;
}
.right-panel input{
	width:70%;
	height:25px;
	margin:8px 0px;
}
table{
	margin-top:0px !important;
}
</style>
</head>
<body id="page-top" style="background-color:rgba(204,204,204,.2);">
	<div class="container">
    	<div class="row">
        	<table border="1">
            	<thead>
                	<tr>
                        <th>lotID</th>
                        <th>point</th>
                        <th>cv</th>
                        <th>cellID </th>
                        <th>sernum </th>
                        <th>lotnum</th>
                        <th>uID </th>
                        <th>lotdate</th>
                        <th>lotTime </th>
                        <th>barcode</th>
                        <th>tranID</th>
                        <th>details</th>
                        <th>isadvance</th>
                        <th>ticketTot</th>
                        <th>qtytot</th>
                        <th>printTime</th>
                        <th>dateAdded</th>
                        <th>dateModified</th>
                        <th>status</th>
                    </tr>
                </thead>
                <tbody>
                	<?php
                    	$sql = 'SELECT * FROM '.$DB->pre.'lottary';
						$A = $DB->dbRows($sql);
						foreach($A as $A){ ?>
							<tr>
                                <th><?php echo $A['lotID']?></th>
                                <th><?php echo $A['point']?></th>
                                <th><?php echo $A['cv']?></th>
                                <th><?php echo $A['cellID ']?></th>
                                <th><?php echo $A['sernum ']?></th>
                                <th><?php echo $A['lotnum']?></th>
                                <th><?php echo $A['uID']?> </th>
                                <th><?php echo $A['lotdate']?></th>
                                <th><?php echo $A['lotTime ']?></th>
                                <th><?php echo $A['barcode']?></th>
                                <th><?php echo $A['tranID']?></th>
                                <th><?php echo $A['details']?></th>
                                <th><?php echo $A['isadvance']?></th>
                                <th><?php echo $A['ticketTot']?></th>
                                <th><?php echo $A['qtytot']?></th>
                                <th><?php echo $A['printTime']?></th>
                                <th><?php echo $A['dateAdded']?></th>
                                <th><?php echo $A['dateModified']?></th>
                                <th><?php echo $A['status']?></th>
                            </tr>
					<?php	}
					?>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>
