<?php
include("sess_check.php");

// deskripsi halaman
$pagedesc = "Data Tahun";
$menuparent = "masuk";
include("layout_top.php");
?>
<!-- top of file -->
<!-- Page Content -->
<div id="page-wrapper">
	<div class="container-fluid">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">Data Tahun Ajaran</h1>
			</div><!-- /.col-lg-12 -->
		</div><!-- /.row -->

		<div class="row">
			<div class="col-lg-12"><?php include("layout_alert.php"); ?></div>
		</div>

		<div class="row">
			<div class="col-lg-12">
				<form class="form-horizontal" action="tahun_insert.php" method="POST" enctype="multipart/form-data">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3>Tambah Data</h3>
						</div>
						<div class="panel-body">
							<div class="form-group">
								<label class="control-label col-sm-3">Tahun Ajaran</label>
								<div class="col-sm-4">
									<input type="text" name="tahun_ajaran" class="form-control" placeholder="Tahun Ajaran" required>
								</div>
							</div>

							<div class="form-group">
								<label class="control-label col-sm-3">Keterangan Masuk2</label>
								<div class="col-sm-4">
									<textarea name="keterangan_masuk" class="form-control" placeholder="Keterangan_masuk" rows="3" required></textarea>
								</div>
							</div>

							<div class="form-group">
								<label class="control-label col-sm-3">Status</label>
								<div class="col-sm-4">
									<select name="id_status" id="status" class="form-control" required>
										<option value="">==== Pilih Status ====</option>
										<?php
										$sql_brg = "SELECT * FROM status_tahun WHERE id_status ORDER BY status ASC";
										$ress_brg = mysqli_query($conn, $sql_brg);
										while ($li = mysqli_fetch_array($ress_brg)) {
											echo '<option value="' . $li['id_status'] . '">' . $li['status'] . '</option>';
										}
										?>
									</select>
								</div>
							</div>
						</div>
						<div class="panel-footer">
							<button type="submit" name="simpan" class="btn btn-success">Simpan</button>
						</div>
					</div><!-- /.panel -->
				</form>
			</div><!-- /.col-lg-12 -->
		</div><!-- /.row -->
	</div><!-- /.container-fluid -->
</div><!-- /#page-wrapper -->
<!-- bottom of file -->
<?php
include("layout_bottom.php");
?>