<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<!-- Start First Row -->
<div class="row">
	<div class="col m12 s12">
		<div class="card">
			<div class="card-content">
				<h5 class="center">Daftar Paket Soal Ujian <a href="#create_quiz_name" class="btn-small green modal-trigger" title="Tambah Baru"><i class="material-icons left">add</i>Baru</a></h5>
				<p>Disini Anda bisa membuat, merubah dan mengarsipkan paket soal ujian, lengkap dengan daftar pertanyaan berserta pilihan jawaban.</p>
			</div>
		</div>
	</div>
</div>
<!-- End First Row -->


<!-- Start Moadal Add quiz name -->
<div id="create_quiz_name" class="modal">
	<div class="modal-content">
		<h5>Tambah Paket Soal</h5>
		<?php echo form_open(site_url('teacher/quiz/create_quiz_name'));?>
		<div class="row">
			<div class="input-field col s12">
				<input type="text" name="title" id="title" autocomplete="off" required="">
				<label for="#title">Judul</label>
			</div>
			<div class="input-field col s12">
				<input type="text" name="description" id="description" autocomplete="off" >
				<label for="#description">Deskripsi (Opsional)</label>
			</div>
			<div class="input-field col s4">
				<input type="number" name="time" id="time" autocomplete="off" required="">
				<label for="#time">Waktu Mengerjakan</label>
			</div>
			<div class="input-field col s4">
				<input type="number" name="multiple_choice_percentage" id="multiple_choice_percentage" autocomplete="off" required="">
				<label for="#multiple_choice_percentage">Bobot Pilihan ganda (%)</label>
			</div>
			<div class="input-field col s4">
				<input type="number" name="essay_percentage" id="essay_percentage" autocomplete="off" required="">
				<label for="#essay_percentage">Bobot Essai (%)</label>
			</div>
			<div class="col s4">
				<button type="submit" class="waves-effect waves-green btn green">Simpan</button>
				<a href="#!" class="modal-close waves-effect waves-white btn red">Batal</a>
			</div>
			<div class="col s8">
				<i class="green-text">Jumlah bobot pilihan ganda dan essai harus pas 100</i>
			</div>
		</div>
		<?php echo form_close();?>
	</div>
</div>
<!-- End Modal Add quiz name -->


<!-- Start Second Row -->
<div class="row">

	<?php if ($this->session->flashdata()) { ?>
		<div id="flashSuccess" data-success="<?=$this->session->flashdata('success');?>"> </div>
		<div id="flashFailed" data-failed="<?=$this->session->flashdata('failed');?>"> </div>
	<?php };?>

	<div class="col m12 s12">
		<div class="card">
			<div class="card-content">
				<table class="table" id="quizName">
					<thead>
						<tr>
							<th>No.</th>
							<th><?=$this->config->item('teacher');?></th>
							<th>Judul</th>
							<th>PG</th>
							<th>Essai</th>
							<th>Waktu</th>
							<th>Daftar Pertanyaan</th>
							<th>Aksi</th>
						</tr>
					</thead>
					
					</table>
				</div>
			</div>
		</div>

	</div>
	<!-- Start Second Row -->

