<div id="page-wrapper">
	<div class="main-page">
		<div class="forms">
			<div class=" form-grids row form-grids-right">
				<div class="widget-shadow " data-example-id="basic-forms"> 
					<div class="form-title">
						<h4>Data Gelombang Pendaftaran</h4>
					</div>
				</div>
			</div>
		</div>
		<div class="tables">
			<div class="table-responsive bs-example widget-shadow">
				<p class="col-md-8">&nbsp;</p>
				<a href="<?php echo base_url();?>admin/Gelombang/gelombangAdd" class="col-md-4 btn btn-md btn-success">
					<i class="fa fa-plus"></i> Tambah Gelombang Pendaftaran
				</a>
				<div class="clearfix"> </div>
				<br>
				<table class="table table-bordered">
					<thead>
						<tr>
							<th>No</th>
							<th>Gelombang Pendaftaran</th>
							<th>Tahun Ajaran</th>
							<th>Tanggal Mulai</th>
							<th>Tanggal Akhir</th>
							<th>Kelola</th>
						</tr>
					</thead>
					<tbody>
						<?php
							if($gelombang == NULL)
							{
								?>
								<tr>
									<td colspan="6"><center>Tidak ada data Gelombang Pendaftaran.</center></td>
								</tr>
								<?php
							}
							else
							{
								$no = 0;
								foreach($gelombang as $g)
								{
									$no++;
									?>
									<tr>
										<td><?php echo $no;?></td>
										<td><?php echo $g['gelombang'];?></td>
										<td><?php echo $g['tahun_ajaran'];?></td>
										<td><?php echo $g['start_date'];?></td>
										<td><?php echo $g['end_date'];?></td>
										<td style="font-size:10px !important;">
											<a href="<?php echo base_url();?>admin/Gelombang/gelombangEdit/<?php echo $g['id_gelombang'];?>" class="btn btn-xs btn-warning" title="Ubah">
												<i class="fa fa-pencil"></i>
											</a>
											<a href="<?php echo base_url();?>admin/Gelombang/gelombangDelete/<?php echo $g['id_gelombang'];?>" class="btn btn-xs btn-danger" onclick="return confirm('Anda yakin akan menghapus Gelombang Pendaftaran ini?');" title="Hapus">
												<i class="fa fa-trash"></i>
											</a>
										</td>
									</tr>
									<?php
								}
							}
						?>
					</tbody> 
				</table>
			</div>
		</div>
	</div>
</div>