<div id="headerwrapper2"> <div id="headerleft"> <h1><a href="index.php"><img src="assets/images/teambook_header_title.gif" width="500" height="80" alt= "Teambook Header Title" /></a></h1> <!-- end #headerleft --></div> <div id="#headerright"> <?php if (logged_in()) { $headerpic = get_web_path_tn($_SESSION['userPic']); $profileid = $_SESSION['user_id']; $headerright = "<a href=\"profile.php?profileid={$profileid}\"><img class=\"hdprofpic\""; $headerright .= "src=\"{$headerpic}\""; $headerright .= " alt=\"kamal profile pic\" width=\"50\" /></a>"; $headerright .= "<h3>{$_SESSION['firstname']}" . " " . "{$_SESSION['lastname']}</h3>"; $headerright .= "<a href=\"logout.php\">Logout</a>"; echo $headerright; } ?> <!-- end #headerright --></div> <!-- end #headerwrapper2 --></div>
<th>Link</th> </tr> </thead> <tbody> <?php while ($data = mysqli_fetch_assoc($result)) { $portal = $data['portal']; $topic = $data['topic']; $sub_topic_1 = $data['sub_topic_1']; $sub_topic_2 = $data['sub_topic_2']; $sub_topic_3 = $data['sub_topic_3']; $sub_topic_4 = $data['sub_topic_4']; $category = $data['category_title']; $content_source = $data['content_source']; $link_pic = get_web_path_tn($data['link_pic']); $link_pic_path = get_web_path_tn($data['link_pic']); $link_text = $data['link_text']; $link_href = $data['link_href']; $output = "<tr><td>{$portal}</td><td>{$topic}</td><td>{$sub_topic_1}</td><td>{$sub_topic_2}</td><td>{$sub_topic_3}</td><td>{$sub_topic_4}</td><td>{$category}</td><td>{$content_source}</td><td><img src=\"{$link_pic}\" /></td><td><a href=\"{$link_href}\" target=\"_blank\">{$link_text}</a></td></tr>"; echo $output; } ?> </tbody> </table> </section> </body> </html> <?php // 5. Close connection if (isset($connection)) {
<label for="status">Status:</label> <input type="text" name="status" size="80" /><br /> </fieldset> <fieldset> <input type="submit" name="submit" value="Update Status" /> </fieldset> </form> </div> <h2>Status News Feed</h2> <div id="usersdisplay"> <?php while ($user_data = mysqli_fetch_assoc($result_set)) { $status = $user_data['status']; $profileid = $user_data['user_id']; $first_name = $user_data['firstname']; $last_name = $user_data['lastname']; $user_status_pic = get_web_path_tn($user_data['userPic']); $fullname = $_SESSION['firstname'] . " " . $_SESSION['lastname']; $output = "<div class=\"statuscont\">\n\t\t\t\t\t<div class=\"statusprofpic\">\n\t\t\t\t\t<a href=\"profile.php?profileid={$profileid}\"><img class=\"statusimg\" src=\"{$user_status_pic}\" width=\"50\" /></a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"statustext\">\n\t\t\t\t\t<p class=\"bold\">" . $first_name . " " . $last_name . "</p>\n\t\t\t\t\t<p>" . $status . "</p></div>\n\t\t\t\t\t<br class=\"clearfloat\" />\n\t\t\t\t\t<div class=\"commentbox\">\n\t\t\t\t\t<label>" . $fullname . "</label>\n\t\t\t\t\t<textarea class=\"commenttextarea\" name\"comment\" value\"Write a comment here ... \"/>\n\t\t\t\t\tWrite a comment ....</textarea>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>"; echo $output; } ?> <br class="clearfloat" /> </div> <br class="clearfloat" /> <!-- end #mainContLeft --></div> <!-- end #mainContent --></div> <br class="clearfloat" /> <?php include "includes/footer.php"; ob_flush();