<?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">
											<a href="<?php echo base_url();?>c_acara/download_cadangan/<?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 CADANGAN</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>
				<th class="center">Tindakan</th>
			</tr>
		</thead>
		<tbody>
<?php $no=$num+1; foreach($daftar_hadir as $s){?>

<form id="form" action="<?php echo base_url()?>c_acara/pindah_peserta/<?php echo $s->id_tamu;?>/<?php echo $s->id_acara;?>" method="POST" role="form">
<tr>
<td class="center"><?php echo $no;?></td>
	<input type="text" name="id_acara" value="<?php echo $s->id_acara;?>" required placeholder="" hidden>
	<td><input type="text" name="nama" value="<?php echo $s->nama;?>" required placeholder="" readonly ></td>
	<td><input type="text" name="nip" value="<?php echo $s->nip;?>" required placeholder="" readonly ></td>
	<td><input type="text" name="unit_kerja" value="<?php echo $s->unit_kerja;?>" required placeholder="" readonly ></td>
	<td><input type="text" name="jabatan" value="<?php echo $s->jabatan;?>" required placeholder="" readonly ></td>
	<td><input type="text" name="email" value="<?php echo $s->email;?>" required placeholder="" readonly ></td>
	<td><input type="text" name="no_hp" value="<?php echo $s->no_hp;?>" required placeholder="" readonly ></td>
	<?php if($level_sesion==2){?>
	<td><button  type="submit" class="btn btn-sm btn-success btn-block" name="Save" onclick="javascript: return confirm('Apakah data ini akan dimasukkan peserta ?')" ><b><i class="fa fa-fw fa-mail-reply-all"></i> PINDAH SEBAGAI PESERTA</b></button></td>
	<?php } ?>
	</tr>
</form>
<?php $no++;}?>
		</tbody>
	</table>
	</div>