Location: PHPKode > projects > OrangeDeals > orangedeals_v1.2/http/view_transa_.php
<?php include "config.php"; include "functions.php";
//this file level access is only for lvl 5 users
echo "<link rel='stylesheet' type='text/css' href='core_templates/".$template."/default.css'>"; 
include "header.php";
 if (isset($_SESSION["user"][0]))
  if (($_SESSION["user"][5]>4)&&($_SESSION["user"][3]==md5(clean($_POST["pass"]))))
  {
  
   $query="SELECT * FROM credit_orders ORDER BY time_of_buy DESC";
  $result=mysql_query($query, $db_id); $nr=0;
 echo "<table border='1'>";
 echo"<tr>
    <td nowrap='nowrap'><b>id</b></td>
    <td nowrap='nowrap'><b>user</b></td>
	 <td nowrap='nowrap'><b>product</b></td>
	  <td nowrap='nowrap'><b>cost</b></td>
	  <td nowrap='nowrap'><b>credits</b></td>
	  <td nowrap='nowrap'><b>time</b></td>
  </tr>";
 for (; $row=mysql_fetch_row($result); $nr++) {
 $user_p=user($row[1]);
echo "<tr>
    <td nowrap='nowrap'>".$row[0]."</td>
    <td nowrap='nowrap'><a href='profile_view.php?id=".$user_p[0]."'>".$user_p[1]."</a></td>
	<td nowrap='nowrap'>".$row[2]."</td>
	<td nowrap='nowrap'>".$row[3]."</td>
	<td nowrap='nowrap'>".$row[4]."</td>
	<td nowrap='nowrap'>".date("m.d.y - H:i:s",$row[5])."</td>
  </tr>";
  }
  echo"</table>";
  if ($nr==0) echo "No Payments Found";
  
  }
  else echo'No access';
 else echo'No access';
?>
	  <?php include "footer.php";
 ?>
Return current item: OrangeDeals