<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>Finalisasi</h4>
					</div>
					<div class="form-body">
						<form class="form-horizontal" action="<?php echo base_url();?>admin/Admin/calonSiswaFinalisasiExec" method="post" enctype="multipart/form-data">
							<div class="form-group">
								<label class="col-sm-3">Nama</label>
								<div class="col-sm-6">
									: <?php echo $calon_siswa->nama;?>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3">Nomor Pendaftaran</label>
								<div class="col-sm-6">
									: <?php echo $calon_siswa->nomor_pendaftaran;?>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3">Skor Wawancara</label>
								<div class="col-sm-6">
									: <strong>
									<?php 
										$nilai = 0;
										foreach($jawaban as $j)
										{
											$nilai = $nilai + $j['nilai'];
										}
										echo $nilai;
									?>
									</strong>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3">Hasil Akhir</label>
								<div class="col-sm-2">
									: <input type="radio" name="hasil_wawancara" value="Diterima" required> Diterima
								</div>
								<div class="col-sm-2">
									<input type="radio" name="hasil_wawancara" value="Tidak Diterima" required> Tidak Diterima
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3">Jurusan</label>
								<div class="col-sm-4">
									<select class="form-control" name="id_jurusan">
										<?php
											foreach($jurusan as $ju)
											{
												?>
												<option value="<?php echo $ju['id_jurusan'];?>" <?php echo ($ju['id_jurusan'] == $calon_siswa->id_jurusan ? "selected" : "");?>><?php echo $ju['jurusan'];?></option>
												<?php
											}
										?>
									</select>
								</div>
							</div>
							<input type="hidden" name="id_calon_siswa" value="<?php echo $calon_siswa->id_calon_siswa;?>">
							<div class="form-group">
								<div class="col-sm-12">
									<button type="submit" class="btn btn-success pull-right"><i class="fa fa-check"></i> Selesai</button>
								</div>
							</div>
						</form> 
					</div>
				</div>
			</div>
		</div>
	</div>
</div>