Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / item.php
diff options
context:
space:
mode:
Commit83304592d155b0fed33dcdac3ffdf0b6ca393ab6 (patch)
Author
 Georgi Nikolov <ggeorgi60@gmail.com>
2025-02-04 21:03:44 +0200
Committer
 Georgi Nikolov <ggeorgi60@gmail.com>
2025-02-04 21:03:44 +0200
Filesd014e71838fff983b3c041f0bfc277aca0a1e16c /views/archive/item.php
nowayforward_human-83304592d155b0fed33dcdac3ffdf0b6ca393ab6.tar
nowayforward_human-83304592d155b0fed33dcdac3ffdf0b6ca393ab6.tar.gz
nowayforward_human-83304592d155b0fed33dcdac3ffdf0b6ca393ab6.zip
Parente2e0c2ffd139d3f2a653fbe4ffa110c2d58bcce6 (diff)
Added a basic pdf exporter that works 50% of the times
1 files changed, 7 insertions, 0 deletions
-rw-r--r--views/archive/item.php7
diff --git a/views/archive/item.php b/views/archive/item.php
index 467fb2c..25b1719 100644
--- a/views/archive/item.php
+++ b/views/archive/item.php
@@ -7,7 +7,14 @@
</div>
<div class="details">
<span>Visits: <?= $page->Visits ?></span>
+ <iframe id="printFrame" src="<?= '/archives/' . $page->WID . '/index.php' ?>" style="display:none;"></iframe>
<span class="float-right"><?= Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
+ <form action="/list/export/index.php" method="GET">
+ <input type="hidden" name="wid" value="<?= $page->WID ?>">
+ <input type="hidden" name="title" value="<?= $page->Title ?>">
+ <input type="hidden" name="url" value="<?= $page->URL ?>">
+ <button>Export to PDF</button>
+ </form>
</div>
</section>
<section name="itemButton" hidden>