Added new (clean) yii boilerplate
This commit is contained in:
25
framework/views/nl/error.php
Normal file
25
framework/views/nl/error.php
Normal file
@@ -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>
|
||||
24
framework/views/nl/error400.php
Normal file
24
framework/views/nl/error400.php
Normal file
@@ -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>
|
||||
24
framework/views/nl/error403.php
Normal file
24
framework/views/nl/error403.php
Normal file
@@ -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>
|
||||
24
framework/views/nl/error404.php
Normal file
24
framework/views/nl/error404.php
Normal file
@@ -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>
|
||||
24
framework/views/nl/error500.php
Normal file
24
framework/views/nl/error500.php
Normal file
@@ -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>
|
||||
24
framework/views/nl/error503.php
Normal file
24
framework/views/nl/error503.php
Normal file
@@ -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>
|
||||
22
framework/views/nl/log-firebug.php
Normal file
22
framework/views/nl/log-firebug.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
if(typeof(console)=='object') {
|
||||
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'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';
|
||||
elseif($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>
|
||||
38
framework/views/nl/log.php
Normal file
38
framework/views/nl/log.php
Normal file
@@ -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 -->
|
||||
17
framework/views/nl/profile-callstack-firebug.php
Normal file
17
framework/views/nl/profile-callstack-firebug.php
Normal file
@@ -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>
|
||||
29
framework/views/nl/profile-callstack.php
Normal file
29
framework/views/nl/profile-callstack.php
Normal file
@@ -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(' ',$level*8);
|
||||
|
||||
echo <<<EOD
|
||||
<tr style="background:{$color}">
|
||||
<td>{$spaces}{$proc}</td>
|
||||
<td align="center">{$time}</td>
|
||||
</tr>
|
||||
EOD;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<!-- end of profiling callstack -->
|
||||
20
framework/views/nl/profile-summary-firebug.php
Normal file
20
framework/views/nl/profile-summary-firebug.php
Normal file
@@ -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>
|
||||
41
framework/views/nl/profile-summary.php
Normal file
41
framework/views/nl/profile-summary.php
Normal file
@@ -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 -->
|
||||
Reference in New Issue
Block a user