<!DOCTYPE html>
<html>
<head>
<title>Pendaftaran Siswa Baru|| SMAN 1 Tanjung</title>
<script>
function showsiswa() {
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
}
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200){
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "list-siswa.php", true);
xhttp.send();
}
function daftar() {
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
}
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200){
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "form-daftar.php", true);
xhttp.send();
}
function edit() {
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
}
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200){
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "form-edit.php", true);
xhttp.send();
}
</script>
<link rel="icon" type="image/jpeg" href="logo.jpeg">
<style type="text/css">
body {
background-color: #FFFF99
}
.button {
background:#2C97DF;
color:white;
border-top:0;
border-left:0;
border-right:0;
border-bottom:5px solid #2A80B9;
padding:5px 15px;
text-decoration:none;
font-family:sans-serif;
font-size:11pt;
}
</style>
</head>
<body>
<header>
<center>
<h3>Pendaftaran Siswa Baru</h3>
<img src="logo.jpeg" width="200" height="200" />
<h1>SMAN 1 Tanjung</h1>
</center>
</header>
<center>
<h4>Menu</h4>
<p>
<button type="button" class="button" onclick="showsiswa()">Pendaftar</button>
<button type="button" class="button" onclick="daftar()">Daftar Baru</button>
</p>
<div id="demo"></div>
</center>
</body>
</html>