echo "<br /><br />\n<a href= \"logout.php\">• Logout</a>\n"; } ?> </div> <?php //this loop will go through and pick out each array the subjects while ($subject = mysql_fetch_array($subject_set)) { //if subject['id'] DOES NOT EQUAL 4 then it will just echo an <h2> tag w/ link to that default page... if ($subject['id'] != 4) { echo "<div>\n<h2><a href = \"../" . $subject['link'] . "?index=" . $subject['id'] . "\" title= \"" . $subject['title'] . "\">" . $subject['title'] . "</a></h2>\n<hr />\n</div>\n\n"; } else { echo "<div class= \"strong\">\n<h2><a href = \"index.php\" title= \"blog\" > Blog </a></h2>\n"; echo $msg; echo "</div>\n\n"; echo "<h3>Recent Posts</h3>\n"; echo "<div class=\"side\">\n"; $archive_blogs = recent_blog_posts(10, $_COOKIE['friendly']); while ($archive = mysql_fetch_array($archive_blogs)) { echo '<p><a href="ind_blog.php?page=' . $archive['id'] . '">' . $archive['page_name'] . "</a></p>\n"; echo author_date($archive['date'], $archive['author']); } echo "</div>\n<hr />\n\n"; echo "<p><strong>Recent Blog Tags: </strong></p>\n"; echo recent_tags(20, $_COOKIE['friendly']); } } ?> <br /><a href= "archive.php">ARCHIVE</a><br /><br /> </nav>
<header> <a href ="../index.php" title="Home Page";> <img src="../_assets/Big_R.png" width="151" height="200" border=0 alt="Return Home"></a> <h1>Post a Comment</h1> </header> <section> <aside> <?php //Here I will post the original post and then have the comment form below that... $blogs = get_page_by_id($_GET['id'], $_COOKIE['friendly']); //heading echo "<div class=\"content\"><h2>" . $blogs['page_name'] . "</h2>"; //author and date echo author_date($blogs['date'], $blogs['author']); //content echo $blogs['content']; //tag area: the fucntion will get all of the individual strings from the tag field echo '<p><span class="small">Tags: '; echo explode_tags($blogs['tags']); echo '</span></p>'; //comments echo post_comments($blogs['id']); ?> <form id= "add_blog" method= "post"> <fieldset> <label for= "comment" type= "text"><strong>Comment: </strong></label> <textarea name="comment" class="comment" tabindex= "20" style= "resize: none; width: 490px; height: 480px; margin-top: 7px;"></textarea> <br />
<?php $default_content = get_page_by_id($_GET['page']); $cleaned_content = html_entity_decode($default_content['content']); $cleaned_tags = html_entity_decode($default_content['tags']); echo "<h2>" . $default_content['page_name'] . "</h2>"; echo author_date($default_content['date'], $default_content['author']); echo $cleaned_content; echo "<br/><p>Tags: " . $default_content['tags'] . "</p>"; ?> <h3>Edit this post...</h3> <form id= "edit_blog" method= "post"> <fieldset> <label for= "page_name" type= "text" style= "margin-right: 1em;"><strong>Blog Post Title: </strong></label> <input type= "text" name="page_name" tabindex= "10" style= "width: 350px; margin-bottom: 1.5em;" value= "<?php echo $default_content['page_name']; ?> "/> <br /> <label for= "content" type= "text"><strong>Content: </strong></label> <textarea name="content" class="text" tabindex= "20" style= "resize: none; width: 490px; height: 480px; margin-top: 7px;"><?php echo $cleaned_content; ?> </textarea> <br /> <br /> <label for= "tags" type= "text" style= "margin-right: 1em;"><strong>Tags: </strong></label><br> <textarea name= "tags" tabindex= "30" style= "resize: none; width: 490px; height:50px;"><?php echo $default_content['tags'];