PageRenderTime 25ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/ajax/output_fns.php

https://github.com/kanro001/xnote
PHP | 819 lines | 805 code | 14 blank | 0 comment | 21 complexity | 0a1ecbe0bc2fd912dbec4a85fcb1f597 MD5 | raw file
  1<?php
  2function do_html_header_register($title){
  3	if(!isset($title)){
  4		$title="Ourbond";
  5	}
  6	?>
  7<html>
  8<head>
  9	<title><?php echo $title;?></title>
 10	<link id="css" href="css/html.css" rel="stylesheet" type="text/css"/>
 11	<script type="text/javascript" src="js/register.js"></script>
 12</head>
 13<body>
 14	<div id="header" class="header">
 15		<table>
 16			<tr>
 17				<td align="left">
 18					<img src="img/logo.jpg" alt="OurBond Logo"/>
 19				</td>
 20				<td>
 21					<ul>
 22						<li>Share your mind with your friends.</li>
 23						<li>See what other users discuss.</li>
 24						<li>Find your "Bond" and post in it.</li>
 25					</ul>
 26				</td>
 27			</tr>
 28		</table>
 29	</div>
 30	<div id="main">
 31<?php
 32} 
 33function do_html_header($title){
 34	if(!isset($title)){
 35		$title="Ourbond";
 36	}
 37?>
 38<html>
 39<head>
 40	<title><?php echo $title;?></title>
 41	<link id="css" href="css/html.css" rel="stylesheet" type="text/css"/>
 42	<script type="text/javascript" src="js/member.js" ></script>
 43	<script type="text/javascript" src="js/member_bonds.js"></script>
 44	<script type="text/javascript" src="js/more_stories.js"></script>
 45	<script type="text/javascript" src="js/group.js"></script>
 46	<script type="text/javascript" src="js/changePassword.js"></script>
 47</head>
 48<body onload="move()">
 49	<div id="header" class="header">
 50		<table>
 51			<tr>
 52				<td align="left">
 53					<img src="img/logo.jpg" alt="OurBond Logo"/>
 54				</td>
 55				<td>
 56					<ul>
 57						<li>Share your mind with your friends.</li>
 58						<li>See what other users discuss.</li>
 59						<li>Find your "Bond" and post in it.</li>
 60					</ul>
 61				</td>
 62			</tr>
 63		</table>
 64	</div>
 65	<div id="main">
 66<?php	
 67}
 68
 69function do_html_header_login_form($title){
 70	if(!isset($title)){
 71		$title="Ourbond";
 72	}
 73?>
 74<html>
 75<head>
 76	<title><?php echo $title;?></title>
 77	<link id="css" href="css/html.css" rel="stylesheet" type="text/css">
 78	<script type="text/javascript" src="js/register.js"></script>
 79	
 80	
 81	</script>
 82</head>
 83<body>
 84	<div id="login_header" class="header">
 85		<form method="post" action="member.php" name="login_header">
 86			<table>
 87				<tr>
 88					<td rowspan="3" valign="middle">
 89						<a href="../wangwen/main.php"><img src="img/logo.jpg" alt="OurBond Logo"/></a>
 90					</td>
 91					<td width = "600"></td>
 92					<td align="left">
 93						Email:
 94					</td>
 95					<td align="left">
 96						Password:
 97					</td>
 98					<td></td>
 99				</tr>
100				<tr>
101					<td width = "600"></td>	
102					<td><input type="text" name="login_email"/></td>
103					<td><input type="password" name="passwd"/></td>
104					<td><input type="submit" value="Log in"/></td>
105				</tr>
106				<tr>
107					<td width = "500"></td>
108					<td><input type="checkbox" name="logsetting"/>Keep me log in</td>
109					<td><a href="forgot_form.php">Forgot your password?</a></td>
110					<td></td>
111				</tr>
112			</table>
113		</form>
114	</div>
115	<div id ="main">
116<?php 
117}
118function do_login_form($error){
119	if(!isset($error)){
120		$error="It's free and always be.";
121	}
122?>
123	<div id="login_form" class="form">
124		<form method="post" action="member.php" name="login_form">
125			<table>
126				<tr>
127					<td rowspan="2" width="500">
128						<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
129					</td>
130					<td rowspan="3" width="50"></td>
131					<td colspan="2" width="400">
132						<h2>Sign In:</h2>
133					</td>
134				</tr>
135				<tr>
136					<td colspan="2">
137						<h3><?php echo $error;?></h3>
138					</td>
139				</tr>
140				<tr>
141					<td>
142						<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
143					</td>
144					<td>
145						<table>
146							<tr>
147								<td align="right" width="150">
148									Email:
149								</td>
150								<td width="250"><input type="text" name="email"  size="30" maxlength="100"/></td>
151							</tr>
152							<tr>
153								<td align="right">
154									Password:
155								</td>
156								<td><input type="password" name="passwd"  size="30" maxlength="100"/></td>
157							</tr>
158							<tr>
159								<td></td>
160								<td><input type="checkbox" name="logsetting"/>Keep me log in</td>
161							</tr>
162							<tr>
163								<td></td>
164								<td><input type="submit" value="Log in"/>
165								or <a href="register_form.php">Sign up for OurBond</a>
166								</td>
167							</tr>
168							<tr>
169								<td></td>
170								<td><a href="forgot_form.php">Forgot your password?</a></td>
171							</tr>
172						</table>
173					</td>
174				</tr>
175			</table>
176		</form>
177	</div>
178<?php	
179}
180function do_forgot_form($error){
181	if(!isset($error)){
182		$error="It's free and always be.";
183	}
184	?>
185	<div id="login_form" class="form">
186		<form method="post" action="forgot_password.php" name="forgotpassword_form">
187			<table>
188				<tr>
189					<td rowspan="2" width="500">
190						<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
191					</td>
192					<td rowspan="3" width="50"></td>
193					<td colspan="2" width="400">
194						<h2>Retrieve Password:</h2>
195					</td>
196				</tr>
197				<tr>
198					<td colspan="2">
199						<h3><?php echo $error;?></h3>
200					</td>
201				</tr>
202				<tr>
203					<td>
204						<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
205					</td>
206					<td>
207						<table>
208							<tr>
209								<td align="right" width="150">
210									Email:
211								</td>
212								<td width="250"><input type="text" name="user_email"  size="30" maxlength="100"/></td>
213							</tr>
214							<tr>
215								<td align="right" width="150">
216									First name:
217								</td>
218								<td width="250"><input type="text" name="firstname"  size="30" maxlength="100"/></td>
219							</tr>
220							<tr>
221								<td align="right" width="150">
222									Last name:
223								</td>
224								<td width="250"><input type="text" name="lastname"  size="30" maxlength="100"/></td>
225							</tr>
226							<tr>
227								<td></td>
228								<td><input type="submit" value="Submit"/>
229								or <a href="register_form.php">Sign up for OurBond</a>
230								</td>
231							</tr>
232						</table>
233					</td>
234				</tr>
235			</table>
236		</form>
237	</div>
238<?php	
239}
240function do_changepassword_form($error, $name, $user_id){
241	if(!isset($error)){
242		$error="It's free and always be.";
243	}
244	if(!isset($name)){
245		$name="Impossible";
246	}
247	if(!isset($user_id)){
248		$user_id=7;
249	}
250	?>
251	<div id="changepassword_form" class="form">
252		<form method="post" action="change_password.php" name="changepassword_form">
253			<table>
254				<tr>
255					<td rowspan="2" width="500">
256						<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
257					</td>
258					<td rowspan="3" width="50"></td>
259					<td colspan="2" width="400">
260						<h2>Change Password:</h2>
261					</td>
262				</tr>
263				<tr>
264					<td colspan="2">
265						<h3><?php echo $error;?></h3>
266					</td>
267				</tr>
268				<tr>
269					<td>
270						<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
271					</td>
272					<td>
273						<table>
274							<tr>
275								<td align="right" width="150">
276									Name:
277								</td>
278								<td><input type="text" size="30" disabled value="<?php echo $name?>"/></td>
279							</tr>
280							<tr>
281								<td align="right" width="150">
282								</td>
283								<td><input type="text" size="30" name="user_id" hidden="hidden" value="<?php echo $user_id?>"/></td>
284							</tr>
285							<tr>
286								<td align="right" width="150">
287									Old Password:
288								</td>
289								<td><input type="password" name="oldpassword"  size="30" maxlength="100"/></td>
290							</tr>
291							<tr>
292								<td align="right" width="250">
293									New Password:
294								</td>
295								<td><input type="password" name="newpassword"  size="30" maxlength="100"/></td>
296							</tr>
297							<tr>
298								<td align="right">
299									Re-enter password:
300								</td>
301								<td><input type="password" name="re-password"  size="30" maxlength="100"/></td>
302							</tr>
303							<tr>
304								<td></td>
305								<td><input type="submit" value="Submit"/>
306								or <a href="register_form.php">Sign up for OurBond</a>
307								</td>
308							</tr>
309							<tr>
310								<td></td>
311								<td><a href="forgot_form.php">Forgot your password?</a></td>
312							</tr>
313						</table>
314					</td>
315				</tr>
316			</table>
317		</form>
318	</div>
319<?php	
320}
321function do_register_form($error){
322	if(!isset($error)){
323		$error="It's free and always be.";
324	}
325?>
326	<div id="register_form" class="form">
327		<form method="post" action="register_new.php" name="register_form">
328			<table>
329				<tr>
330					<td rowspan="2" width="500">
331						<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
332					</td>
333					<td rowspan="12" width="50"></td>
334					<td colspan="2" width="400">
335						<h2>Sign Up</h2>
336					</td>
337				</tr>
338				<tr>
339					<td colspan="2">
340						<h3><?php echo $error;?></h3>
341					</td>
342				</tr>
343				<tr>
344					<td rowspan="10">
345						<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
346					</td>
347					<td align="right" width="150">
348						<label for="firstname">First Name:</label>
349					</td>
350					<td width="250">
351						<input id="firstname" type="text" name="firstname" size="25" maxlength="100"/>
352						<span id="firstnameSpan"></span>
353					</td>
354				</tr>
355				<tr>
356					<td align="right">
357						<label for="lastname">Last Name:</label>
358					</td>
359					<td>
360						<input type="text" id="lastname" name="lastname" size="25" maxlength="100"/>
361						<span id="lastnameSpan"></span>
362					</td>
363				</tr>
364				<tr>
365					<td align="right">
366						<label for="email">Your Email:</label>
367					</td>
368					<td>
369						<input type="text" id="email" name="email" size="25" maxlength="100"/>
370						<span id="emailSpan"></span>
371					</td>
372				</tr>
373				<tr>
374					<td align="right">
375						<label for="re_email">Re-enter Email:</label>
376					</td>
377					<td>
378						<input type="text" id="re_email" name="re_email" size="25" maxlength="100"/>
379						<span id="re_emailSpan"></span>	
380					</td>
381				</tr>
382				<tr>
383					<td align="right">
384						<label for="password">New Password:</label>
385					</td>
386					<td>
387						<input type="password" id="password" name="password" size="25" maxlength="100"/>
388						<span id="passwordSpan"></span>	
389					</td>
390				</tr>
391				<tr>
392					<td align="right">
393						<label for="re_password">Re-enter Password:</label>
394					</td>
395					<td>
396						<input type="password" id="re_password" name="re_password" size="25" maxlength="100"/>
397						<span id="re_passwordSpan"></span>	
398					</td>
399				</tr>
400				<tr>
401					<td align="right">
402						<label for="sex">I am:</label>
403					</td>
404					<td>
405						<select name="sex" id="sex">
406							<option value="Show" disabled="disabled">Select Sex:</option>
407							<option value="Female">Female</option>
408							<option value="Male">Male</option>
409						</select>
410						<span id="sexSpan"></span>
411					</td>
412				</tr>
413				<tr>
414					<td align="right">
415						<label for="birthday">Birthday:</label>
416					</td>
417					<td>
418						<table id="birthday">
419							<tr>
420								<td>
421									<select name="year" id="year" onmouseover="year_birthday()">
422										<option value="show" disabled="disabled">Year:</option>
423										
424									</select>
425								</td>
426								<td>
427									<select name="month" id="month" onmouseover="month_birthday()">
428										<option value="show" disabled="disabled">Month:</option>
429									</select>
430								</td>
431								<td>
432									<select name="day" id="day" onmouseover="day_birthday()">
433										<option value="show" disabled="disabled">Day:</option>
434									</select>
435								</td>
436							</tr>
437						</table>
438						<span id="birthdaySpan"></span>
439					</td>
440				</tr>
441				<tr>
442					<td></td>
443					<td>By clicking Sign Up, you agree to our 
444						<a href="privacy/privacy.php">Terms</a> and that you have read and understand our 
445						<a href="privacy/privacy.php">Privacy &amp; Terms</a>.</td>
446				</tr>
447				<tr>
448					<td></td>
449					<td align="center"><input type="submit" value="Sign Up"></td>
450				</tr>
451			</table>
452		</form>
453	</div>
454<?php
455}
456function do_html_profile_form($photo, $firstname, $lastname, $sex, $birthday, $uid, $ispublic){
457	if($_SESSION['valid_user'] == $uid){
458?>
459	<div id="profile_form" class="form">
460	<table>
461	<tr>
462	<td rowspan="2" width="500">
463	<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
464	</td>
465	<td rowspan="3" width="50"></td>
466	<td colspan="2" width="400">
467	<h2><?php echo $_SESSION['username']?></h2>
468						</td>
469					</tr>
470					<tr>
471						<td colspan="2">
472							<h3><i>Welcome to Ourbond.info</i></h3>
473						</td>
474					</tr>
475					<tr>
476						<td>
477							<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
478						</td>
479						<td>
480							<table>
481								<tr>
482									<td rowspan="4">
483										<img alt="<?php $_SESSION['username']?>" src="<?php echo $photo;?>"/>
484									</td>
485									<td rowspan="7" width="50"></td>
486									<td><i>First Name: </i></td>
487								</tr>
488
489								<tr>
490									<td><b><?php echo $firstname;?></b></td>
491								</tr>
492								<tr>
493									<td><i>Last Name: </i></td>
494								</tr>
495								<tr>
496									<td><b><?php echo $lastname;?></b></td>
497								</tr>
498								<tr>
499									<td id="privacy_setting">
500										<i>Privacy Setting: </i>
501									</td>
502									<td>
503										<form method="POST" action="privacy_setting.php">
504										<select name="setting" id="setting">
505										
506											<option value="Private" <?php if($ispublic==0) echo "selected";?>>Private</option>
507											<option value="Public" <?php if($ispublic==1) echo "selected";?>>Public</option>
508										</select>
509										<input type="submit" value="Change" ></input>
510										</form>
511									</td>
512								</tr>
513								<tr>
514									<td><i>Gender:</i></td>
515									<td><b><?php echo  $sex;?></b></td>
516								</tr>
517								<tr>
518									<td><i>Birth day:</i></td>
519									<td><b><?php echo $birthday?></b></td>
520								</tr>
521							</table>
522						</td>
523					</tr>
524				</table>
525		</div>	
526<?php		
527	}else{
528?>
529	<div id="profile_form" class="form">
530	<table>
531	<tr>
532	<td rowspan="2" width="500">
533	<h2>OurBond help you share <b>Knowledge</b>, <b>interest</b> and <b>life</b> with your friends and even strangers.</h2>
534	</td>
535	<td rowspan="3" width="50"></td>
536	<td colspan="2" width="400">
537	<h2><?php echo $_SESSION['username'];?></h2>
538						</td>
539					</tr>
540					<tr>
541						<td colspan="2">
542							<h3><i>Welcome to Ourbond.info</i></h3>
543						</td>
544					</tr>
545					<tr>
546						<td>
547							<img src="img/pic.jpg" alt="Knowledge bonds everyone." width="500"/>
548						</td>
549						<td>
550							<table>
551								<?php 
552									if($ispublic == 0){
553										echo "<tr><td><b>This user's privacy setting is \"Private\".<br>
554										So you are not able to see its profile.</b></td></tr>";}
555										else{
556								?>
557								<tr>
558									<td rowspan="4">
559										<img alt="<?php echo $firstname." ".$lastname;?>" src="<?php echo $photo;?>"/>
560									</td>
561									<td rowspan="7" width="50"></td>
562									<td><i>First Name: </i></td>
563								</tr>
564
565								<tr>
566									<td><b><?php echo $firstname;?></b></td>
567								</tr>
568								<tr>
569									<td><i>Last Name: </i></td>
570								</tr>
571								<tr>
572									<td><b><?php echo $lastname;?></b></td>
573								</tr>
574								<tr>
575									<td></td>
576									<td></td>
577								</tr>
578								<tr>
579									<td><i>Gender:</i></td>
580									<td><b><?php echo  $sex;?></b></td>
581								</tr>
582								<tr>
583									<td><i>Birth day:</i></td>
584									<td><b><?php echo $birthday?></b></td>
585								</tr>	
586								<?php		
587								}
588								?>
589
590							</table>
591						</td>
592					</tr>
593				</table>
594		</div>		
595<?php	
596	}	
597}
598function do_html_footer(){
599?>
600	</div>
601	<div id="footer">
602		<a href="#">Privacy &amp; Terms</a> - 
603		<a href="#">Help</a> - 
604		<a href="#">About OurBond</a>
605	</div>
606</body>
607</html>
608<?php
609} 
610function do_member_item_h($bond_name, $username, $post_content, $post_time, $post_count, $user_id){
611	if(!isset($bond_name)){
612		$bond_name = "Bond";
613	}
614	if(!isset($username)){
615		$username = "Mr. Bond";
616	}
617	if(!isset($post_content)){
618		$post_content = "How are your guys doing today?";
619	}
620?>
621<hr/>
622<div id="member_item">
623	<fieldset id="member_item_bond">
624	<legend id="member_item_bond_name">
625		<?php 
626			echo $bond_name;
627		?>
628	</legend>
629	
630	<div id="member_post">
631			<label class="item_username" for="post_content">
632			<a href="profile.php?uid=<?php echo $user_id;?>"><?php echo "<b>".$username.": </b>";?></a>
633			</label>
634			<div id="post_content">
635				<?php 
636				echo $post_content." (".$post_time.")";
637				?>
638			</div>
639	</div>
640	<div id="2<?php echo $post_count;?>">
641	
642<?php 
643}
644function do_member_item_m($username, $comment_content, $comment_time, $comment_user_id){
645//can be recuring
646	if(!isset($username)){
647		$username = "Mr. Bond";
648	}
649	if(!isset($comment_content)){
650		$comment_content = "I'm fine. And you?";
651	}
652?>
653		<div id="member_comment">
654			<a href="profile.php?uid=<?php echo $comment_user_id;?>"><?php echo "<b>".$username.": </b>";?></a>
655				<?php echo $comment_content." (".$comment_time.")";?>
656		</div>
657	
658<?php 
659}
660function do_member_item_f($user_id, $username, $post_id, $post_count){
661	if(!isset($username)){
662		$username = "Mr. Bond";
663	}
664?>
665	</div>
666	<div id="member_new_comment">
667		<label id="new_comment_username" for="member_comment_input">
668			<a href="profile.php?uid=<?php echo $_SESSION['valid_user'];?>"><?php echo "<b>".$username.": </b>";?></a>
669		</label>
670		<input type="text" id="1<?php echo $post_count;?>" name="member_comment_input" 
671		onkeydown="sendComment(<?php echo $user_id?>,1<?php echo $post_count?>, <?php echo $post_id?>, 2<?php echo $post_count?>)"/>
672	</div>
673	</fieldset>
674</div>
675<?php 
676}
677function do_member_group_h(){
678?>
679<div id="member_bonds">
680<fieldset>
681	<legend>
682		My Bonds
683	</legend>
684	<ul id="bonds_menu">
685	<li class="bonds_item">
686		<i>Groups</i>
687		<ul id="bonds_groups" class="bonds_options">	
688<?php 
689}
690function do_member_group_m1($group_id, $group_name){
691	if(!isset($group_id)){
692		$group_id = "0";
693	}
694	if(!isset($group_name)){
695		$group_name = "Bond";
696	}
697?>
698			<li>
699				<?php 
700					echo "<a href=\"#\" onmouseover=\"show()\" onclick=\"toGroup(".$group_id.")\">".$group_name."</a>";
701				?>
702			</li>
703
704<?php 
705}
706function do_member_group_m(){
707?>
708		</ul>
709	</li>
710	<li class="item">
711		<i>Circles</i>
712		<ul id="bonds_circles" class="bonds_options">
713<?php 
714}
715function do_member_group_m2($circle_id, $circle_name){
716	if(!isset($circle_id)){
717		$circle_id="0";
718	}
719	if(!isset($circle_name)){
720		$circle_name="Bond";
721	}
722?>
723			<li>
724					<?php 
725						echo "<a href=\"#\" onclick=\"toGroup(".$circle_id.")\">".$circle_name."</a>";
726					?>
727			</li>
728<?php 
729}
730function do_member_group_f(){
731?>
732		</ul>
733	</li>
734	</ul>
735	</fieldset>
736</div>
737<div id="member_items">
738<div id="member_items_content">
739<?php 
740}
741function do_member_recommendation($user_id, $groups, $circles){
742?>
743</div>
744<br/>
745<br/>
746<div id="more_stories" onclick="more()">
747	<img width="570px" id= "more_stories_img" src="img/more_stories.png"/>
748</div>
749
750</div>
751<div id="member_recommendations">
752	
753	<div id="create_menu" >
754		<fieldset>
755			<legend>
756				Create a new Group?
757			</legend>
758			<div>
759			<a href="../wangwen/create_group.php"><img width="150px" src="img/new_bond.png"/></a>
760			</div>
761		</fieldset>
762	</div>	
763	<fieldset>
764		<legend>Recommendation:</legend>
765		<table>
766			<tr>
767				<td colspan="2"><strong>Top 10 Groups</strong></td>
768			</tr>
769			<tr>
770				<td>
771					<i>Group</i>
772				</td>
773				<td>
774					<i>Posts</i>
775				</td>
776			</tr>
777			<?php 
778				if(isset($groups) && $groups !== "")
779					foreach ($groups as $group)
780					echo "<tr><td><a href=\"#\" onmouseover=\"show()\" onclick=\"toGroup(".$group[0].")\">".$group[1]."</a></td><td>".$group[2]."</td></tr>";
781			?>
782			<tr>
783				<td colspan="2"><strong>Top 10 Circles</strong></td>
784			</tr>
785			<tr>
786				<td>
787					<i>Circle</i>
788				</td>
789				<td>
790					<i>Posts</i>
791				</td>
792			</tr>
793			<?php 
794				if(isset($circles) && $circles !== "")
795					foreach ($circles as $circle)
796						echo "<tr><td><a href=\"cc/group.php?uid=".$user_id."&gid=".$circle[0]."\">".$circle[1]."</a></td><td>".$circle[2]."</td></tr>";
797			?>
798		</table>
799	</fieldset>
800</div>
801<script type="text/javascript">
802
803</script>
804<?php 
805}
806function do_html_menu(){
807
808?>
809	<div id="member_menu">
810		&nbsp;&nbsp;&nbsp;&nbsp;<a href="../wangwen/main.php">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../wangwen/publicgroups.php">Public Groups</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../wangwen/privategroups.php">Private Groups</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="member.php">Personal Page</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="profile.php?uid=<?php echo $_SESSION['valid_user'];?>">Profile</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="changepassword_form.php">Change Password</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="logout_form.php">Log out</a>
811		&nbsp;&nbsp;&nbsp;
812		Welcome to OurBond.info&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo "<a href=\"profile.php?uid=".$_SESSION['valid_user']."\">".$_SESSION['username']."</a>";?>
813	<br>
814	</div>
815<?php 
816}
817?>
818
819