<?php
/**
* BrowseInvoicesPage.class.php
*
* This file contains the definition for the Browse Invoices Page class
*
* @package Pages
* @author John Diamond <hide@address.com>
* @copyright John Diamond <hide@address.com>
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
*/
// Include the parent class
require_once BASE_PATH . "include/SolidStatePage.class.php";
/**
* BrowseInvoicesPage
*
* Display all Invoices
*
* @package Pages
* @author John Diamond <hide@address.com>
*/
class BrowseInvoicesPage extends SolidStatePage {
/**
* Action
*
* Actions handled by this page:
* browse_invoices_action (form)
*
* @param string $action_name Action
*/
function action( $action_name ) {
switch( $action_name ) {
case "browse_invoices_action":
// Create a new invoice
$this->gotoPage( "accounts_add_invoice" );
break;
case "search_invoices":
$this->searchTable( "browse_invoices", "invoices", $this->post );
break;
default:
// No matching action, refer to base class
parent::action( $action_name );
}
}
}
?>