Add all download link in book detail

This commit is contained in:
Sébastien Lucas 2012-06-24 08:24:28 +02:00
parent 06ce256e55
commit 43a739be1d

View file

@ -14,6 +14,7 @@ $book = Book::getBookById($_GET["id"]);
$authors = $book->getAuthors ();
$tags = $book->getTags ();
$serie = $book->getSerie ();
$book->getLinkArray ();
?>
<div class="bookpopup">
@ -21,6 +22,16 @@ $serie = $book->getSerie ();
<div class="cover">
<img src="fetch.php?id=<?php echo $book->id ?>&amp;height=150" alt="cover" />
</div>
<div class="download">
<?php
foreach ($config['cops_prefered_format'] as $format)
{
?>
<div class="button buttonEffect"><a href="<?php echo "download/" . $entry->book->format [$format][0] . "/" . urlencode ($entry->book->format [$format][1]) ?>"><?php echo $format ?></a></div>
<?php
}
?>
</div>
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
<div class="entrySection">
<span><?php echo localize("authors.title") ?></span>