pending.php 574 B

1234567891011121314151617181920212223242526
  1. <?php
  2. //
  3. // this page gets used by administrators to see what apps are pending approval.
  4. //
  5. require_once("apps.inc");
  6. $res = mysql_query("SELECT * FROM app WHERE status = 'P' ORDER BY date_added");
  7. print("<h1>Pending Applications</h1>");
  8. $num_rows = mysql_num_rows($res);
  9. if( $res && $num_rows > 0 ) {
  10. print("<table border=0 cellpadding=2 cellspacing=0 width=100%>");
  11. while( $row = mysql_fetch_object($res) ) {
  12. displayApp($row, 0, 0, 0);
  13. }
  14. print("</table>");
  15. }else {
  16. print("There are no pending applications at this time.");
  17. }
  18. ?>