Chart Intertextual Connections - warwickfoster/qurantools GitHub Wiki
Purpose
The code snippet you provided is a PHP script that displays a PDF page from a specific resource, along with navigation controls for paging through the pages.
Functionality
-
The script receives three POST parameters:
-
FOLDER
: The folder name of the resource. -
PREFIX
: The prefix of the PDF file name. -
PAGE
: The page number to display.
-
-
The script determines the resource title and navigation parameters based on the
FOLDER
value. -
It displays a table of navigation controls, including links to previous and next pages, as well as a dropdown menu to jump to a specific page.
-
The script embeds an iframe to display the PDF page.
Features
- Navigation controls The navigation controls allow users to navigate through the PDF pages easily.
- Page jump The dropdown menu allows users to quickly jump to a specific page.
- PDF viewer The iframe provides a built-in PDF viewer for displaying the PDF page.
Usage
To use the script, you would need to:
- Copy the code into a PHP file.
- Specify the
FOLDER
,PREFIX
, andPAGE
values in the POST request. - Run the script.
Example
<form action="pdf_viewer.php" method="post">
<input type="hidden" name="FOLDER" value="Penrice">
<input type="hidden" name="PREFIX" value="penrice">
<input type="hidden" name="PAGE" value="10">
<input type="submit" value="View PDF Page">
</form>
Note
- The script assumes that the PDF files are located in the
FOLDER
directory. - The
PREFIX
value is the prefix of the PDF file name. - The
PAGE
value is the page number to display.