diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index 6626190..9da73b0 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -74,20 +74,20 @@
// be modified. We also might want to make this data available to be logged
$output = "\n\n";
- $output .= '<fieldset style="border:1px solid #990000;padding:6px 0 10px 10px;margin:0 0 20px 0;background-color:#efefef">';
+ $output .= '<fieldset style="border:1px solid #990000;padding:6px 10px 10px 10px;margin:0 0 20px 0;background-color:#eee">';
$output .= "\n";
$output .= '<legend style="color:#990000;"> '.$this->obj->lang->line('profiler_benchmarks').' </legend>';
$output .= "\n";
- $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0'>\n";
+ $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
foreach ($profile as $key => $val)
{
$key = ucwords(str_replace(array('_', '-'), ' ', $key));
- $output .= "<tr><td style='color:#0000;font-weight:bold;'>".$key." </td><td style='color:#990000;font-weight:normal;'>".$val."</td></tr>\n";
+ $output .= "<tr><td width='50%' style='color:#0000;font-weight:bold;background-color:#ddd;'>".$key." </td><td width='50%' style='color:#990000;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n";
}
$output .= "</table>\n";
- $output .= "</fieldset>\n\n";
+ $output .= "</fieldset>";
return $output;
}
@@ -98,7 +98,7 @@
function _compile_queries()
{
$output = "\n\n";
- $output .= '<fieldset style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#efefef">';
+ $output .= '<fieldset style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
$output .= "\n";
$output .= '<legend style="color:#0000FF;"> '.$this->obj->lang->line('profiler_queries').' </legend>';
$output .= "\n";
@@ -117,14 +117,14 @@
{
foreach ($this->obj->db->queries as $val)
{
- $output .= '<div style="padding:0;margin:12px 0 12px 0;background-color:#efefef;color:#000">';
+ $output .= '<div style="padding:3px;margin:12px 0 12px 0;background-color:#ddd;color:#000">';
$output .= $val;
$output .= "</div>\n";
}
}
}
- $output .= "</fieldset>\n\n";
+ $output .= "</fieldset>";
return $output;
}
@@ -132,9 +132,9 @@
// --------------------------------------------------------------------
function _compile_post()
- {
+ {
$output = "\n\n";
- $output .= '<fieldset style="border:1px solid #009900;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#efefef">';
+ $output .= '<fieldset style="border:1px solid #009900;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
$output .= "\n";
$output .= '<legend style="color:#009900;"> '.$this->obj->lang->line('profiler_post_data').' </legend>';
$output .= "\n";
@@ -145,7 +145,7 @@
}
else
{
- $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0'>\n";
+ $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
foreach ($_POST as $key => $val)
{
@@ -154,12 +154,12 @@
$key = "'".$key."'";
}
- $output .= "<tr><td style='color:#0000;'>$_POST[".$key."] </td><td style='color:#009900;font-weight:normal;'>".htmlspecialchars(stripslashes($val))."</td></tr>\n";
+ $output .= "<tr><td width='50%' style='color:#0000;background-color:#ddd;'>$_POST[".$key."] </td><td width='50%' style='color:#009900;font-weight:normal;background-color:#ddd;'>".htmlspecialchars(stripslashes($val))."</td></tr>\n";
}
$output .= "</table>\n";
}
- $output .= "</fieldset>\n\n";
+ $output .= "</fieldset>";
return $output;
}
@@ -177,11 +177,14 @@
$obj =& get_instance();
$output = '<br clear="all" />';
+ $output .= "<div style='background-color:#fff;padding:10px;'>";
$output .= $this->_compile_benchmarks();
$output .= $this->_compile_post();
$output .= $this->_compile_queries();
+ $output .= '</div>';
+
return $output;
}