2009-12-18 12:56:12 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2007,2008 City of Bloomington, Indiana
|
2011-06-14 13:29:37 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
2009-12-18 12:56:12 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @param array $this->errorMessages
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<div id="errorMessages">
|
|
|
|
<h1>No That's wrong</h1>
|
|
|
|
<?php
|
|
|
|
foreach ($this->errorMessages as $e)
|
|
|
|
{
|
|
|
|
$error = $e->getMessage();
|
|
|
|
if (file_exists(APPLICATION_HOME."/blocks/html/errorMessages/$error.inc"))
|
|
|
|
{
|
|
|
|
include APPLICATION_HOME."/blocks/html/errorMessages/$error.inc";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "<p>$error</p>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|