<?php
	include("mysqli_con.php");
	session_start();
	$sqlSelecReport = mysqli_query($conn,"SELECT * FROM report; ") or die(mysql_error());
	if(mysqli_num_rows($sqlSelecReport) > 0){
	  while($row = mysqli_fetch_assoc($sqlSelecReport)){
    $report_id = $row['report_id'];
		}}
?>


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Buy And Sell</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">


<!-- Bootstrap style -->
    <link id="callCss" rel="stylesheet" href="themes/bootshop/bootstrap.min.css" media="screen"/>
    <link href="themes/css/base.css" rel="stylesheet" media="screen"/>
<!-- Bootstrap style responsive -->
	<link href="themes/css/bootstrap-responsive.min.css" rel="stylesheet"/>
	<link href="themes/css/font-awesome.css" rel="stylesheet" type="text/css">
<!-- Google-code-prettify -->
	<link href="themes/js/google-code-prettify/prettify.css" rel="stylesheet"/>
<!-- fav and touch icons -->
    <link rel="shortcut icon" href="themes/images/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="themes/images/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="themes/images/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="themes/images/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="themes/images/ico/apple-touch-icon-57-precomposed.png">
	<style type="text/css" id="enject"></style>
  </head>
<body>
<div id="header">
<div class="container">
<!-- Navbar ================================================== -->
<div id="logoArea" class="navbar">
<a id="smallScreen" data-target="#topMenu" data-toggle="collapse" class="btn btn-navbar">
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
</a>
  <div class="navbar-inner">
    <a class="brand" href="#"><img style="width:100px;height:50px;" src="themes/images/buyandsell.png" alt="BuyAndSell"/></a>

    <ul id="topMenu" class="nav pull-right">
      <li class=""><a href="logoutPro.php" role="button" data-toggle="modal" style="padding-right:0"><span class="btn btn-large btn-success">Logout</span></a></li>
    </ul>
  </div>
</div>
</div>
</div>
<!-- Header End====================================================================== -->
 <div id="mainBody">
	<div class="container">
	<div class="row">

		<div id="sidebar" class="span3">
			<ul id="sideManu" class="nav nav-tabs nav-stacked">
				<li class="subMenu open"><a>Hello, Admin</a>
					<ul>
						<li><a class="active" href="adminUser.php"><i class="icon-chevron-right"></i>View Registeration User </a></li>
						<li><a href="adminReport.php"><i class="icon-chevron-right"></i>View Report</a></li>
					</ul>
					</li>
					<li class="subMenu"><a> Email</a>
						<ul style="display:none">
							<li><a href="https://www.google.com/gmail/"><i class="icon-chevron-right"></i>Gmail </a></li>
							<li><a href="https://www.yahoo.com/"><i class="icon-chevron-right"></i>Yahoo </a></li>
						</ul>
					</li>
			</ul>
			<br/>
		</div>

    <!--------- gambar ---->

    <center><div class="row">
			<div class="span9">
            <ul id="productDetail" class="nav nav-tabs">
              <li class="active"><a href="#home" data-toggle="tab"> REPORT</a></li>
            </ul>
            <div id="myTabContent" class="tab-content">
              <div class="tab-pane fade active in" id="home">
			  <h4>List Of Reported User </h4>
					<form class="form-inline navbar-search" method="post" action="" >
					<input type="text" class="srchTxt" name="searchIDReport" placeholder="search" /><br>
					   <br><button type="submit" id="submitButton" class="btn btn-primary" name="search" value="<?php echo $buyer_id ?>">Search</button>
						 &nbsp<button type="submit" id="submitButton" class="btn btn-primary" name="show" value="<?php echo $buyer_id ?>">Show All</button></br>
						 <br><table class="table table-bordered">
							 <thead>
								 <tr class="techSpecRow"><td class="techSpecTD1"><center><h5>Report ID </h5></center></td>
								 <td class="techSpecTD2"><center><h5>Reporter Name</h5></center></td>
								 <td class="techSpecTD2"><center><h5>Reported Person</h5></center></td>
								 <td class="techSpecTD2"><center><h5>Status Report</h5></center></td>
								 <td class="techSpecTD2"><center><h5>Delete User</h5></center></td></tr></center></h4>
							 </thead>
						<tbody>
							<?php include('reportSearchDeletePro.php');?>
				</tbody>
			</table></center>
              </div>
					 </div>
		</div>
	</div>
</form></center>
	</div>
</div>
</div></div>
</div>
<!-- MainBody End ============================= -->


<!-- Placed at the end of the document so the pages load faster ============================================= -->
	<script src="themes/js/jquery.js" type="text/javascript"></script>
	<script src="themes/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="themes/js/google-code-prettify/prettify.js"></script>

	<script src="themes/js/bootshop.js"></script>
    <script src="themes/js/jquery.lightbox-0.5.js"></script>
<span id="themesBtn"></span>
</body>
</html>
