<div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Laporan PPDB </h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Filter Data</h3> </div> <!-- /.box-header --> <div class="box-body"> <form action="<?php echo site_url('laporan/ppdb_panitia'); ?>" method="post" class="form-horizontal"> <div class="form-group"> <label class="control-label col-sm-4">Tahun Akademik</label> <div class="col-sm-4"> <select class=" form-control" name="tahun_akademik"> <option>Pilih Tahun Akademik</option> <?php for ($tahun = 2018; $tahun <= date('Y') + 1; $tahun++) { ?> <option value="<?php echo ($tahun - 1) . "/" . $tahun; ?>"> <?php echo ($tahun - 1) . "/" . $tahun; ?> </option> <?php }; ?> </select> </div> <div class="col-md-3 col-sm-4"> <button type="submit" class="btn btn-primary col-sm-4"><i class="fa fa-search"></i> Cari</button> </div> </div> <br> </form> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Laporan PPDB</h3> <ul class="nav pull-right"> <form method="post" target="_blank" action="<?php echo site_url('laporan/excel_ppdbpanitia/') ?>" type="button" class="btn-btn-success"> <input type="hidden" name="filter" value="<?= $filter ?>"> <button type="submit" class="btn btn-success"> <i class="fa fa-send"></i> Export </button> </form> </ul> <ul class="nav pull-right" style="padding-right:3px"> <form method="post" target="_blank" action="<?php echo site_url('laporan/print_ppdbPanitia/') ?>"> <input type="hidden" name="filter" value="<?= $filter ?>"> <button type="submit" class="btn btn-primary"> <i class="fa fa-print"></i> Print </button> </form> </ul> </div> <!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="example1" class="table table-bordered table-striped table-hover"> <thead> <tr> <th>No</th> <th>No Form</th> <th>Nama PPDB</th> <th>Tahun Akademik</th> <th>Tanggal Daftar</th> </tr> </thead> <tbody> <?php $no = 1; foreach ($ppdb as $p) : ?> <tr> <td align="center"><?php echo $no++ ?></td> <td align="center"><?php echo $p['no_form']; ?></td> <td><?php echo $p['nama_siswa']; ?></td> <td align="center"><?php echo $p['tahun_akademik']; ?></td> <td align="center"><?= $p['tanggal_daftar']; ?></td> </tr> </tfoot> <?php endforeach; ?> </table> </div> </div> </div> </div> </div> </section> <!-- /.content --> </div>
info at phpclasses dot org