diff --git a/www/account.php b/www/account.php index 4e062b0..137f54d 100644 --- a/www/account.php +++ b/www/account.php @@ -1,6 +1,6 @@ New/Pending Articles:\n"); - print("
No new/pending articles found.
\n"); + $result = db_query("SELECT * FROM article WHERE is_published = 0 " + ."ORDER BY modify_date"); + $count = db_count($result); + + if ($count == 0) + print("No new/pending articles found.
\n"); + else + { + html_start_table(array("Id", "Title", "Last Updated")); + + while ($row = db_next($result)) + { + $id = $row['id']; + $title = htmlspecialchars($row['title'], ENT_QUOTES); + $abstract = htmlspecialchars($row['abstract'], ENT_QUOTES); + $date = date("M d, Y", $row['modify_date']); + + html_start_row(); + + print("