334 lines
14 KiB
PHP
334 lines
14 KiB
PHP
<?php
|
|
include('authsession.php');
|
|
if (!ADMIN) {
|
|
header('Location: index.php');
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Tambah Siswa MTs Al-Ishlah</title>
|
|
|
|
<!-- Bootstrap CSS CDN -->
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
<!-- Our Custom CSS -->
|
|
<link rel="stylesheet" href="css/formmts.css">
|
|
<script>
|
|
<?php
|
|
if(isset($_GET['message'])){
|
|
echo "alert('".$_GET['message']."')";
|
|
|
|
}
|
|
?>
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="wrapper">
|
|
<nav id="sidebar">
|
|
<div class="sidebar-header">
|
|
<h3>
|
|
<i class="glyphicon glyphicon-user"></i>
|
|
Administrator
|
|
</h3>
|
|
<strong>
|
|
<i class="glyphicon glyphicon-user"></i>
|
|
</strong>
|
|
<strong>Admin</strong>
|
|
</div>
|
|
|
|
<ul class="list-unstyled components">
|
|
<!-- class="active" -->
|
|
<li>
|
|
<a href="index.php">
|
|
<i class="glyphicon glyphicon-home"></i>
|
|
Beranda
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#kelasSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-th"></i>
|
|
Kelas
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="kelasSubmenu">
|
|
<li>
|
|
<a href="kelasmts.php">MTs Al-Ishlah</a>
|
|
</li>
|
|
<li>
|
|
<a href="kelassma.php">SMA Al-Ishlah</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#siswaSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-user"></i>
|
|
Siswa
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="siswaSubmenu">
|
|
<li class="active">
|
|
<a href="mts.php">MTs Al-Ishlah</a>
|
|
</li>
|
|
<li>
|
|
<a href="sma.php">SMA Al-Ishlah</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#biayaSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-credit-card"></i>
|
|
Biaya SPP
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="biayaSubmenu">
|
|
<li>
|
|
<a href="biaya_mts.php">MTs Al-Ishlah</a>
|
|
</li>
|
|
<li>
|
|
<a href="biaya_sma.php">SMA Al-Ishlah</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#bayarSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-euro"></i>
|
|
Pembayaran SPP
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="bayarSubmenu">
|
|
<li>
|
|
<a href="pembayaran_spp_mts.php">MTs Al-Ishlah</a>
|
|
</li>
|
|
<li>
|
|
<a href="pembayaran_spp_sma.php">SMA Al-Ishlah</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#laporanSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-file"></i>
|
|
Laporan Pembayaran
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="laporanSubmenu">
|
|
<li>
|
|
<a href="lapor_mts.php">MTs Al-Ishlah</a>
|
|
</li>
|
|
<li>
|
|
<a href="lapor_sma.php">SMA Al-Ishlah</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#adminSubmenu" data-toggle="collapse" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-tower"></i>
|
|
Admin/User
|
|
</a>
|
|
<ul class="collapse list-unstyled" id="adminSubmenu">
|
|
<li>
|
|
<a href="admin.php">Admin</a>
|
|
</li>
|
|
<li>
|
|
<a href="user.php">User</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="authlogout.php">
|
|
<i class="glyphicon glyphicon-log-out"></i>
|
|
Keluar
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<div id="content">
|
|
<nav class="navbar navbar-default">
|
|
<!-- <div class="navbar-header">
|
|
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
|
|
<i class="glyphicon glyphicon-align-left"></i>
|
|
</button>
|
|
</div> -->
|
|
<span>
|
|
<div class="title">
|
|
<img src="pic/logo.png" alt="Logo">
|
|
<h1>SIADMIN Sekolah Yayasan IBM</h1>
|
|
</div>
|
|
</span>
|
|
</nav>
|
|
<div class="container-fluid" style="padding-top: 20px;padding-bottom: 20px;padding-left: 160px;padding-right: 160px;">
|
|
<h2>Siswa >> MTs Al-Ishlah >>
|
|
<span style="color:#1c90b3;">Tambah Siswa</span>
|
|
</h2>
|
|
<div class="line"></div>
|
|
<form class="daftarsiswa" action="proses_form_mts.php" method="POST">
|
|
<table>
|
|
<!-- data pribadi -->
|
|
<tr>
|
|
<td>
|
|
<label for="kelas">Kelas</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<select name="kelas" required>
|
|
<option value="">Pilih Kelas</option>
|
|
|
|
<?php
|
|
$sql="SELECT * FROM kelasmts";
|
|
$query=mysqli_query($koneksi, $sql);
|
|
|
|
while( $kelas=mysqli_fetch_array($query)){
|
|
echo "<option value='".$kelas['nama']."'>".$kelas['nama']."</option>";
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="no_induk">Nomor Induk</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="no_induk" required>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="nama">Nama Lengkap</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="nama" required>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="jenis_kelamin">Jenis Kelamin</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input name="jenis_kelamin" type="radio" value='Laki-Laki'>
|
|
<span style="margin-right: 70px;">Laki-Laki</span>
|
|
<input name="jenis_kelamin" type="radio" value='Perempuan'>
|
|
<span>Perempuan</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="tempat_lahir" style="margin-right: 165px;">Tempat Lahir</label>
|
|
<label for="tanggal_lahir">Tanggal Lahir</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="tempat_lahir" style="width:250px;margin-right:20px;" required>
|
|
<input type="date" name="tanggal_lahir" style="width:250px;" required>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="agama">Agama</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<select name="agama" required>
|
|
<option value="">Pilih Agama</option>
|
|
<option value="Islam">Islam</option>
|
|
<option value="Kristen Protestan">Kristen Protestan</option>
|
|
<option value="Kristen Katholik">Kristen Katholik</option>
|
|
<option value="Hindu">Hindu</option>
|
|
<option value="Buddha">Buddha</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="alamat">Alamat</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<textarea name="alamat" style="width: 518px;height: 100px;" required></textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- data orang tua -->
|
|
<tr>
|
|
<td>
|
|
<label for="nama_ayah" style="margin-right: 180px;">Nama Ayah</label>
|
|
<label for="nama_ibu">Nama Ibu</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="nama_ayah" style="width:250px;margin-right:20px;">
|
|
<input type="text" name="nama_ibu" style="width:250px;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="pekerjaan_ayah" style="margin-right: 150px;">Pekerjaan Ayah</label>
|
|
<label for="pekerjaan_ibu">Pekerjaan Ibu</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="pekerjaan_ayah" style="width:250px;margin-right:20px;">
|
|
<input type="text" name="pekerjaan_ibu" style="width:250px;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="nama_wali" style="margin-right: 188px;">Nama Wali</label>
|
|
<label for="pekerjaan_wali">Pekerjaan Wali</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="nama_wali" style="width:250px;margin-right:20px;">
|
|
<input type="text" name="pekerjaan_wali" style="width:250px;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="nomor_ortu">No. Hp Orang Tua/Wali</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="tel" name="nomor_ortu" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="display:flex;align-item:right;justify-content:right;padding-left: 285px;">
|
|
<a href="mts.php">
|
|
<input class="button" type="button" value="Batalkan">
|
|
</a>
|
|
<input class="button" type="button" value="Reset">
|
|
<input name="simpan" class="button" type="submit" value="Simpan">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- jQuery CDN -->
|
|
<script src="jquery/jquery-1.12.0.min.js"></script>
|
|
|
|
<!-- Bootstrap Js CDN -->
|
|
<script src="js/bootstrap.min.js"></script>
|
|
|
|
<script src="main.js"></script>
|
|
</body>
|
|
|
|
</html>
|