~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/views/bg/exception.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC
 
2
        "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
3
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<head>
 
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
7
<title>
 
8
<?php echo CHtml::encode($data['type']); ?>
 
9
</title>
 
10
 
 
11
<style type="text/css">
 
12
/*<![CDATA[*/
 
13
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
 
14
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
 
15
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
 
16
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
 
17
p {font-family:"Verdana";font-size:9pt;}
 
18
pre {font-family:"Lucida Console";font-size:10pt;}
 
19
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
 
20
.message {color: maroon;}
 
21
.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffee;}
 
22
.error {background-color: #ffeeee;}
 
23
/*]]>*/
 
24
</style>
 
25
</head>
 
26
 
 
27
<body>
 
28
<h1><?php echo $data['type']; ?></h1>
 
29
 
 
30
<h3>Описание</h3>
 
31
<p class="message">
 
32
<?php echo nl2br(CHtml::encode($data['message'])); ?>
 
33
</p>
 
34
 
 
35
<h3>Сорс файл</h3>
 
36
<p>
 
37
<?php echo CHtml::encode($data['file'])."({$data['line']})"; ?>
 
38
</p>
 
39
 
 
40
<div class="source">
 
41
<pre>
 
42
<?php
 
43
if(empty($data['source']))
 
44
        echo 'Няма наличен изходен код.';
 
45
else
 
46
{
 
47
        foreach($data['source'] as $line=>$code)
 
48
        {
 
49
                if($line!==$data['line'])
 
50
                        echo CHtml::encode(sprintf("%05d: %s",$line,str_replace("\t",'    ',$code)));
 
51
                else
 
52
                {
 
53
                        echo "<div class=\"error\">";
 
54
                        echo CHtml::encode(sprintf("%05d: %s",$line,str_replace("\t",'    ',$code)));
 
55
                        echo "</div>";
 
56
                }
 
57
        }
 
58
}
 
59
?>
 
60
</pre>
 
61
</div><!-- end of source -->
 
62
 
 
63
<h3>Проследяване на стека</h3>
 
64
<div class="callstack">
 
65
<pre>
 
66
<?php echo CHtml::encode($data['trace']); ?>
 
67
</pre>
 
68
</div><!-- end of callstack -->
 
69
 
 
70
<div class="version">
 
71
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
 
72
</div>
 
73
</body>
 
74
</html>