Skip to content

Commit

Permalink
New papers and minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SerouxN committed Jan 21, 2019
1 parent 1a9d0a0 commit 0400722
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 11 deletions.
16 changes: 11 additions & 5 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,23 @@
if(file_exists('papers/thumb_'.$data['ID'].'.png'))
{
?>

<li><a title="<?php echo $data['Title']?> (<?php echo $data['Year']?>)" href="paper.php?id=<?php echo $data['ID'];?>"><img width="232" height="300" src="papers/thumb_<?php echo $data['ID'];?>.png" /></a></li>
<?php
}
else
{
if(strlen($data['Title'])>170)
{?>
<li><a title="<?php echo $data['Title']?> (<?php echo $data['Year']?>)" href="paper.php?id=<?php echo $data['ID'];?>"><div class="paperCont" style="font-size:14px;"><img width="232" height="300" src="papers/thumb_def.png"/><div class="textCont"><?php echo $data['Title']?> (<?php echo $data['Year']?>)</div></div></a></li>
<?php
}
else
{?>
<li><a title="<?php echo $data['Title']?> (<?php echo $data['Year']?>)" href="paper.php?id=<?php echo $data['ID'];?>"><div class="paperCont"><img width="232" height="300" src="papers/thumb_def.png"/><div class="textCont"><?php echo $data['Title']?> (<?php echo $data['Year']?>)</div></div></a></li>
<li><a title="<?php echo $data['Title']?> (<?php echo $data['Year']?>)" href="paper.php?id=<?php echo $data['ID'];?>"><div class="paperCont"><img width="232" height="300" src="papers/thumb_def.png"/><div class="textCont"><?php echo $data['Title']?> (<?php echo $data['Year']?>)</div></div></a></li>
<?php
}?>
<?php
}
}
}}
$reponse->closeCursor();
if ($numberOfPapers==0)
{
Expand Down
5 changes: 3 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div id="placeholder"></div>
<footer>
<p>Opera Omnia - 2018<br/>
(Pre )^32 Alpha</p>
<p>Opera Omnia<br/>
<br/>
(Pre )^32 Alpha<br/>2018-2019</p>
<div id="sources">
<p>
Expand Down
2 changes: 1 addition & 1 deletion headerAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<nav id="navbar" class="topnav">
<ul style="list-style-type:none">
<li><a href="index" id="home">Home</a></li>
<li><a href="papers">Papers</a></li>
<li><a href="papers.php">Papers</a></li>
<li><a href="authors">Authors</a></li>
<li><a href="submit" id="submit">Submit a Paper</a></li>
<li class="icon"><a href="javascript:void(0);" onclick="dropdown()">&#9776;</a></li>
Expand Down
11 changes: 8 additions & 3 deletions paper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Redirect($url, $permanent = false)
}
$reponse2->closeCursor();
?>
<title>Opera Omnia - <?php echo $data['Title']?></title>
<title><?php echo $title;?></title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8"/>
<script>
Expand All @@ -70,8 +70,13 @@ function Redirect($url, $permanent = false)
<?php include("header.php"); ?>
<section style="padding-left:50px; padding-right:50px;">
<h1><strong><?php echo $title ?></strong><?php echo" by ". $AuthFirstName." ".$AuthLastName;?></h1>
<?php
if(isset($description) && !empty($description))
{?>
<h2>&nbsp;&nbsp;&nbsp;&nbsp;Description</h2>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $description ?></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $description; ?></p>
<?php
}?>
<h2>&nbsp;&nbsp;&nbsp;&nbsp;Versions</h2>
<?php
$numberOfVersions=0;
Expand Down Expand Up @@ -285,7 +290,7 @@ function Redirect($url, $permanent = false)
}
?>
<p><br/>File names displayed in bold correspond to versions of the papers made by <em>Opera Omnia</em>.</p>
<p>Click <a href='newVersion.php?id=<?php echo $_GET['id']?>'>here</a> if you want to add a version of this paper to <em>Opera Omnia</em>.</p>
<p>Click <a href='newVersion.php?id=<?php echo $_GET['id']?>' style="color:black;">here</a> if you want to add a version of this paper to <em>Opera Omnia</em>.</p>
</section>
<?php include("footer.php"); ?>
</body>
Expand Down
Binary file added papers/0046646450_0a.pdf
Binary file not shown.
Binary file added papers/0768590644_0a.pdf
Binary file not shown.
Binary file added papers/1179845378_0a.pdf
Binary file not shown.
Binary file added papers/1203340730_0a.pdf
Binary file not shown.

0 comments on commit 0400722

Please sign in to comment.