-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbookdetail.php
More file actions
75 lines (71 loc) · 2.37 KB
/
bookdetail.php
File metadata and controls
75 lines (71 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* COPS (Calibre OPDS PHP Server) book detail 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 ();
$tags = $book->getTags ();
$serie = $book->getSerie ();
$book->getLinkArray ();
?>
<div class="bookpopup">
<div class="booke">
<div class="detailcover">
<img src="fetch.php?id=<?php echo $book->id ?>&height=220" alt="cover" />
</div>
<div class="booktitle"><?php echo htmlspecialchars ($book->title) ?></div>
<!-- Place this tag in your head or just before your close body tag. -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share" data-href="http://ebooks.wayshine.us/bookdcp.php?id=<?php echo $book->id ?>"></div>
<div class="bookdownload">
<?php
foreach ($book->getDatas() as $data)
{
?>
<div class="button buttonEffect"><a href="<?php echo $data->getHtmlLink () ?>"><?php echo $data->format ?></a></div>
<?php
}
?>
</div>
<div class="entrySection">
<span><?php echo localize("authors.title") ?></span>
<div class="buttonEffect pad6">
<?php
$i = 0;
foreach ($authors as $author) {
if ($i > 0) echo ", ";
?>
<a href="index.php<?php echo str_replace ("&", "&", $author->getUri ()) ?>"><?php echo htmlspecialchars ($author->name) ?></a>
<?php
}
?>
</div>
</div>
<div class="entrySection">
<span><?php echo localize("tags.title") ?></span>
<div class="buttonEffect pad6">
<?php
$i = 0;
foreach ($tags as $tag) {
if ($i > 0) echo ", ";
?>
<a href="index.php<?php echo str_replace ("&", "&", $tag->getUri ()) ?>"><?php echo htmlspecialchars ($tag->name) ?></a>
<?php
}
?>
</div>
</div>
</div>
<div class="clearer" />
<hr />
<div><?php echo localize("content.summary") ?></div>
<div class="content" style="max-width:700px;"><?php echo $book->getComment (false) ?></div>
<hr />
</div>