
      <?php include_once 'kepala.php'; ?>
      <?php include_once 'kiri.php'; ?>

    <!-- Right Panel -->

    <div id="right-panel" class="right-panel">
        <?php $coneksi = new SudahLogin(); ?>
        <?php if(!isset($_GET['marga'])) header('Location: index.php'); $id = $_GET['marga']?>
        <?php include_once 'header.php'; ?>
        <h1> <?php echo "Toga ".$coneksi->ambilToga($_GET['marga']); ?></h1>
         <table class="w3-table w3-striped">
            <tr>
              <th>No </th>
              <th>Nama</th>
              <th>Marga</th>
            </tr>



        <?php
            $ok12 =1;
            $result = mysqli_query($ok->conn(),"Select data_user.nama as ok, marga.marga as mrg from  data_user inner join marga where marga.toga =  '$id' and marga.id_marga = data_user.marga");
            while($user_data =$result->fetch_assoc()){
                echo "<tr>";
                echo "<td>".$ok12."</td>";
                echo "<td>".$user_data['ok']; echo "  </td>";
                echo "<td>".$user_data['mrg']; echo "  </td>";
                echo "<tr>";
                $ok12++;
            }
        ?>
        </table>
    </div>

    <script src="vendors/jquery/dist/jquery.min.js"></script>
    <script src="vendors/popper.js/dist/umd/popper.min.js"></script>
    <script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="assets/js/main.js"></script>


    <script src="vendors/chart.js/dist/Chart.bundle.min.js"></script>
    <script src="assets/js/dashboard.js"></script>
    <script src="assets/js/widgets.js"></script>
    <script src="vendors/jqvmap/dist/jquery.vmap.min.js"></script>
    <script src="vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
    <script src="vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
    <script>
        (function($) {
            "use strict";

            jQuery('#vmap').vectorMap({
                map: 'world_en',
                backgroundColor: null,
                color: '#ffffff',
                hoverOpacity: 0.7,
                selectedColor: '#1de9b6',
                enableZoom: true,
                showTooltip: true,
                values: sample_data,
                scaleColors: ['#1de9b6', '#03a9f5'],
                normalizeFunction: 'polynomial'
            });
        })(jQuery);
    </script>

</body>

</html>
