cvs: docweb /templates/all/www/shared error_msg.tpl.php
[email protected] ("Sean Coates")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvssean1122856405@cvsserver> |
sean Sun Jul 31 20:33:25 2005 EDT
Added files:
/docweb/templates/all/www/shared error_msg.tpl.php
Log:
Common error message template
http://cvs.php.net/co.php/docweb/templates/all/www/shared/error_msg.tpl.php?r=1.1&p=1
Index: docweb/templates/all/www/shared/error_msg.tpl.php
+++ docweb/templates/all/www/shared/error_msg.tpl.php
<?php
// Common Error Template
// yes, this is logic, but it's DISPLAY logic
// header
if ($header) {
echo site_header($header);
}
// body
if ($body) {
if (isset($body[0])) {
echo "<h2>{$body[0]}</h2>";
}
if (isset($body[1])) {
echo $body[1];
}
}
// footer
if (!isset($footer) || !$footer) {
echo site_footer();
}
?>