Location: PHPKode > projects > Neobill > NeoBill0.5.6/manager/pages/ServersPage.class.php
<?php
/**
 * ServersPage.class.php
 *
 * This file contains the definition for the ServersPage 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
 */

require BASE_PATH . "include/SolidStatePage.class.php";

/**
 * ServersPage
 *
 * Server Management page
 *
 * @package Pages
 * @author John Diamond <hide@address.com>
 */
class ServersPage extends SolidStatePage {
	/**
	 * Action
	 *
	 * Actions handled by this page:
	 *
	 * @param string $action_name Action
	 */
	function action( $action_name ) {
		switch ( $action_name ) {
			case "servers_action":
				if ( isset( $this->post['add'] ) ) {
					$this->gotoPage( "services_add_server" );
				}
				break;

			case "search_servers":
				$this->searchTable( "servers", "servers", $this->post );
				break;

			default:
				// No matching action, refer to base class
				parent::action( $action_name );
		}
	}
}
?>
Return current item: Neobill