
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
form {border: 3px solid #f1f1f1;}

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

button:hover {
  opacity: 0.8;
}

.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
}

img.avatar {
  width: 10%;
  border-radius: 50%;
}

.container {
  padding: 16px;
}

span.psw {
  float: right;
  padding-top: 16px;
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
  .cancelbtn {
     width: 100%;
  }
}
</style>
</head>
<body style="background-image:url(<?php echo SITEURL?>/images/bg.jpg)">

<h2 style="color:#fff;">Agent Login</h2>

<form id="frmLogin" name="frmLogin" action="<?php echo SITEURL?>/check" method="post">
  

  <div class="container">
    <label for="uname"><b>Username</b></label>
    <input type="text" placeholder="Enter Username" name="userName" id="userName" required>

    <label for="psw"><b>Password</b></label>
    <input type="password" placeholder="Enter Password" name="userPass" id="userPass" required>
        
    <button id="btnSubmit" name="btnSubmit" type="submit">Login</button>
    
  </div>

  
</form>

<div class="container" style="color:#fff;background:#000;">
<div class="row">
<?php
          $drawTimeCur = drawTime();
           $sql = 'SELECT lotTime FROM '.$DB->pre.'result_tran WHERE uID="1" AND lotdate="'.date('Y-m-d').'" AND lotTime <> "'.$drawTimeCur.'"'.$where.' GROUP BY lotTime ORDER BY lotID DESC';
          $R = $DB->dbRows($sql);
          foreach($R as $R){
?>

    <div class="col-lg-12" style="text-align:center;background:#7814aa">
     <center><h2> <?php echo $R['lotTime']?></h2></center>
    </div>
    
            
            <div class="row">
              <?php
                $sqlW = 'SELECT cellID FROM '.$DB->pre.'result_tran WHERE uID="1" AND lotdate="'.date('Y-m-d').'" AND lotTime="'.$R['lotTime'].'"  ORDER BY cellID';
                $W = $DB->dbRows($sqlW);
                foreach($W as $W){
              ?>
              <div class="col-sm-1" style="width:15%;"><?php echo $W['cellID']?></div>  
              <?php } ?>
          </div>


    <?php } ?>

</div>
</body>
</html>
