Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/reports/UsersList.php
<?php

include ('../../config.inc.php');
$oreon=$_SESSION['oreon'];
echo "<br><br>User List  <span style=\"font-weight: bold;\"> </span>  &nbsp; &nbsp; &nbsp; Created the ";
echo '<span style="font-weight: bold;">';
echo date("d/m/Y H:m:s");
echo "<span><br>";

echo '
<br>
<br>
<br>
<table border="4" style="text-align: left; width: 714px; height: 58px;"
 cellpadding="2" cellspacing="2">
<tbody>
<tr border="4" style="text-align: left; width: 714px; height: 58px;"
 cellpadding="2" cellspacing="2">
<td border="1" style="width: 20%; background-color: rgb(192, 192, 192);">Name
</td>
<td border="1" style="background-color: rgb(192, 192, 192);">Type</td>
<td style="background-color: rgb(192, 192, 192);">Good For</td>
<td border="1" style="background-color: rgb(192, 192, 192);">Billing Plan</td>
<td border="1" style="background-color: rgb(192, 192, 192);">Creation Date</td>
<td border="1" style="background-color: rgb(192, 192, 192);">Activate Date</td>
</tr>';

while ($row = $oreon->database->database->fetch_object($result)) {
 	$username=$row->UserName; 
  	$type=$row->Type;
  	$billingplan=get_plan_name($row->BillingPlan);
  	$CrDate=$row->CrDate;
  	$ActiveDate=$row->activeDate;
	$value=get_user_Value($username,$type,true,true);
	
  if ($type=="Subscription Expiration")
     $value=date($dateFormat,strtotime($value));
  echo ("<tr>
      <td >$username</td>
      <td >$type</td>
      <td >$value</td>
      <td >$billingplan</td>
      <td >$CrDate</td>
      <td >$ActiveDate</td>
      </tr>    
      ");
}

echo (" </tbody></table><br><br></body></html>");
?>
Return current item: phpMyPrepaid