From 3413fe6bfd423d45d083ff4ed62c0f72c2cc272f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 28 May 2009 06:11:53 +0800 Subject: Rename 'kohana' to 'system' to conform to the Kohana filesystem layout. I'm comfortable with us not clearly drawing the distinction about the fact that it's Kohana. Signed-off-by: Gallery Role Account --- system/views/kohana/template.php | 36 +++++++++++++++++++++++ system/views/kohana_error_disabled.php | 17 +++++++++++ system/views/kohana_error_page.php | 27 +++++++++++++++++ system/views/kohana_errors.css | 21 ++++++++++++++ system/views/kohana_profiler.php | 37 ++++++++++++++++++++++++ system/views/kohana_profiler_table.css | 53 ++++++++++++++++++++++++++++++++++ system/views/kohana_profiler_table.php | 25 ++++++++++++++++ 7 files changed, 216 insertions(+) create mode 100644 system/views/kohana/template.php create mode 100644 system/views/kohana_error_disabled.php create mode 100644 system/views/kohana_error_page.php create mode 100644 system/views/kohana_errors.css create mode 100644 system/views/kohana_profiler.php create mode 100644 system/views/kohana_profiler_table.css create mode 100644 system/views/kohana_profiler_table.php (limited to 'system/views') diff --git a/system/views/kohana/template.php b/system/views/kohana/template.php new file mode 100644 index 00000000..b090fd88 --- /dev/null +++ b/system/views/kohana/template.php @@ -0,0 +1,36 @@ + + + + + + + + <?php echo html::specialchars($title) ?> + + + + + + +

+ + + + + + \ No newline at end of file diff --git a/system/views/kohana_error_disabled.php b/system/views/kohana_error_disabled.php new file mode 100644 index 00000000..cd911328 --- /dev/null +++ b/system/views/kohana_error_disabled.php @@ -0,0 +1,17 @@ + + + + + + +<?php echo $error ?> + + +
+

+

+
+ + \ No newline at end of file diff --git a/system/views/kohana_error_page.php b/system/views/kohana_error_page.php new file mode 100644 index 00000000..944064cc --- /dev/null +++ b/system/views/kohana_error_page.php @@ -0,0 +1,27 @@ + + + + + + +<?php echo $error ?> + + + +
+

+

+ +

+ +

+ +

+ + +

+
+ + \ No newline at end of file diff --git a/system/views/kohana_errors.css b/system/views/kohana_errors.css new file mode 100644 index 00000000..1341f57d --- /dev/null +++ b/system/views/kohana_errors.css @@ -0,0 +1,21 @@ +div#framework_error { background:#fff; border:solid 1px #ccc; font-family:sans-serif; color:#111; font-size:14px; line-height:130%; } +div#framework_error h3 { color:#fff; font-size:16px; padding:8px 6px; margin:0 0 8px; background:#f15a00; text-align:center; } +div#framework_error a { color:#228; text-decoration:none; } +div#framework_error a:hover { text-decoration:underline; } +div#framework_error strong { color:#900; } +div#framework_error p { margin:0; padding:4px 6px 10px; } +div#framework_error tt, +div#framework_error pre, +div#framework_error code { font-family:monospace; padding:2px 4px; font-size:12px; color:#333; + white-space:pre-wrap; /* CSS 2.1 */ + white-space:-moz-pre-wrap; /* For Mozilla */ + word-wrap:break-word; /* For IE5.5+ */ +} +div#framework_error tt { font-style:italic; } +div#framework_error tt:before { content:">"; color:#aaa; } +div#framework_error code tt:before { content:""; } +div#framework_error pre, +div#framework_error code { background:#eaeee5; border:solid 0 #D6D8D1; border-width:0 1px 1px 0; } +div#framework_error .block { display:block; text-align:left; } +div#framework_error .stats { padding:4px; background: #eee; border-top:solid 1px #ccc; text-align:center; font-size:10px; color:#888; } +div#framework_error .backtrace { margin:0; padding:0 6px; list-style:none; line-height:12px; } \ No newline at end of file diff --git a/system/views/kohana_profiler.php b/system/views/kohana_profiler.php new file mode 100644 index 00000000..da77a669 --- /dev/null +++ b/system/views/kohana_profiler.php @@ -0,0 +1,37 @@ + + +
+render(); +} +?> +

Profiler executed in s

+
\ No newline at end of file diff --git a/system/views/kohana_profiler_table.css b/system/views/kohana_profiler_table.css new file mode 100644 index 00000000..6e7601c9 --- /dev/null +++ b/system/views/kohana_profiler_table.css @@ -0,0 +1,53 @@ +#kohana-profiler .kp-table +{ + font-size: 1.0em; + color: #4D6171; + width: 100%; + border-collapse: collapse; + border-top: 1px solid #E5EFF8; + border-right: 1px solid #E5EFF8; + border-left: 1px solid #E5EFF8; + margin-bottom: 10px; +} +#kohana-profiler .kp-table td +{ + background-color: #FFFFFF; + border-bottom: 1px solid #E5EFF8; + padding: 3px; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-title td +{ + font-weight: bold; + background-color: inherit; +} +#kohana-profiler .kp-table .kp-altrow td +{ + background-color: #F7FBFF; +} +#kohana-profiler .kp-table .kp-totalrow td +{ + background-color: #FAFAFA; + border-top: 1px solid #D2DCE5; + font-weight: bold; +} +#kohana-profiler .kp-table .kp-column +{ + width: 100px; + border-left: 1px solid #E5EFF8; + text-align: center; +} +#kohana-profiler .kp-table .kp-data, #kohana-profiler .kp-table .kp-name +{ + background-color: #FAFAFB; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-name +{ + width: 200px; + border-right: 1px solid #E5EFF8; +} +#kohana-profiler .kp-table .kp-altrow .kp-data, #kohana-profiler .kp-table .kp-altrow .kp-name +{ + background-color: #F6F8FB; +} \ No newline at end of file diff --git a/system/views/kohana_profiler_table.php b/system/views/kohana_profiler_table.php new file mode 100644 index 00000000..b6b46530 --- /dev/null +++ b/system/views/kohana_profiler_table.php @@ -0,0 +1,25 @@ + + + + > + $column) + { + $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"'; + $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"'; + $value = $row['data'][$index]; + $value = (is_array($value) OR is_object($value)) ? '
'.html::specialchars(print_r($value, TRUE)).'
' : html::specialchars($value); + echo '', $value, ''; + } + ?> + + +
\ No newline at end of file -- cgit v1.2.3