39 lines
948 B
PHP
39 lines
948 B
PHP
<?php
|
|
require "setup.php";
|
|
if(is_null($comic)){
|
|
$comic=0;
|
|
die("comic is null");
|
|
}
|
|
?><!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link href="css/style.css" rel="stylesheet"/>
|
|
<title>
|
|
<?php $comic["title"]?>
|
|
</title>
|
|
</head>
|
|
<table id=comic>
|
|
<tr><td colspan=5>
|
|
<img class=strip title=<?php echo "\"${comic["hover"]}\"";?> src=<?php echo "\"${comic["file"]}\""?> /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href=index.php?id=1><img title="first comic" src="images/first.png"></a></td>
|
|
<td><?php
|
|
if($id>1) {
|
|
echo "<a href=index.php?id=".
|
|
($id-1).
|
|
" >";
|
|
}
|
|
?>
|
|
<img title="previous comic" src=images/prev.png>
|
|
<?php
|
|
if($id>1) {
|
|
echo "</a>";
|
|
}
|
|
?></td>
|
|
<td></td>
|
|
<td><a href=index.php?id=<?php echo $id+1?>><img title="next comic" src=images/next.png></a></td>
|
|
<td><a href=index.php ><img title="latest comic" src="images/latest.png" ></a></td>
|
|
</tr>
|
|
</table>
|
|
</html>
|