<?php 
session_start();
	if($_SESSION['level']!="siswa"){
		header("location:../index.html");
	}
// memanggil file header.php
include("koneksi.php");
include("header.php"); // memanggil file koneksi.php untuk koneksi ke database
?>
	<div class="container">
		<div class="content">
			<h2>MPLS ONLINE &raquo; Kebijakan Sekolah</h2>
			<hr />
			<!-- bagian ini merupakan bagian form untuk mengupdate data yang akan dimasukkan ke database -->
			<form class="form-horizontal" method="post" action="tambah_aksi.php">
			<form action="tambah_aksi.php" method="post" onSubmit="return validasi()">
			<div>

				<div class="form-group">
					<label class="col-sm-3 control-label">No. Ujian</label>
					<div class="col-sm-4">
						<input type="text" name="id_siswa" value="<?php echo $_SESSION ['username']; ?>" class="form-control" placeholder="No Ujian" readonly>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">Nama</label>
					<div class="col-sm-4">
						<input type="text" name="nama" value="<?php echo $_SESSION ['nama']; ?>" class="form-control" placeholder="NISN" readonly>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">Kelas</label>
					<div class="col-sm-2">
						<input type="text" name="kelas" value="<?php echo $_SESSION ['kelas']; ?>" class="form-control" placeholder="NISN" readonly>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">Materi</label>
					<div class="col-sm-4">
						<input type="text" name="kegiatan" value="Kebijakan Sekolah" class="form-control" placeholder="NISN" readonly>	
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">Video Materi</label>
					<div class="col-sm-6">
						<iframe width="560" height="315" src="https://www.youtube.com/embed/Alv_YUVjgJY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">Resume Materi</label>
					<div class="col-sm-6">
						<textarea name="uraian" class="form-control" placeholder="Tulis resume dari materi video diatas (isi resume maksimal/paling banyak 10.000 huruf/karakter)" style="width:400px; height:450px;" required></textarea>
					</div>
				</div>
				


				<div class="form-group">
					<label class="col-sm-3 control-label">&nbsp;</label>
					<div class="col-sm-6">
						<input type="submit" name="save" class="btn btn-md btn-primary" value="Simpan" data-toggle="tooltip" title="Simpan Data siswa">
						<a href="index.php" class="btn btn-md btn-danger" data-toggle="tooltip" title="Batal">Batal</a>
					</div>
				</div>

			</form>
		</div> <!-- /.content -->
	</div> <!-- /.container -->
<?php 
include("footer.php"); // memanggil file footer.php
?>