<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>Tes Wawancara</h4>
					</div>
					<div class="form-body">
						<form class="form-horizontal" action="<?php echo base_url();?>admin/Admin/calonSiswaWawancaraExec" method="post" enctype="multipart/form-data">
							<div class="form-group">
								<label class="col-sm-2">Nama</label>
								<div class="col-sm-6">
									: <?php echo $calon_siswa->nama;?>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2">Nomor Pendaftaran</label>
								<div class="col-sm-6">
									: <?php echo $calon_siswa->nomor_pendaftaran;?>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2">Jurusan</label>
								<div class="col-sm-6">
									: <?php echo $calon_siswa->jurusan;?>
								</div>
							</div>
							<?php
								$x = 0;
								foreach($pertanyaan as $p)
								{
									$x++;
									?>
									<div class="form-group">
										<label class="col-sm-12">
											<strong>Pertanyaan <?php echo $x;?></strong><br>
											<?php echo $p['pertanyaan'];?>
										</label>
										<?php
											foreach($pilihan_jawaban as $pj)
											{
												if($pj['id_pertanyaan'] == $p['id_pertanyaan'])
												{
													?>
													<div class="col-sm-12">
														<input type="radio" name="jawaban<?php echo $x;?>" value="<?php echo $p['id_pertanyaan']."-".$pj['id_pilihan_jawaban'];?>" required> <?php echo $pj['pilihan_jawaban'];?>
													</div>
													<?php
												}
											}
										?>
									</div>
									<?php
								}
							?>
							<input type="hidden" name="x" value="<?php echo $x;?>">
							<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-save"></i> Simpan</button>
								</div>
							</div>
						</form> 
					</div>
				</div>
			</div>
		</div>
	</div>
</div>