<?php require_once '../lib/init.php'; if (!$session->isLoggedIn()) { redirect_to('../index.php'); } if (isset($_GET['submit'])) { $name = $_GET['tenant']; if (empty($name) || $name == "Enter tenant name....") { $err = "Enter name of tenant to search for"; } else { $tenants = Tenant::searchTenant($name); } } include_layout_template('admin_header.php'); ?> <div id="container"> <h3>Actions</h3> <div id="side-bar"> <?php $actions = array("tenants" => "Tenants", "tenant_search" => "Search Tenant", "tenants_old" => "Previous Tenants"); echo create_action_links($actions); ?> </div> <div id="main-content"> <h2>Search Results</h2> <div id="tenant-search"> <fieldset>