3
* Copyright (c) 2008 Zivios, LLC.
5
* This file is part of Zivios.
7
* Zivios is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
12
* Zivios is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with Zivios. If not, see <http://www.gnu.org/licenses/>.
21
* @copyright Copyright (c) 2008 Zivios, LLC. (http://www.zivios.org)
22
* @license http://www.zivios.org/legal/license
23
* @version $Id: error.phtml 1113 2008-09-10 12:46:42Z fkhan $
28
<style type="text/css">
37
border: 1px solid #000;
38
background-color: #fff;
41
font-family: "arial, sans-serif";
46
a { color: #336699; background-color:transparent; text-decoration: none; }
47
a:hover { text-decoration: underline; }
48
a img { border: none; }
54
font-family: "Verdana,Arial,Sans-Serif";
60
background-color: #fafafa;
61
border: 1px #6699CC dotted;
62
border-collapse: collapse;
70
<script language="javascript">
71
document.getElementsByClassName = function(cl) {
73
var myclass = new RegExp('\\b'+cl+'\\b');
74
var elem = this.getElementsByTagName('*');
75
for (var i = 0; i < elem.length; i++) {
76
var classes = elem[i].className;
77
if (myclass.test(classes))
78
retnode.push(elem[i]);
84
if (document.getElementsByClassName('errorHandler').length == 0)
85
document.write('<div style="display: block;" id="syserror" class="errorHandler"></div>');
87
var content = "<b>There was an error processing your request.</b><hr size=\"1\" />";
88
var ereturn = "<?php echo $this->content; ?>";
89
var report = '<hr size="1" /><a href="#" onClick="javascript:hideAndBlank(\'syserror\');">[x]</a>Close Message';
90
document.getElementById('syserror').innerHTML = content + ereturn + report + '<br /><br />';
91
document.getElementById("syserror").style.display = 'block';
92
closeMessage = function()
94
var div = document.getElementById("syserror");
95
div.style.display = "none";
b'\\ No newline at end of file'