Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed layout of several pages

  • Loading branch information...
commit e9e3619b450f399e73b4254c0f878caf50079734 1 parent 9f1646d
Sakunthala Panditharatne authored
View
14 add_document.php
@@ -125,8 +125,8 @@ function validForm(obj)
<input type="hidden" name="SubmitForm" value="yes">
<input type="hidden" name="doc_id" value="<?php echo $_REQUEST['doc_id']?>">
-<div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:25px;width:560px;">
- <table cellpadding="4" style="padding:10px;width:540px;border-spacing:0px;color:#5C6A72;">
+<div id="main">
+ <table cellpadding="4" style="padding:10px;border-spacing:0px;">
<tr>
<?
@@ -157,7 +157,7 @@ function validForm(obj)
?>
-<td style="padding-bottom:15px;background: url(/images/menubot.jpg) 0 100% no-repeat;"><img src="images/noadd.gif" style="margin-left:10px;float:left;margin-right:20px;"><h3 style="float:left;color: #5C6A72;font-size:18px;font-weight:normal;">Submit Essay</h3><?php /*print $_SESSION['sess_msg']; session_unregister('sess_msg');*/ $sess_msg='';?></td>
+<td style="padding-bottom:15px;"><div id="subheading">Submit Essay</div><?php /*print $_SESSION['sess_msg']; session_unregister('sess_msg');*/ $sess_msg='';?></td>
</tr>
<tr>
@@ -178,20 +178,20 @@ function validForm(obj)
<? }else{ ?>
- <td colspan=2 style="padding-bottom:15px;background: url(/images/menubot.jpg) 0 100% no-repeat;"><img src="images/adddoc.gif" style="margin-left:10px;float:left;margin-right:20px;"><h3 style="float:left;color: #5C6A72;font-size:18px;font-weight:normal;">Submit Essay</h3><?php /*print $_SESSION['sess_msg']; session_unregister('sess_msg');*/ $sess_msg='';?></td>
+ <td colspan=2 style="padding-bottom:15px"><div id="subheading">Submit Essay</div><?php /*print $_SESSION['sess_msg']; session_unregister('sess_msg');*/ $sess_msg='';?></td>
</tr>
<tr>
- <td width="200px" align="right" class="black_txt" style="padding-top:25px;background-color:#D6EAF3;">Your Essay Title <span class="orange_txt"></span></td>
+ <td width="300px" align="right" class="black_txt" style="padding-top:25px;">Your Essay Title <span class="orange_txt"></span></td>
<td align="left" style="padding-top:25px"><input type="text" name="title" value="<?php echo ucwords($result_document['doc_title']);?>" size="58" class="input_box">
</td>
</tr>
<tr>
- <td width="200px" align="right" class="black_txt" style="background-color:#D6EAF3;">Copy &amp; Paste Essay<span class="orange_txt"></span></td>
+ <td width="300px" align="right" class="black_txt">Copy &amp; Paste Essay<span class="orange_txt"></span></td>
<td align="left"><textarea name="doc_content" rows="20" cols="60" class="input_box"><?php echo $result_document['doc_content'];?></textarea>
</td>
</tr><br><br>
@@ -209,7 +209,7 @@ function validForm(obj)
{
?>
<?php }?>
- <tr><td style="background-color:#D6EAF3;">&nbsp;</td><td align="left"><input type="submit" value="Submit"></td></tr>
+ <tr><td>&nbsp;</td><td align="left"><input type="submit" value="Submit"></td></tr>
<? } ?>
</table>
</div>
View
1  all_document_list.php
@@ -1,3 +1,4 @@
+//admin page, no design done here
<?
session_start();
require_once("config/config.inc.php");
View
2  comments.php
@@ -1,3 +1,5 @@
+//is this page ever used??
+
<?php session_start();
require_once("config/config.inc.php");
require_once("config/functions.inc.php");
View
1  content.php
@@ -1,3 +1,4 @@
+//another non-used page??
<?php
include("config/config.inc.php");
include("config/functions.inc.php");
View
1  css/style.css
@@ -49,6 +49,7 @@ a:active {color:#99173C;text-decoration:none;font-weight: bolder;}
border-radius: 10px;
}
#navigation, #footer{
+ clear:both;
margin-left:auto;
margin-right:auto;
background-color:#555152;
View
1  feature_document.php
@@ -1,3 +1,4 @@
+//old page, probably no longer used
<?php session_start();
require_once("config/config.inc.php");
require_once("config/functions.inc.php");
View
BIN  icons/comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/thumps_down.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/thumps_up.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/upload.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/user.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  icons/view.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1  left.inc.php
@@ -1,3 +1,4 @@
+//not used on new site
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="9" height="9" align="right" valign="top"><img src="images/box_left_upper.gif" width="9" height="9"></td>
View
1  left_menu.inc.php
@@ -1,3 +1,4 @@
+//not used on new website
<link href="../css/style.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
View
36 login.php
@@ -76,9 +76,13 @@ function validate_form(obj) {
<body>
<div class="container">
<?php include("header.inc.php")?>
- <table class="content" style="margin-bottom:70px">
- <tr>
- <td>
+<div id="sidebar">
+<div id="topdoc">Help</div>
+<br>
+<a href="register.php">I want to sign up!</a><br /><br /><a href="lost_password.php">I forgot my password</a>
+</div>
+
+ <div id = "main">
<!--<div style="float:right;margin-top:10px;margin-right:25px;"><?php include("welnewfea.inc.php")?></div>-->
<form action="login.php" method="post" enctype="multipart/form-data" name="frm" onsubmit="return validate_form(this)">
<input type="hidden" name="submitForm" value="yes">
@@ -86,23 +90,15 @@ function validate_form(obj) {
<input type="hidden" name="referer" value="<?=$_SERVER['HTTP_REFERER']?>">
<input type="hidden" name="back" value="<?php echo $_GET['back'];?>">
<center><span style="color:red"><?php print $_SESSION['sess_msg']; session_unregister('sess_msg'); $sess_msg='';?></span><br/></center>
- <table style="margin-right:auto;margin-left:auto/*20px*/;margin-top:14px;width:370px;border-spacing:10px;border: 1px #999999 solid;color:#5C6A72;">
- <tr>
- <td rowspan=2 style="background-color:#D6EAF3;padding:8px;">
- <h3 style="font-size:18px;font-weight:normal;text-align:left;margin-bottom:0px;margin-top:0px;">Login</h3><br />
- New User?<br /><a href="register.php">Sign Up!</a><br /><br /><a href="lost_password.php">I forgot my password</a>
- </td>
- <td>Username</td>
- <td><input type="text" name="username" size="17" class="input_box"/></td>
- </tr>
- <tr>
- <td>Password</td>
- <td align=right><input type="password" name="password" size="17" class="input_box"/><br/><input type="submit" value="Submit" style="margin-top:5px"/></td>
- </tr>
- </table><br /><br /><br /><br />
- </td>
- </tr>
- </table>
+
+<div id="subheading">Login</div><br />
+<center>
+ Username:
+<input type="text" name="username" size="17" class="input_box"/><br><br>
+ Password:
+ <input type="password" name="password" size="17" class="input_box"/><br/><input type="submit" value="Submit" style="margin-top:5px"/>
+</div>
+</center>
<?php include("footer.inc.php")?>
</div>
</body>
View
21 lost_password.php
@@ -60,26 +60,17 @@ function validate_form(obj)
<body>
<div class="container">
<?php include("header.inc.php")?>
- <table class="content" style="margin-bottom:70px">
- <tr>
- <td>
-
+<div id="main">
+<div id="subheading">Lost your password?</div>
<form action="lost_password.php" method="post" enctype="multipart/form-data" name="frm" onsubmit="return validate_form(this)">
<input type="hidden" name="submitForm" value="yes">
<input type="hidden" name="doc_detail" value="<?=$_GET[doc_detail]?>">
<input type="hidden" name="referer" value="<?=$_SERVER['HTTP_REFERER']?>">
- <center><span style="color:red"><?php print $_SESSION['sess_msg']; session_unregister('sess_msg'); $sess_msg='';?></span><br/></center>
- <table style="margin-right:auto;margin-left:auto/*20px*/;margin-top:14px;width:370px;border-spacing:10px;border: 1px #999999 solid;color:#5C6A72;padding:5px;">
- <tr>
- <td style="background-color:#D6EAF3;text-align:center;padding:8px;">Email Address:&nbsp;&nbsp;&nbsp;<input type="text" name="email" size="35" class="input_box"/>&nbsp;&nbsp;<input type="submit" value="Submit" style="margin-top:5px"/></td>
- </tr>
- </table>
- </form>
- <br /><br /><br /><br />
- </td>
- </tr>
- </table>
+ <center><span style="color:red"><?php print $_SESSION['sess_msg']; session_unregister('sess_msg'); $sess_msg='';?></span><br/>
+ Email Address:&nbsp;&nbsp;&nbsp;<input type="text" name="email" size="35" class="input_box"/>&nbsp;&nbsp;<input type="submit" value="Submit" style="margin-top:5px"/>
+</center>
+</div>
<?php include("footer.inc.php")?>
</div>
</body>
View
46 my_account.php
@@ -142,45 +142,33 @@ function validForm(obj)
<div class="container">
<?php include("header.inc.php")?>
-
- <div style="margin-top:15px;">
- <div style="border: 1px #999999 solid;margin-top:14px;margin-left:10px;width:182px;height:400px;float:left">
- <table style="padding:10px;width:180px;height:100%;border-spacing:0px;">
- <tr><td style="background-color:#D6EAF3;" class="black_txt">
+ <div id="sidebar">
<?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_SESSION[uid]))?>
- <h3 style="color: #5C6A72;font-size:18px;font-weight:normal;padding-top:5px;text-align:left">Welcome <?php echo ucwords($get_user_name[0]);?></h3><br><br>
-<center><big>
-To post an essay for review, click<br>"Submit Essay"<br>
-<br><br><br>
-To see your review, click<br>"Latest Comments"
-</big><br><br><br>
+ <div id="topdoc">Welcome <?php echo ucwords($get_user_name[0]);?></div><br>
+To post an essay for review, click "Submit Essay"
+<br>
+To see your review, click "Latest Comments"
+<br>
Your review will normally be posted in less than a day
-<br><br>
-</center>
-
-
- </td></tr>
- </table>
- </div>
+<br>
+</div>
+<div id="main">
+ <div id="subheading">What to do now?</div>
+ <center><span style="color:red"><?php print $_SESSION['sess_msg']; session_unregister('sess_msg'); $sess_msg='';?></span><br/>
- <div style="margin-top:30px;float:left;">
- <center><span style="color:red"><?php print $_SESSION['sess_msg']; session_unregister('sess_msg'); $sess_msg='';?></span><br/></center>
+<a href="add_document.php" alt="Add New Document" title="Submit New Document"><img src="icons/upload.png"><br>Add a new essay</a>
-<a href="add_document.php" alt="Add New Document" title="Submit New Document"><img src="images/adddoctest.jpg" style="clear:left;float:left;margin-left:50px;margin-right:10px;margin-bottom:10px;/*padding-left:20px;padding-bottom:20px;*/"></a>
+<a href="user_latest_comment.php" alt="See The Latest Comments Posted On My Document" title="See Comments On My Essay"><img src="icons/comments.png"><br>Read My Comments</a>
-<a href="user_latest_comment.php" alt="See The Latest Comments Posted On My Document" title="See Comments On My Essay"><img src="images/seecomments.jpg" style="clear:left;float:left;margin-left:50px;margin-right:10px;margin-bottom:10px;/*padding-left:20px;padding-bottom:20px;*/"></a>
+<a href="register.php" alt="Edit Profile" title="Edit My Profile"><img src="icons/user.png"><br>Edit My Profile</a>
-<a href="register.php" alt="Edit Profile" title="Edit My Profile"><img src="images/editprofile.jpg" style="clear:left;float:left;margin-left:50px;margin-right:10px;margin-bottom:10px;/*padding-left:20px;padding-bottom:20px;*/"></a>
+<a href="user_documents.php?user_id=<?=$_SESSION[uid]?>" alt="See My Documents" title="See My Documents"><img src="icons/view.png"><br>View My Documents</a>
+</center>
-
-<a href="user_documents.php?user_id=<?=$_SESSION[uid]?>" alt="See My Documents" title="See My Documents"><img src="images/seedocs.jpg" style="/*padding-left:20px;padding-bottom:20px;*/clear:left;float:left;margin-left:50px;margin-right:10px;margin-bottom:10px;"></a>
-
- </div>
</div>
-<br><br><br><br><br><br><br>
- <div style="clear:left;position:relative;top:15px;background-color:#FFFFFF"><?php include("footer.inc.php")?></div>
+ <?php include("footer.inc.php")?>
</div>
</body>
</html>
View
13 no-plagiarism.php
@@ -27,13 +27,9 @@
<div class="container">
<?php include("header.inc.php")?>
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;">
- <tr>
- <td style="padding:10px" align=left>
-<center>
-<h2>EssayJudge.com has a Zero Tolerance for Plagiarism!</h2>
-</center>
+ <div id="main">
+<div id="subheading">EssayJudge.com has no tolerance for plagiarism!</div>
+<br>
One of the fundamental flaws with posting your essay online to be reviewed is that someone can copy it and turn it in on their own.
<br><br>
<b>Students</b>, here are a few tips to help prove you are the author:
@@ -49,9 +45,6 @@
<li> If he doesn't remember his username/password, ask him to log in from home and add a message to the top of the essay. If he cant, he probably didnt originally post the essay.
</ul>
- </td>
- </tr>
- </table>
</div>
<?php include("footer.inc.php")?>
</div>
View
1  password_recover.php
@@ -1,3 +1,4 @@
+//also probably not used anymore
<?php session_start();
require_once("config/config.inc.php");
require_once("config/functions.inc.php");
View
14 search_result.php
@@ -26,11 +26,9 @@
<body>
<div class="container">
<?php include("header.inc.php")?>
-
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;color:#5C6A72;">
- <tr><td align="left" valign=middle><img src="images/search.gif" style="float:left;margin-bottom:5px;margin-right:0;padding-right:0"><h3 style="float:left;padding-left:0;line-height: 18px;margin-left:10px;">Search Results</h3></td><td align="right" class="blue_txt"> <!-- DOESNT WORK<a href="search_result.php?or=a">Alphabatically</a> | <a href="search_result.php">Recent Essays</a> --><br /><br /></td></tr>
-
+ <div id="main">
+ <div id="subheading">Search Results</div>
+<!-- DOESNT WORK<a href="search_result.php?or=a">Alphabatically</a> | <a href="search_result.php">Recent Essays</a> --><br /><br /></td></tr>
<?php
if($_POST['search_text'])
{
@@ -65,7 +63,7 @@
$bgcolor=="#D6EAF3"?$bgcolor="#ffffff":$bgcolor="#D6EAF3";
?>
- <tr style="background:<?=$bgcolor?>;">
+ <tr>
<td colspan=2 style="padding:10px">
<a href="document_detail.php?doc_id=<?=$line[id]?>" style="font-size:12px"><?php echo $line[doc_title];?></a><br>
<div style="float:left">
@@ -87,15 +85,13 @@
{
?>
<tr align="center">
- <td class="warning">No Results Found Matching Your Search Keyword</td>
+ <td class="warning">no essays to show, yet</td>
</tr>
<?php }?>
</table>
</div>
-<br><br>
-<iframe src="http://www.facebook.com/plugins/like.php?href=www.essayjudge.com&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=verdana&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
<br>
<br>
<?php include("footer.inc.php")?>
View
13 sitemap.php
@@ -26,14 +26,8 @@
<body>
<div class="container">
<?php include("header.inc.php")?>
-
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;color:#5C6A72;">
- <tr style="background:#D6EAF3;">
- <td style="padding:10px">
-
-
-
+ <div id="main">
+
<?php
if(isset($_GET['order_by'])) $order_by=$_GET['order_by'];
$result1=mysql_query("select tbl_document.id,tbl_document.doc_title, avg( distinct tbl_rating.score) as avg_score, date_format(tbl_document.post_date,'%M %e, %Y') as post_date,tbl_user.username,count(tbl_comment.id) as comment_rec from tbl_document inner join tbl_user on (tbl_document.posted_by=tbl_user.id) left join tbl_rating on (tbl_document.id=tbl_rating.document_id) left join tbl_comment on (tbl_document.id=tbl_comment.doc_id) where tbl_document.status=1 $where group by tbl_document.id order by tbl_document.post_date desc");
@@ -48,9 +42,6 @@
<? }
} ?>
- </td>
- </tr>
- </table>
</div>
<?php include("footer.inc.php")?>
</div>
View
1  style.css
@@ -49,6 +49,7 @@ a:active {color:#99173C;text-decoration:none;font-weight: bolder;}
border-radius: 10px;
}
#navigation, #footer{
+ clear:both;
margin-left:auto;
margin-right:auto;
background-color:#555152;
View
35 topdoclist1.inc.php
@@ -1,35 +1,26 @@
-
-<table style="border-spacing:4px;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;">
- <tr>
- <td valign=top>
-<div style="width:130px;background-color:#D6EAF3;border: 1px #999999 solid;color:#5C6A72;margin-bottom:0px;font-size:12px;font-weight:bold;padding:2px;"><center>New Essays</center></div>
+<div id="sidebar">
+<div id="topdoc">Recent Essays</div>
<?php
$h=array();
$sp=mysql_query("select * from tbl_flag where ifnull(flag,0)=0 or flag=0");
-while($doc=mysql_fetch_array($sp)) {
- $h[]=$doc['document_id'];
+while($doc=mysql_fetch_array($sp))
+{
+$h[]=$doc['document_id'];
}
$imp=implode(",",$h);
-if($imp=='') {
- $imp='0';
-}
+if($imp=='')
+$imp='0';
?>
-
-
-<?php
-
+<?php
//following uses ''and posted_by!=3'' to exclude admin from new essays
-
-$res_new_doc=mysql_query("select id,doc_title,posted_by,date_format(post_date,'%M %e') as post_date from tbl_document where id not in ($imp) and status=1 and posted_by!=3 order by id desc limit 0,10 ");
+$res_new_doc=mysql_query("select id,doc_title,posted_by,date_format(post_date,'%M %e') as post_date from tbl_document where id not in ($imp) and status=1 and posted_by!=3 order by id desc limit 0,10 ");
while($line_new_doc=mysql_fetch_array($res_new_doc))
{
?>
-<div style="border-bottom:1px #CCCCCC solid;width:130px;line-height:18px;margin-top:4px;padding-bottom:2px;"><a href="document_detail.php?doc_id=<?=$line_new_doc['id']?>" style="font-size:12px;font-weight:normal;text-decoration:none;"><?php echo htmlentities(ucwords($line_new_doc['doc_title']));?></a>
-<br><center><i><?php echo $line_new_doc['post_date'];?></i></center></div>
+<div id="essaytitle"><a href="document_detail.php?doc_id=<?=$line_new_doc[id]?>"<?php echo ucwords($line_new_doc[doc_title]);?></a>
+<br>
+<div id="date"><?php echo $line_new_doc[post_date];?></div>
<?php }
-
?>
- </td>
- </tr>
-</table>
+</div>
View
10 user_comments.php
@@ -26,10 +26,10 @@
<div class="container">
<?php include("header.inc.php")?>
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;color:#5C6A72;">
+ <div id="main">
+ <table style="padding:10px;">
<tr><td align="left" valign=top><?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_GET[user_id]));?>
- <h3 style="line-height: 18px;text-align:left;margin-left:20px;">Comments by <?php echo ucfirst($get_user_name[0]);?></h3></td><td align="right" class="blue_txt"></td>
+ <div id="subheading">Comments by: <?php echo ucfirst($get_user_name[0]);?></div></td><td align="right" class="blue_txt"></td>
</tr>
<?php
@@ -49,7 +49,7 @@
{
$bgcolor=="#D6EAF3"?$bgcolor="#ffffff":$bgcolor="#D6EAF3";
?>
- <tr style="background:<?=$bgcolor?>;">
+ <tr>
<td colspan=2 style="padding:10px">
<?php $sql_username=mysql_query("select username from tbl_user where id='".$line['comment_by_id']."'");
$post_by=mysql_fetch_array($sql_username);?>
@@ -75,7 +75,7 @@
{
?>
<tr align="center">
- <td class="warning">No Comments for this User</td>
+ <td class="warning">no comments yet</td>
</tr>
<?php }?>
View
10 user_documents.php
@@ -28,10 +28,10 @@
<div class="container">
<?php include("header.inc.php")?>
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;color:#5C6A72;">
+ <div id="main">
+ <table style="padding:10px;width:600px;border-spacing:0px;">
<?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_GET[user_id]));?>
- <tr><td style="text-align:left" valign=top><h3 style="line-height:18px;margin-left:20px;text-align:left"><?php echo ucfirst($get_user_name[0]);?>: Essays</h3></td><td align="right" class="blue_txt"></td></tr>
+ <tr><td style="text-align:left" valign=top><div id="subheading"><?php echo ucfirst($get_user_name[0]);?>: Essays</div></td><td align="right" class="blue_txt"></td></tr>
<?php
$start=0;
@@ -51,7 +51,7 @@
$bgcolor=="#D6EAF3"?$bgcolor="#ffffff":$bgcolor="#D6EAF3";
?>
- <tr style="background:<?=$bgcolor?>;">
+ <tr>
<td colspan=2 style="padding:10px">
<a href="document_detail.php?doc_id=<?=$line[id]?>" style="font-size:12px"><?php echo $line[doc_title];?></a><br>
<div style="float:left;width:220px;">
@@ -85,7 +85,7 @@
{
?>
<tr align="center">
- <td class="warning">No essays for this User</td>
+ <td class="warning">no essays for this user</td>
</tr>
<?php }?>
View
10 user_latest_comment.php
@@ -89,10 +89,10 @@ function close_form()
<div class="container">
<?php include("header.inc.php")?>
- <div style="border: 1px #999999 solid;margin-top:14px;margin-bottom:14px;width:602px">
- <table style="padding:10px;width:600px;border-spacing:0px;color:#5C6A72;">
+ <div id="main">
+ <table style="padding:10px;width:600px;border-spacing:0px;">
<tr><td align="left" valign=top>
- <h3 style="line-height: 18px;text-align:left;margin-left:20px;"><?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_SESSION[uid]));?>Comments on your<?php /*echo $get_user_name[0];*/?> Essays</h3></td><td align="right" class="blue_txt"></td>
+ <div id="subheading"><?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_SESSION[uid]));?>Comments on your<?php /*echo $get_user_name[0];*/?> Essays</div></td><td align="right" class="blue_txt"></td>
</tr>
@@ -117,7 +117,7 @@ function close_form()
{
$bgcolor=="#D6EAF3"?$bgcolor="#ffffff":$bgcolor="#D6EAF3";
?>
- <tr style="background:<?=$bgcolor?>;">
+ <tr>
<td colspan=2 style="padding:10px" class="black_txt">
<div style="float:left;width:250px">
<span class="bold">Essay:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="document_detail.php?doc_id=<?php echo $line[doc_id]?>" style="font-size:12px"><?php echo $line[doc_title];?></a><br />
@@ -148,7 +148,7 @@ function close_form()
{
?>
<tr align="center">
- <td class="warning">No Comments received for your Essays</td>
+ <td class="warning">no comments yet!</td>
</tr>
<?php }?>
View
47 user_profile.php
@@ -31,41 +31,28 @@
<?php
$line=mysql_fetch_array(mysql_query("select tbl_user.id as id,tbl_user.city,tbl_user.zip,date_format(tbl_user.join_date,'%M, %D %Y') as join_date,tbl_user.about_me,date_format(tbl_user.last_activity,'%M, %D %Y') as last_activity,tbl_user.birthday,count(distinct tbl_document.id) as total_document,count(distinct tbl_comment.id) as total_comment,sum(distinct tbl_comment.score) as comment_points,state.name from tbl_user left join tbl_document on (tbl_document.posted_by=tbl_user.id and tbl_document.status=1) left join tbl_comment on (tbl_user.id=tbl_comment.comment_by_id) inner join state on (tbl_user.state=state.id) where tbl_user.id=".$_GET[user_id]." group by tbl_user.id"));
?>
- <div style="margin-top:15px;">
- <div style="border: 1px #999999 solid;margin-top:14px;margin-left:10px;width:212px;float:left;">
- <table style="padding:10px;width:210px;height:100%;border-spacing:0px;">
- <tr><td style="background-color:#D6EAF3;" class="black_txt">
- <h3 style="color: #5C6A72;font-size:18px;font-weight:normal;padding-top:5px;text-align:left;margin-bottom:0px"><?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_GET[user_id]));?><?php echo ucfirst($get_user_name[0]);?></h3>
+ <div id="sidebar">
+ <div id="topdoc">links</div><br>
+ <br/>
+ <a href="user_documents.php?user_id=<?php echo $_GET[user_id]?>" alt="See User Documents" title="See User Documents"><img src="icons/view.png"> <br>view my essays</a><br/ ><br/>
+ <a href="user_comments.php?user_id=<?php echo $_GET[user_id]?>" alt="See The User's Comments" title="See The User's Comments"> <img src="icons/comment.png"><br>my comments</a>
+ </div>
+ <div i="main">
+
+<div id="subheading"><?php $get_user_name=mysql_fetch_array(mysql_query("select username from tbl_user where id=".$_GET[user_id]));?><?php echo ucfirst($get_user_name[0]);?></div>
<br /><br />
<?php echo ucfirst(nl2br($line[about_me]));?>
- </td></tr>
- </table>
- </div>
- <div style="margin-top:30px;margin-left:50px;text-align:left;float:left;" class="black_txt">
- <span class="bold">Member Since:</span><br />
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $line[join_date];?><br />
- <span class="bold">Last Login:</span><br />
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $line[last_activity];?>
- </div>
- <div style="float:left;margin-top:30px;margin-left:40px;" class="black_txt">
+
+ <span class="bold">Member Since:</span><?php echo $line[join_date];?><br />
+ <span class="bold">Last Login:</span><?php echo $line[last_activity];?><br/>
+
<?php $sql_comment=mysql_query("select count(tbl_comment.id) as cnt,sum(score) as score from tbl_comment inner join tbl_document on (tbl_comment.doc_id=tbl_document.id and tbl_comment.comment_by_id='".$_GET[user_id]."') inner join tbl_user on (tbl_document.posted_by=tbl_user.id)");
$rs_comment=mysql_fetch_array($sql_comment);?>
- <div style="float:left;text-align:left">
- <span class="bold">Reputation Points:</span><br /><br>
- <span class="bold">Essays Posted:</span><br />
- <span class="bold">Comments Posted:</span><br />
+ <span class="bold">Reputation Points:<?php if($rs_comment[score]>0) { echo $rs_comment[score]; } else { echo "0";}?></span><br /><br>
+ <span class="bold">Essays Posted:<?php echo $line[total_document];?></span><br />
+ <span class="bold">Comments Posted:<?php echo $rs_comment[cnt];?></span><br />
</div>
- <div style="float:left;margin-left:10px;text-align:right">
- <?php if($rs_comment[score]>0) { echo $rs_comment[score]; } else { echo "0";}?><br /><br>
- <?php echo $line[total_document];?><br />
- <?php echo $rs_comment[cnt];?><br />
- </div>
- </div>
- <div style="margin-top:30px;float:left;">
- <a href="user_documents.php?user_id=<?php echo $_GET[user_id]?>" alt="See User Documents" title="See User Documents"><img src="images/userdocs.jpg" style="clear:left;float:left;margin-left:50px;margin-right:10px;margin-bottom:10px;"></a>
- <a href="user_comments.php?user_id=<?php echo $_GET[user_id]?>" alt="See The User's Comments" title="See The User's Comments"><img src="images/usercomments.jpg" style="float:left;margin-right:10px;margin-bottom:10px;"></a>
- </div>
- </div>
+
<br clear=all>
<br><br>
Please sign in to comment.
Something went wrong with that request. Please try again.