<?php require_once 'conn.php'; require_once 'header.php'; _SESSION['user_id']; sql, user = mysql_fetch_array(<form method="post" action=<transact-user.php>> <p>Name:<br> <input type="text" id="name" name="name" value="<?php echo htmlspecialchars(user['name']); ?>"></p> <p>E-mail:<br> <input type="text" id="email" name="email" value="<?php echo htmlspecialchars(</p> <p><input type="submit" class="submit" name="action" value="Change my info"></p> </form> <h2>Pending Articles</h2> <div class="scroller"> <table> <?php sql = "SELECT article_id, title, date_submitted " . "FROM cms_articles " . "WHERE is_published=0 " . "AND author_id=" . result = mysql_query(conn) or die('Could not get list of pending articles; ' . mysql_error()); if (mysql_num_rows(<em>No pending articles available</em>"; } else { while (row = mysql_fetch_array(<tr>\n"; echo '<td><a href="reviewarticle.php?article=' . row['article_id'] . '">' . htmlspecialchars(</a> (submitted " . date("F j, Y", strtotime(row['date_submitted'])) . ")</td>\n"; echo "</tr>\n"; } } ?> </table> </div> <br> <h2>Published Articles</h2> <div class="scroller"> <table> <?php _SESSION['user_id'] . " " . "ORDER BY date_submitted"; sql, result) == 0) { echo " <em>No published articles available</em>"; } else { while (result)) { echo "<tr>\n"; echo '<td><a href="viewarticle.php?article=' . row['title']) . "</a> (published " . date("F j, Y", strtotime(</td>\n"; echo "</tr>\n"; } } ?> </table> </div> <br> <?php require_once 'footer.php'; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.