Source for file action-export.php
Documentation is available at action-export.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
// Load the Contact_AddressBook.
require_once 'Contact/AddressBook.php';
include_once 'include/records.php';
if (isset ($_POST['submit'])) {
if (!empty ($_POST['format'])) {
// Create a new instance of Contact_AddressBook object.
if ($_POST['mode'] == 'print') {
include_once 'include/head.php';
// Call export to print method.
$cab->exportToPrint ($_POST['format'],
$GLOBALS['_Contact_AddressBook_records']);
include_once 'include/footer.php';
// Call export to file method.
$cab->exportToFile ('addressbook', $_POST['format'],
$GLOBALS['_Contact_AddressBook_records']);
* c-hanging-comment-ender-p: nil
Documentation generated on Mon, 11 Mar 2019 15:40:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|