0% found this document useful (0 votes)
47 views

Header Start Here

The document contains code for the header, navigation bar, contact section, and footer of a social networking website. The navigation bar includes links for home, view friend requests, view friends, add posts, search friends, and update profile. The contact section displays the user's posts and includes the user name, description, image, and option to protect the post. It loops through the posts and displays the information. The footer contains text about privacy and controls for photo sharing on social networks.

Uploaded by

harshitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Header Start Here

The document contains code for the header, navigation bar, contact section, and footer of a social networking website. The navigation bar includes links for home, view friend requests, view friends, add posts, search friends, and update profile. The contact section displays the user's posts and includes the user name, description, image, and option to protect the post. It loops through the posts and displays the information. The footer contains text about privacy and controls for photo sharing on social networks.

Uploaded by

harshitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

<!

--header start here-->


<!-- NAVBAR
================================================== -->
<div class="header">
<div class="fixed-header">
<div class="navbar-wrapper">
<div class="container">
<nav class="navbar navbar-inverse navbar-
static-top">
<div class="navbar-header">
<button type="button"
class="navbar-toggle collapsed"
data-toggle="collapse" data-
target="#navbar"
aria-expanded="false" aria-
controls="navbar">
<span class="sr-only">Toggle
navigation</span> <span
class="icon-
bar"></span> <span class="icon-bar"></span> <span
class="icon-
bar"></span>
</button>

</div>
<div id="navbar" class="navbar-collapse
collapse">
<nav class="cl-effect-1">
<ul class="nav navbar-nav">

<li><a
href="userhome.jsp"> <span data-hover="Home">Home</span></a></li>

<li><a
href="viewfriendrequests.jsp"> <span
data-
hover="About">View Friend Request</span></a></li>

<li><a
href="viewfriends.jsp"> <span data-hover="Home">View

Friends</span></a></li>

<li><a href="wall.jsp">
<span data-hover="Home">Add

Posts</span></a></li>

<li><a
href="searchfriends.jsp"> <span
data-
hover="Home">Search Friends</span></a></li>

<li><a
href="updateprofile.jsp"> <span
data-
hover="About">Update Profile</span></a></li>

<li><a
href="logout.jsp"> <span data-hover="Home">Logout</span></a></li>
</ul>
</nav>
</div>
</nav>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>

<!--contact start here-->


<div class="contact" id="Contact">
<div class="contact-bg">
<div class="container">
<div class="contact-main">
<div class="contact-top">

<%
String status=request.getParameter("status");

if (status!= null) {
%>
<h3><%=status%></h3>
<%
} else {
%>
<h3>View Posts</h3>
<%
}
%>

</div>

<table id="customers">
<tr>
<th>User Name</th>
<th>Description</th>
<th>Image</th>
<th>Protect</th>
<tr />

<%
//filtering starts here

Set<String>
friends=DAO.getMyFriendsIds((String)request.getSession().getAttribute("userna
me"));

List<Post> posts=DAO.getPosts(friends);

Iterator<Post> it=posts.iterator();
while(it.hasNext())
{
Post post=it.next();

String textBody=post.getDescription();

%>
<tr>
<td><%=post.getPostedBy()%></td>
<td><%=post.getDescription()%></td>
<td><img
src="<%="./uploads/"+post.getImage()%>"
alt="not found" height="150"
width="150" /></td>
<td>
<%

if(post.getPostedBy().equals((String)request.getSession().getAttribute(
"username")))
{
%>
<form action="UpdatePost"
method="post">
<input type="hidden"
name="postid"

value="<%=post.getPostId()%>"> <input type="checkbox"


value="yes"
name="protect">Protect
<div class="con-send">
<input
type="submit" value="post" />
</div>
</form> <%
}
%>
</td>
<tr />
<%
}
%>
</table>

<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<!--contact end here-->

<!--footer start here-->


<div class="footer">
<div class="container">
<div class="footer-main">
<div class="footer-left">
<font color="white">My Privacy My Decision:
Control Of Photo
Sharing On Online Social Networks</font>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element
id
containerHoverID: 'toTopHover', // fading
element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/

$().UItoTop({
easingType : 'easeOutQuart'
});

});
</script>

</div>
</div>
<!--footer end here-->
</body>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy