document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!DOCTYPE html>  
  2.  <html>  
  3.  <head>  
  4.    <title>Pendaftaran Siswa Baru|| SMAN 1 Tanjung</title>  
  5.    <script>  
  6.       function showsiswa() {  
  7.         if (window.XMLHttpRequest) {  
  8.           xhttp = new XMLHttpRequest();  
  9.         }  
  10.         xhttp.onreadystatechange = function() {  
  11.           if (this.readyState == 4 && this.status == 200){  
  12.             document.getElementById("demo").innerHTML = this.responseText;  
  13.           }  
  14.         };  
  15.         xhttp.open("GET", "list-siswa.php", true);  
  16.         xhttp.send();  
  17.       }  
  18.       function daftar() {  
  19.         if (window.XMLHttpRequest) {  
  20.           xhttp = new XMLHttpRequest();  
  21.         }  
  22.         xhttp.onreadystatechange = function() {  
  23.           if (this.readyState == 4 && this.status == 200){  
  24.             document.getElementById("demo").innerHTML = this.responseText;  
  25.           }  
  26.         };  
  27.         xhttp.open("GET", "form-daftar.php", true);  
  28.         xhttp.send();  
  29.       }  
  30.       function edit() {  
  31.         if (window.XMLHttpRequest) {  
  32.           xhttp = new XMLHttpRequest();  
  33.         }  
  34.         xhttp.onreadystatechange = function() {  
  35.           if (this.readyState == 4 && this.status == 200){  
  36.             document.getElementById("demo").innerHTML = this.responseText;  
  37.           }  
  38.         };  
  39.         xhttp.open("GET", "form-edit.php", true);  
  40.         xhttp.send();  
  41.       }  
  42.     </script>  
  43.     <link rel="icon" type="image/jpeg" href="logo.jpeg">
  44.     <style type="text/css">
  45.         body {
  46.             background-color: #FFFF99
  47.        }
  48.         .button {
  49.           background:#2C97DF;
  50.          color:white;
  51.           border-top:0;
  52.           border-left:0;
  53.           border-right:0;
  54.           border-bottom:5px solid #2A80B9;
  55.          padding:5px 15px;
  56.           text-decoration:none;
  57.           font-family:sans-serif;
  58.           font-size:11pt;
  59.         }
  60.     </style>
  61.   </head>  
  62.   <body>
  63.     <header>
  64.       <center>  
  65.       <h3>Pendaftaran Siswa Baru</h3>
  66.       <img src="logo.jpeg" width="200" height="200" />  
  67.       <h1>SMAN 1 Tanjung</h1>  
  68.       </center>
  69.     </header>
  70.     <center>  
  71.     <h4>Menu</h4>  
  72.     <p>
  73.       <button type="button" class="button" onclick="showsiswa()">Pendaftar</button>  
  74.       <button type="button" class="button" onclick="daftar()">Daftar Baru</button>
  75.     </p>  
  76.     <div id="demo"></div>
  77.     </center>  
  78.   </body>  
  79. </html>
');