~fkhan-zivios/zivios/devel

« back to all changes in this revision

Viewing changes to application/modules/default/views/scripts/error/error.phtml

  • Committer: Faraz Khan
  • Date: 2008-09-15 13:29:33 UTC
  • Revision ID: fkhan@zivios.org-20080915132933-d27jml5l29xw4gsr
Initial release to bazaar, code in sync with 0.5.0-release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Copyright (c) 2008 Zivios, LLC.
 
4
 *
 
5
 * This file is part of Zivios.
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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/>.
 
19
 *
 
20
 * @package             Zivios
 
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 $
 
24
 **/
 
25
?>
 
26
<html>
 
27
<head>
 
28
<style type="text/css">
 
29
.errorHandler {
 
30
        position: absolute;
 
31
        z-index: 10000;
 
32
        min-width: 525px;
 
33
        max-width: 700px;
 
34
        min-height: 300px;
 
35
        max-height: 600px;
 
36
        margin: 30 0 0 120px;
 
37
        border: 1px solid #000;
 
38
        background-color: #fff;
 
39
        padding: 5 10 0 10px;
 
40
        color: #000;
 
41
        font-family: "arial, sans-serif";
 
42
        font-size: 12px;
 
43
        overflow: auto;
 
44
}
 
45
 
 
46
a { color: #336699; background-color:transparent; text-decoration: none; }
 
47
a:hover { text-decoration: underline; }
 
48
a img { border: none; }
 
49
 
 
50
table.exception {
 
51
  border: none;
 
52
  padding: 0;
 
53
  margin: 0;
 
54
  font-family: "Verdana,Arial,Sans-Serif";
 
55
  font-size: 11px;
 
56
}
 
57
 
 
58
table.exception td {
 
59
        color: #404040;
 
60
        background-color: #fafafa;
 
61
        border: 1px #6699CC dotted;
 
62
        border-collapse: collapse;
 
63
        border-spacing: 0px;
 
64
}
 
65
</style>
 
66
 
 
67
</head>
 
68
<body></body>
 
69
</html>
 
70
<script language="javascript">
 
71
document.getElementsByClassName = function(cl) {
 
72
        var retnode = [];
 
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]);
 
79
        }
 
80
 
 
81
        return retnode;
 
82
};
 
83
 
 
84
if (document.getElementsByClassName('errorHandler').length == 0)
 
85
        document.write('<div style="display: block;" id="syserror" class="errorHandler"></div>');
 
86
 
 
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()
 
93
{
 
94
        var div = document.getElementById("syserror");
 
95
        div.style.display = "none";
 
96
}
 
97
</script>
 
 
b'\\ No newline at end of file'