<?php
session_start();
include "includes/database.php";
include "includes/security.php";
$email=$_SESSION["pengguna"];
$dataPengguna=mysqli_query($newcon,"SELECT * from tbl_user where email='$email'");
$showData=mysqli_num_rows($dataPengguna);






if (isset($_GET["id"]))
{

mysqli_query($newcon,"update tbl_user set status='1' where user_id='$_GET[id]'");


}








?>

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>ADMIN</title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/heroic-features.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">ADMIN </a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
        
                    <li>
                        <a href="admin.php">Dashboard</a>
                    </li>
                    <li>
                        <a href="admin1.php">List Of Shop</a>
                    </li>
                    <li class="nav-item">
              <a class="nav-link" href="admin2.php">List of Customer</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="admin3.php">List of Product</a>
            </li>
                    <li class="nav-item">
              <a class="nav-link active" href="admin4.php">List of Review</a>
        
            <li class="nav-item">
              <a class="nav-link active" href="index.php">Logout</a>
            </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>
    

        <!-- Page Content -->
        <div id="page-content-wrapper">
            <div class="container-fluid">
                <h1>MyUniversity MarketPlace</h1>
                <p>Thank you very much because using MyUniversity MarketPlace as a Platform for you to generate income .</p>
                
            </div>
<br>

            <div class="b"> <form id="form1" name="form1" method="post" action="">
  <table width="800" border="1">
    <tr>
      <th colspan="5" scope="row" height="90px"><center>List of Review</center></th><br>
    </tr>
    <tr>
     
      <th ><center>Name</center></th>
        <th ><center>Comment</center></th>
      
  
    
    </tr>

<?php

$data1=mysqli_query($newcon,"SELECT * from tbl_review");

while ($showData=mysqli_fetch_array($data1))
{
    ?>


    <tr>
     
      <td align="center"><?php echo $showData['review_name']; ?></td>
     <td align="center"><?php echo $showData['review_comment']; ?></td>
         
    </tr>
    

<?php
}
?>

  </table>
</form></div>
      <!-- /.row -->

    </div>






        </div>
        <!-- /#page-content-wrapper -->

    </div>
    <!-- /#wrapper -->





    <!-- Bootstrap core JavaScript -->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

</body>

</html>