

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <![endif]-->
    <title> KLASIFIKASI STATUS EKONOMI</title>
    <!-- BOOTSTRAP CORE STYLE CSS -->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLE CSS -->
    <link href="assets/css/font-awesome.min.css" rel="stylesheet" />
    <!-- CUSTOM STYLE CSS -->
    <link href="assets/css/style.css" rel="stylesheet" />    
    <!-- GOOGLE FONT -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
<body  >
    
    <div class="navbar navbar-inverse navbar-fixed-top" >
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">ZAMALUDIN ARSYAD</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="admin.php">BERANDA</a></li>
                     <li><a href="DATASET.PHP">DATASET</a></li>
                    <li><a href="ANALISA.PHP">ANALISA</a></li>
						<li><a href="ANALISA2.PHP">INPUT DATA</a></li>
                     <li><a href="HASIL KLASIFIKASI3.PHP">HASIL KLASIFIKASI</a></li>
                      <li><a href="index.PHP">LOG OUT</a></li>
                </ul>
            </div>
           
        </div>
    </div>
   <!--/.NAVBAR END-->
        
    <!--/.HEADING END-->

 
     
    <!--/.NOTE END-->
   	


						
                               
<section class="services"><center><table border="1"width="100%" >

<TR><TD COLSPAN="8">
 

<a href="tambah_pengguna.PHP"><input type="button" value=" TAMBAH USER"></a>
 
   </TD></TR>

<TR><TD COLSPAN="8">
<center>

<h3>TABEL DATA USER</h3>
</center>
   </TD></TR>
		 <TR>
		<TH><CENTER>NAMA</CENTER></TH>
		 <TH><CENTER> USER NAME</CENTER></TH>
		 <TH><CENTER>PASSWORD</CENTER></TH>
		 <TH><CENTER>E_MAIL</CENTER></TH>
		 <TH><CENTER>JENIS KELAMIN</CENTER></TH>
		 <TH><CENTER>STATUS ADMIN</CENTER></TH>
		 <TH><CENTER>LEVEL</CENTER></TH>
		 <TH><CENTER>PILIHAN</CENTER></TH>
		</TR>
		
		
		<?php
include "koneksi.php";
$query = mysql_query("SELECT * FROM admin");
if(!$query){
	die( mysql_error() );
}
$i=1;
while($row = mysql_fetch_array($query)){
    $clas='baris-ganjil';
    echo "<Tr class=$clas>
				 
				<th> <CENTER>".$row['nama_lengkap']."</CENTER></th><BR>
				<th><CENTER>".$row['username']."</CENTER></th><BR>
				<th><CENTER>".$row['password']."</CENTER></th><BR>
				<th><CENTER>".$row['Email']."</CENTER></th><BR>
				<th><CENTER>".$row['Jkel']."</CENTER></th><BR>
				<th><CENTER>".$row['status_admin']."</CENTER></th><BR>
				<th><CENTER>".$row['level']."</CENTER></th><BR>
				
				<td > ";
			
			?>
			 <a href="<?php echo "edit_user.php? id=".$row['id']."";?>"><img src='USER/user_edit.png'></a>
			  <a href="<?php echo "hapus.php?  id=".$row['id']."";?>" onClick="return confirm('Apakah anda yakin akan menghapus data ini?')"><img src='USER/garbage.png'></a></P></td>
	<?php
				
				
		echo	"</tr>";
			$i=$i+1;
			if ($clas=='baris-ganjil') 
		     { 
			 $clas='baris-ganjil2';
			 }
		}	
	    echo "<TR><TD COLSPAN=8></TD></TR></table>";
			mysql_close();
		
	
			 
	?>
</th>
        
		
    </tr></TABLE>
	   </p>
                
           
        </section>
     <!--/.CLIENTS END-->
           
    <!--/.FOOTER END-->
    <!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME  -->
    <!-- CORE JQUERY  -->
    <script src="assets/plugins/jquery-1.10.2.js"></script>
    <!-- BOOTSTRAP SCRIPTS  -->
    <script src="assets/plugins/bootstrap.js"></script>
  <!-- CUSTOM SCRIPTS  -->
    <script src="assets/js/custom.js"></script>
</body>
</html>
