Add HTML pages. Not finished. see #3
This commit is contained in:
parent
e9a01c57ce
commit
6fa0031b9f
15 changed files with 2579 additions and 0 deletions
40
bookdetail.php
Normal file
40
bookdetail.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* COPS (Calibre OPDS PHP Server) main script
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
* @author Sébastien Lucas <sebastien@slucas.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
require_once ("config.php");
|
||||
require_once ("book.php");
|
||||
|
||||
$book = Book::getBookById($_GET["id"]);
|
||||
$authors = $book->getAuthors ();
|
||||
|
||||
?>
|
||||
<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 ", ";
|
||||
?>
|
||||
<a href="kobo.php<?php echo str_replace ("&", "&", $author->getUri ()) ?>"><?php echo $author->name ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearer" />
|
||||
<div><?php echo localize("content.summary") ?></div>
|
||||
<hr />
|
||||
<?php echo $book->getComment () ?>
|
||||
<hr />
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue