-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
150 lines (128 loc) · 5.19 KB
/
profile.php
File metadata and controls
150 lines (128 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
//enable this when finished
//error_reporting(0);
session_start();
if(!isset($_SESSION['login_user'])) {
header("location: index.php");
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/logout.js"></script>
<script src="js/render.js"></script>
<script src="js/posting.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyA_VTS6otdV5SUrMIEtkCk189jKBkq4QW8" async defer></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0; }
#map { height: 100%; }
</style>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="css/posting.css">
<link rel="stylesheet" href="css/friends.css">
</head>
<body>
<header>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<div class="navbar-brand" style="margin-left:300px;">Free Time App</div>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="profile.php">Home</a></li>
<!--<li><a href="preferences.php">Preferences</a></li>-->
<!--<li><a href="#" id="logout">Logout</a></li> -->
</ul>
<ul class="nav navbar-nav navbar-right" style="margin-right:300px;">
<!--<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>-->
<li><a href="preferences.php">Preferences</a></li>
<li><a href="#" id="logout"><span class="glyphicon glyphicon-log-out"></span>Logout</a></li>
</ul>
</div>
</nav>
</header>
<div class="container" id="container">
<div class="col-sm-3" style="margin-right:10px;">
<div class="row">
<div class="UserProfile">
<h3> Profile </h3>
<label id="lbl-username"></label>
</div>
</div>
<div class="row">
<div class="friend_content">
<div class="friend_list">
<h3>Friends</h3>
</div>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" id="btn-add-friend">+
</button>
<ul class="dropdown-menu">
<label style="color:grey; margin-left:5px;">Your 6 digit id is: <span id="user_id"><button id="show-id">SHOWID</button></span></label>
<br/>
<div style="text-align:center;" id="add-friend-code">
<input type="text" id="friend_code" placeholder="Enter 6 digit Friend ID here" size="30"><br>
</div>
<label id="error-msg" style="float:left; margin-left:12px; color:red; font-weight:normal;"></label>
<div style="float:right; margin-right:12px; display:inline;" id="add-friend-div">
<button type="button" class ="btn btn-success btn-xs" id="add_friend">Submit</button>
</div>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="new_posting">
<form>
<textarea name="posting_textbox" id="posting_textarea" maxlength="200" cols="64" rows="3"></textarea>
</br>
<td><span class="word_cnt">200</span></td>
<!--<input type="button" id="submit_post" value="Post">-->
<button class="btn btn-success btn-xs" id="submit_post" style="float:right" value="Post">Post</button>
</form>
</div>
<div class="posts" id="posts">
<!-- Posts are generated here -->
</div>
</div>
</div>
<div class="bgCover"> </div>
<!-- overlay box -->
<div class="OverlayBox">
<div class="overlayContent">
<!--normal content-->
<div style="height:100%; width:100%;">
<div id="overlay_div"></div>
<button class="btn btn-primary active" id="close_map_btn" style="float: right">Close</button>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog" style="margin-top:300px; margin-bottom:300px;">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="modal-close">×</button>
<h4 class="modal-title" style="font-weight:bold">People going to this hangout</h4>
</div>
<div class="modal-body" id="modal-body">
</div>
</div>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-77391723-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>