<?php
	include "php_class/class_mysql.php";
	include "php_class/class_mahasiswa.php";
	$DataMahasiswa = new DataMahasiswa;
?>


<link href="<?php echo $base?>plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $base?>plugins/iCheck/all.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $base?>plugins/timepicker/bootstrap-timepicker.min.css" rel="stylesheet"/>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.date.extensions.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.extensions.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/timepicker/bootstrap-timepicker.min.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $base?>plugins/autocomplete/shieldui-all.css" />
<link href="<?php echo $base?>bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="<?php echo $base?>bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo $base?>bootstrap/js/locales/bootstrap-datetimepicker.id.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo $base?>plugins/autocomplete/shieldui-all.min.js"></script>
<section class="content-header">
  <h1>
   Daftar Ulang
  </h1>
  <ol class="breadcrumb">
    <li><a href="<?php echo $base?>"><i class="fa fa-dashboard"></i> Home</a></li>
  </ol>
</section>
<section class="content">
 	<div class="row">
    	<div class="row">
        	<div class="col-md-12">
            </div>
        </div>
    	<div class="col-md-12">
        	 <div class="box box-info">
                <div class="box-header">
                  <h3 class="box-title">Cetak Laporan</h3>
                </div>

                <div class="box-body">
                <div class="peringatan">
                </div>
                <?php 
					$id = $xcode;
					$statusMahasiswa = $DataMahasiswa->get_npm_single_by_id('StatusMahasiswa', $id);
				?>
                        <div class="form-group">
                            <a href="<?php echo $base?>laporan-biodata-mahasiswa-baru.php?id=<?php echo $id?>" target="_blank"><button class="btn btn-default" style="margin-right:5px;"><i class='glyphicon glyphicon-print'></i>Biodata Mahasiswa Baru</button></a>
                            <a href="<?php echo $base?>laporan-biodata-kartu-mhs.php?id=<?php echo $id?>" target="_blank"><button class="btn btn-default" style="margin-right:5px;"><i class='glyphicon glyphicon-print'></i>Biodata Untuk Kartu Mahasiswa</button></a>
                            <a href="<?php echo $base?>laporan-biodata-kartu-perpustakaan.php?id=<?php echo $id?>" target="_blank"><button class="btn btn-default" style="margin-right:5px;"><i class='glyphicon glyphicon-print'></i>Biodata Untuk Kartu Perpustakaan</button></a>

                <?php 
					include "php_class/class_transaksi.php";	
					$DataTransaksi = new DataTransaksi;
					$kodeMaster = $xcode2;
					$idGrup = 'G0022';
					$NPM = $xcode;
					$program = $DataTransaksi->get_master_trans_by_id('program', $kodeMaster);
					$tahun = $DataTransaksi->get_master_trans_by_id('tahun',$kodeMaster);
					$semester = $DataTransaksi->get_master_trans_by_id('semester', $kodeMaster);

					$JumlahData = $DataTransaksi->get_detil_trans_pendaftaran('',$a,'jumlah', $kodeMaster);
						for ($a=1;$a<=$JumlahData;$a++){
							$NoId = $DataTransaksi->get_detil_trans_pendaftaran('idTemplate',$a,'', $kodeMaster);

				?>
                            <a href="<?php echo $base?>laporan-transaksi-grup-pendaftaran.php?id=<?php echo $NPM?>&ids=<?php echo $NoId?>&idgrup=<?php echo $idGrup?>&ak=<?php echo $program.$tahun.$semester ?>&alamat=<?php echo $Alamat?>" target="_blank"><button class="btn btn-default" style="margin-right:5px;"><i class='glyphicon glyphicon-print'></i>Cetak <?php echo $a?></button></a>
				<?php } ?>
							
							
                         </div>
                </div>
               </div>
         </div>
    </div>
</section>

    	
    	
   