<!DOCTYPE html>
<html>
<head>
    <title>Data Bobot</title>
    <style type="text/css" media="print">
    @page {
        margin: 0;  /* this affects the margin in the printer settings */
    }
      table{
        border-collapse: collapse;
        border-spacing: 0;
        width: 100%;
      }
      table th{
        -webkit-print-color-adjust:exact;
        border: 1px solid;
        padding-top: 11px;
        padding-bottom: 11px;
        background-color: #39CCCC;
      }
    table td{
        border: 1px solid;
    }
    </style>
</head>
<body>
    <h3 align="center">Data Bobot</h3>
    <h4>Tanggal Cetak : <?= date("d/M/Y");?> </h4>
    <table class="word-table" style="margin-bottom: 10px">
        <tr>
            <th>No</th>
    		<th>Jalur</th>
    		<th>Bobot Jarak</th>
    		<th>Bobot Nilai</th>
    		<th>Bobot Prestasi</th>	
            <th>Bobot Tes</th>
            <th>Bobot Wawancara</th>             	
        </tr>
        <?php
            foreach ($bobot_data as $bobot)
        { ?>
        <tr>
		    <td><?php echo ++$start ?></td>
		    <td><?php echo $bobot->jalur ?></td>
		    <td><?php echo $bobot->bobot_jarak ?></td>
		    <td><?php echo $bobot->bobot_nilai ?></td>
		    <td><?php echo $bobot->bobot_prestasi ?></td>	
            <td><?php echo $bobot->bobot_tes ?></td>
            <td><?php echo $bobot->bobot_wawancara ?></td>            
        </tr>
        <?php } ?>
    </table>
</body>
<script type="text/javascript">
    window.print()
</script>
</html>