2012-06-02 09:48:07 +03:00
|
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* COPS (Calibre OPDS PHP Server) main script
|
|
|
|
|
*
|
|
|
|
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
|
|
|
|
* @author S<EFBFBD>bastien Lucas <sebastien@slucas.fr>
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
require_once ("config.php");
|
|
|
|
|
require_once ("book.php");
|
|
|
|
|
|
|
|
|
|
$book = Book::getBookById($_GET["id"]);
|
|
|
|
|
$authors = $book->getAuthors ();
|
2012-06-11 22:30:25 +03:00
|
|
|
|
$tags = $book->getTags ();
|
2012-06-02 09:48:07 +03:00
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<div class="bookpopup">
|
|
|
|
|
<div class="booke">
|
|
|
|
|
<div class="cover">
|
|
|
|
|
<img src="fetch.php?id=<?php echo $book->id ?>&height=150" alt="cover" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
|
|
|
|
|
<div class="authors">
|
|
|
|
|
<?php
|
|
|
|
|
$i = 0;
|
|
|
|
|
foreach ($authors as $author) {
|
|
|
|
|
if ($i > 0) echo ", ";
|
|
|
|
|
?>
|
2012-06-11 22:30:25 +03:00
|
|
|
|
<a href="index.php<?php echo str_replace ("&", "&", $author->getUri ()) ?>"><?php echo $author->name ?></a>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tags">
|
|
|
|
|
<?php
|
|
|
|
|
$i = 0;
|
|
|
|
|
foreach ($tags as $tag) {
|
|
|
|
|
if ($i > 0) echo ", ";
|
|
|
|
|
?>
|
|
|
|
|
<a href="index.php<?php echo str_replace ("&", "&", $tag->getUri ()) ?>"><?php echo $tag->name ?></a>
|
2012-06-02 09:48:07 +03:00
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clearer" />
|
|
|
|
|
<hr />
|
2012-06-11 22:30:25 +03:00
|
|
|
|
<div><?php echo localize("content.summary") ?></div>
|
2012-06-02 09:48:07 +03:00
|
|
|
|
<?php echo $book->getComment () ?>
|
|
|
|
|
<hr />
|
|
|
|
|
</div>
|