<?php
include('session.php');

?>

<html lang="en">

<head>
    <title><?php echo $s0['instansi']; ?>: User Area</title>

    <!-- Meta -->
    <meta charset="utf-8">
    <!-- <meta content="width=device-width, initial-scale=1.0" name="viewport"> -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=0.65, maximum-scale=1, minimum-scale=0.65">
    <meta name="theme-color" content="#272b30">

    <!-- Favicon -->
    <link rel="icon" type="image/png" href="<?php echo $urlwebs; ?>/upload/favicon.png">

    <!-- CSS Global Compulsory -->

    <link rel="stylesheet" href="<?php echo $urlwebs; ?>/assets/home/bootstrap.web.min.css">
    <link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
    <style>
        .blink_me {
            animation: blinker 1s step-start infinite;
        }

        @keyframes blinker {
            20% {
                opacity: 0.2;
            }
        }
    </style>
    <!-- JS Global Compulsory -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <script src="<?php echo $urlwebs; ?>/js/4dv5.js"></script>
    <script>
        function secondtominute(d) {
            var m = Math.floor(d / (60));
            var s = d - (m * 60);
            if (s < 10) s = '0' + s;
            return m + ':' + s;
        }
    </script>

</head>
<?php include('uptop.php'); ?>


    

        <div class="clearfix"></div>
        <link rel="stylesheet" href="<?php echo $urlwebs; ?>/assets/home/m.css">
        <!-- MAIN TAB -->

        <?php include('navtab.php'); ?>


        <div class="tab-content">




            <div id="toto_wrap" class="tab-pane fade in active">
                <div class="row" style="margin-top:0px; margin-bottom:10px;">
                    <div class="col-xs-4" style="padding-right:2px;">

                        <a class="btn btn-default btn-block active" href="<?php echo $urlwebs; ?>/m/togel.php"><span class="glyphicon glyphicon-calendar"></span>Pasaran</a>
                    </div>
                    <div class="col-xs-4" style="padding-right:2px; padding-left:0px">

                        <a class="btn btn-default btn-block " href="?keluaran"><span class="glyphicon glyphicon-bell"></span>Keluaran</a>
                    </div>

                    <div class="col-xs-4" style="padding-left:0px">
                        <a class="btn btn-default btn-block " href="?bukumimpi"><span class="glyphicon glyphicon-book"></span>Buku Mimpi</a>
                    </div>
                </div>

                <div class="dashboard pt-5 pb-5">
      <div class="container">
        <div class="row">

            <div class="dashboard pt-5 pb-5">
                <div class="container">
                  <div class="row">
                    
                    <div class="col-sm-8">
                      <div class="card">
                        <div class="card-header p-0">
                          <ul class="nav">
                            <li class="nav-item">
                              <a class="nav-link" href="<?php echo $urlweb; ?>/m/history.php/"><i class="fa fa-calendar" style="width: 20px; color: #e4d00a;"></i> TRANSACTION</a>
                            </li>
                            <li class="nav-item">
                              <a class="nav-link" href="<?php echo $urlweb; ?>/m/togel.php/"><i class="fa fa-gamepad" style="width: 20px; color: #e4d00a;"></i> TOGEL</a>
                            </li>
                            <li class="nav-item">
                              <a class="nav-link active" href="<?php echo $urlweb; ?>/m/betting.php/"><i class="fa fa-gamepad" style="width: 20px; color: #e4d00a;"></i> BETTING</a>
                            </li>
                          </ul>
                        </div>
                        <div class="card-body p-2">
                          <div class="mt-2 mb-3 text-dark" style="background: #e4d00a; color: #000; padding: 20px 10px;">
                            <h5 class="text-dark mb-0">HISTORY BETTING</h5>
                          </div>
                          <div class="table-responsive">
                            <table class="table table-bordered default-datatable">
                              <thead>
                                <tr class="bg-warning">
                                  <th class="text-center text-white">Date</th>
                                  <th class="text-center text-white">Game</th>
                                  <th class="text-center text-white">Bet Amount</th>
                                  <th class="text-center text-white">Win/Lose</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php
                                  $sql_transaksi = mysqli_query($conn,"SELECT * FROM `tb_taruhan` WHERE pid = 0 AND userID = '$userID' ORDER BY cuid DESC") or die(mysqli_error());
                                  while($st = mysqli_fetch_array($sql_transaksi)){
                                    $pid = $st['pid'];
                                ?>
                                <tr>
                                  <td class="text-center text-white"><?php echo date('Y-m-d', strtotime($st['created_date'])); ?></td>
                                  <td class="text-left text-white"><?php echo $st['code']; ?></td>
                                  <td class="text-right text-white"><?php echo number_format($st['nominal']); ?></td>
                                  <td class="text-right text-white">
                                      <?php
                                          if($st['bayar'] < $st['nominal']){
                                              echo '<span class="text-danger"> -'.number_format($st['bayar']).'</span>';
                                          }
                                          else {
                                              echo '<span class="text-success"> +'.number_format($st['bayar']).'</span>';
                                          }
                                      ?>
                                  </td>
                                </tr>
                                <?php } ?>
                              </tbody>
                            </table>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>


              <div style="margin-top:20px">
        <div class="well well-sm" style="padding-top: 5px; padding-bottom:2px;">
        <marquee><span class="broadcast" style="color: #white; width: 100%"><?php echo $s0['news']; ?></span></marquee>
        </div>
        <div class="well well-sm bankOnline" style="margin-top:-10px; text-align:center"><span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BCA</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>Mandiri</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BNI</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BRI</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>CIMB</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>PANIN</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>DANA</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>OVO</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>GOPAY</strong> : <span class="text-success">ONLINE</span></span>
            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>LinkAja</strong> : <span class="text-success">ONLINE</span></span>
        </div>
        <div class="well well-sm" style="margin-top:-10px; padding-bottom:2px">
            <marquee><span class="listkeluaran" style="white-space:nowrap"> <span style="margin-left:30px;"><span style="color:#FC0 ">HK SIANG </span><span style="color:#CCC">23/05 </span><strong>2757</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">SG METRO </span><span style="color:#CCC">23/05 </span><strong>5708</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">SYDNEY </span><span style="color:#CCC">23/05 </span><strong>4454</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">HAIPHONG </span><span style="color:#CCC">23/05 </span><strong>7076</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">SINGAPORE </span><span style="color:#CCC">22/05 </span><strong>1263</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">MALAYSIA </span><span style="color:#CCC">23/05 </span><strong>7084</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">MACAU </span><span style="color:#CCC">23/05 </span><strong>5292</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">QATAR </span><span style="color:#CCC">07/05 </span><strong>2516</strong></span>
                    <span style="margin-left:30px;"><span style="color:#FC0 ">HONGKONG </span><span style="color:#CCC">23/05 </span><strong>6022</strong></span>
                    <div style="clear:both"></div>
                </span></marquee>
        </div>
    </div>



</div>



<div id="games_wrap" class="tab-pane fade in ">

</div>















</div>



</div>
<div class="well well-sm container-fluid text-center" style="margin:0px; padding:5px; border-radius:0px; padding-bottom: 55px">
© 2018 - 2023 Copyright <?php echo $s0['instansi']; ?>. All Rights Reserved.
</div>


<!--tampilan /m/ versi mobile bawah trakhir alias footer--><!--next halaman footer-->
<?php include('footer.php'); ?>




</body>

</html>
