summaryrefslogtreecommitdiff
path: root/framework/views/sk
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
commit341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch)
tree1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/views/sk
yii-framework 1.1.10 hinzugefügtHEADmaster
Diffstat (limited to 'framework/views/sk')
-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
12 files changed, 382 insertions, 0 deletions
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