<?php 
$level_sesion=$this->session->userdata('level');
?>
<form class="form-search" action="<?php echo site_url();?>c_acara/cari_peserta" method=POST>
										<span class="input-icon">
										<input name="cari" type="text" placeholder="Cari......." class="nav-search-input" id="nav-search-input" autocomplete="on" />
											<i class="ace-icon fa fa-search nav-search-icon"></i>
											</span>
											
											<div class="widget-toolbar">
											<?php if ($level_sesion==2){?>
											<a href="<?php echo base_url();?>c_acara/kosongkan_peserta/<?php echo $id_acara;?>"  data-toggle="modal" onclick="javascript: return confirm('Apakah anda akan menghapus daftar peserta di acara ini ?')"><button class="btn btn-xs btn-danger" type="button">
												<i class="ace-icon glyphicon glyphicon-file bigger-110"></i>
												Hapus Data Peserta
											</button></a>
											<?php }?>
											<a href="<?php echo base_url();?>c_acara/download/<?php echo $id_acara;?>"  data-toggle="modal"><button class="btn btn-xs btn-primary" type="button">
												<i class="ace-icon glyphicon glyphicon-file bigger-110"></i>
												Export exel
											</button></a>
											<a href="javascript:history.back()" class="btn btn-xs btn-warning" type="reset" data-action="collapse">
												<i class="ace-icon fa fa-undo bigger-110"></i>
												Kembali
											</button></a>
											</div>
											</div>
										</form>	
										<hr>
										<h3>DATA PESERTA</h3>
<div class="box-body table-responsive no-padding">
<table id="dynamic-table" class="table table-striped table-bordered table-hover">
		<thead class="thin-border-bottom">
			<tr>
				<th class="center">No</th>
				<th class="center">Nama</th>
				<th class="center">NIP</th>
				<th class="center">Unit Kerja</th>
				<th class="center">Jabatan</th>
				<th class="center">Email</th>
				<th class="center">No Handphone</th>
			</tr>
		</thead>
		<tbody>
<?php $no=$num+1; foreach($daftar_hadir as $s){?>
<tr>
	
	
<tr>
<td class="center"><?php echo $no;?></td>
	
	<td><?php echo $s->nama;?></td>
	<td><?php echo $s->nip;?></td>
	<td><?php echo $s->unit_kerja;?></td>
	<td><?php echo $s->jabatan;?></td>
	<td><?php echo $s->email;?></td>
	<td><?php echo $s->no_hp;?></td>
	</tr>
	</tr>
<?php $no++;}?>
		</tbody>
	</table>
</div>