summaryrefslogtreecommitdiff
path: root/framework/views/zh_tw
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/zh_tw')
-rw-r--r--framework/views/zh_tw/error.php37
-rw-r--r--framework/views/zh_tw/error400.php33
-rw-r--r--framework/views/zh_tw/error403.php32
-rw-r--r--framework/views/zh_tw/error404.php33
-rw-r--r--framework/views/zh_tw/error500.php35
-rw-r--r--framework/views/zh_tw/error503.php31
-rw-r--r--framework/views/zh_tw/log-firebug.php23
-rw-r--r--framework/views/zh_tw/log.php40
-rw-r--r--framework/views/zh_tw/profile-callstack-firebug.php19
-rw-r--r--framework/views/zh_tw/profile-callstack.php30
-rw-r--r--framework/views/zh_tw/profile-summary-firebug.php22
-rw-r--r--framework/views/zh_tw/profile-summary.php41
12 files changed, 376 insertions, 0 deletions
diff --git a/framework/views/zh_tw/error.php b/framework/views/zh_tw/error.php
new file mode 100644
index 0000000..7567c3f
--- /dev/null
+++ b/framework/views/zh_tw/error.php
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Error <?php echo $data['code']; ?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<h1>錯誤 <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+當網頁伺服器正在處理您的請求時, 發生以上的錯誤.
+</p>
+<p>
+如果您認為是伺服器錯誤所造成, 請聯絡<?php echo $data[ 'admin']; ?>.
+</p>
+<p>
+謝謝.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/error400.php b/framework/views/zh_tw/error400.php
new file mode 100644
index 0000000..8fc7dd0
--- /dev/null
+++ b/framework/views/zh_tw/error400.php
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Bad Request</title>
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+<body>
+<h1>不正確的請求</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+由於語法不正確, 伺服器無法了解請求的正確內容.
+請修改請求後再行重試.
+</p>
+<p>
+如果您認為是伺服器錯誤所造成, 請聯絡<?php echo $data[ 'admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/error403.php b/framework/views/zh_tw/error403.php
new file mode 100644
index 0000000..040d42a
--- /dev/null
+++ b/framework/views/zh_tw/error403.php
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Unauthorized</title>
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+<body>
+<h1>未被授權</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+您沒有存取此頁面的適當憑據.
+</p>
+<p>
+如果您認為是伺服器錯誤所造成, 請聯絡<?php echo $data[ 'admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/error404.php b/framework/views/zh_tw/error404.php
new file mode 100644
index 0000000..2b48179
--- /dev/null
+++ b/framework/views/zh_tw/error404.php
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Page Not Found</title>
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+<body>
+<h1>找不到網頁</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+伺服器無法找到請求的 URL 對應的網頁.
+如果您是手動輸入 URL, 請檢查是否有拼寫錯誤後再重試.
+</p>
+<p>
+如果您認為是伺服器錯誤所造成, 請聯絡<?php echo $data[ 'admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/error500.php b/framework/views/zh_tw/error500.php
new file mode 100644
index 0000000..36eb9cf
--- /dev/null
+++ b/framework/views/zh_tw/error500.php
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Internal Server Error</title>
+
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<h1>內部的伺服器錯誤</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+當網頁伺服器正在處理您的請求時, 發生了一個內部錯誤.
+請回報此一問題給 <?php echo $data['admin']; ?>.
+</p>
+<p>
+謝謝.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/error503.php b/framework/views/zh_tw/error503.php
new file mode 100644
index 0000000..d348255
--- /dev/null
+++ b/framework/views/zh_tw/error503.php
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Service Unavailable</title>
+<style type="text/css">
+/*<![CDATA[*/
+body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
+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}
+.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
+/*]]>*/
+</style>
+</head>
+<body>
+<h1>目前無法提供服務</h1>
+<p>
+系統目前正在維護中. 請稍後再試.
+</p>
+<p>
+謝謝.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/zh_tw/log-firebug.php b/framework/views/zh_tw/log-firebug.php
new file mode 100644
index 0000000..12414e1
--- /dev/null
+++ b/framework/views/zh_tw/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("應用程式日誌");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ if($log[1]===CLogger::LEVEL_WARNING)
+ $func='warn';
+ else if($log[1]===CLogger::LEVEL_ERROR)
+ $func='error';
+ else
+ $func='log';
+ $content=CJavaScript::quote("[$time][$log[1]][$log[2]] $log[0]");
+ echo "\tconsole.{$func}(\"{$content}\");\n";
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script> \ No newline at end of file
diff --git a/framework/views/zh_tw/log.php b/framework/views/zh_tw/log.php
new file mode 100644
index 0000000..c1d2c17
--- /dev/null
+++ b/framework/views/zh_tw/log.php
@@ -0,0 +1,40 @@
+<!-- start log messages -->
+<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;">
+ <tr>
+ <th style="background:black;color:white;" colspan="5">
+ 應用程式日誌
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">時間戳</th>
+ <th>等級</th>
+ <th>分類</th>
+ <th>訊息</th>
+ </tr>
+<?php
+$colors=array(
+ CLogger::LEVEL_PROFILE=>'#DFFFE0',
+ CLogger::LEVEL_INFO=>'#FFFFDF',
+ CLogger::LEVEL_WARNING=>'#FFDFE5',
+ CLogger::LEVEL_ERROR=>'#FFC0CB',
+);
+foreach($data as $index=>$log)
+{
+ $color=($index%2)?'#F5F5F5':'#FFFFFF';
+ if(isset($colors[$log[1]]))
+ $color=$colors[$log[1]];
+ $message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
+ $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+
+ echo <<<EOD
+ <tr style="background:{$color}">
+ <td align="center">{$time}</td>
+ <td>{$log[1]}</td>
+ <td>{$log[2]}</td>
+ <td>{$message}</td>
+ </tr>
+EOD;
+}
+?>
+</table>
+<!-- end of log messages --> \ No newline at end of file
diff --git a/framework/views/zh_tw/profile-callstack-firebug.php b/framework/views/zh_tw/profile-callstack-firebug.php
new file mode 100644
index 0000000..164f706
--- /dev/null
+++ b/framework/views/zh_tw/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack ���i");
+<?php
+foreach($data as $index=>$entry)
+{
+ list($proc,$time,$level)=$entry;
+ $proc=CJavaScript::quote($proc);
+ $time=sprintf('%0.5f',$time);
+ $spaces=str_repeat(' ',$level*8);
+ echo "\tconsole.log(\"[$time]{$spaces}{$proc}\");\n";
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script> \ No newline at end of file
diff --git a/framework/views/zh_tw/profile-callstack.php b/framework/views/zh_tw/profile-callstack.php
new file mode 100644
index 0000000..acd2270
--- /dev/null
+++ b/framework/views/zh_tw/profile-callstack.php
@@ -0,0 +1,30 @@
+<!-- start profiling callstack -->
+<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;">
+ <tr>
+ <th style="background:black;color:white;" colspan="2">
+ Profiling Callstack 報告
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>程序</th>
+ <th>時間 (秒)</th>
+ </tr>
+<?php
+foreach($data as $index=>$entry)
+{
+ $color=($index%2)?'#F5F5F5':'#FFFFFF';
+ list($proc,$time,$level)=$entry;
+ $proc=CHtml::encode($proc);
+ $time=sprintf('%0.5f',$time);
+ $spaces=str_repeat('&nbsp;',$level*8);
+
+ echo <<<EOD
+ <tr style="background:{$color}">
+ <td>{$spaces}{$proc}</td>
+ <td align="center">{$time}</td>
+ </tr>
+EOD;
+}
+?>
+</table>
+<!-- end of profiling callstack --> \ No newline at end of file
diff --git a/framework/views/zh_tw/profile-summary-firebug.php b/framework/views/zh_tw/profile-summary-firebug.php
new file mode 100644
index 0000000..bd1959e
--- /dev/null
+++ b/framework/views/zh_tw/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling 摘要報告");
+ console.log(" 計數 總計 平均 最小 最大 ");
+<?php
+foreach($data as $index=>$entry)
+{
+ $proc=CJavaScript::quote($entry[0]);
+ $count=sprintf('%5d',$entry[1]);
+ $min=sprintf('%0.5f',$entry[2]);
+ $max=sprintf('%0.5f',$entry[3]);
+ $total=sprintf('%0.5f',$entry[4]);
+ $average=sprintf('%0.5f',$entry[4]/$entry[1]);
+ echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script>
diff --git a/framework/views/zh_tw/profile-summary.php b/framework/views/zh_tw/profile-summary.php
new file mode 100644
index 0000000..e8fcce2
--- /dev/null
+++ b/framework/views/zh_tw/profile-summary.php
@@ -0,0 +1,41 @@
+<!-- start profiling summary -->
+<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;">
+ <tr>
+ <th style="background:black;color:white;" colspan="6">
+ Profiling 摘要報告
+ (Time: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Memory: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>程序</th>
+ <th>計數</th>
+ <th>總計 (秒)</th>
+ <th>平均 (秒)</th>
+ <th>最小 (秒)</th>
+ <th>最大 (秒)</th>
+ </tr>
+<?php
+foreach($data as $index=>$entry)
+{
+ $color=($index%2)?'#F5F5F5':'#FFFFFF';
+ $proc=CHtml::encode($entry[0]);
+ $min=sprintf('%0.5f',$entry[2]);
+ $max=sprintf('%0.5f',$entry[3]);
+ $total=sprintf('%0.5f',$entry[4]);
+ $average=sprintf('%0.5f',$entry[4]/$entry[1]);
+
+ echo <<<EOD
+ <tr style="background:{$color}">
+ <td>{$proc}</td>
+ <td align="center">{$entry[1]}</td>
+ <td align="center">{$total}</td>
+ <td align="center">{$average}</td>
+ <td align="center">{$min}</td>
+ <td align="center">{$max}</td>
+ </tr>
+EOD;
+}
+?>
+</table>
+<!-- end of profiling summary --> \ No newline at end of file