Formulaic Density Summary Table - warwickfoster/qurantools GitHub Wiki
File: app/dictionary/jeffery.php
Purpose
The code provided is a PHP script that displays a PDF dictionary of the Qur'an by Arthur Jeffery. It allows users to navigate through the dictionary pages using the arrow keys or by clicking on page numbers.
Features
- Lightview mode support: The script can be displayed in a lightview pop-up window.
- Page navigation: Users can navigate through the dictionary pages using the arrow keys, page number links, or the
GotoPage()function. - PDF rendering: The PDF is loaded and displayed within the HTML document using the
PDFViewDIV. - Menu and footer: The script includes a menu and footer for navigation.
Functionality
- The script sets the
PAGEvariable based on the GET request parameter or defaults to 1 if not provided. - It includes necessary header files and functions.
- It checks for Lightview mode and sets the
LIGHTVIEWvariable accordingly. - It creates an HTML document with the necessary JavaScript code for page navigation and PDF rendering.
- It includes the menu and footer.
- The
PDFViewDIV is where the PDF is displayed.
Usage
- The script can be accessed by navigating to the URL
/dictionary/jeffery.php. - The
PAGEparameter can be used to specify the starting page number.
Notes
- The PDF file and related resources are located in the
/dictionary/Jefferyfolder. - The
ajax_pdf_load.phpfile is responsible for loading the PDF content. - The
standard_header.phpfile includes common header elements. - The
menu.phpandfooter.phpfiles provide the menu and footer navigation.