summaryrefslogtreecommitdiff
path: root/framework/views
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views')
-rw-r--r--framework/views/ar/error.php37
-rw-r--r--framework/views/ar/error400.php33
-rw-r--r--framework/views/ar/error403.php32
-rw-r--r--framework/views/ar/error404.php33
-rw-r--r--framework/views/ar/error500.php35
-rw-r--r--framework/views/ar/error503.php30
-rw-r--r--framework/views/ar/exception.php242
-rw-r--r--framework/views/ar/log-firebug.php23
-rw-r--r--framework/views/ar/log.php40
-rw-r--r--framework/views/ar/profile-callstack-firebug.php19
-rw-r--r--framework/views/ar/profile-callstack.php30
-rw-r--r--framework/views/ar/profile-summary-firebug.php22
-rw-r--r--framework/views/ar/profile-summary.php41
-rw-r--r--framework/views/bg/error.php37
-rw-r--r--framework/views/bg/error400.php33
-rw-r--r--framework/views/bg/error403.php32
-rw-r--r--framework/views/bg/error404.php32
-rw-r--r--framework/views/bg/error500.php35
-rw-r--r--framework/views/bg/error503.php30
-rw-r--r--framework/views/bg/log-firebug.php23
-rw-r--r--framework/views/bg/log.php32
-rw-r--r--framework/views/bg/profile-callstack-firebug.php19
-rw-r--r--framework/views/bg/profile-callstack.php30
-rw-r--r--framework/views/bg/profile-summary-firebug.php22
-rw-r--r--framework/views/bg/profile-summary.php41
-rw-r--r--framework/views/de/error.php38
-rw-r--r--framework/views/de/error400.php34
-rw-r--r--framework/views/de/error403.php33
-rw-r--r--framework/views/de/error404.php34
-rw-r--r--framework/views/de/error500.php35
-rw-r--r--framework/views/de/error503.php31
-rw-r--r--framework/views/de/log-firebug.php23
-rw-r--r--framework/views/de/log.php40
-rw-r--r--framework/views/de/profile-callstack-firebug.php19
-rw-r--r--framework/views/de/profile-callstack.php30
-rw-r--r--framework/views/de/profile-summary-firebug.php23
-rw-r--r--framework/views/de/profile-summary.php41
-rw-r--r--framework/views/el/error.php37
-rw-r--r--framework/views/el/error400.php33
-rw-r--r--framework/views/el/error403.php32
-rw-r--r--framework/views/el/error404.php33
-rw-r--r--framework/views/el/error500.php35
-rw-r--r--framework/views/el/error503.php31
-rw-r--r--framework/views/el/log-firebug.php23
-rw-r--r--framework/views/el/log.php40
-rw-r--r--framework/views/el/profile-callstack-firebug.php19
-rw-r--r--framework/views/el/profile-callstack.php30
-rw-r--r--framework/views/el/profile-summary-firebug.php22
-rw-r--r--framework/views/el/profile-summary.php41
-rw-r--r--framework/views/error.php37
-rw-r--r--framework/views/error400.php33
-rw-r--r--framework/views/error403.php32
-rw-r--r--framework/views/error404.php33
-rw-r--r--framework/views/error500.php35
-rw-r--r--framework/views/error503.php31
-rw-r--r--framework/views/es/error.php37
-rw-r--r--framework/views/es/error400.php33
-rw-r--r--framework/views/es/error403.php32
-rw-r--r--framework/views/es/error404.php33
-rw-r--r--framework/views/es/error500.php35
-rw-r--r--framework/views/es/error503.php31
-rw-r--r--framework/views/es/log-firebug.php23
-rw-r--r--framework/views/es/log.php40
-rw-r--r--framework/views/es/profile-callstack-firebug.php19
-rw-r--r--framework/views/es/profile-callstack.php30
-rw-r--r--framework/views/es/profile-summary-firebug.php22
-rw-r--r--framework/views/es/profile-summary.php41
-rw-r--r--framework/views/exception.php242
-rw-r--r--framework/views/fr/error.php37
-rw-r--r--framework/views/fr/error400.php33
-rw-r--r--framework/views/fr/error403.php32
-rw-r--r--framework/views/fr/error404.php34
-rw-r--r--framework/views/fr/error500.php35
-rw-r--r--framework/views/fr/error503.php31
-rw-r--r--framework/views/fr/log-firebug.php23
-rw-r--r--framework/views/fr/log.php40
-rw-r--r--framework/views/fr/profile-callstack-firebug.php19
-rw-r--r--framework/views/fr/profile-callstack.php30
-rw-r--r--framework/views/fr/profile-summary-firebug.php22
-rw-r--r--framework/views/fr/profile-summary.php41
-rw-r--r--framework/views/he/error.php38
-rw-r--r--framework/views/he/error400.php34
-rw-r--r--framework/views/he/error403.php33
-rw-r--r--framework/views/he/error404.php34
-rw-r--r--framework/views/he/error500.php36
-rw-r--r--framework/views/he/error503.php32
-rw-r--r--framework/views/he/log-firebug.php23
-rw-r--r--framework/views/he/log.php40
-rw-r--r--framework/views/he/profile-callstack-firebug.php19
-rw-r--r--framework/views/he/profile-callstack.php30
-rw-r--r--framework/views/he/profile-summary-firebug.php22
-rw-r--r--framework/views/he/profile-summary.php41
-rw-r--r--framework/views/hr/error.php37
-rw-r--r--framework/views/hr/error400.php34
-rw-r--r--framework/views/hr/error403.php33
-rw-r--r--framework/views/hr/error404.php34
-rw-r--r--framework/views/hr/error500.php35
-rw-r--r--framework/views/hr/error503.php32
-rw-r--r--framework/views/hr/log-firebug.php23
-rw-r--r--framework/views/hr/log.php40
-rw-r--r--framework/views/hr/profile-callstack-firebug.php19
-rw-r--r--framework/views/hr/profile-callstack.php30
-rw-r--r--framework/views/hr/profile-summary-firebug.php22
-rw-r--r--framework/views/hr/profile-summary.php41
-rw-r--r--framework/views/id/error.php37
-rw-r--r--framework/views/id/error400.php33
-rw-r--r--framework/views/id/error403.php32
-rw-r--r--framework/views/id/error404.php33
-rw-r--r--framework/views/id/error500.php35
-rw-r--r--framework/views/id/error503.php31
-rw-r--r--framework/views/id/log-firebug.php23
-rw-r--r--framework/views/id/log.php40
-rw-r--r--framework/views/id/profile-callstack-firebug.php19
-rw-r--r--framework/views/id/profile-callstack.php30
-rw-r--r--framework/views/id/profile-summary-firebug.php22
-rw-r--r--framework/views/id/profile-summary.php41
-rw-r--r--framework/views/it/error.php37
-rw-r--r--framework/views/it/error400.php33
-rw-r--r--framework/views/it/error403.php32
-rw-r--r--framework/views/it/error404.php33
-rw-r--r--framework/views/it/error500.php35
-rw-r--r--framework/views/it/error503.php31
-rw-r--r--framework/views/it/log-firebug.php23
-rw-r--r--framework/views/it/log.php40
-rw-r--r--framework/views/it/profile-callstack-firebug.php19
-rw-r--r--framework/views/it/profile-callstack.php30
-rw-r--r--framework/views/it/profile-summary-firebug.php22
-rw-r--r--framework/views/it/profile-summary.php41
-rw-r--r--framework/views/ja/error.php37
-rw-r--r--framework/views/ja/error400.php33
-rw-r--r--framework/views/ja/error403.php32
-rw-r--r--framework/views/ja/error404.php33
-rw-r--r--framework/views/ja/error500.php35
-rw-r--r--framework/views/ja/error503.php31
-rw-r--r--framework/views/ja/log-firebug.php23
-rw-r--r--framework/views/ja/log.php40
-rw-r--r--framework/views/ja/profile-callstack-firebug.php19
-rw-r--r--framework/views/ja/profile-callstack.php30
-rw-r--r--framework/views/ja/profile-summary-firebug.php22
-rw-r--r--framework/views/ja/profile-summary.php41
-rw-r--r--framework/views/ko/error.php37
-rw-r--r--framework/views/ko/error400.php32
-rw-r--r--framework/views/ko/error403.php32
-rw-r--r--framework/views/ko/error404.php33
-rw-r--r--framework/views/ko/error500.php35
-rw-r--r--framework/views/ko/error503.php31
-rw-r--r--framework/views/ko/exception.php242
-rw-r--r--framework/views/ko/log-firebug.php23
-rw-r--r--framework/views/ko/log.php40
-rw-r--r--framework/views/ko/profile-callstack-firebug.php19
-rw-r--r--framework/views/ko/profile-callstack.php30
-rw-r--r--framework/views/ko/profile-summary-firebug.php22
-rw-r--r--framework/views/ko/profile-summary.php41
-rw-r--r--framework/views/log-firebug.php23
-rw-r--r--framework/views/log.php40
-rw-r--r--framework/views/lt/error.php37
-rw-r--r--framework/views/lt/error400.php33
-rw-r--r--framework/views/lt/error403.php32
-rw-r--r--framework/views/lt/error404.php33
-rw-r--r--framework/views/lt/error500.php35
-rw-r--r--framework/views/lt/error503.php31
-rw-r--r--framework/views/lt/exception.php242
-rw-r--r--framework/views/lt/log-firebug.php23
-rw-r--r--framework/views/lt/log.php40
-rw-r--r--framework/views/lt/profile-callstack-firebug.php19
-rw-r--r--framework/views/lt/profile-callstack.php30
-rw-r--r--framework/views/lt/profile-summary-firebug.php22
-rw-r--r--framework/views/lt/profile-summary.php41
-rw-r--r--framework/views/lv/error.php37
-rw-r--r--framework/views/lv/error400.php33
-rw-r--r--framework/views/lv/error403.php32
-rw-r--r--framework/views/lv/error404.php33
-rw-r--r--framework/views/lv/error500.php35
-rw-r--r--framework/views/lv/error503.php31
-rw-r--r--framework/views/lv/log-firebug.php23
-rw-r--r--framework/views/lv/log.php40
-rw-r--r--framework/views/lv/profile-callstack-firebug.php19
-rw-r--r--framework/views/lv/profile-callstack.php30
-rw-r--r--framework/views/lv/profile-summary-firebug.php22
-rw-r--r--framework/views/lv/profile-summary.php41
-rw-r--r--framework/views/nl/error.php25
-rw-r--r--framework/views/nl/error400.php24
-rw-r--r--framework/views/nl/error403.php24
-rw-r--r--framework/views/nl/error404.php24
-rw-r--r--framework/views/nl/error500.php24
-rw-r--r--framework/views/nl/error503.php24
-rw-r--r--framework/views/nl/log-firebug.php22
-rw-r--r--framework/views/nl/log.php38
-rw-r--r--framework/views/nl/profile-callstack-firebug.php17
-rw-r--r--framework/views/nl/profile-callstack.php29
-rw-r--r--framework/views/nl/profile-summary-firebug.php20
-rw-r--r--framework/views/nl/profile-summary.php41
-rw-r--r--framework/views/no/error.php37
-rw-r--r--framework/views/no/error400.php33
-rw-r--r--framework/views/no/error403.php32
-rw-r--r--framework/views/no/error404.php33
-rw-r--r--framework/views/no/error500.php35
-rw-r--r--framework/views/no/error503.php31
-rw-r--r--framework/views/no/log-firebug.php23
-rw-r--r--framework/views/no/log.php40
-rw-r--r--framework/views/no/profile-callstack-firebug.php19
-rw-r--r--framework/views/no/profile-callstack.php30
-rw-r--r--framework/views/no/profile-summary-firebug.php22
-rw-r--r--framework/views/no/profile-summary.php41
-rw-r--r--framework/views/pl/error.php37
-rw-r--r--framework/views/pl/error400.php33
-rw-r--r--framework/views/pl/error403.php32
-rw-r--r--framework/views/pl/error404.php33
-rw-r--r--framework/views/pl/error500.php35
-rw-r--r--framework/views/pl/error503.php31
-rw-r--r--framework/views/pl/log-firebug.php23
-rw-r--r--framework/views/pl/log.php41
-rw-r--r--framework/views/pl/profile-callstack-firebug.php19
-rw-r--r--framework/views/pl/profile-callstack.php30
-rw-r--r--framework/views/pl/profile-summary-firebug.php22
-rw-r--r--framework/views/pl/profile-summary.php41
-rw-r--r--framework/views/profile-callstack-firebug.php19
-rw-r--r--framework/views/profile-callstack.php30
-rw-r--r--framework/views/profile-summary-firebug.php22
-rw-r--r--framework/views/profile-summary.php41
-rw-r--r--framework/views/pt/error.php37
-rw-r--r--framework/views/pt/error400.php33
-rw-r--r--framework/views/pt/error403.php32
-rw-r--r--framework/views/pt/error404.php33
-rw-r--r--framework/views/pt/error500.php35
-rw-r--r--framework/views/pt/error503.php31
-rw-r--r--framework/views/pt/log-firebug.php23
-rw-r--r--framework/views/pt/log.php40
-rw-r--r--framework/views/pt/profile-callstack-firebug.php19
-rw-r--r--framework/views/pt/profile-callstack.php30
-rw-r--r--framework/views/pt/profile-summary-firebug.php22
-rw-r--r--framework/views/pt/profile-summary.php41
-rw-r--r--framework/views/pt_br/error.php37
-rw-r--r--framework/views/pt_br/error400.php33
-rw-r--r--framework/views/pt_br/error403.php32
-rw-r--r--framework/views/pt_br/error404.php33
-rw-r--r--framework/views/pt_br/error500.php35
-rw-r--r--framework/views/pt_br/error503.php31
-rw-r--r--framework/views/pt_br/log-firebug.php23
-rw-r--r--framework/views/pt_br/log.php40
-rw-r--r--framework/views/pt_br/profile-callstack-firebug.php19
-rw-r--r--framework/views/pt_br/profile-callstack.php30
-rw-r--r--framework/views/pt_br/profile-summary-firebug.php22
-rw-r--r--framework/views/pt_br/profile-summary.php41
-rw-r--r--framework/views/ro/error.php37
-rw-r--r--framework/views/ro/error400.php33
-rw-r--r--framework/views/ro/error403.php32
-rw-r--r--framework/views/ro/error404.php33
-rw-r--r--framework/views/ro/error500.php35
-rw-r--r--framework/views/ro/error503.php31
-rw-r--r--framework/views/ro/log-firebug.php23
-rw-r--r--framework/views/ro/log.php40
-rw-r--r--framework/views/ro/profile-callstack-firebug.php19
-rw-r--r--framework/views/ro/profile-callstack.php30
-rw-r--r--framework/views/ro/profile-summary-firebug.php22
-rw-r--r--framework/views/ro/profile-summary.php41
-rw-r--r--framework/views/ru/error.php37
-rw-r--r--framework/views/ru/error400.php33
-rw-r--r--framework/views/ru/error403.php32
-rw-r--r--framework/views/ru/error404.php33
-rw-r--r--framework/views/ru/error500.php35
-rw-r--r--framework/views/ru/error503.php31
-rw-r--r--framework/views/ru/log-firebug.php23
-rw-r--r--framework/views/ru/log.php40
-rw-r--r--framework/views/ru/profile-callstack-firebug.php19
-rw-r--r--framework/views/ru/profile-callstack.php30
-rw-r--r--framework/views/ru/profile-summary-firebug.php22
-rw-r--r--framework/views/ru/profile-summary.php41
-rw-r--r--framework/views/sk/error.php37
-rw-r--r--framework/views/sk/error400.php33
-rw-r--r--framework/views/sk/error403.php32
-rw-r--r--framework/views/sk/error404.php33
-rw-r--r--framework/views/sk/error500.php35
-rw-r--r--framework/views/sk/error503.php31
-rw-r--r--framework/views/sk/log-firebug.php23
-rw-r--r--framework/views/sk/log.php46
-rw-r--r--framework/views/sk/profile-callstack-firebug.php19
-rw-r--r--framework/views/sk/profile-callstack.php30
-rw-r--r--framework/views/sk/profile-summary-firebug.php22
-rw-r--r--framework/views/sk/profile-summary.php41
-rw-r--r--framework/views/sv/error.php37
-rw-r--r--framework/views/sv/error400.php33
-rw-r--r--framework/views/sv/error403.php33
-rw-r--r--framework/views/sv/error404.php33
-rw-r--r--framework/views/sv/error500.php35
-rw-r--r--framework/views/sv/error503.php31
-rw-r--r--framework/views/sv/exception.php242
-rw-r--r--framework/views/sv/log-firebug.php23
-rw-r--r--framework/views/sv/log.php40
-rw-r--r--framework/views/sv/profile-callstack-firebug.php19
-rw-r--r--framework/views/sv/profile-callstack.php30
-rw-r--r--framework/views/sv/profile-summary-firebug.php22
-rw-r--r--framework/views/sv/profile-summary.php41
-rw-r--r--framework/views/uk/error.php37
-rw-r--r--framework/views/uk/error400.php33
-rw-r--r--framework/views/uk/error403.php32
-rw-r--r--framework/views/uk/error404.php33
-rw-r--r--framework/views/uk/error500.php35
-rw-r--r--framework/views/uk/error503.php31
-rw-r--r--framework/views/uk/log-firebug.php23
-rw-r--r--framework/views/uk/log.php40
-rw-r--r--framework/views/uk/profile-callstack-firebug.php19
-rw-r--r--framework/views/uk/profile-callstack.php30
-rw-r--r--framework/views/uk/profile-summary-firebug.php22
-rw-r--r--framework/views/uk/profile-summary.php41
-rw-r--r--framework/views/vi/error.php37
-rw-r--r--framework/views/vi/error400.php33
-rw-r--r--framework/views/vi/error403.php32
-rw-r--r--framework/views/vi/error404.php33
-rw-r--r--framework/views/vi/error500.php35
-rw-r--r--framework/views/vi/error503.php31
-rw-r--r--framework/views/vi/log-firebug.php23
-rw-r--r--framework/views/vi/log.php40
-rw-r--r--framework/views/vi/profile-callstack-firebug.php19
-rw-r--r--framework/views/vi/profile-callstack.php30
-rw-r--r--framework/views/vi/profile-summary-firebug.php22
-rw-r--r--framework/views/vi/profile-summary.php41
-rw-r--r--framework/views/zh_cn/error.php37
-rw-r--r--framework/views/zh_cn/error400.php33
-rw-r--r--framework/views/zh_cn/error403.php32
-rw-r--r--framework/views/zh_cn/error404.php33
-rw-r--r--framework/views/zh_cn/error500.php35
-rw-r--r--framework/views/zh_cn/error503.php31
-rw-r--r--framework/views/zh_cn/log-firebug.php23
-rw-r--r--framework/views/zh_cn/log.php40
-rw-r--r--framework/views/zh_cn/profile-callstack-firebug.php19
-rw-r--r--framework/views/zh_cn/profile-callstack.php28
-rw-r--r--framework/views/zh_cn/profile-summary-firebug.php22
-rw-r--r--framework/views/zh_cn/profile-summary.php41
-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
341 files changed, 11684 insertions, 0 deletions
diff --git a/framework/views/ar/error.php b/framework/views/ar/error.php
new file mode 100644
index 0000000..199dbbe
--- /dev/null
+++ b/framework/views/ar/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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>خطأ <?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/ar/error400.php b/framework/views/ar/error400.php
new file mode 100644
index 0000000..e580ea7
--- /dev/null
+++ b/framework/views/ar/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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>طلب غير صالح</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/ar/error403.php b/framework/views/ar/error403.php
new file mode 100644
index 0000000..4b186a3
--- /dev/null
+++ b/framework/views/ar/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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>غير مصرح</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/ar/error404.php b/framework/views/ar/error404.php
new file mode 100644
index 0000000..a0069e4
--- /dev/null
+++ b/framework/views/ar/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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>الصفحة غير موجودة</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/ar/error500.php b/framework/views/ar/error500.php
new file mode 100644
index 0000000..ed6bb96
--- /dev/null
+++ b/framework/views/ar/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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>خطأ داخلي بالخادم</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/ar/error503.php b/framework/views/ar/error503.php
new file mode 100644
index 0000000..b68c2aa
--- /dev/null
+++ b/framework/views/ar/error503.php
@@ -0,0 +1,30 @@
+<!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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>الخدمة غير متوفرة</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/ar/exception.php b/framework/views/ar/exception.php
new file mode 100644
index 0000000..df1fa3b
--- /dev/null
+++ b/framework/views/ar/exception.php
@@ -0,0 +1,242 @@
+<!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="ar" lang="ar">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title><?php echo CHtml::encode($data['type'])?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+
+body {
+ font: normal 9pt "Verdana";
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ font: normal 18pt "Verdana";
+ color: #f00;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font: normal 14pt "Verdana";
+ color: #800000;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font: bold 11pt "Verdana";
+}
+
+pre {
+ font: normal 11pt Menlo, Consolas, "Lucida Console";
+}
+
+pre span.error {
+ display: block;
+ background: #fce3e3;
+}
+
+pre span.ln {
+ color: #999;
+ padding-right: 0.5em;
+ border-right: 1px solid #ccc;
+}
+
+pre span.error-ln {
+ font-weight: bold;
+}
+
+.container {
+ margin: 1em 4em;
+}
+
+.version {
+ color: gray;
+ font-size: 8pt;
+ border-top: 1px solid #aaa;
+ padding-top: 1em;
+ margin-bottom: 1em;
+}
+
+.message {
+ color: #000;
+ padding: 1em;
+ font-size: 11pt;
+ background: #f3f3f3;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ margin-bottom: 1em;
+ line-height: 160%;
+}
+
+.source {
+ margin-bottom: 1em;
+}
+
+.code pre {
+ background-color: #ffe;
+ margin: 0.5em 0;
+ padding: 0.5em;
+ line-height: 125%;
+ border: 1px solid #eee;
+}
+
+.source .file {
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+.traces {
+ margin: 2em 0;
+}
+
+.trace {
+ margin: 0.5em 0;
+ padding: 0.5em;
+}
+
+.trace.app {
+ border: 1px dashed #c00;
+}
+
+.trace .number {
+ text-align: right;
+ width: 2em;
+ padding: 0.5em;
+}
+
+.trace .content {
+ padding: 0.5em;
+}
+
+.trace .plus,
+.trace .minus {
+ display:inline;
+ vertical-align:middle;
+ text-align:center;
+ border:1px solid #000;
+ color:#000;
+ font-size:10px;
+ line-height:10px;
+ margin:0;
+ padding:0 1px;
+ width:10px;
+ height:10px;
+}
+
+.trace.collapsed .minus,
+.trace.expanded .plus,
+.trace.collapsed pre {
+ display: none;
+}
+
+.trace-file {
+ cursor: pointer;
+ padding: 0.2em;
+}
+
+.trace-file:hover {
+ background: #f0ffff;
+}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<div class="container">
+ <h1><?php echo $data['type']?></h1>
+
+ <p class="message">
+ <?php echo nl2br(CHtml::encode($data['message']))?>
+ </p>
+
+ <div class="source">
+ <p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
+ <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
+ </div>
+
+ <div class="traces">
+ <h2>تتبع الخطأ</h2>
+ <?php $count=0; ?>
+ <table style="width:100%;">
+ <?php foreach($data['traces'] as $n => $trace): ?>
+ <?php
+ if($this->isCoreCode($trace))
+ $cssClass='core collapsed';
+ else if(++$count>3)
+ $cssClass='app collapsed';
+ else
+ $cssClass='app expanded';
+ $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
+ ?>
+ <tr class="trace <?php echo $cssClass; ?>">
+ <td class="number">
+ #<?php echo $n; ?>
+ </td>
+ <td class="content">
+ <div class="trace-file">
+ <?php if($hasCode): ?>
+ <div class="plus">+</div>
+ <div class="minus">–</div>
+ <?php endif; ?>
+ <?php
+ echo '&nbsp;';
+ echo CHtml::encode($trace['file'])."(".$trace['line'].")";
+ echo ': ';
+ if(!empty($trace['class']))
+ echo "<strong>{$trace['class']}</strong>{$trace['type']}";
+ echo "<strong>{$trace['function']}</strong>(";
+ if(!empty($trace['args']))
+ echo CHtml::encode($this->argumentsToString($trace['args']));
+ echo ')';
+ ?>
+ </div>
+
+ <?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </div>
+
+ <div class="version">
+ <?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+ </div>
+</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
+var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
+
+var e = document.getElementsByTagName("div");
+for(var j=0,len=e.length;j<len;j++){
+ if(traceReg.test(e[j].className)){
+ e[j].onclick = function(){
+ var trace = this.parentNode.parentNode;
+ if(collapsedReg.test(trace.className))
+ trace.className = trace.className.replace("collapsed", "expanded");
+ else
+ trace.className = trace.className.replace("expanded", "collapsed");
+ }
+ }
+}
+/*]]>*/
+</script>
+
+</body>
+</html>
diff --git a/framework/views/ar/log-firebug.php b/framework/views/ar/log-firebug.php
new file mode 100644
index 0000000..9a0638f
--- /dev/null
+++ b/framework/views/ar/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/ar/log.php b/framework/views/ar/log.php
new file mode 100644
index 0000000..a10c40a
--- /dev/null
+++ b/framework/views/ar/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]).sprintf('%06d',(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/ar/profile-callstack-firebug.php b/framework/views/ar/profile-callstack-firebug.php
new file mode 100644
index 0000000..d735ebe
--- /dev/null
+++ b/framework/views/ar/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("تقرير تنميط استدعاءات المكدس");
+<?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/ar/profile-callstack.php b/framework/views/ar/profile-callstack.php
new file mode 100644
index 0000000..dca22cf
--- /dev/null
+++ b/framework/views/ar/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">
+ تقرير تنميط استدعاءات المكدس
+ </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/ar/profile-summary-firebug.php b/framework/views/ar/profile-summary-firebug.php
new file mode 100644
index 0000000..1fb1b44
--- /dev/null
+++ b/framework/views/ar/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("ملخص تقرير التنميط");
+ 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/ar/profile-summary.php b/framework/views/ar/profile-summary.php
new file mode 100644
index 0000000..d29e246
--- /dev/null
+++ b/framework/views/ar/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">
+ ملخص تقرير التنميط
+ (الزمن: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ الذاكرة: <?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
diff --git a/framework/views/bg/error.php b/framework/views/bg/error.php
new file mode 100644
index 0000000..0b1b2d6
--- /dev/null
+++ b/framework/views/bg/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>Грешка <?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>
diff --git a/framework/views/bg/error400.php b/framework/views/bg/error400.php
new file mode 100644
index 0000000..3266e4c
--- /dev/null
+++ b/framework/views/bg/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>Невалидна заявка</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>
diff --git a/framework/views/bg/error403.php b/framework/views/bg/error403.php
new file mode 100644
index 0000000..904b6e5
--- /dev/null
+++ b/framework/views/bg/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>Неупълномощен</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>
diff --git a/framework/views/bg/error404.php b/framework/views/bg/error404.php
new file mode 100644
index 0000000..9abe1a3
--- /dev/null
+++ b/framework/views/bg/error404.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>Страницата не е намерена</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 ръчно, проверете дали е въведен коректно и опитайте отново.
+</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>
diff --git a/framework/views/bg/error500.php b/framework/views/bg/error500.php
new file mode 100644
index 0000000..74dbe90
--- /dev/null
+++ b/framework/views/bg/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>Вътрешна грешка на сървъра</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>
diff --git a/framework/views/bg/error503.php b/framework/views/bg/error503.php
new file mode 100644
index 0000000..df59363
--- /dev/null
+++ b/framework/views/bg/error503.php
@@ -0,0 +1,30 @@
+<!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>Услугата е недостъпна</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>
diff --git a/framework/views/bg/log-firebug.php b/framework/views/bg/log-firebug.php
new file mode 100644
index 0000000..63ba98d
--- /dev/null
+++ b/framework/views/bg/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?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/bg/log.php b/framework/views/bg/log.php
new file mode 100644
index 0000000..7e67f2e
--- /dev/null
+++ b/framework/views/bg/log.php
@@ -0,0 +1,32 @@
+<!-- start log messages -->
+<table 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
+foreach($data as $index=>$log)
+{
+ $color=($index%2)?'#F5F5F5':'#EBF8FE';
+ $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 -->
diff --git a/framework/views/bg/profile-callstack-firebug.php b/framework/views/bg/profile-callstack-firebug.php
new file mode 100644
index 0000000..76bc33c
--- /dev/null
+++ b/framework/views/bg/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Обобщен доклад от профилирането");
+<?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>
diff --git a/framework/views/bg/profile-callstack.php b/framework/views/bg/profile-callstack.php
new file mode 100644
index 0000000..ccca138
--- /dev/null
+++ b/framework/views/bg/profile-callstack.php
@@ -0,0 +1,30 @@
+<!-- start profiling callstack -->
+<table 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">
+ Обобщен доклад от профилирането
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Процедура</th>
+ <th>Време (на)</th>
+ </tr>
+<?php
+foreach($data as $index=>$entry)
+{
+ $color=($index%2)?'#F5F5F5':'#EBF8FE';
+ 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 -->
diff --git a/framework/views/bg/profile-summary-firebug.php b/framework/views/bg/profile-summary-firebug.php
new file mode 100644
index 0000000..e4eb3ab
--- /dev/null
+++ b/framework/views/bg/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Обобщен доклад от профилирането");
+ console.log(" count total average min max ");
+<?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/bg/profile-summary.php b/framework/views/bg/profile-summary.php
new file mode 100644
index 0000000..b72e979
--- /dev/null
+++ b/framework/views/bg/profile-summary.php
@@ -0,0 +1,41 @@
+<!-- start profiling summary -->
+<table 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">
+ Обобщен доклад от профилирането
+ (Време: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>с,
+ Памет: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Процедура</th>
+ <th>Брой</th>
+ <th>Общо (s)</th>
+ <th>Средно (s)</th>
+ <th>Минимално (s)</th>
+ <th>Максимално (s)</th>
+ </tr>
+<?php
+foreach($data as $index=>$entry)
+{
+ $color=($index%2)?'#F5F5F5':'#EBF8FE';
+ $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 -->
diff --git a/framework/views/de/error.php b/framework/views/de/error.php
new file mode 100644
index 0000000..3fea0c9
--- /dev/null
+++ b/framework/views/de/error.php
@@ -0,0 +1,38 @@
+<!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>Fehler <?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>Fehler <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Beim Bearbeiten Ihrer Anfrage durch den Server ist obenstehender Fehler aufgetreten.
+</p>
+<p>
+Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte
+<?php echo $data['admin']; ?>.
+</p>
+<p>
+Vielen Dank.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/error400.php b/framework/views/de/error400.php
new file mode 100644
index 0000000..f0debb1
--- /dev/null
+++ b/framework/views/de/error400.php
@@ -0,0 +1,34 @@
+<!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>Fehlerhafte Anfrage</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>Fehlerhafte Anfrage</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Der Request wurde vom Server aufgrund einer ungültigen Syntax nicht verstanden.
+Bitte wiederholen Sie die Anfrage nicht unverändert.
+</p>
+<p>
+Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte
+<?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/error403.php b/framework/views/de/error403.php
new file mode 100644
index 0000000..14f1f5e
--- /dev/null
+++ b/framework/views/de/error403.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>Keine Berechtigung</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>Keine Berechtigung</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Sie haben nicht die nötigen Rechte, um diese Seite aufzurufen.
+</p>
+<p>
+Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte
+<?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/error404.php b/framework/views/de/error404.php
new file mode 100644
index 0000000..4c4987e
--- /dev/null
+++ b/framework/views/de/error404.php
@@ -0,0 +1,34 @@
+<!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>Seite nicht gefunden</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>Seite nicht gefunden</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Die angeforderte URL wurde auf diesem Server nicht gefunden.
+Wenn Sie die URL von Hand eingegeben haben, prüfen Sie bitte Ihre Schreibweise und versuchen Sie es dann erneut.
+</p>
+<p>
+Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte
+<?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/error500.php b/framework/views/de/error500.php
new file mode 100644
index 0000000..5b6fb61
--- /dev/null
+++ b/framework/views/de/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>Interner Serverfehler</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>Interner Serverfehler</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Beim Bearbeiten Ihrer Anfrage durch den Webserver ist ein interner Fehler aufgetreten.
+Bitte kontaktieren Sie <?php echo $data['admin']; ?> um dieses Problem zu melden.
+</p>
+<p>
+Vielen Dank.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/error503.php b/framework/views/de/error503.php
new file mode 100644
index 0000000..cdbbd0b
--- /dev/null
+++ b/framework/views/de/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>Dienst nicht verfügbar</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>Dienst nicht verfügbar</h1>
+<p>
+Unser System wird derzeit gewartet. Bitte versuchen Sie es später noch einmal.
+</p>
+<p>
+Vielen Dank.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/de/log-firebug.php b/framework/views/de/log-firebug.php
new file mode 100644
index 0000000..b2902cd
--- /dev/null
+++ b/framework/views/de/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Anwendungsprotokoll");
+<?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>
diff --git a/framework/views/de/log.php b/framework/views/de/log.php
new file mode 100644
index 0000000..af2088a
--- /dev/null
+++ b/framework/views/de/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">
+ Anwendungsprotokoll
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Zeitstempel</th>
+ <th>Stufe</th>
+ <th>Kategorie</th>
+ <th>Nachricht</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 -->
diff --git a/framework/views/de/profile-callstack-firebug.php b/framework/views/de/profile-callstack-firebug.php
new file mode 100644
index 0000000..cc3bf92
--- /dev/null
+++ b/framework/views/de/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Ergebnis der Performance-Analyse anhand des Aufrufstapels");
+<?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>
diff --git a/framework/views/de/profile-callstack.php b/framework/views/de/profile-callstack.php
new file mode 100644
index 0000000..210fbaf
--- /dev/null
+++ b/framework/views/de/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">
+ Ergebnis der Performance-Analyse anhand des Aufrufstapels
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Prozedur</th>
+ <th>Zeit (s)</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 -->
diff --git a/framework/views/de/profile-summary-firebug.php b/framework/views/de/profile-summary-firebug.php
new file mode 100644
index 0000000..829ee64
--- /dev/null
+++ b/framework/views/de/profile-summary-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Ergebnis der Performance-Analyse");
+ console.log(" Anzahl Gesamt Durschn. Min Max ");
+<?php
+foreach($data as $index=>$entry)
+{
+ $proc=CJavaScript::quote($entry[0]);
+ $count=sprintf('%5d',$entry[1]); // 5 digits
+ $min=sprintf('%0.5f',$entry[2]); // 7 digits
+ $max=sprintf('%0.5f',$entry[3]); // 7 digits
+ $total=sprintf('%0.5f',$entry[4]); // 7 digits
+ $average=sprintf('%0.5f',$entry[4]/$entry[1]); // 7 digits
+ echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
+
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script>
diff --git a/framework/views/de/profile-summary.php b/framework/views/de/profile-summary.php
new file mode 100644
index 0000000..361062c
--- /dev/null
+++ b/framework/views/de/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">
+ Ergebnis der Perfomance-Analyse
+ (Zeit: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Speicher: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Prozedur</th>
+ <th>Anzahl</th>
+ <th>Gesamt (s)</th>
+ <th>Durschn. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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 -->
diff --git a/framework/views/el/error.php b/framework/views/el/error.php
new file mode 100644
index 0000000..24346c0
--- /dev/null
+++ b/framework/views/el/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>Σφάλμα <?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/el/error400.php b/framework/views/el/error400.php
new file mode 100644
index 0000000..ff581c2
--- /dev/null
+++ b/framework/views/el/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>Λανθασμένη Αίτηση</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/el/error403.php b/framework/views/el/error403.php
new file mode 100644
index 0000000..edba3c3
--- /dev/null
+++ b/framework/views/el/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>Χωρίς Εξουσιοδότηση</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/el/error404.php b/framework/views/el/error404.php
new file mode 100644
index 0000000..2de3944
--- /dev/null
+++ b/framework/views/el/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>Δε βρέθηκε η σελίδα</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 που αιτήθηκε δεν ήταν δυνατό να βρεθεί στο διακομιστή.
+Αν εισάγατε τη διεύθυνση με το χέρι, παρακαλούμε ελέγξτε την ορθογραφία της και δοκιμάστε πάλι.
+</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/el/error500.php b/framework/views/el/error500.php
new file mode 100644
index 0000000..fc2b29b
--- /dev/null
+++ b/framework/views/el/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>Εσωτερικό Σφάλμα Διακομιστή</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/el/error503.php b/framework/views/el/error503.php
new file mode 100644
index 0000000..0732c00
--- /dev/null
+++ b/framework/views/el/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>Μη Διαθέσιμη Υπηρεσία</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/el/log-firebug.php b/framework/views/el/log-firebug.php
new file mode 100644
index 0000000..63ba98d
--- /dev/null
+++ b/framework/views/el/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?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/el/log.php b/framework/views/el/log.php
new file mode 100644
index 0000000..6fa3d88
--- /dev/null
+++ b/framework/views/el/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]).sprintf('%06d',(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/el/profile-callstack-firebug.php b/framework/views/el/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/el/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/el/profile-callstack.php b/framework/views/el/profile-callstack.php
new file mode 100644
index 0000000..31334ee
--- /dev/null
+++ b/framework/views/el/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">
+ Αναφορά Προφίλ Κλήσεων Στοίβας
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Διαδικασία</th>
+ <th>Χρόνος (δευτ.)</th>
+ </tr>
+<?php
+foreach($data as $index=>$entry)
+{
+ $color=($index%2)?'#F5F5F5':'#EBF8FE';
+ 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/el/profile-summary-firebug.php b/framework/views/el/profile-summary-firebug.php
new file mode 100644
index 0000000..dcca4c0
--- /dev/null
+++ b/framework/views/el/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" count total average min max ");
+<?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/el/profile-summary.php b/framework/views/el/profile-summary.php
new file mode 100644
index 0000000..bf9535a
--- /dev/null
+++ b/framework/views/el/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">
+ Αναφορά Περίληψης Προφίλ
+ (Χρόνος: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Μνήμη: <?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':'#EBF8FE';
+ $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
diff --git a/framework/views/error.php b/framework/views/error.php
new file mode 100644
index 0000000..0a3b226
--- /dev/null
+++ b/framework/views/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>Error <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+The above error occurred when the Web server was processing your request.
+</p>
+<p>
+If you think this is a server error, please contact <?php echo $data['admin']; ?>.
+</p>
+<p>
+Thank you.
+</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/error400.php b/framework/views/error400.php
new file mode 100644
index 0000000..c90b391
--- /dev/null
+++ b/framework/views/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>Bad Request</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+The request could not be understood by the server due to malformed syntax.
+Please do not repeat the request without modifications.
+</p>
+<p>
+If you think this is a server error, please contact <?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/error403.php b/framework/views/error403.php
new file mode 100644
index 0000000..c6ecf61
--- /dev/null
+++ b/framework/views/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>Unauthorized</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+You do not have the proper credential to access this page.
+</p>
+<p>
+If you think this is a server error, please contact <?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/error404.php b/framework/views/error404.php
new file mode 100644
index 0000000..f6a761d
--- /dev/null
+++ b/framework/views/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>Page Not Found</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+The requested URL was not found on this server.
+If you entered the URL manually please check your spelling and try again.
+</p>
+<p>
+If you think this is a server error, please contact <?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/error500.php b/framework/views/error500.php
new file mode 100644
index 0000000..e73011c
--- /dev/null
+++ b/framework/views/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>Internal Server Error</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+An internal error occurred while the Web server was processing your request.
+Please contact <?php echo $data['admin']; ?> to report this problem.
+</p>
+<p>
+Thank you.
+</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/error503.php b/framework/views/error503.php
new file mode 100644
index 0000000..4a16e75
--- /dev/null
+++ b/framework/views/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>Service Unavailable</h1>
+<p>
+Our system is currently under maintenance. Please come back later.
+</p>
+<p>
+Thank you.
+</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/es/error.php b/framework/views/es/error.php
new file mode 100644
index 0000000..5edba86
--- /dev/null
+++ b/framework/views/es/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="es" lang="es">
+<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>Error <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+El error mencionado ocurrió cuando el Servidor Web estaba procesando su solicitud.
+</p>
+<p>
+Si piensa que este es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
+</p>
+<p>
+Gracias.
+</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/es/error400.php b/framework/views/es/error400.php
new file mode 100644
index 0000000..99346e4
--- /dev/null
+++ b/framework/views/es/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="es" lang="es">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Solicitud Incorrecta</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>Solicitud incorrecta</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+La solicitud no pudo ser entendida por el servidor por un error de sintaxis.
+Por favor, no intente realizar esta solicitud sin realizar modificaciones.
+</p>
+<p>
+Si piensa que éste es un error del servidor, por favor contacte a <?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/es/error403.php b/framework/views/es/error403.php
new file mode 100644
index 0000000..1e7627a
--- /dev/null
+++ b/framework/views/es/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="es" lang="es">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>No Autorizado</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>No Autorizado</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+No tiene los permisos necesarios para acceder a esta página.
+</p>
+<p>
+Si piensa que este es un error del servidor, por favor contacte a <?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/es/error404.php b/framework/views/es/error404.php
new file mode 100644
index 0000000..34dd77b
--- /dev/null
+++ b/framework/views/es/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="es" lang="es">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Página no encontrada</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>Página no encontrada</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+La URL solicitada no fue encontrada en este servidor.
+Si ingresó la dirección manualmente, por favor verifique que haya sido bien digitada e intente nuevamente.
+</p>
+<p>
+Si piensa que este es un error del servidor, por favor contacte a <?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/es/error500.php b/framework/views/es/error500.php
new file mode 100644
index 0000000..e73011c
--- /dev/null
+++ b/framework/views/es/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>Internal Server Error</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+An internal error occurred while the Web server was processing your request.
+Please contact <?php echo $data['admin']; ?> to report this problem.
+</p>
+<p>
+Thank you.
+</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/es/error503.php b/framework/views/es/error503.php
new file mode 100644
index 0000000..f0e401c
--- /dev/null
+++ b/framework/views/es/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="es" lang="es">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Servicio No Disponible</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>Servicio No Disponible</h1>
+<p>
+Nuestro sistema está actualmente en mantenimiento. Por favor regrese más tarde.
+</p>
+<p>
+Gracias.
+</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/es/log-firebug.php b/framework/views/es/log-firebug.php
new file mode 100644
index 0000000..cf24351
--- /dev/null
+++ b/framework/views/es/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Registro de Aplicación");
+<?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/es/log.php b/framework/views/es/log.php
new file mode 100644
index 0000000..3e2d1de
--- /dev/null
+++ b/framework/views/es/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">
+ Application Log
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Level</th>
+ <th>Category</th>
+ <th>Message</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/es/profile-callstack-firebug.php b/framework/views/es/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/es/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/es/profile-callstack.php b/framework/views/es/profile-callstack.php
new file mode 100644
index 0000000..f465477
--- /dev/null
+++ b/framework/views/es/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 Report
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimiento</th>
+ <th>Tiempo (s)</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/es/profile-summary-firebug.php b/framework/views/es/profile-summary-firebug.php
new file mode 100644
index 0000000..657129d
--- /dev/null
+++ b/framework/views/es/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" cuenta total promedio min max ");
+<?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/es/profile-summary.php b/framework/views/es/profile-summary.php
new file mode 100644
index 0000000..428b8be
--- /dev/null
+++ b/framework/views/es/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 Summary Report
+ (Tiempo: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Memoria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimiento</th>
+ <th>Cuenta</th>
+ <th>Total (es)</th>
+ <th>Promedio (s)</th>
+ <th>Min. (s)</th>
+ <th>Máx. (s)</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
diff --git a/framework/views/exception.php b/framework/views/exception.php
new file mode 100644
index 0000000..749b29d
--- /dev/null
+++ b/framework/views/exception.php
@@ -0,0 +1,242 @@
+<!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><?php echo $data['type']; ?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+
+body {
+ font: normal 9pt "Verdana";
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ font: normal 18pt "Verdana";
+ color: #f00;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font: normal 14pt "Verdana";
+ color: #800000;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font: bold 11pt "Verdana";
+}
+
+pre {
+ font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
+}
+
+pre span.error {
+ display: block;
+ background: #fce3e3;
+}
+
+pre span.ln {
+ color: #999;
+ padding-right: 0.5em;
+ border-right: 1px solid #ccc;
+}
+
+pre span.error-ln {
+ font-weight: bold;
+}
+
+.container {
+ margin: 1em 4em;
+}
+
+.version {
+ color: gray;
+ font-size: 8pt;
+ border-top: 1px solid #aaa;
+ padding-top: 1em;
+ margin-bottom: 1em;
+}
+
+.message {
+ color: #000;
+ padding: 1em;
+ font-size: 11pt;
+ background: #f3f3f3;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ margin-bottom: 1em;
+ line-height: 160%;
+}
+
+.source {
+ margin-bottom: 1em;
+}
+
+.code pre {
+ background-color: #ffe;
+ margin: 0.5em 0;
+ padding: 0.5em;
+ line-height: 125%;
+ border: 1px solid #eee;
+}
+
+.source .file {
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+.traces {
+ margin: 2em 0;
+}
+
+.trace {
+ margin: 0.5em 0;
+ padding: 0.5em;
+}
+
+.trace.app {
+ border: 1px dashed #c00;
+}
+
+.trace .number {
+ text-align: right;
+ width: 2em;
+ padding: 0.5em;
+}
+
+.trace .content {
+ padding: 0.5em;
+}
+
+.trace .plus,
+.trace .minus {
+ display:inline;
+ vertical-align:middle;
+ text-align:center;
+ border:1px solid #000;
+ color:#000;
+ font-size:10px;
+ line-height:10px;
+ margin:0;
+ padding:0 1px;
+ width:10px;
+ height:10px;
+}
+
+.trace.collapsed .minus,
+.trace.expanded .plus,
+.trace.collapsed pre {
+ display: none;
+}
+
+.trace-file {
+ cursor: pointer;
+ padding: 0.2em;
+}
+
+.trace-file:hover {
+ background: #f0ffff;
+}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<div class="container">
+ <h1><?php echo $data['type']?></h1>
+
+ <p class="message">
+ <?php echo nl2br(htmlspecialchars($data['message'],ENT_QUOTES,Yii::app()->charset))?>
+ </p>
+
+ <div class="source">
+ <p class="file"><?php echo htmlspecialchars($data['file'],ENT_QUOTES,Yii::app()->charset)."({$data['line']})"?></p>
+ <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
+ </div>
+
+ <div class="traces">
+ <h2>Stack Trace</h2>
+ <?php $count=0; ?>
+ <table style="width:100%;">
+ <?php foreach($data['traces'] as $n => $trace): ?>
+ <?php
+ if($this->isCoreCode($trace))
+ $cssClass='core collapsed';
+ else if(++$count>3)
+ $cssClass='app collapsed';
+ else
+ $cssClass='app expanded';
+ $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
+ ?>
+ <tr class="trace <?php echo $cssClass; ?>">
+ <td class="number">
+ #<?php echo $n; ?>
+ </td>
+ <td class="content">
+ <div class="trace-file">
+ <?php if($hasCode): ?>
+ <div class="plus">+</div>
+ <div class="minus">–</div>
+ <?php endif; ?>
+ <?php
+ echo '&nbsp;';
+ echo htmlspecialchars($trace['file'],ENT_QUOTES,Yii::app()->charset)."(".$trace['line'].")";
+ echo ': ';
+ if(!empty($trace['class']))
+ echo "<strong>{$trace['class']}</strong>{$trace['type']}";
+ echo "<strong>{$trace['function']}</strong>(";
+ if(!empty($trace['args']))
+ echo htmlspecialchars($this->argumentsToString($trace['args']),ENT_QUOTES,Yii::app()->charset);
+ echo ')';
+ ?>
+ </div>
+
+ <?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </div>
+
+ <div class="version">
+ <?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+ </div>
+</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
+var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
+
+var e = document.getElementsByTagName("div");
+for(var j=0,len=e.length;j<len;j++){
+ if(traceReg.test(e[j].className)){
+ e[j].onclick = function(){
+ var trace = this.parentNode.parentNode;
+ if(collapsedReg.test(trace.className))
+ trace.className = trace.className.replace("collapsed", "expanded");
+ else
+ trace.className = trace.className.replace("expanded", "collapsed");
+ }
+ }
+}
+/*]]>*/
+</script>
+
+</body>
+</html>
diff --git a/framework/views/fr/error.php b/framework/views/fr/error.php
new file mode 100644
index 0000000..54e98e4
--- /dev/null
+++ b/framework/views/fr/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>Erreur <?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>Erreur <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+L'erreur ci-dessus est apparue pendant que le serveur Web traitait votre requête.
+</p>
+<p>
+Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?php echo $data['admin']; ?>.
+</p>
+<p>
+Merci.
+</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/fr/error400.php b/framework/views/fr/error400.php
new file mode 100644
index 0000000..43525d6
--- /dev/null
+++ b/framework/views/fr/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>Demande incorrecte</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>Demande Incorrecte</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+La demande n'a pas pu être interprétée par le serveur, due à une mauvaise syntaxe.
+Merci de ne pas répeter la requete sans modifications.
+</p>
+<p>
+Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?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/fr/error403.php b/framework/views/fr/error403.php
new file mode 100644
index 0000000..dfece8c
--- /dev/null
+++ b/framework/views/fr/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>Accès interdit</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>Accès interdit</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Vous n'avez pas les autorisations nécessaires pour accéder à cette page.
+</p>
+<p>
+Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?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/fr/error404.php b/framework/views/fr/error404.php
new file mode 100644
index 0000000..34a8c33
--- /dev/null
+++ b/framework/views/fr/error404.php
@@ -0,0 +1,34 @@
+<!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 Non trouvée</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>Page Non trouvée</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+L'URL demandée n'existe pas sur ce serveur.
+If you entered the URL manually please check your spelling and try again.
+Si vous avez saisi l'URL manuellement, vérifiez la, et réessayez.
+</p>
+<p>
+Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?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/fr/error500.php b/framework/views/fr/error500.php
new file mode 100644
index 0000000..b6665c2
--- /dev/null
+++ b/framework/views/fr/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>Erreur interne du serveur</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>Erreur interne du serveur</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Une erreur interne est apparue lorsque le serveur web traitait votre requete.
+Veuillez contacter <?php echo $data['admin']; ?> pour signaler ce problème.
+</p>
+<p>
+Merci.
+</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/fr/error503.php b/framework/views/fr/error503.php
new file mode 100644
index 0000000..1a67b51
--- /dev/null
+++ b/framework/views/fr/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 non disponible</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>Service non disponible</h1>
+<p>
+Notre système est momentanément indisponible. Merci de réessayer plus tard.
+</p>
+<p>
+Merci.
+</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/fr/log-firebug.php b/framework/views/fr/log-firebug.php
new file mode 100644
index 0000000..63ba98d
--- /dev/null
+++ b/framework/views/fr/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?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/fr/log.php b/framework/views/fr/log.php
new file mode 100644
index 0000000..1d8ab0b
--- /dev/null
+++ b/framework/views/fr/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">
+ Journal d'application
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Heure</th>
+ <th>Niveau</th>
+ <th>Categorie</th>
+ <th>Message</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/fr/profile-callstack-firebug.php b/framework/views/fr/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/fr/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/fr/profile-callstack.php b/framework/views/fr/profile-callstack.php
new file mode 100644
index 0000000..adbd96f
--- /dev/null
+++ b/framework/views/fr/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">
+ Rapport de l'analyse de la pile d'appel
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Fonction</th>
+ <th>Durée (s)</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 -->
diff --git a/framework/views/fr/profile-summary-firebug.php b/framework/views/fr/profile-summary-firebug.php
new file mode 100644
index 0000000..4b9454c
--- /dev/null
+++ b/framework/views/fr/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Rapport de profilage");
+ console.log(" nb total moyenne min max ");
+<?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/fr/profile-summary.php b/framework/views/fr/profile-summary.php
new file mode 100644
index 0000000..fb2c21b
--- /dev/null
+++ b/framework/views/fr/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">
+ Sommaire du rapport de profilage
+ (Durée: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Memoire: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Fonction</th>
+ <th>Nb</th>
+ <th>Total (s)</th>
+ <th>Moy. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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 -->
diff --git a/framework/views/he/error.php b/framework/views/he/error.php
new file mode 100644
index 0000000..1e6c1f6
--- /dev/null
+++ b/framework/views/he/error.php
@@ -0,0 +1,38 @@
+<!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>שגיאה <?php echo $data['code']; ?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right;}
+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/he/error400.php b/framework/views/he/error400.php
new file mode 100644
index 0000000..73d8a1e
--- /dev/null
+++ b/framework/views/he/error400.php
@@ -0,0 +1,34 @@
+<!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>בקשה לא תקינה</title>
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right; }
+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/he/error403.php b/framework/views/he/error403.php
new file mode 100644
index 0000000..1a1fe2a
--- /dev/null
+++ b/framework/views/he/error403.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>לא מורשה</title>
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right; }
+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/he/error404.php b/framework/views/he/error404.php
new file mode 100644
index 0000000..d7cbcb8
--- /dev/null
+++ b/framework/views/he/error404.php
@@ -0,0 +1,34 @@
+<!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>עמוד לא קיים</title>
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right; }
+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/he/error500.php b/framework/views/he/error500.php
new file mode 100644
index 0000000..68223f3
--- /dev/null
+++ b/framework/views/he/error500.php
@@ -0,0 +1,36 @@
+<!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>שגיאת שרת פנימית</title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right; }
+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/he/error503.php b/framework/views/he/error503.php
new file mode 100644
index 0000000..52a1c17
--- /dev/null
+++ b/framework/views/he/error503.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>לא פעיל</title>
+<style type="text/css">
+/*<![CDATA[*/
+html { direction:rtl; text-align:right; }
+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/he/log-firebug.php b/framework/views/he/log-firebug.php
new file mode 100644
index 0000000..7d2a3c0
--- /dev/null
+++ b/framework/views/he/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/he/log.php b/framework/views/he/log.php
new file mode 100644
index 0000000..ebdb98b
--- /dev/null
+++ b/framework/views/he/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/he/profile-callstack-firebug.php b/framework/views/he/profile-callstack-firebug.php
new file mode 100644
index 0000000..fbe4fa6
--- /dev/null
+++ b/framework/views/he/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("דוח ניתוח פרופילים");
+<?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/he/profile-callstack.php b/framework/views/he/profile-callstack.php
new file mode 100644
index 0000000..3855583
--- /dev/null
+++ b/framework/views/he/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">
+ דוח ניתוח פרופילים
+ </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/he/profile-summary-firebug.php b/framework/views/he/profile-summary-firebug.php
new file mode 100644
index 0000000..6bc2a49
--- /dev/null
+++ b/framework/views/he/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("תחציר דוח פרופילים");
+ console.log(" count total average min max ");
+<?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/he/profile-summary.php b/framework/views/he/profile-summary.php
new file mode 100644
index 0000000..6ea46ec
--- /dev/null
+++ b/framework/views/he/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">
+ תקציר דוח פרופילים
+ (זמן: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>,
+ זכרון: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?> קילובייט)
+ </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
diff --git a/framework/views/hr/error.php b/framework/views/hr/error.php
new file mode 100644
index 0000000..25c87fa
--- /dev/null
+++ b/framework/views/hr/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>Greška <?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>Greška <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Greška iznad se dogodila prilikom obrade vašeg zahtjeva web-poslužitelja..
+</p>
+<p>
+Ako mislite da je ovo greška web servera, molimo kontaktirajte <?php echo $data['admin']; ?>.
+</p>
+<p>
+Zahvaljujemo.
+</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/hr/error400.php b/framework/views/hr/error400.php
new file mode 100644
index 0000000..5711566
--- /dev/null
+++ b/framework/views/hr/error400.php
@@ -0,0 +1,34 @@
+<!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>Neispravan zahtjev</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>Neispravan zahtjev</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Zahtjev se ne može procesuirati od strane poslužitelja zbog pogrešne sintakse.
+Molimo vas da ne ponavljate zahtjev bez modifikacije.
+
+</p>
+<p>
+Ako mislite da je ovo greška web servera, molimo kontaktirajte <?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/hr/error403.php b/framework/views/hr/error403.php
new file mode 100644
index 0000000..478d18e
--- /dev/null
+++ b/framework/views/hr/error403.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>Neovlašten pristup!</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>Neovlašten pristup!</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Nemate odgovarajuće uvjerenje za pristup ovoj stranici.
+
+</p>
+<p>
+Ako mislite da je ovo greška web servera, molimo kontaktirajte <?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/hr/error404.php b/framework/views/hr/error404.php
new file mode 100644
index 0000000..906d387
--- /dev/null
+++ b/framework/views/hr/error404.php
@@ -0,0 +1,34 @@
+<!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>Stranica nije pronađena!</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>Stranica nije pronađena!</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Traženi URL nije pronađen na ovom web poslužitelju.
+Ako ste unijeli URL ručno provjerite pravopis i pokušajte ponovno.
+
+</p>
+<p>
+Ako mislite da je ovo greška web servera, molimo kontaktirajte <?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/hr/error500.php b/framework/views/hr/error500.php
new file mode 100644
index 0000000..d112ee4
--- /dev/null
+++ b/framework/views/hr/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>Interna pogreška web poslužitelja</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>Interna pogreška web poslužitelja</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Interne pogreške web poslužitelja prilikom pocesuiranja vašeg zahtjeva.
+Molimo kontaktirajte <?php echo $data['admin']; ?> o ovom problemu.
+</p>
+<p>
+Zahvaljujemo.
+</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/hr/error503.php b/framework/views/hr/error503.php
new file mode 100644
index 0000000..4472bfb
--- /dev/null
+++ b/framework/views/hr/error503.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>Usluga nedostupna!</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>Usluga nedostupna!</h1>
+<p>
+Naš sustav je trenutno u procesu održavanja. Molimo vas da navratite kasnije.
+
+</p>
+<p>
+Zahvaljujemo.
+</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/hr/log-firebug.php b/framework/views/hr/log-firebug.php
new file mode 100644
index 0000000..d036f58
--- /dev/null
+++ b/framework/views/hr/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Prijavnica");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/hr/log.php b/framework/views/hr/log.php
new file mode 100644
index 0000000..4ee00f7
--- /dev/null
+++ b/framework/views/hr/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">
+ Prijavnica
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Vremenska oznaka</th>
+ <th>Razina</th>
+ <th>Kategorija</th>
+ <th>Poruka</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]).sprintf('%06d',(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/hr/profile-callstack-firebug.php b/framework/views/hr/profile-callstack-firebug.php
new file mode 100644
index 0000000..f2cb2a6
--- /dev/null
+++ b/framework/views/hr/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Izvješće profiliranja - stog za pozive");
+<?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/hr/profile-callstack.php b/framework/views/hr/profile-callstack.php
new file mode 100644
index 0000000..25e4185
--- /dev/null
+++ b/framework/views/hr/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">
+ Izvješće profiliranja - stog za pozive
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Postupak</th>
+ <th>Time (s)</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/hr/profile-summary-firebug.php b/framework/views/hr/profile-summary-firebug.php
new file mode 100644
index 0000000..e8201db
--- /dev/null
+++ b/framework/views/hr/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiliranje - Sažetak izvješća");
+ console.log(" izbrojati ukupno prosjek min max ");
+<?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> \ No newline at end of file
diff --git a/framework/views/hr/profile-summary.php b/framework/views/hr/profile-summary.php
new file mode 100644
index 0000000..c4701fc
--- /dev/null
+++ b/framework/views/hr/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">
+ Profiliranje - Sažetak izvješća
+ (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>Postupak</th>
+ <th>Izbrojati</th>
+ <th>Ukupno (s)</th>
+ <th>Prosjek (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/id/error.php b/framework/views/id/error.php
new file mode 100644
index 0000000..dea45e4
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Kesalahan <?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>Error <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Kesalahan di atas terjadi saat server Web memproses permintaan Anda.
+</p>
+<p>
+Jika Anda merasa ini adalah kesalahan server, silahkan hubungi <?php echo $data['admin']; ?>.
+</p>
+<p>
+Terima kasih.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/id/error400.php b/framework/views/id/error400.php
new file mode 100644
index 0000000..2cb028d
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Permintaan Salah</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>Permintaan Salah</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Permintaan tidak bisa dimengerti oleh server karena salah pembentukan sintaks.
+Harap tidak mengulang permintaan tanpa mengubahnya.
+</p>
+<p>
+Jika Anda merasa ini adalah kesalahan server, silahkan hubungi <?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html>
diff --git a/framework/views/id/error403.php b/framework/views/id/error403.php
new file mode 100644
index 0000000..c937dc2
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Dilarang Akses</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>Dilarang Akses</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Anda tidak memiliki kredensial yang benar untuk mengakses halaman ini.
+</p>
+<p>
+Jika Anda merasa ini adalah kesalahan server, silahkan hubungi <?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/id/error404.php b/framework/views/id/error404.php
new file mode 100644
index 0000000..062e8cc
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Halaman Tidak Ditemukan</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>Halaman Tidak Ditemukan</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+URL halaman yang diminta tidak ditemukan pada server.
+Jika Anda memasukkan URL secara manual, silahkan periksa ejaan Anda dan coba lagi.
+</p>
+<p>
+Jika Anda merasa ini adalah kesalahan server, silahkan hubungi <?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/id/error500.php b/framework/views/id/error500.php
new file mode 100644
index 0000000..df19ec3
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Kesalahan Server Internal</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>Kesalahan Server Internal</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Kesalahan internal terjadi saat server Web memproses permintaan Anda.
+Silahkan hubungi <?php echo $data['admin']; ?> untuk melaporkan masalah ini.
+</p>
+<p>
+Terima kasih.
+</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/id/error503.php b/framework/views/id/error503.php
new file mode 100644
index 0000000..4c81fc8
--- /dev/null
+++ b/framework/views/id/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="id" lang="id">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Layanan Tidak Tersedia</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>Layanan Tidak Tersedia</h1>
+<p>
+Sistem kami saat ini sedang dalam perawatan. Silahkan kembali lagi beberapa saat kemudian.
+</p>
+<p>
+Terima kasih.
+</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/id/log-firebug.php b/framework/views/id/log-firebug.php
new file mode 100644
index 0000000..9542e6a
--- /dev/null
+++ b/framework/views/id/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Log Aplikasi");
+<?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/id/log.php b/framework/views/id/log.php
new file mode 100644
index 0000000..8986ae5
--- /dev/null
+++ b/framework/views/id/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">
+ Log Aplikasi
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Waktu</th>
+ <th>Tingkat</th>
+ <th>Kategori</th>
+ <th>Pesan</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/id/profile-callstack-firebug.php b/framework/views/id/profile-callstack-firebug.php
new file mode 100644
index 0000000..355ccf1
--- /dev/null
+++ b/framework/views/id/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Laporan Profil Callstack");
+<?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/id/profile-callstack.php b/framework/views/id/profile-callstack.php
new file mode 100644
index 0000000..d5bf5c1
--- /dev/null
+++ b/framework/views/id/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">
+ Laporan Profil Callstack
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Prosedur</th>
+ <th>Jam</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/id/profile-summary-firebug.php b/framework/views/id/profile-summary-firebug.php
new file mode 100644
index 0000000..71f5a26
--- /dev/null
+++ b/framework/views/id/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Laporan Ringkasan Profil");
+ console.log(" jumlah total rata-rata min maks ");
+<?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/id/profile-summary.php b/framework/views/id/profile-summary.php
new file mode 100644
index 0000000..ccb896c
--- /dev/null
+++ b/framework/views/id/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">
+ Laporan Ringkasan Profil
+ (Waktu: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Memori: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Prosedur</th>
+ <th>Jumlah</th>
+ <th>Total</th>
+ <th>Rata-Rata</th>
+ <th>Min.</th>
+ <th>Maks.</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
diff --git a/framework/views/it/error.php b/framework/views/it/error.php
new file mode 100644
index 0000000..07e2f86
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Errore <?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>Errore <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Questo errore &egrave; avvenuto mentre il server Web stava elaborando la tua richiesta.
+</p>
+<p>
+Se pensi che &egrave; un errore del server, contatta cortesemente <?php echo $data['admin']; ?>.
+</p>
+<p>
+Grazie.
+</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/it/error400.php b/framework/views/it/error400.php
new file mode 100644
index 0000000..a76b4e8
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Richiesta Errata</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>Richiesta Errata</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+La richiesta non &egrave; stata gestita dal server a causa di una sintassi non corretta.
+Cortesemente non ripetere la richiesta senza modifiche.
+</p>
+<p>
+Se pensi che &egrave; un errore del server, contatta cortesemente <?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/it/error403.php b/framework/views/it/error403.php
new file mode 100644
index 0000000..d5a8547
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Non autorizzato</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>Non autorizzato</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Tu non possiedi le giuste credenziali per accedere a questa pagina.
+</p>
+<p>
+Se pensi che &egrave; un errore del server, contatta cortesemente <?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/it/error404.php b/framework/views/it/error404.php
new file mode 100644
index 0000000..5b6fc65
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Pagina non trovata</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>Pagina non trovata</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+L'URL richiesto non &egrave; stato trovato su questo server.
+Se hai digitato l'URL manualmente, prego controlla meglio e riprova.
+</p>
+<p>
+Se pensi che &egrave; un errore del server, contatta cortesemente <?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/it/error500.php b/framework/views/it/error500.php
new file mode 100644
index 0000000..d73e3f9
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<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>Internal Server Error</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Un errore interno &egrave; occorso mentre il server web stava elaborando la tua richiesta.
+Contatta cortesemente <?php echo $data['admin']; ?> per avvisarlo dell'errore.
+</p>
+<p>
+Grazie.
+</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/it/error503.php b/framework/views/it/error503.php
new file mode 100644
index 0000000..c2bd1e4
--- /dev/null
+++ b/framework/views/it/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="it" lang="it">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Servizio non disponibile</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>Servizio non disponibile</h1>
+<p>
+Il nostro sistema &egrave; attualmente in manutenzione. Prova pi&ugrave; tardi.
+</p>
+<p>
+Grazie.
+</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/it/log-firebug.php b/framework/views/it/log-firebug.php
new file mode 100644
index 0000000..e530e08
--- /dev/null
+++ b/framework/views/it/log-firebug.php
@@ -0,0 +1,23 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/it/log.php b/framework/views/it/log.php
new file mode 100644
index 0000000..5887b12
--- /dev/null
+++ b/framework/views/it/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">
+ Log Applicazione
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Livello</th>
+ <th>Categoria/th>
+ <th>Messaggio</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]).sprintf('%06d',(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/it/profile-callstack-firebug.php b/framework/views/it/profile-callstack-firebug.php
new file mode 100644
index 0000000..45ff85f
--- /dev/null
+++ b/framework/views/it/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Report Profiling Callstack");
+<?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/it/profile-callstack.php b/framework/views/it/profile-callstack.php
new file mode 100644
index 0000000..f19e092
--- /dev/null
+++ b/framework/views/it/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">
+ Report Profiling Callstack
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedura</th>
+ <th>Tempo (s)</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/it/profile-summary-firebug.php b/framework/views/it/profile-summary-firebug.php
new file mode 100644
index 0000000..2ee4453
--- /dev/null
+++ b/framework/views/it/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Report Sommario del Profiling");
+ console.log(" count totale media min max ");
+<?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/it/profile-summary.php b/framework/views/it/profile-summary.php
new file mode 100644
index 0000000..9e163a5
--- /dev/null
+++ b/framework/views/it/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">
+ Report Sommario di Profiling
+ (Tempo: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Memoria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedura</th>
+ <th>Cont.</th>
+ <th>Totale (s)</th>
+ <th>Med. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/ja/error.php b/framework/views/ja/error.php
new file mode 100644
index 0000000..a2cf24e
--- /dev/null
+++ b/framework/views/ja/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/ja/error400.php b/framework/views/ja/error400.php
new file mode 100644
index 0000000..de4d553
--- /dev/null
+++ b/framework/views/ja/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/ja/error403.php b/framework/views/ja/error403.php
new file mode 100644
index 0000000..75a975c
--- /dev/null
+++ b/framework/views/ja/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/ja/error404.php b/framework/views/ja/error404.php
new file mode 100644
index 0000000..23db2c5
--- /dev/null
+++ b/framework/views/ja/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/ja/error500.php b/framework/views/ja/error500.php
new file mode 100644
index 0000000..7cc2a7d
--- /dev/null
+++ b/framework/views/ja/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/ja/error503.php b/framework/views/ja/error503.php
new file mode 100644
index 0000000..3be6aed
--- /dev/null
+++ b/framework/views/ja/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/ja/log-firebug.php b/framework/views/ja/log-firebug.php
new file mode 100644
index 0000000..60f2075
--- /dev/null
+++ b/framework/views/ja/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/ja/log.php b/framework/views/ja/log.php
new file mode 100644
index 0000000..0d48494
--- /dev/null
+++ b/framework/views/ja/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/ja/profile-callstack-firebug.php b/framework/views/ja/profile-callstack-firebug.php
new file mode 100644
index 0000000..224a630
--- /dev/null
+++ b/framework/views/ja/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("プロファイリングコールスタックレポート");
+<?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/ja/profile-callstack.php b/framework/views/ja/profile-callstack.php
new file mode 100644
index 0000000..6e15073
--- /dev/null
+++ b/framework/views/ja/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">
+ プロファイリング コールスタック レポート
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>プロシージャ</th>
+ <th>時間 (s)</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/ja/profile-summary-firebug.php b/framework/views/ja/profile-summary-firebug.php
new file mode 100644
index 0000000..b25b03c
--- /dev/null
+++ b/framework/views/ja/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("プロファイリング概要レポート");
+ console.log(" count total average min max ");
+<?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/ja/profile-summary.php b/framework/views/ja/profile-summary.php
new file mode 100644
index 0000000..ab151b4
--- /dev/null
+++ b/framework/views/ja/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">
+ プロファイリング概要レポート
+ (時間: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ メモリ: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>プロシージャ</th>
+ <th>回数</th>
+ <th>合計 (s)</th>
+ <th>平均 (s)</th>
+ <th>最小 (s)</th>
+ <th>最大 (s)</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
diff --git a/framework/views/ko/error.php b/framework/views/ko/error.php
new file mode 100644
index 0000000..356f01e
--- /dev/null
+++ b/framework/views/ko/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>에러 <?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>
diff --git a/framework/views/ko/error400.php b/framework/views/ko/error400.php
new file mode 100644
index 0000000..7e689d8
--- /dev/null
+++ b/framework/views/ko/error400.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>잘못된 요청</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>
diff --git a/framework/views/ko/error403.php b/framework/views/ko/error403.php
new file mode 100644
index 0000000..ab9d48c
--- /dev/null
+++ b/framework/views/ko/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>권한 없음</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>
diff --git a/framework/views/ko/error404.php b/framework/views/ko/error404.php
new file mode 100644
index 0000000..8bfa70c
--- /dev/null
+++ b/framework/views/ko/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>페이지 없음</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>
diff --git a/framework/views/ko/error500.php b/framework/views/ko/error500.php
new file mode 100644
index 0000000..799376a
--- /dev/null
+++ b/framework/views/ko/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>내부 서버 에러</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>
diff --git a/framework/views/ko/error503.php b/framework/views/ko/error503.php
new file mode 100644
index 0000000..bc0245d
--- /dev/null
+++ b/framework/views/ko/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>접근 불가</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>
diff --git a/framework/views/ko/exception.php b/framework/views/ko/exception.php
new file mode 100644
index 0000000..6311c7c
--- /dev/null
+++ b/framework/views/ko/exception.php
@@ -0,0 +1,242 @@
+<!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><?php echo CHtml::encode($data['type'])?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+
+body {
+ font: normal 9pt "Verdana";
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ font: normal 18pt "Verdana";
+ color: #f00;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font: normal 14pt "Verdana";
+ color: #800000;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font: bold 11pt "Verdana";
+}
+
+pre {
+ font: normal 11pt Menlo, Consolas, "Lucida Console";
+}
+
+pre span.error {
+ display: block;
+ background: #fce3e3;
+}
+
+pre span.ln {
+ color: #999;
+ padding-right: 0.5em;
+ border-right: 1px solid #ccc;
+}
+
+pre span.error-ln {
+ font-weight: bold;
+}
+
+.container {
+ margin: 1em 4em;
+}
+
+.version {
+ color: gray;
+ font-size: 8pt;
+ border-top: 1px solid #aaa;
+ padding-top: 1em;
+ margin-bottom: 1em;
+}
+
+.message {
+ color: #000;
+ padding: 1em;
+ font-size: 11pt;
+ background: #f3f3f3;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ margin-bottom: 1em;
+ line-height: 160%;
+}
+
+.source {
+ margin-bottom: 1em;
+}
+
+.code pre {
+ background-color: #ffe;
+ margin: 0.5em 0;
+ padding: 0.5em;
+ line-height: 125%;
+ border: 1px solid #eee;
+}
+
+.source .file {
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+.traces {
+ margin: 2em 0;
+}
+
+.trace {
+ margin: 0.5em 0;
+ padding: 0.5em;
+}
+
+.trace.app {
+ border: 1px dashed #c00;
+}
+
+.trace .number {
+ text-align: right;
+ width: 2em;
+ padding: 0.5em;
+}
+
+.trace .content {
+ padding: 0.5em;
+}
+
+.trace .plus,
+.trace .minus {
+ display:inline;
+ vertical-align:middle;
+ text-align:center;
+ border:1px solid #000;
+ color:#000;
+ font-size:10px;
+ line-height:10px;
+ margin:0;
+ padding:0 1px;
+ width:10px;
+ height:10px;
+}
+
+.trace.collapsed .minus,
+.trace.expanded .plus,
+.trace.collapsed pre {
+ display: none;
+}
+
+.trace-file {
+ cursor: pointer;
+ padding: 0.2em;
+}
+
+.trace-file:hover {
+ background: #f0ffff;
+}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<div class="container">
+ <h1><?php echo $data['type']?></h1>
+
+ <p class="message">
+ <?php echo nl2br(CHtml::encode($data['message']))?>
+ </p>
+
+ <div class="source">
+ <p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
+ <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
+ </div>
+
+ <div class="traces">
+ <h2>Stack Trace</h2>
+ <?php $count=0; ?>
+ <table style="width:100%;">
+ <?php foreach($data['traces'] as $n => $trace): ?>
+ <?php
+ if($this->isCoreCode($trace))
+ $cssClass='core collapsed';
+ else if(++$count>3)
+ $cssClass='app collapsed';
+ else
+ $cssClass='app expanded';
+ $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
+ ?>
+ <tr class="trace <?php echo $cssClass; ?>">
+ <td class="number">
+ #<?php echo $n; ?>
+ </td>
+ <td class="content">
+ <div class="trace-file">
+ <?php if($hasCode): ?>
+ <div class="plus">+</div>
+ <div class="minus">–</div>
+ <?php endif; ?>
+ <?php
+ echo '&nbsp;';
+ echo CHtml::encode($trace['file'])."(".$trace['line'].")";
+ echo ': ';
+ if(!empty($trace['class']))
+ echo "<strong>{$trace['class']}</strong>{$trace['type']}";
+ echo "<strong>{$trace['function']}</strong>(";
+ if(!empty($trace['args']))
+ echo CHtml::encode($this->argumentsToString($trace['args']));
+ echo ')';
+ ?>
+ </div>
+
+ <?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </div>
+
+ <div class="version">
+ <?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+ </div>
+</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
+var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
+
+var e = document.getElementsByTagName("div");
+for(var j=0,len=e.length;j<len;j++){
+ if(traceReg.test(e[j].className)){
+ e[j].onclick = function(){
+ var trace = this.parentNode.parentNode;
+ if(collapsedReg.test(trace.className))
+ trace.className = trace.className.replace("collapsed", "expanded");
+ else
+ trace.className = trace.className.replace("expanded", "collapsed");
+ }
+ }
+}
+/*]]>*/
+</script>
+
+</body>
+</html>
diff --git a/framework/views/ko/log-firebug.php b/framework/views/ko/log-firebug.php
new file mode 100644
index 0000000..9a0638f
--- /dev/null
+++ b/framework/views/ko/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/ko/log.php b/framework/views/ko/log.php
new file mode 100644
index 0000000..1187d2f
--- /dev/null
+++ b/framework/views/ko/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">
+ Application Log
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Level</th>
+ <th>Category</th>
+ <th>Message</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]).sprintf('%06d',(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/ko/profile-callstack-firebug.php b/framework/views/ko/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/ko/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/ko/profile-callstack.php b/framework/views/ko/profile-callstack.php
new file mode 100644
index 0000000..f4b4014
--- /dev/null
+++ b/framework/views/ko/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 Report
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedure</th>
+ <th>Time (s)</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/ko/profile-summary-firebug.php b/framework/views/ko/profile-summary-firebug.php
new file mode 100644
index 0000000..dcca4c0
--- /dev/null
+++ b/framework/views/ko/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" count total average min max ");
+<?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/ko/profile-summary.php b/framework/views/ko/profile-summary.php
new file mode 100644
index 0000000..9fe021b
--- /dev/null
+++ b/framework/views/ko/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 Summary Report
+ (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>Procedure</th>
+ <th>Count</th>
+ <th>Total (s)</th>
+ <th>Avg. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/log-firebug.php b/framework/views/log-firebug.php
new file mode 100644
index 0000000..9a0638f
--- /dev/null
+++ b/framework/views/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/log.php b/framework/views/log.php
new file mode 100644
index 0000000..1187d2f
--- /dev/null
+++ b/framework/views/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">
+ Application Log
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Level</th>
+ <th>Category</th>
+ <th>Message</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]).sprintf('%06d',(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/lt/error.php b/framework/views/lt/error.php
new file mode 100644
index 0000000..2d750d1
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Klaida <?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>Klaida <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Apdorojant užklausą, įvyko aukščiau nurodyta klaida.
+</p>
+<p>
+Jeigu manote, kad tai serverio klaida, prašytume apie ją pranešti <?php echo $data['admin']; ?>.
+</p>
+<p>
+Ačiū.
+</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/lt/error400.php b/framework/views/lt/error400.php
new file mode 100644
index 0000000..4bd1a2c
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Klaidinga užklausa</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>Klaidinga užklausa</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Serveris negali įvykdyti, tikėtina, neteisingai suformuotos užklausos.
+Prašytume nekartoti šio veiksmo nepakeitus užklausos.
+</p>
+<p>
+Jeigu manote, kad tai serverio klaida, prašytume apie ją pranešti <?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/lt/error403.php b/framework/views/lt/error403.php
new file mode 100644
index 0000000..c3a5a51
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Nesankcionuota</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>Nesankcionuota</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Jūs neturite reikalingų teisių atversti šį puslapį.
+</p>
+<p>
+Jeigu manote, kad tai serverio klaida, prašytume apie ją pranešti <?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/lt/error404.php b/framework/views/lt/error404.php
new file mode 100644
index 0000000..2540f26
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Puslapis nerastas</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>Puslapis nerastas</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Užklaustas puslapis serveryje nerastas.
+Jeigu adresą suvedėte rankiniu būdu, prašytume pasitikslinti rašybą ir bandyti dar kartą.
+</p>
+<p>
+Jeigu manote, kad tai serverio klaida, prašytume apie ją pranešti <?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/lt/error500.php b/framework/views/lt/error500.php
new file mode 100644
index 0000000..8cd8da2
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Vidinė serverio klaida</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>Vidinė serverio klaida</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Apdorojant Jūsų užklausą įvyko vidinė serverio klaida.
+Prašytume susisiekti <?php echo $data['admin']; ?> ir pranešti apie šią klaidą.
+</p>
+<p>
+Ačiū.
+</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/lt/error503.php b/framework/views/lt/error503.php
new file mode 100644
index 0000000..a84532b
--- /dev/null
+++ b/framework/views/lt/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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Paslauga nepasiekiama</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>Paslauga nepasiekiama</h1>
+<p>
+Šiuo metu sistema tvarkoma, prašytume užsukti vėliau.
+</p>
+<p>
+Ačiū.
+</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/lt/exception.php b/framework/views/lt/exception.php
new file mode 100644
index 0000000..319a960
--- /dev/null
+++ b/framework/views/lt/exception.php
@@ -0,0 +1,242 @@
+<!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="lt" lang="lt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title><?php echo CHtml::encode($data['type'])?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+
+body {
+ font: normal 9pt "Verdana";
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ font: normal 18pt "Verdana";
+ color: #f00;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font: normal 14pt "Verdana";
+ color: #800000;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font: bold 11pt "Verdana";
+}
+
+pre {
+ font: normal 11pt Menlo, Consolas, "Lucida Console";
+}
+
+pre span.error {
+ display: block;
+ background: #fce3e3;
+}
+
+pre span.ln {
+ color: #999;
+ padding-right: 0.5em;
+ border-right: 1px solid #ccc;
+}
+
+pre span.error-ln {
+ font-weight: bold;
+}
+
+.container {
+ margin: 1em 4em;
+}
+
+.version {
+ color: gray;
+ font-size: 8pt;
+ border-top: 1px solid #aaa;
+ padding-top: 1em;
+ margin-bottom: 1em;
+}
+
+.message {
+ color: #000;
+ padding: 1em;
+ font-size: 11pt;
+ background: #f3f3f3;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ margin-bottom: 1em;
+ line-height: 160%;
+}
+
+.source {
+ margin-bottom: 1em;
+}
+
+.code pre {
+ background-color: #ffe;
+ margin: 0.5em 0;
+ padding: 0.5em;
+ line-height: 125%;
+ border: 1px solid #eee;
+}
+
+.source .file {
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+.traces {
+ margin: 2em 0;
+}
+
+.trace {
+ margin: 0.5em 0;
+ padding: 0.5em;
+}
+
+.trace.app {
+ border: 1px dashed #c00;
+}
+
+.trace .number {
+ text-align: right;
+ width: 2em;
+ padding: 0.5em;
+}
+
+.trace .content {
+ padding: 0.5em;
+}
+
+.trace .plus,
+.trace .minus {
+ display:inline;
+ vertical-align:middle;
+ text-align:center;
+ border:1px solid #000;
+ color:#000;
+ font-size:10px;
+ line-height:10px;
+ margin:0;
+ padding:0 1px;
+ width:10px;
+ height:10px;
+}
+
+.trace.collapsed .minus,
+.trace.expanded .plus,
+.trace.collapsed pre {
+ display: none;
+}
+
+.trace-file {
+ cursor: pointer;
+ padding: 0.2em;
+}
+
+.trace-file:hover {
+ background: #f0ffff;
+}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<div class="container">
+ <h1><?php echo $data['type']?></h1>
+
+ <p class="message">
+ <?php echo nl2br(CHtml::encode($data['message']))?>
+ </p>
+
+ <div class="source">
+ <p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
+ <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
+ </div>
+
+ <div class="traces">
+ <h2>Dėklo pėdsakas</h2>
+ <?php $count=0; ?>
+ <table style="width:100%;">
+ <?php foreach($data['traces'] as $n => $trace): ?>
+ <?php
+ if($this->isCoreCode($trace))
+ $cssClass='core collapsed';
+ else if(++$count>3)
+ $cssClass='app collapsed';
+ else
+ $cssClass='app expanded';
+ $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
+ ?>
+ <tr class="trace <?php echo $cssClass; ?>">
+ <td class="number">
+ #<?php echo $n; ?>
+ </td>
+ <td class="content">
+ <div class="trace-file">
+ <?php if($hasCode): ?>
+ <div class="plus">+</div>
+ <div class="minus">–</div>
+ <?php endif; ?>
+ <?php
+ echo '&nbsp;';
+ echo CHtml::encode($trace['file'])."(".$trace['line'].")";
+ echo ': ';
+ if(!empty($trace['class']))
+ echo "<strong>{$trace['class']}</strong>{$trace['type']}";
+ echo "<strong>{$trace['function']}</strong>(";
+ if(!empty($trace['args']))
+ echo CHtml::encode($this->argumentsToString($trace['args']));
+ echo ')';
+ ?>
+ </div>
+
+ <?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </div>
+
+ <div class="version">
+ <?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+ </div>
+</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
+var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
+
+var e = document.getElementsByTagName("div");
+for(var j=0,len=e.length;j<len;j++){
+ if(traceReg.test(e[j].className)){
+ e[j].onclick = function(){
+ var trace = this.parentNode.parentNode;
+ if(collapsedReg.test(trace.className))
+ trace.className = trace.className.replace("collapsed", "expanded");
+ else
+ trace.className = trace.className.replace("expanded", "collapsed");
+ }
+ }
+}
+/*]]>*/
+</script>
+
+</body>
+</html>
diff --git a/framework/views/lt/log-firebug.php b/framework/views/lt/log-firebug.php
new file mode 100644
index 0000000..8bf75eb
--- /dev/null
+++ b/framework/views/lt/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Programos žurnalas");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/lt/log.php b/framework/views/lt/log.php
new file mode 100644
index 0000000..edcaf0d
--- /dev/null
+++ b/framework/views/lt/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">
+ Programos žurnalas
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Laiko žyma</th>
+ <th>Lygmuo</th>
+ <th>Kategorija</th>
+ <th>Pranešimas</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]).sprintf('%06d',(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/lt/profile-callstack-firebug.php b/framework/views/lt/profile-callstack-firebug.php
new file mode 100644
index 0000000..9d78b7a
--- /dev/null
+++ b/framework/views/lt/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiliavimo kreipinių dėklas");
+<?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/lt/profile-callstack.php b/framework/views/lt/profile-callstack.php
new file mode 100644
index 0000000..cade0d7
--- /dev/null
+++ b/framework/views/lt/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">
+ Profiliavimo kreipinių dėklas
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedūra</th>
+ <th>Laikas (s)</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/lt/profile-summary-firebug.php b/framework/views/lt/profile-summary-firebug.php
new file mode 100644
index 0000000..6e6b339
--- /dev/null
+++ b/framework/views/lt/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Suminė profiliavimo ataskaita");
+ console.log(" kiekis viso vid. min. maks. ");
+<?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/lt/profile-summary.php b/framework/views/lt/profile-summary.php
new file mode 100644
index 0000000..8e4f7f4
--- /dev/null
+++ b/framework/views/lt/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">
+ Profiliavimo suvestinė
+ (užtruko: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ užėmė atminties: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedūra</th>
+ <th>Kiekis</th>
+ <th>Viso (s)</th>
+ <th>Vid. (s)</th>
+ <th>Min. (s)</th>
+ <th>Maks. (s)</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
diff --git a/framework/views/lv/error.php b/framework/views/lv/error.php
new file mode 100644
index 0000000..d0c8320
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Kļūda <?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>Kļūda <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Augstāk minētā kļūda notika izpildot Jūsu pieprasījumu.
+</p>
+<p>
+Ja Jūs uzskatāt, ka šī ir servera kļūda, lūdzu sazinieties ar <?php echo $data['admin']; ?>.
+</p>
+<p>
+Paldies!
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/error400.php b/framework/views/lv/error400.php
new file mode 100644
index 0000000..b89696d
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Slikts pieprasījums</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>Slikts pieprasījums</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Serveris nespēja apstrādāt Jūsu veikto pieprasījumu, jo tas ir sintaktiski nepareizs.
+Lūdzu neveiciet atkārtotu šādu pieprasījumu.
+</p>
+<p>
+Ja Jūs uzskatāt, ka šī ir servera kļūda, lūdzu sazinieties ar <?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/error403.php b/framework/views/lv/error403.php
new file mode 100644
index 0000000..e410e78
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Nesankcionēta pieeja</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>Nesankcionēta pieeja</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Jums nav pietiekošu tiesību, lai piekļūtu šai lapai.
+</p>
+<p>
+Ja Jūs uzskatāt, ka šī ir servera kļūda, lūdzu sazinieties ar <?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/error404.php b/framework/views/lv/error404.php
new file mode 100644
index 0000000..0226dfe
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Lapa nav atrasta</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>Lapa nav atrasta</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Jūsu pieprasītā lapa netika atrasta uz servera.
+Ja Jūs ievadījāt URL adresi manuāli, lūdzu, pārbaudiet to un mēģiniet vēlreiz.
+</p>
+<p>
+Ja Jūs uzskatāt, ka šī ir servera kļūda, lūdzu sazinieties ar <?php echo $data['admin']; ?>.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/error500.php b/framework/views/lv/error500.php
new file mode 100644
index 0000000..731faec
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Servera iekšēja kļūda</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>Servera iekšēja kļūda</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Izpildot Jūsu pieprasījumu, serverim radās iekšēja kļūda.
+Lūdzu, sazinieties ar <?php echo $data['admin']; ?> un ziņojiet par šo problēmu.
+</p>
+<p>
+Paldies!
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/error503.php b/framework/views/lv/error503.php
new file mode 100644
index 0000000..47ec7fa
--- /dev/null
+++ b/framework/views/lv/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="lv" lang="lv">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Pakalpojums nav pieejams</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>Pakalpojums nav pieejams</h1>
+<p>
+Serverim tiek veikti uzturēšanas darbi. Mēģiniet vēlāk vēlreiz.
+</p>
+<p>
+Atvainojamies par sagādātajām neērtībām.
+</p>
+<div class="version">
+<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/framework/views/lv/log-firebug.php b/framework/views/lv/log-firebug.php
new file mode 100644
index 0000000..9e20885
--- /dev/null
+++ b/framework/views/lv/log-firebug.php
@@ -0,0 +1,23 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Lietojumprogrammas žurnāls");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/lv/log.php b/framework/views/lv/log.php
new file mode 100644
index 0000000..62818ac
--- /dev/null
+++ b/framework/views/lv/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">
+ Lietojumprogrammas žurnāls
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Laiks</th>
+ <th>Līmenis</th>
+ <th>Kategorija</th>
+ <th>Ziņojums</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]).sprintf('%06d',(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/lv/profile-callstack-firebug.php b/framework/views/lv/profile-callstack-firebug.php
new file mode 100644
index 0000000..5805406
--- /dev/null
+++ b/framework/views/lv/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profilešanas izsaukumu steka atskaite");
+<?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/lv/profile-callstack.php b/framework/views/lv/profile-callstack.php
new file mode 100644
index 0000000..47104d8
--- /dev/null
+++ b/framework/views/lv/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">
+ Profilēšanas izsaukumu steka atskaite
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedūra</th>
+ <th>Laiks (s)</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/lv/profile-summary-firebug.php b/framework/views/lv/profile-summary-firebug.php
new file mode 100644
index 0000000..00a00eb
--- /dev/null
+++ b/framework/views/lv/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profilēšanas kopsavilkums");
+ console.log(" skaits kopā vidēji min max ");
+<?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/lv/profile-summary.php b/framework/views/lv/profile-summary.php
new file mode 100644
index 0000000..53a3d56
--- /dev/null
+++ b/framework/views/lv/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">
+ Profilēšanas kopsavilkums
+ (Laiks: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Atmiņa: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedūra</th>
+ <th>Izsaukumu skaits</th>
+ <th>Kopējais (s)</th>
+ <th>Vidējais (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/nl/error.php b/framework/views/nl/error.php
new file mode 100644
index 0000000..e8c96d1
--- /dev/null
+++ b/framework/views/nl/error.php
@@ -0,0 +1,25 @@
+<!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>Fout <?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>Fout <?php echo $data['code']; ?></h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>De bovenstaande fout trad op toen deze server uw aanvraag probeerde te verwerken.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/error400.php b/framework/views/nl/error400.php
new file mode 100644
index 0000000..b64ee6b
--- /dev/null
+++ b/framework/views/nl/error400.php
@@ -0,0 +1,24 @@
+<!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>Slechte vraag</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>Ongeldige aanvraag</h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>Uw browser (of proxy) stuurde een aanvraag die deze server niet kon begrijpen door een slechte syntax. Herhaal deze aanvraag niet zonder correcties aub.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/error403.php b/framework/views/nl/error403.php
new file mode 100644
index 0000000..1c86b9a
--- /dev/null
+++ b/framework/views/nl/error403.php
@@ -0,0 +1,24 @@
+<!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>Toegang verboden</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>Verboden toegang</h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>U hebt geen toegang tot het gevraagde object. Dit is ofwel beveiligd tegen lezen of onleesbaar door de server.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/error404.php b/framework/views/nl/error404.php
new file mode 100644
index 0000000..c9d7f0a
--- /dev/null
+++ b/framework/views/nl/error404.php
@@ -0,0 +1,24 @@
+<!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>Object niet gevonden</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>Object niet gevonden</h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>De gevraagde URL werd niet gevonden op deze server. Indien u de URL handmatig hebt ingevuld, gelieve uw spelling te controleren en opnieuw te proberen.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/error500.php b/framework/views/nl/error500.php
new file mode 100644
index 0000000..8aa31fc
--- /dev/null
+++ b/framework/views/nl/error500.php
@@ -0,0 +1,24 @@
+<!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>Server fout</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>Server fout</h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>Er trad een interne fout op in de server. Uw aanvraag kan niet beantwoord worden.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/error503.php b/framework/views/nl/error503.php
new file mode 100644
index 0000000..2ebed66
--- /dev/null
+++ b/framework/views/nl/error503.php
@@ -0,0 +1,24 @@
+<!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>Dienst niet beschikbaar</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>Dienst niet beschikbaar</h1>
+ <h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+ <p>De server kan tijdelijk uw aanvraag niet verwerken door onderhoud of capaciteitsproblemen. Gelieve later opnieuw te proberen.</p>
+ <p>Als u van mening bent dat dit een server fout is, neem dan a.u.b. contact op met de <?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/nl/log-firebug.php b/framework/views/nl/log-firebug.php
new file mode 100644
index 0000000..8e8d415
--- /dev/null
+++ b/framework/views/nl/log-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object') {
+ console.group("Applicatie Logboek");
+<?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/nl/log.php b/framework/views/nl/log.php
new file mode 100644
index 0000000..4dfbf64
--- /dev/null
+++ b/framework/views/nl/log.php
@@ -0,0 +1,38 @@
+<!-- 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">Applicatie Logboek</th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Tijd</th>
+ <th>Niveau</th>
+ <th>Categorie</th>
+ <th>Bericht</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 -->
diff --git a/framework/views/nl/profile-callstack-firebug.php b/framework/views/nl/profile-callstack-firebug.php
new file mode 100644
index 0000000..79a0cde
--- /dev/null
+++ b/framework/views/nl/profile-callstack-firebug.php
@@ -0,0 +1,17 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object') {
+ console.group("Profiling Callstack Rapport");
+<?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/nl/profile-callstack.php b/framework/views/nl/profile-callstack.php
new file mode 100644
index 0000000..f749424
--- /dev/null
+++ b/framework/views/nl/profile-callstack.php
@@ -0,0 +1,29 @@
+<!-- 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 Rapport
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedure</th>
+ <th>Tijd (s)</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/nl/profile-summary-firebug.php b/framework/views/nl/profile-summary-firebug.php
new file mode 100644
index 0000000..24584e9
--- /dev/null
+++ b/framework/views/nl/profile-summary-firebug.php
@@ -0,0 +1,20 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object') {
+ console.group("Profiling Summary Report");
+ console.log(" count total gem. min max ");
+<?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> \ No newline at end of file
diff --git a/framework/views/nl/profile-summary.php b/framework/views/nl/profile-summary.php
new file mode 100644
index 0000000..a6d9dca
--- /dev/null
+++ b/framework/views/nl/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 Samenvatting Rapport
+ (Tijd: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Geheugen: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedure</th>
+ <th>Aantal</th>
+ <th>Totaal (s)</th>
+ <th>Gem. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/no/error.php b/framework/views/no/error.php
new file mode 100644
index 0000000..c6152e8
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Feil <?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>Feil <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Ovenstående feil oppsto når webserveren behandlet forespørselen din.
+</p>
+<p>
+Ved mistanke om at dette er en server-feil, vennligst kontakt <?php echo $data['admin']; ?>.
+</p>
+<p>
+Takk!
+</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/no/error400.php b/framework/views/no/error400.php
new file mode 100644
index 0000000..b801a53
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Ugyldig forespørsel</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>Ugyldig forespørsel</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Serveren forstod ikke syntaksen i forespørselen. Vennligst ikke repeter
+forespørselen uendret.
+</p>
+<p>
+Ved mistanke om at dette er en server-feil, vennligst kontakt <?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/no/error403.php b/framework/views/no/error403.php
new file mode 100644
index 0000000..069dd38
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Godkjenningsfeil</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>Godkjenningsfeil</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Du har ikke tilstrekkelig rettigheter til å nå denne siden.
+</p>
+<p>
+Ved mistanke om at dette er en server-feil, vennligst kontakt <?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/no/error404.php b/framework/views/no/error404.php
new file mode 100644
index 0000000..5f123d6
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Siden finnes ikke</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>Siden finnes ikke</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Serveren finner ikke den forespurte siden.
+Hvis du skrev inn URL'en manuelt vennligst sjekk om den er riktig og prøv igjen.
+</p>
+<p>
+Ved mistanke om at dette er en server-feil, vennligst kontakt <?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/no/error500.php b/framework/views/no/error500.php
new file mode 100644
index 0000000..2fdf5ad
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Intern serverfeil</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>Intern serverfeil</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Det oppstod en feil, og serveren kan ikke fullføre forespørselen.
+Vennligst kontakt <?php echo $data['admin']; ?> for å rapportere problemet.
+</p>
+<p>
+Takk!
+</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/no/error503.php b/framework/views/no/error503.php
new file mode 100644
index 0000000..a0dede0
--- /dev/null
+++ b/framework/views/no/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="no" lang="no">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Tjenesten er utilgjengelig</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>Tjenesten er utilgjengelig</h1>
+<p>
+Serveren er utilgjengelig for øyeblikket grunnet vedlikehold. Vennligst prøv senere.
+</p>
+<p>
+Takk!
+</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/no/log-firebug.php b/framework/views/no/log-firebug.php
new file mode 100644
index 0000000..fdd06d6
--- /dev/null
+++ b/framework/views/no/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Applikasjonslogg");
+<?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/no/log.php b/framework/views/no/log.php
new file mode 100644
index 0000000..e397166
--- /dev/null
+++ b/framework/views/no/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">
+ Applikasjonslogg
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Tid</th>
+ <th>Nivå</th>
+ <th>Kategori</th>
+ <th>Melding</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/no/profile-callstack-firebug.php b/framework/views/no/profile-callstack-firebug.php
new file mode 100644
index 0000000..890eadf
--- /dev/null
+++ b/framework/views/no/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profileringsrapport");
+<?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/no/profile-callstack.php b/framework/views/no/profile-callstack.php
new file mode 100644
index 0000000..5fa65ee
--- /dev/null
+++ b/framework/views/no/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">
+ Profileringsrapport
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Funksjone</th>
+ <th>Tid (sek)</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/no/profile-summary-firebug.php b/framework/views/no/profile-summary-firebug.php
new file mode 100644
index 0000000..b852820
--- /dev/null
+++ b/framework/views/no/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Resultat av profilering");
+ console.log(" antall totalt gjennomsnitt min maks ");
+<?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/no/profile-summary.php b/framework/views/no/profile-summary.php
new file mode 100644
index 0000000..24e71e1
--- /dev/null
+++ b/framework/views/no/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">
+ Resultat av profilering
+ (Tid: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Minnebruk: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Funksjon</th>
+ <th>Antall</th>
+ <th>Totalt (sek)</th>
+ <th>Gjennomsnitt (sek)</th>
+ <th>Min (sek)</th>
+ <th>Maks (sek)</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
diff --git a/framework/views/pl/error.php b/framework/views/pl/error.php
new file mode 100644
index 0000000..dd2046e
--- /dev/null
+++ b/framework/views/pl/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>Błąd <?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>Błąd <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Powyższy błąd wystąpił podczas przetwarzania przez serwer Twojego żądania.
+</p>
+<p>
+Jeśli myślisz, że jest to błąd serwera proszę skontaktuj się z <?php echo $data['admin']; ?>.
+</p>
+<p>
+Dziękujemy!
+</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/pl/error400.php b/framework/views/pl/error400.php
new file mode 100644
index 0000000..8fd36de
--- /dev/null
+++ b/framework/views/pl/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>Nieprawidłowe zapytanie</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>Nieprawidłowe zapytanie</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Zapytanie nie może być zrozumiane przez serwer ze względu na niepoprawną składnię.
+Proszę nie powtarzaj żądania bez uprzedniej modyfikacji.
+</p>
+<p>
+Jeśli myślisz, że jest to błąd serwera proszę skontaktuj się z <?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/pl/error403.php b/framework/views/pl/error403.php
new file mode 100644
index 0000000..1d5ee62
--- /dev/null
+++ b/framework/views/pl/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>Zabroniony</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>Zabroniony</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Nie posiadasz odpowiedniego uwierzytelnienia aby mieć dostęp do tej strony.
+</p>
+<p>
+Jeśli myślisz, że jest to błąd serwera proszę skontaktuj się z <?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/pl/error404.php b/framework/views/pl/error404.php
new file mode 100644
index 0000000..b190ab3
--- /dev/null
+++ b/framework/views/pl/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>Nie znaleziono</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>Nie znaleziono</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Żądany adres URL nie został znaleziony na tym serwerze.
+Jeśli wprowadziłeś adres URL ręcznie, sprawdź pisownię i spróbuj ponownie.
+</p>
+<p>
+Jeśli myślisz, że jest to błąd serwera proszę skontaktuj się z <?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/pl/error500.php b/framework/views/pl/error500.php
new file mode 100644
index 0000000..e44efa5
--- /dev/null
+++ b/framework/views/pl/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>Wewnętrzny błąd serwera</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>Wewnętrzny błąd serwera</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Wystąpił wewnętrzny błąd serwera podczas przetwarzania Twojego żądania.
+Proszę skontaktuj się z <?php echo $data['admin']; ?> aby zgłosić problem.
+</p>
+<p>
+Dziękujemy.
+</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/pl/error503.php b/framework/views/pl/error503.php
new file mode 100644
index 0000000..eb3d36e
--- /dev/null
+++ b/framework/views/pl/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>Usługa niedostępna</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>Usługa niedostępna</h1>
+<p>
+Nasz system jest obecnie w trakcie konserwacji. Proszę spróbuj ponownie później.
+</p>
+<p>
+Dziękujemy.
+</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/pl/log-firebug.php b/framework/views/pl/log-firebug.php
new file mode 100644
index 0000000..d659f5b
--- /dev/null
+++ b/framework/views/pl/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Log aplikacji");
+<?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/pl/log.php b/framework/views/pl/log.php
new file mode 100644
index 0000000..b51af9c
--- /dev/null
+++ b/framework/views/pl/log.php
@@ -0,0 +1,41 @@
+<!-- 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">
+ Log aplikacji
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Znacznik czasu</th>
+ <th>Poziom</th>
+ <th>Kategoria</th>
+ <th>Wiadomość</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';
+ $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/pl/profile-callstack-firebug.php b/framework/views/pl/profile-callstack-firebug.php
new file mode 100644
index 0000000..ce7fc86
--- /dev/null
+++ b/framework/views/pl/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profilowanie: raport stosu wywo�a�");
+<?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/pl/profile-callstack.php b/framework/views/pl/profile-callstack.php
new file mode 100644
index 0000000..fa25611
--- /dev/null
+++ b/framework/views/pl/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">
+ Profilowanie: raport stosu wywołań
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedura</th>
+ <th>Czas (s)</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/pl/profile-summary-firebug.php b/framework/views/pl/profile-summary-firebug.php
new file mode 100644
index 0000000..737e89e
--- /dev/null
+++ b/framework/views/pl/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profilowanie: raport podsumowujący");
+ console.log(" ilość razem średnia min max ");
+<?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/pl/profile-summary.php b/framework/views/pl/profile-summary.php
new file mode 100644
index 0000000..fa00bce
--- /dev/null
+++ b/framework/views/pl/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">
+ Profilowanie: raport podsumowujący
+ (Czas: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Pamięć: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedura</th>
+ <th>Ilość</th>
+ <th>Razem (s)</th>
+ <th>Średnia. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/profile-callstack-firebug.php b/framework/views/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/profile-callstack.php b/framework/views/profile-callstack.php
new file mode 100644
index 0000000..f4b4014
--- /dev/null
+++ b/framework/views/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 Report
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedure</th>
+ <th>Time (s)</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/profile-summary-firebug.php b/framework/views/profile-summary-firebug.php
new file mode 100644
index 0000000..dcca4c0
--- /dev/null
+++ b/framework/views/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" count total average min max ");
+<?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/profile-summary.php b/framework/views/profile-summary.php
new file mode 100644
index 0000000..9fe021b
--- /dev/null
+++ b/framework/views/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 Summary Report
+ (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>Procedure</th>
+ <th>Count</th>
+ <th>Total (s)</th>
+ <th>Avg. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/pt/error.php b/framework/views/pt/error.php
new file mode 100644
index 0000000..9f53573
--- /dev/null
+++ b/framework/views/pt/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="pt" lang="pt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Erro <?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>Erro <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+O erro acima ocorreu quando o servidor Web processava sua requisição.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?php echo $data['admin']; ?>.
+</p>
+<p>
+Obrigado.
+</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/pt/error400.php b/framework/views/pt/error400.php
new file mode 100644
index 0000000..6f5a6e5
--- /dev/null
+++ b/framework/views/pt/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>Requisição Inválida</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>Requisição Inválida</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+A requisição não pôde ser entendida pelo servidor devido a um erro de sintaxe.
+Por favor, não repita a solicitação, sem modificações.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt/error403.php b/framework/views/pt/error403.php
new file mode 100644
index 0000000..fa2f24b
--- /dev/null
+++ b/framework/views/pt/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>Não Autorizado</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>Não Autorizado</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Você não tem as devidas credenciais para acessar esta página.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt/error404.php b/framework/views/pt/error404.php
new file mode 100644
index 0000000..57caf92
--- /dev/null
+++ b/framework/views/pt/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>Página Não Encontrada</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>Página Não Encontrada</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+A URL solicitada não foi encontrada neste servidor.
+Se você digitou a URL manualmente verifique a ortografia e tente novamente.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt/error500.php b/framework/views/pt/error500.php
new file mode 100644
index 0000000..d92d2e9
--- /dev/null
+++ b/framework/views/pt/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>Erro Interno Do Servidor</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>Erro Interno Do Servidor</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Ocorreu um erro interno enquanto o servidor Web processava sua requisição.
+Por favor entre contate <?php echo $data['admin'];?> para relatar esse problema.
+</p>
+<p>
+Obrigado.
+</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/pt/error503.php b/framework/views/pt/error503.php
new file mode 100644
index 0000000..947f17a
--- /dev/null
+++ b/framework/views/pt/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>Serviço Indisponível</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>Serviço Indisponível</h1>
+<p>
+Atualmente, nosso sistema encontra-se em manuntenção. Por favor, tente mais tarde.
+</p>
+<p>
+Obrigado.
+</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/pt/log-firebug.php b/framework/views/pt/log-firebug.php
new file mode 100644
index 0000000..75a7773
--- /dev/null
+++ b/framework/views/pt/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Log da Aplicação");
+<?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/pt/log.php b/framework/views/pt/log.php
new file mode 100644
index 0000000..43c4d6d
--- /dev/null
+++ b/framework/views/pt/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">
+ Log da Aplicação
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Nível</th>
+ <th>Categoria</th>
+ <th>Mensagem</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/pt/profile-callstack-firebug.php b/framework/views/pt/profile-callstack-firebug.php
new file mode 100644
index 0000000..dfd3c11
--- /dev/null
+++ b/framework/views/pt/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Relatorio de Profiling do Callstack");
+<?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/pt/profile-callstack.php b/framework/views/pt/profile-callstack.php
new file mode 100644
index 0000000..f482927
--- /dev/null
+++ b/framework/views/pt/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">
+ Relatorio de Profiling do Callstack
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimento</th>
+ <th>Tempo (s)</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/pt/profile-summary-firebug.php b/framework/views/pt/profile-summary-firebug.php
new file mode 100644
index 0000000..df3be07
--- /dev/null
+++ b/framework/views/pt/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Relatorio Resumido de Profiling ");
+ console.log(" contagem total média min max ");
+<?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/pt/profile-summary.php b/framework/views/pt/profile-summary.php
new file mode 100644
index 0000000..0e1cfc4
--- /dev/null
+++ b/framework/views/pt/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">
+ Relatorio Resumido de Profiling
+ (Tempo: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Mem�ria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimento</th>
+ <th>Contagem</th>
+ <th>Total (s)</th>
+ <th>M�d. (s)</th>
+ <th>M�n. (s)</th>
+ <th>M�x. (s)</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
diff --git a/framework/views/pt_br/error.php b/framework/views/pt_br/error.php
new file mode 100644
index 0000000..9f53573
--- /dev/null
+++ b/framework/views/pt_br/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="pt" lang="pt">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Erro <?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>Erro <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+O erro acima ocorreu quando o servidor Web processava sua requisição.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?php echo $data['admin']; ?>.
+</p>
+<p>
+Obrigado.
+</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/pt_br/error400.php b/framework/views/pt_br/error400.php
new file mode 100644
index 0000000..6f5a6e5
--- /dev/null
+++ b/framework/views/pt_br/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>Requisição Inválida</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>Requisição Inválida</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+A requisição não pôde ser entendida pelo servidor devido a um erro de sintaxe.
+Por favor, não repita a solicitação, sem modificações.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt_br/error403.php b/framework/views/pt_br/error403.php
new file mode 100644
index 0000000..fa2f24b
--- /dev/null
+++ b/framework/views/pt_br/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>Não Autorizado</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>Não Autorizado</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Você não tem as devidas credenciais para acessar esta página.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt_br/error404.php b/framework/views/pt_br/error404.php
new file mode 100644
index 0000000..57caf92
--- /dev/null
+++ b/framework/views/pt_br/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>Página Não Encontrada</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>Página Não Encontrada</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+A URL solicitada não foi encontrada neste servidor.
+Se você digitou a URL manualmente verifique a ortografia e tente novamente.
+</p>
+<p>
+Se você acha que isso é um erro no servidor, por favor contate <?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/pt_br/error500.php b/framework/views/pt_br/error500.php
new file mode 100644
index 0000000..d92d2e9
--- /dev/null
+++ b/framework/views/pt_br/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>Erro Interno Do Servidor</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>Erro Interno Do Servidor</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Ocorreu um erro interno enquanto o servidor Web processava sua requisição.
+Por favor entre contate <?php echo $data['admin'];?> para relatar esse problema.
+</p>
+<p>
+Obrigado.
+</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/pt_br/error503.php b/framework/views/pt_br/error503.php
new file mode 100644
index 0000000..947f17a
--- /dev/null
+++ b/framework/views/pt_br/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>Serviço Indisponível</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>Serviço Indisponível</h1>
+<p>
+Atualmente, nosso sistema encontra-se em manuntenção. Por favor, tente mais tarde.
+</p>
+<p>
+Obrigado.
+</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/pt_br/log-firebug.php b/framework/views/pt_br/log-firebug.php
new file mode 100644
index 0000000..75a7773
--- /dev/null
+++ b/framework/views/pt_br/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Log da Aplicação");
+<?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/pt_br/log.php b/framework/views/pt_br/log.php
new file mode 100644
index 0000000..43c4d6d
--- /dev/null
+++ b/framework/views/pt_br/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">
+ Log da Aplicação
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Nível</th>
+ <th>Categoria</th>
+ <th>Mensagem</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/pt_br/profile-callstack-firebug.php b/framework/views/pt_br/profile-callstack-firebug.php
new file mode 100644
index 0000000..dfd3c11
--- /dev/null
+++ b/framework/views/pt_br/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Relatorio de Profiling do Callstack");
+<?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/pt_br/profile-callstack.php b/framework/views/pt_br/profile-callstack.php
new file mode 100644
index 0000000..f482927
--- /dev/null
+++ b/framework/views/pt_br/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">
+ Relatorio de Profiling do Callstack
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimento</th>
+ <th>Tempo (s)</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/pt_br/profile-summary-firebug.php b/framework/views/pt_br/profile-summary-firebug.php
new file mode 100644
index 0000000..df3be07
--- /dev/null
+++ b/framework/views/pt_br/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Relatorio Resumido de Profiling ");
+ console.log(" contagem total média min max ");
+<?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/pt_br/profile-summary.php b/framework/views/pt_br/profile-summary.php
new file mode 100644
index 0000000..0e1cfc4
--- /dev/null
+++ b/framework/views/pt_br/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">
+ Relatorio Resumido de Profiling
+ (Tempo: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Mem�ria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedimento</th>
+ <th>Contagem</th>
+ <th>Total (s)</th>
+ <th>M�d. (s)</th>
+ <th>M�n. (s)</th>
+ <th>M�x. (s)</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
diff --git a/framework/views/ro/error.php b/framework/views/ro/error.php
new file mode 100644
index 0000000..3279f91
--- /dev/null
+++ b/framework/views/ro/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>Eroare <?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>Eroarea <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Eroarea de mai sus a aparut cand serverul Web procesa cererea dvs.
+</p>
+<p>
+In cazul in care credeti ca este o eroare din partea serverului, va rugam contactati <?php echo $data['admin']; ?>.
+</p>
+<p>
+Va multumim.
+</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/ro/error400.php b/framework/views/ro/error400.php
new file mode 100644
index 0000000..e5dde41
--- /dev/null
+++ b/framework/views/ro/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>Cerere gresita</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>Cerere gresita</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Cererea nu este inteleasa de catre server datorita unei sintaxe necorespunzatoare.
+Va rugam sa faceti modificarile necesare inainte de retrimiterea cererii.
+</p>
+<p>
+In cazul in care credeti ca eroarea este de partea serverului, va rugam contactati <?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/ro/error403.php b/framework/views/ro/error403.php
new file mode 100644
index 0000000..d72324e
--- /dev/null
+++ b/framework/views/ro/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>Neautorizat</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>Neautorizat</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Nu aveti drepturile necesare pentru a accesa aceasta pagina.
+</p>
+<p>
+In cazul in care credeti ca este o eroare de partea serverului, va rugam contactati <?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/ro/error404.php b/framework/views/ro/error404.php
new file mode 100644
index 0000000..5fe14b9
--- /dev/null
+++ b/framework/views/ro/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>Pagina negasita</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>Pagina negasita</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+URL-ul cerut nu a fost gasit pe acest server.
+Va rugam sa verificati URL-ul, daca l-ati introdus manual, apoi incercati din nou.
+</p>
+<p>
+In cazul in care credeti ca este o eroare de partea serverului, va rugam contactati <?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/ro/error500.php b/framework/views/ro/error500.php
new file mode 100644
index 0000000..27bc984
--- /dev/null
+++ b/framework/views/ro/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>Eroare interna server</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>Eroare interna server</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+A aparut o eroare interna in timp ce serverul Web procesa cererea dvs.
+Va rugam contactati <?php echo $data['admin']; ?> pentru a raporta aceasta problema.
+</p>
+<p>
+Va multumim.
+</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/ro/error503.php b/framework/views/ro/error503.php
new file mode 100644
index 0000000..3a58b7f
--- /dev/null
+++ b/framework/views/ro/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 indisponibil</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>Service indisponibil</h1>
+<p>
+Sistemul nostru este deocamdata intr-o perioada de mentenanta. Va rugam sa reveniti mai tarziu.
+</p>
+<p>
+Va multumim.
+</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/ro/log-firebug.php b/framework/views/ro/log-firebug.php
new file mode 100644
index 0000000..63ba98d
--- /dev/null
+++ b/framework/views/ro/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?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/ro/log.php b/framework/views/ro/log.php
new file mode 100644
index 0000000..d578310
--- /dev/null
+++ b/framework/views/ro/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">
+ Log aplicatie
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Nivel</th>
+ <th>Categorie</th>
+ <th>Mesaj</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/ro/profile-callstack-firebug.php b/framework/views/ro/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/ro/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/ro/profile-callstack.php b/framework/views/ro/profile-callstack.php
new file mode 100644
index 0000000..569362e
--- /dev/null
+++ b/framework/views/ro/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 Report
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedura</th>
+ <th>Timp(i)</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/ro/profile-summary-firebug.php b/framework/views/ro/profile-summary-firebug.php
new file mode 100644
index 0000000..dcca4c0
--- /dev/null
+++ b/framework/views/ro/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" count total average min max ");
+<?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/ro/profile-summary.php b/framework/views/ro/profile-summary.php
new file mode 100644
index 0000000..9fe021b
--- /dev/null
+++ b/framework/views/ro/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 Summary Report
+ (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>Procedure</th>
+ <th>Count</th>
+ <th>Total (s)</th>
+ <th>Avg. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/ru/error.php b/framework/views/ru/error.php
new file mode 100644
index 0000000..908af9a
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Ошибка <?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/ru/error400.php b/framework/views/ru/error400.php
new file mode 100644
index 0000000..402dfe2
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Ошибка в запросе</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/ru/error403.php b/framework/views/ru/error403.php
new file mode 100644
index 0000000..7baa64b
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Ошибка авторизации</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/ru/error404.php b/framework/views/ru/error404.php
new file mode 100644
index 0000000..f714755
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Страница не найдена</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/ru/error500.php b/framework/views/ru/error500.php
new file mode 100644
index 0000000..269bd7f
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Внутренняя ошибка сервера</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/ru/error503.php b/framework/views/ru/error503.php
new file mode 100644
index 0000000..7ef6f00
--- /dev/null
+++ b/framework/views/ru/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="ru" lang="ru">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Служба временно недоступна</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/ru/log-firebug.php b/framework/views/ru/log-firebug.php
new file mode 100644
index 0000000..e412af8
--- /dev/null
+++ b/framework/views/ru/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]).sprintf('%03d',(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/ru/log.php b/framework/views/ru/log.php
new file mode 100644
index 0000000..bc548f0
--- /dev/null
+++ b/framework/views/ru/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]).sprintf('%06d',(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/ru/profile-callstack-firebug.php b/framework/views/ru/profile-callstack-firebug.php
new file mode 100644
index 0000000..d075eb6
--- /dev/null
+++ b/framework/views/ru/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Стек вызовов");
+<?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/ru/profile-callstack.php b/framework/views/ru/profile-callstack.php
new file mode 100644
index 0000000..3101d67
--- /dev/null
+++ b/framework/views/ru/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">
+ Стек вызовов
+ </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/ru/profile-summary-firebug.php b/framework/views/ru/profile-summary-firebug.php
new file mode 100644
index 0000000..cd8f9ae
--- /dev/null
+++ b/framework/views/ru/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Общий отчет");
+ 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/ru/profile-summary.php b/framework/views/ru/profile-summary.php
new file mode 100644
index 0000000..5e8eb9b
--- /dev/null
+++ b/framework/views/ru/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">
+ Общий отчет
+ (Время: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>с,
+ Память: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>Кб)
+ </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
diff --git a/framework/views/sk/error.php b/framework/views/sk/error.php
new file mode 100644
index 0000000..9c3f452
--- /dev/null
+++ b/framework/views/sk/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>Chyba <?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>Chyba <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Počas zpracovania vašej požiadavky sa vyskytla uvedená chyba.
+</p>
+<p>
+Ak sa domnievate, že príčinou chyby je webový server, kontaktujte prosím <?php echo $data['admin']; ?>.
+</p>
+<p>
+Ďakujeme.
+</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/sk/error400.php b/framework/views/sk/error400.php
new file mode 100644
index 0000000..31e385a
--- /dev/null
+++ b/framework/views/sk/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>Neplatná požiadavka</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>Neplatná požiadavka</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Server nedokázal zpracovať požiadavku v dôsledku jej nesprávnej syntaxe (formátu).
+Neopakujte prosím požiadavku bez jej modifikácie.
+</p>
+<p>
+Ak sa domnievate, že príčinou chyby je webový server, kontaktujte prosím <?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/sk/error403.php b/framework/views/sk/error403.php
new file mode 100644
index 0000000..026e239
--- /dev/null
+++ b/framework/views/sk/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>Neoprávnený prístup</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>Neoprávnený prístup</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Nemáte prístupové oprávnenie na zobrazenie požadovanej stránky.
+</p>
+<p>
+Ak sa domnievate, že príčinou chyby je webový server, kontaktujte prosím <?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/sk/error404.php b/framework/views/sk/error404.php
new file mode 100644
index 0000000..bd8840c
--- /dev/null
+++ b/framework/views/sk/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>Stránka nebola nájdená</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>Stránka nebola nájdená</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Požadovaná URL stránka nebola nájdená na tomto serveri.
+Ak ste zadali URL manuálne, zkontrolujte prosím jej správnosť a zkúste znovu.
+</p>
+<p>
+Ak sa domnievate, že príčinou chyby je webový server, kontaktujte prosím <?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/sk/error500.php b/framework/views/sk/error500.php
new file mode 100644
index 0000000..213638d
--- /dev/null
+++ b/framework/views/sk/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>Interná chyba servera</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>Interná chyba servera</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Počas zpracovávania vašej požiadavky sa vyskytla interná chyba.
+Kontaktujte prosím <?php echo $data['admin']; ?> za účelom jej nahlásenia.
+</p>
+<p>
+Ďakujeme.
+</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/sk/error503.php b/framework/views/sk/error503.php
new file mode 100644
index 0000000..1ca5644
--- /dev/null
+++ b/framework/views/sk/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>Služba nie je dostupná</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>Služba nie je dostupná</h1>
+<p>
+Momentálne prebieha údržba systému. Navštívte nás prosím neskôr.
+</p>
+<p>
+Ďakujeme.
+</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/sk/log-firebug.php b/framework/views/sk/log-firebug.php
new file mode 100644
index 0000000..17fc8c8
--- /dev/null
+++ b/framework/views/sk/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Aplikačný Log");
+<?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/sk/log.php b/framework/views/sk/log.php
new file mode 100644
index 0000000..caab08a
--- /dev/null
+++ b/framework/views/sk/log.php
@@ -0,0 +1,46 @@
+<!-- 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">
+ Log aplikácie
+ <?php
+ $t = round(microtime(true) - YII_BEGIN_TIME, 3);
+ $m = function_exists('memory_get_usage') ? '['.round(memory_get_usage()/1024/1024, 3).' MB]' : '';
+ echo " * Stránka vygenerovaná za {$t} sek ~ ".round(1/$t)." strán/sek. ".$m;
+ ?>
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Čas</th>
+ <th>Úroveň</th>
+ <th>Kategória</th>
+ <th>Zpráva</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);
+ $time .= "<br />[+".round(($log[3]-YII_BEGIN_TIME)*1000, 0).'] ms';
+
+ 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/sk/profile-callstack-firebug.php b/framework/views/sk/profile-callstack-firebug.php
new file mode 100644
index 0000000..6c6fbdd
--- /dev/null
+++ b/framework/views/sk/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profilová zpráva zásobníka");
+<?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/sk/profile-callstack.php b/framework/views/sk/profile-callstack.php
new file mode 100644
index 0000000..4762337
--- /dev/null
+++ b/framework/views/sk/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">
+ Profilová zpráva zásobníka
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Funkcia</th>
+ <th>Čas (s)</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/sk/profile-summary-firebug.php b/framework/views/sk/profile-summary-firebug.php
new file mode 100644
index 0000000..bb5ae84
--- /dev/null
+++ b/framework/views/sk/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Zhrnutie profilovej zprávy");
+ console.log(" počet celkom priemer min max ");
+<?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/sk/profile-summary.php b/framework/views/sk/profile-summary.php
new file mode 100644
index 0000000..8fdfd09
--- /dev/null
+++ b/framework/views/sk/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">
+ Zhrnutie profilovej zprávy
+ (Čas: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Pamäť: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Funkcia</th>
+ <th>Počet</th>
+ <th>Celkom (s)</th>
+ <th>Priemer. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/sv/error.php b/framework/views/sv/error.php
new file mode 100644
index 0000000..df6ee14
--- /dev/null
+++ b/framework/views/sv/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>Fel <?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>Fel <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Ovanstående fel uppstod när servern behandlade Er förfrågan.
+</p>
+<p>
+Vid misstanke om serverfel, kontakta <?php echo $data['admin']; ?>.
+</p>
+<p>
+Tack.
+</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/sv/error400.php b/framework/views/sv/error400.php
new file mode 100644
index 0000000..b30045e
--- /dev/null
+++ b/framework/views/sv/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>Felaktig förfrågan</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>Felaktig förfrågan</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Servern förstod inte denna förfrågan på grund av felaktig syntax.
+Vänligen repetera inte denna förfrågan omodifierad.
+</p>
+<p>
+Vid misstanke om serverfel, kontakta <?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/sv/error403.php b/framework/views/sv/error403.php
new file mode 100644
index 0000000..76e5a63
--- /dev/null
+++ b/framework/views/sv/error403.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>Ej auktoriserad</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>Ej auktoriserad</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Otillräckliga rättigheter för åtkomst till denna sida.
+</p>
+<p>
+Vid misstanke om serverfel, kontakta <?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/sv/error404.php b/framework/views/sv/error404.php
new file mode 100644
index 0000000..779f713
--- /dev/null
+++ b/framework/views/sv/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>Sidan hittades inte</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>Sidan hittades inte</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Den begärda URL:en hittades inte på denna server.
+Om URL:en matades in manuellt, kontrollera stavningen och försök igen.
+</p>
+<p>
+Vid misstanke om serverfel, kontakta <?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/sv/error500.php b/framework/views/sv/error500.php
new file mode 100644
index 0000000..0f78b57
--- /dev/null
+++ b/framework/views/sv/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>Internt serverfel</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>Internt serverfel</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Ett internt fel uppstod vid behandlingen av Er begäran.
+Vänligen kontakta <?php echo $data['admin']; ?> för att rapportera detta problem.
+</p>
+<p>
+Tack.
+</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/sv/error503.php b/framework/views/sv/error503.php
new file mode 100644
index 0000000..db8902f
--- /dev/null
+++ b/framework/views/sv/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>Tjänsten ej tillgänglig</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>Tjänsten ej tillgänglig</h1>
+<p>
+Vårt system är för närvarande stängt pga underhåll. Vänligen kom tillbaka senare.
+</p>
+<p>
+Tack.
+</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/sv/exception.php b/framework/views/sv/exception.php
new file mode 100644
index 0000000..21d4f4c
--- /dev/null
+++ b/framework/views/sv/exception.php
@@ -0,0 +1,242 @@
+<!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><?php echo CHtml::encode($data['type'])?></title>
+
+<style type="text/css">
+/*<![CDATA[*/
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+
+body {
+ font: normal 9pt "Verdana";
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ font: normal 18pt "Verdana";
+ color: #f00;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font: normal 14pt "Verdana";
+ color: #800000;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font: bold 11pt "Verdana";
+}
+
+pre {
+ font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
+}
+
+pre span.error {
+ display: block;
+ background: #fce3e3;
+}
+
+pre span.ln {
+ color: #999;
+ padding-right: 0.5em;
+ border-right: 1px solid #ccc;
+}
+
+pre span.error-ln {
+ font-weight: bold;
+}
+
+.container {
+ margin: 1em 4em;
+}
+
+.version {
+ color: gray;
+ font-size: 8pt;
+ border-top: 1px solid #aaa;
+ padding-top: 1em;
+ margin-bottom: 1em;
+}
+
+.message {
+ color: #000;
+ padding: 1em;
+ font-size: 11pt;
+ background: #f3f3f3;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ margin-bottom: 1em;
+ line-height: 160%;
+}
+
+.source {
+ margin-bottom: 1em;
+}
+
+.code pre {
+ background-color: #ffe;
+ margin: 0.5em 0;
+ padding: 0.5em;
+ line-height: 125%;
+ border: 1px solid #eee;
+}
+
+.source .file {
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+.traces {
+ margin: 2em 0;
+}
+
+.trace {
+ margin: 0.5em 0;
+ padding: 0.5em;
+}
+
+.trace.app {
+ border: 1px dashed #c00;
+}
+
+.trace .number {
+ text-align: right;
+ width: 2em;
+ padding: 0.5em;
+}
+
+.trace .content {
+ padding: 0.5em;
+}
+
+.trace .plus,
+.trace .minus {
+ display:inline;
+ vertical-align:middle;
+ text-align:center;
+ border:1px solid #000;
+ color:#000;
+ font-size:10px;
+ line-height:10px;
+ margin:0;
+ padding:0 1px;
+ width:10px;
+ height:10px;
+}
+
+.trace.collapsed .minus,
+.trace.expanded .plus,
+.trace.collapsed pre {
+ display: none;
+}
+
+.trace-file {
+ cursor: pointer;
+ padding: 0.2em;
+}
+
+.trace-file:hover {
+ background: #f0ffff;
+}
+/*]]>*/
+</style>
+</head>
+
+<body>
+<div class="container">
+ <h1><?php echo $data['type']?></h1>
+
+ <p class="message">
+ <?php echo nl2br(CHtml::encode($data['message']))?>
+ </p>
+
+ <div class="source">
+ <p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
+ <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
+ </div>
+
+ <div class="traces">
+ <h2>Stackspårning</h2>
+ <?php $count=0; ?>
+ <table style="width:100%;">
+ <?php foreach($data['traces'] as $n => $trace): ?>
+ <?php
+ if($this->isCoreCode($trace))
+ $cssClass='core collapsed';
+ else if(++$count>3)
+ $cssClass='app collapsed';
+ else
+ $cssClass='app expanded';
+ $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
+ ?>
+ <tr class="trace <?php echo $cssClass; ?>">
+ <td class="number">
+ #<?php echo $n; ?>
+ </td>
+ <td class="content">
+ <div class="trace-file">
+ <?php if($hasCode): ?>
+ <div class="plus">+</div>
+ <div class="minus">–</div>
+ <?php endif; ?>
+ <?php
+ echo '&nbsp;';
+ echo CHtml::encode($trace['file'])."(".$trace['line'].")";
+ echo ': ';
+ if(!empty($trace['class']))
+ echo "<strong>{$trace['class']}</strong>{$trace['type']}";
+ echo "<strong>{$trace['function']}</strong>(";
+ if(!empty($trace['args']))
+ echo CHtml::encode($this->argumentsToString($trace['args']));
+ echo ')';
+ ?>
+ </div>
+
+ <?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </div>
+
+ <div class="version">
+ <?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
+ </div>
+</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
+var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
+
+var e = document.getElementsByTagName("div");
+for(var j=0,len=e.length;j<len;j++){
+ if(traceReg.test(e[j].className)){
+ e[j].onclick = function(){
+ var trace = this.parentNode.parentNode;
+ if(collapsedReg.test(trace.className))
+ trace.className = trace.className.replace("collapsed", "expanded");
+ else
+ trace.className = trace.className.replace("expanded", "collapsed");
+ }
+ }
+}
+/*]]>*/
+</script>
+
+</body>
+</html>
diff --git a/framework/views/sv/log-firebug.php b/framework/views/sv/log-firebug.php
new file mode 100644
index 0000000..50ab07a
--- /dev/null
+++ b/framework/views/sv/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Applikationslogg");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/sv/log.php b/framework/views/sv/log.php
new file mode 100644
index 0000000..f158a37
--- /dev/null
+++ b/framework/views/sv/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">
+ Applikationslogg
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Tidstämpel</th>
+ <th>Nivå</th>
+ <th>Kategori</th>
+ <th>Meddelande</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]).sprintf('%06d',(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/sv/profile-callstack-firebug.php b/framework/views/sv/profile-callstack-firebug.php
new file mode 100644
index 0000000..a35e5cb
--- /dev/null
+++ b/framework/views/sv/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profileringsrapport - Anropsstack");
+<?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/sv/profile-callstack.php b/framework/views/sv/profile-callstack.php
new file mode 100644
index 0000000..837cb6e
--- /dev/null
+++ b/framework/views/sv/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">
+ Profileringsrapport - Anropsstack
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedur</th>
+ <th>Tid (s)</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/sv/profile-summary-firebug.php b/framework/views/sv/profile-summary-firebug.php
new file mode 100644
index 0000000..89df929
--- /dev/null
+++ b/framework/views/sv/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profileringsrapport - Sammanställning");
+ console.log(" antal total medel min max ");
+<?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/sv/profile-summary.php b/framework/views/sv/profile-summary.php
new file mode 100644
index 0000000..61a9bb1
--- /dev/null
+++ b/framework/views/sv/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">
+ Profileringsrapport - Sammanställning
+ (Tid: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
+ Minne: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedur</th>
+ <th>Antal</th>
+ <th>Total (s)</th>
+ <th>Medel. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/uk/error.php b/framework/views/uk/error.php
new file mode 100644
index 0000000..efe5e1a
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Помилка <?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/uk/error400.php b/framework/views/uk/error400.php
new file mode 100644
index 0000000..bfa6d0c
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Помилка в запиті</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/uk/error403.php b/framework/views/uk/error403.php
new file mode 100644
index 0000000..0d8213b
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Помилка авторизації</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/uk/error404.php b/framework/views/uk/error404.php
new file mode 100644
index 0000000..5371ce9
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Сторінка не знайдена</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/uk/error500.php b/framework/views/uk/error500.php
new file mode 100644
index 0000000..137bbc7
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Внутрішня помилка сервера</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/uk/error503.php b/framework/views/uk/error503.php
new file mode 100644
index 0000000..e577443
--- /dev/null
+++ b/framework/views/uk/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="uk" lang="uk">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Служба тимчасово недоступна</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/uk/log-firebug.php b/framework/views/uk/log-firebug.php
new file mode 100644
index 0000000..964ab8c
--- /dev/null
+++ b/framework/views/uk/log-firebug.php
@@ -0,0 +1,23 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Журнал програми");
+<?php
+foreach($data as $index=>$log)
+{
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(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/uk/log.php b/framework/views/uk/log.php
new file mode 100644
index 0000000..d029a46
--- /dev/null
+++ b/framework/views/uk/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]).sprintf('%06d',(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/uk/profile-callstack-firebug.php b/framework/views/uk/profile-callstack-firebug.php
new file mode 100644
index 0000000..056dfa2
--- /dev/null
+++ b/framework/views/uk/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Звіт профілювання стеку викликів");
+<?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/uk/profile-callstack.php b/framework/views/uk/profile-callstack.php
new file mode 100644
index 0000000..a8e4b4e
--- /dev/null
+++ b/framework/views/uk/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">
+ Звіт профілювання стеку викликів
+ </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/uk/profile-summary-firebug.php b/framework/views/uk/profile-summary-firebug.php
new file mode 100644
index 0000000..3fa3a09
--- /dev/null
+++ b/framework/views/uk/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script language="javascript" type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Підсумковий звіт профілювання");
+ 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/uk/profile-summary.php b/framework/views/uk/profile-summary.php
new file mode 100644
index 0000000..4eaba04
--- /dev/null
+++ b/framework/views/uk/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">
+ Підсумковий звіт профілювання
+ (Час: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>с,
+ Пам'ять: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>Кб)
+ </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
diff --git a/framework/views/vi/error.php b/framework/views/vi/error.php
new file mode 100644
index 0000000..a143687
--- /dev/null
+++ b/framework/views/vi/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>Lỗi <?php echo $data['code']; ?></h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+Lỗi trên xảy ra khi Web server xử lý yêu cầu của bạn.
+</p>
+<p>
+Nếu bạn nghĩ đây là lỗi của máy chủ, xin liên hệ <?php echo $data['admin']; ?>.
+</p>
+<p>
+Xin cám ơn.
+</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/vi/error400.php b/framework/views/vi/error400.php
new file mode 100644
index 0000000..c90b391
--- /dev/null
+++ b/framework/views/vi/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>Bad Request</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+The request could not be understood by the server due to malformed syntax.
+Please do not repeat the request without modifications.
+</p>
+<p>
+If you think this is a server error, please contact <?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/vi/error403.php b/framework/views/vi/error403.php
new file mode 100644
index 0000000..c6ecf61
--- /dev/null
+++ b/framework/views/vi/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>Unauthorized</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+You do not have the proper credential to access this page.
+</p>
+<p>
+If you think this is a server error, please contact <?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/vi/error404.php b/framework/views/vi/error404.php
new file mode 100644
index 0000000..48ba666
--- /dev/null
+++ b/framework/views/vi/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>Trang web không tồn tại</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+URL bạn yêu cầu không có trên máy chủ.
+Nếu bạn nhập tay URL thì xin hãy kiểm tra lại lỗi chính tả và thử lại.
+</p>
+<p>
+Nếu bạn nghĩ đây là lỗi của máy chủ, xin liên hệ <?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/vi/error500.php b/framework/views/vi/error500.php
new file mode 100644
index 0000000..e73011c
--- /dev/null
+++ b/framework/views/vi/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>Internal Server Error</h1>
+<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
+<p>
+An internal error occurred while the Web server was processing your request.
+Please contact <?php echo $data['admin']; ?> to report this problem.
+</p>
+<p>
+Thank you.
+</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/vi/error503.php b/framework/views/vi/error503.php
new file mode 100644
index 0000000..4a16e75
--- /dev/null
+++ b/framework/views/vi/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>Service Unavailable</h1>
+<p>
+Our system is currently under maintenance. Please come back later.
+</p>
+<p>
+Thank you.
+</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/vi/log-firebug.php b/framework/views/vi/log-firebug.php
new file mode 100644
index 0000000..63ba98d
--- /dev/null
+++ b/framework/views/vi/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Application Log");
+<?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/vi/log.php b/framework/views/vi/log.php
new file mode 100644
index 0000000..3e2d1de
--- /dev/null
+++ b/framework/views/vi/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">
+ Application Log
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th style="width:120px">Timestamp</th>
+ <th>Level</th>
+ <th>Category</th>
+ <th>Message</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/vi/profile-callstack-firebug.php b/framework/views/vi/profile-callstack-firebug.php
new file mode 100644
index 0000000..cfe1a26
--- /dev/null
+++ b/framework/views/vi/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Callstack Report");
+<?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/vi/profile-callstack.php b/framework/views/vi/profile-callstack.php
new file mode 100644
index 0000000..f4b4014
--- /dev/null
+++ b/framework/views/vi/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 Report
+ </th>
+ </tr>
+ <tr style="background-color: #ccc;">
+ <th>Procedure</th>
+ <th>Time (s)</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/vi/profile-summary-firebug.php b/framework/views/vi/profile-summary-firebug.php
new file mode 100644
index 0000000..dcca4c0
--- /dev/null
+++ b/framework/views/vi/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Profiling Summary Report");
+ console.log(" count total average min max ");
+<?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/vi/profile-summary.php b/framework/views/vi/profile-summary.php
new file mode 100644
index 0000000..9fe021b
--- /dev/null
+++ b/framework/views/vi/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 Summary Report
+ (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>Procedure</th>
+ <th>Count</th>
+ <th>Total (s)</th>
+ <th>Avg. (s)</th>
+ <th>Min. (s)</th>
+ <th>Max. (s)</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
diff --git a/framework/views/zh_cn/error.php b/framework/views/zh_cn/error.php
new file mode 100644
index 0000000..90d8095
--- /dev/null
+++ b/framework/views/zh_cn/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>错误 <?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_cn/error400.php b/framework/views/zh_cn/error400.php
new file mode 100644
index 0000000..accd0ab
--- /dev/null
+++ b/framework/views/zh_cn/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>请求错误</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_cn/error403.php b/framework/views/zh_cn/error403.php
new file mode 100644
index 0000000..d5002d5
--- /dev/null
+++ b/framework/views/zh_cn/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>未被授权</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_cn/error404.php b/framework/views/zh_cn/error404.php
new file mode 100644
index 0000000..b7edb57
--- /dev/null
+++ b/framework/views/zh_cn/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>无法找到网页</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_cn/error500.php b/framework/views/zh_cn/error500.php
new file mode 100644
index 0000000..1427569
--- /dev/null
+++ b/framework/views/zh_cn/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>服务器内部错误</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_cn/error503.php b/framework/views/zh_cn/error503.php
new file mode 100644
index 0000000..01ad475
--- /dev/null
+++ b/framework/views/zh_cn/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>目前服务不可用</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_cn/log-firebug.php b/framework/views/zh_cn/log-firebug.php
new file mode 100644
index 0000000..8d0971e
--- /dev/null
+++ b/framework/views/zh_cn/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_cn/log.php b/framework/views/zh_cn/log.php
new file mode 100644
index 0000000..e4993e5
--- /dev/null
+++ b/framework/views/zh_cn/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_cn/profile-callstack-firebug.php b/framework/views/zh_cn/profile-callstack-firebug.php
new file mode 100644
index 0000000..60482d7
--- /dev/null
+++ b/framework/views/zh_cn/profile-callstack-firebug.php
@@ -0,0 +1,19 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("程序概要分析 - 堆栈调用报告");
+<?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_cn/profile-callstack.php b/framework/views/zh_cn/profile-callstack.php
new file mode 100644
index 0000000..60c5a96
--- /dev/null
+++ b/framework/views/zh_cn/profile-callstack.php
@@ -0,0 +1,28 @@
+<!-- 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">程序概要分析 - 堆栈调用报告</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_cn/profile-summary-firebug.php b/framework/views/zh_cn/profile-summary-firebug.php
new file mode 100644
index 0000000..b37ce40
--- /dev/null
+++ b/framework/views/zh_cn/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("程序概要分析 - 报告概述");
+ 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_cn/profile-summary.php b/framework/views/zh_cn/profile-summary.php
new file mode 100644
index 0000000..e0290ab
--- /dev/null
+++ b/framework/views/zh_cn/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">
+ 程序概要分析 - 报告概述
+ (时间: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?> 秒,
+ 内存: <?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
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