This class can be used in conjunction with a mouse pointer. The user hovers the cursor over an item, without clicking it, and a small box appears with supplementary information regarding the item being hovered over.
It must be used in conjunction with a few Javascript libraries that submit the page body HTML content to the server via AJAX.
On the server, the class parses the HTML content to lookup for known text expressions stored in a dictionary file in CSV format.
The text expressions found in the dictionary are replaced by links that make a popup window appear with the expressions meaning when the user drags the mouse over the links.
The processed HTML content is returned to the browser as part of the AJAX request response.
Generate a calendar date selector popup with DHTML
This class can be used to generate a popup control to select a date of the calendar. It is now possible to select as link only a day of week you prefer
It uses Javascript and HTML open a small layer when a button near a date text input is clicked. The popup layer displays a calendar with links to choose a given day of the current month or navigate between different months and years.
When the user picks a calendar day, the date text input is updated with the selected date that can be represented in two formats: dd/mm/yyyy or mm/dd/yyyy.
Create thumbnails and link pictures in new windows
Comments: This class is designed to ease the publication of images in html webpages that uses PHP.
1) With this class you can insert pictures in your web pages in one line (simlar to <IMG> tags).
2) The class automatically creates a link to the original image using javascript (displaying the selected picture in a new window with the size of the image) and presents a thumbnail in your page.
3) THIS CLASS DOES NOT NEED GD LIBRARY TO WORK, but if you have GD Library 2.0 or later installed it's possible to use the class to create thumbnails on the fly. The detection of the GD library is AUTOMATIC.
4) When GD Library 2.0 or later is not available, the image type is not supported by GD Library or simply when you want to decrease the execution time of your scripts, the class uses the original image as thumbnail and link, modifying its size on the IMGtag.
5) To protect your pictures, you can set up this class to use the images as CSS backgrounds of DIVtags that are creates automatically. In effect, a 100% transparent gif image (null.gif) is used to mask your DIVtag as an image, so visitors will save empty images on their disks.
Files:
1) imgpopup.class.php, containing the class definition.
2) imgpopup.php, for output the Pop Up Window Content.
3) img.php, for output the GD based Thumbnails.
4) imgpopup.js, JavaScript file containing de ImgPopUp Function.
5) null.gif, Transparent GIF used to mask image contents.
Extras:
1) test.php, examples and information about the use of the class.
2) misola.jpg, picture used in test.php (Thanks to Manuel Isola).
This class can be used to display messages in a Web page.
It generates HTML and Javascript to show a box with a message that can close and disappear from the page when the user clicks in a button or after a given period of time.
The presentation of the message box details is configurable using CSS styles.
This PHP class can be used to generate a nice, template driven date picker in a pop-up window.
The class will automatically generate the required HTML and JavaScript code that will make a pop-up window appear to let the user choose a date from a calendar. The selected date will be passed to an user-specified control from the caller page.
Every aspect is customizable: the aspect of the date picker is template driven meaning you can completely alter how the date picker looks by changing the template and the related CSS file; the format in which the date to be returned is configurable; the date picker can be instructed to show a specific year/month/date by default; the first day of the week can be also set;
The date picker also supports localisation: in this version, beside the default english language file you can also choose between german and dutch.
The code is heavily documented so you can easily understand every aspect of it.
This class can be used to generate a gallery of pictures from image files contained in a given server folder.
It scans a given folder to list the files with GIF, PNG, JPEG and BMP extensions. Then it outputs HTML pages showing thumbnails of the images that were found. The full size images are opened in pop-up windows.
The width of the gallery pages, the number of images per row and the number of images per page are configurable.
The gallery shows buttons to advance to the next or previous pages.