Permalink
Browse files

changed layout of several pages

  • Loading branch information...
1 parent 9f1646d commit e9e3619b450f399e73b4254c0f878caf50079734 Sakunthala Panditharatne committed Aug 19, 2011
View
@@ -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,3 +1,4 @@
+//admin page, no design done here
<?
session_start();
require_once("config/config.inc.php");
View
@@ -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,3 +1,4 @@
+//another non-used page??
<?php
include("config/config.inc.php");
include("config/functions.inc.php");
View
@@ -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,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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -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,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
@@ -76,33 +76,29 @@ 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">
<input type="hidden" name="doc_detail" value="<?=$_GET[doc_detail]?>">
<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
@@ -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
@@ -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
@@ -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,3 +1,4 @@
+//also probably not used anymore
<?php session_start();
require_once("config/config.inc.php");
require_once("config/functions.inc.php");
View
@@ -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
@@ -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
@@ -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,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>
Oops, something went wrong.

0 comments on commit e9e3619

Please sign in to comment.