echo "One Month<br />"; } else { echo "Not one month<br />"; } echo 'Valid Date Range: '; echo var_dump(valid_date_range($start, $end)); echo 'Month One == Month Two: '; echo var_dump($month_one == $month_two);*/ if (empty($prop_id) || empty($start) || empty($end)) { $err = "Form fields marked with an asterix are required"; } elseif (!valid_date_range($start, $end)) { $err = "Rent payment status of tenants can only be specified monthly. Specify a month by entering the start and end dates of the month"; } else { $month = get_month_from_date($start); $property = Property::findById($prop_id); $tenants = Tenant::showPaymentStatusOfTenantsByProperty($prop_id, $start, $end); } } 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", "payment_search" => "Search Payment"); echo create_action_links($actions); ?> </div> <div id="main-content">