version 1.0

This commit is contained in:
2025-11-21 17:10:05 +08:00
parent b904e92da9
commit 2f9fba663a
655 changed files with 2417 additions and 374 deletions
+19
View File
@@ -61,6 +61,25 @@ include 'views/header.php';
<?php endif; ?>
<h1 style="margin-bottom: 0.5rem;"><?= e($book['title']) ?></h1>
<!-- В view_book.php, после информации об авторе -->
<?php if ($book['series_id']): ?>
<?php
$series_stmt = $pdo->prepare("SELECT id, title FROM series WHERE id = ?");
$series_stmt->execute([$book['series_id']]);
$series = $series_stmt->fetch();
?>
<?php if ($series): ?>
<p style="color: #666; margin-bottom: 0.5rem;">
📚 Часть серии:
<a href="view_series.php?id=<?= $series['id'] ?>" style="color: #007bff;">
<?= e($series['title']) ?>
<?php if ($book['sort_order_in_series']): ?>
(Книга <?= $book['sort_order_in_series'] ?>)
<?php endif; ?>
</a>
</p>
<?php endif; ?>
<?php endif; ?>
<p style="color: #666; font-style: italic; margin-bottom: 0.5rem;"><?= e($author_name) ?></p>
<?php if ($book['genre']): ?>