summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2005-11-18 23:10:40 +0000
committerxue <>2005-11-18 23:10:40 +0000
commit78601a744a54736764173ca5cbedb1cca9d2ce81 (patch)
tree2428b4b2f4bc00e4e37b6cfd7a9fd747c900f610
parent53cb82bd1525adac534404657310961dc53796b2 (diff)
-rw-r--r--.gitattributes2
-rw-r--r--framework/Exceptions/exception-en.tpl37
-rw-r--r--framework/Exceptions/exception-zh.tpl37
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 08f1b974..ab16e7b4 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -46,6 +46,8 @@ framework/Exceptions/error404.tpl -text
framework/Exceptions/error500-en.tpl -text
framework/Exceptions/error500-zh.tpl -text
framework/Exceptions/error500.tpl -text
+framework/Exceptions/exception-en.tpl -text
+framework/Exceptions/exception-zh.tpl -text
framework/Exceptions/exception.tpl -text
framework/Exceptions/messages.en -text
framework/IO/TTextWriter.php -text
diff --git a/framework/Exceptions/exception-en.tpl b/framework/Exceptions/exception-en.tpl
new file mode 100644
index 00000000..1d76c7f2
--- /dev/null
+++ b/framework/Exceptions/exception-en.tpl
@@ -0,0 +1,37 @@
+<html>
+<head>
+<title>%%ErrorType%%</title>
+<style>
+body {font-family:"Verdana";font-weight:normal;color:black;}
+h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
+h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
+h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
+p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px}
+code,pre {font-family:"Lucida Console";}
+td,.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffee;}
+</style>
+</head>
+
+<body bgcolor="white">
+<h1>%%ErrorType%%</h1>
+<h3>Description</h3>
+<p style="color:maroon">%%ErrorMessage%%</p>
+<p>
+<h3>Source File</h3>
+<p>%%SourceFile%%</p>
+<div class="source">
+%%SourceCode%%
+</div>
+<h3>Stack Trace</h3>
+<div class="source">
+<code><pre>
+%%StackTrace%%
+</pre></code>
+</div>
+<div class="version">
+%%Version%%<br/>
+%%Time%%
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/Exceptions/exception-zh.tpl b/framework/Exceptions/exception-zh.tpl
new file mode 100644
index 00000000..8f56ec9e
--- /dev/null
+++ b/framework/Exceptions/exception-zh.tpl
@@ -0,0 +1,37 @@
+<html>
+<head>
+<title>%%ErrorType%%</title>
+<style>
+body {font-family:"Verdana";font-weight:normal;color:black;}
+h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
+h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
+h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
+p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px}
+code,pre {font-family:"Lucida Console";}
+td,.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffee;}
+</style>
+</head>
+
+<body bgcolor="white">
+<h1>%%ErrorType%%</h1>
+<h3>错误信息</h3>
+<p style="color:maroon">%%ErrorMessage%%</p>
+<p>
+<h3>错误代码文件</h3>
+<p>%%SourceFile%%</p>
+<div class="source">
+%%SourceCode%%
+</div>
+<h3>错误堆栈信息</h3>
+<div class="source">
+<code><pre>
+%%StackTrace%%
+</pre></code>
+</div>
+<div class="version">
+%%Version%%<br/>
+%%Time%%
+</div>
+</body>
+</html> \ No newline at end of file