initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 55
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug
END

View File

@@ -0,0 +1,37 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/htdocs/sf/sf_web_debug
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
images
dir
css
dir
js
dir

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 59
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/css
END
main.css
K 25
svn:wc:ra_dav:version-url
V 68
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/css/main.css
END

View File

@@ -0,0 +1,40 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/htdocs/sf/sf_web_debug/css
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
main.css
file
2009-05-28T02:26:21.000000Z
b3919e52a8b596289a5615eb8ac4e342
2009-05-28T02:14:48.119086Z
25
ben

View File

@@ -0,0 +1,273 @@
#sfWebDebug
{
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
font-size: 12px;
color: #333;
text-align: left;
line-height: 12px;
}
#sfWebDebug a, #sfWebDebug a:hover
{
text-decoration: none;
border: none;
background-color: transparent;
color: #000;
}
#sfWebDebug img
{
border: 0;
}
#sfWebDebugBar
{
position: absolute;
margin: 0;
padding: 1px 0;
right: 0px;
top: 0px;
opacity: 0.80;
filter: alpha(opacity:80);
z-index: 10000;
white-space: nowrap;
}
#sfWebDebugBar[id]
{
position: fixed;
}
#sfWebDebugBar img
{
vertical-align: middle;
}
#sfWebDebugBar .menu
{
padding: 5px;
display: inline;
}
#sfWebDebugBar .menu li
{
display: inline;
list-style: none;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugBar .menu li.last
{
margin: 0;
padding: 0;
border: 0;
}
#sfWebDebugDatabaseDetails li
{
margin: 0;
margin-left: 30px;
padding: 5px 0;
}
#sfWebDebugShortMessages li
{
margin-bottom: 10px;
padding: 5px;
background-color: #ddd;
}
#sfWebDebugShortMessages li
{
list-style: none;
}
#sfWebDebugDetails
{
margin-right: 7px;
}
#sfWebDebug pre
{
line-height: 1.3;
margin-bottom: 10px;
}
#sfWebDebug h1
{
font-size: 16px;
font-weight: bold;
margin-bottom: 20px;
padding: 0;
border: 0px;
background-color: #eee;
}
#sfWebDebug h2
{
font-size: 14px;
font-weight: bold;
margin: 10px 0;
padding: 0;
border: 0px;
background: none;
}
#sfWebDebug .sfWebDebugTop
{
position: absolute;
left: 0px;
top: 0px;
width: 100%;
padding: 10px;
z-index: 9999;
background-color: #efefef;
border-bottom: 1px solid #aaa;
}
#sfWebDebugLog
{
margin: 0;
padding: 3px;
font-size: 11px;
}
#sfWebDebugLogMenu li
{
display: inline;
list-style: none;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugConfigSummary
{
display: inline;
padding: 5px;
background-color: #ddd;
border: 1px solid #aaa;
margin: 20px 0;
}
#sfWebDebugConfigSummary li
{
list-style: none;
display: inline;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugConfigSummary li.last
{
margin: 0;
padding: 0;
border: 0;
}
.sfWebDebugInfo, .sfWebDebugInfo td
{
background-color: #ddd;
}
.sfWebDebugWarning, .sfWebDebugWarning td
{
background-color: orange;
}
.sfWebDebugError, .sfWebDebugError td
{
background-color: #f99;
}
.sfWebDebugLogNumber
{
width: 1%;
}
.sfWebDebugLogType
{
width: 1%;
white-space: nowrap;
color: darkgreen;
}
.sfWebDebugLogInfo
{
color: blue;
}
.ison
{
color: #3f3;
margin-right: 5px;
}
.isoff
{
color: #f33;
margin-right: 5px;
text-decoration: line-through;
}
.sfWebDebugLogs
{
padding: 0;
margin: 0;
border: 1px solid #999;
font-family: Arial;
font-size: 11px;
}
.sfWebDebugLogs tr
{
padding: 0;
margin: 0;
border: 0;
}
.sfWebDebugLogs td
{
margin: 0;
border: 0;
padding: 1px 3px;
vertical-align: top;
}
.sfWebDebugLogs th
{
margin: 0;
border: 0;
padding: 3px 5px;
vertical-align: top;
background-color: #999;
color: #eee;
white-space: nowrap;
}
.sfWebDebugDebugInfo
{
margin-left: 10px;
padding-left: 5px;
border-left: 1px solid #aaa;
}
.sfWebDebugCache
{
padding: 0;
margin: 0;
font-family: Arial;
position: absolute;
overflow: hidden;
z-index: 995;
font-size: 9px;
padding: 2px;
filter:alpha(opacity=85);
-moz-opacity:0.85;
opacity: 0.85;
}

View File

@@ -0,0 +1,273 @@
#sfWebDebug
{
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
font-size: 12px;
color: #333;
text-align: left;
line-height: 12px;
}
#sfWebDebug a, #sfWebDebug a:hover
{
text-decoration: none;
border: none;
background-color: transparent;
color: #000;
}
#sfWebDebug img
{
border: 0;
}
#sfWebDebugBar
{
position: absolute;
margin: 0;
padding: 1px 0;
right: 0px;
top: 0px;
opacity: 0.80;
filter: alpha(opacity:80);
z-index: 10000;
white-space: nowrap;
}
#sfWebDebugBar[id]
{
position: fixed;
}
#sfWebDebugBar img
{
vertical-align: middle;
}
#sfWebDebugBar .menu
{
padding: 5px;
display: inline;
}
#sfWebDebugBar .menu li
{
display: inline;
list-style: none;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugBar .menu li.last
{
margin: 0;
padding: 0;
border: 0;
}
#sfWebDebugDatabaseDetails li
{
margin: 0;
margin-left: 30px;
padding: 5px 0;
}
#sfWebDebugShortMessages li
{
margin-bottom: 10px;
padding: 5px;
background-color: #ddd;
}
#sfWebDebugShortMessages li
{
list-style: none;
}
#sfWebDebugDetails
{
margin-right: 7px;
}
#sfWebDebug pre
{
line-height: 1.3;
margin-bottom: 10px;
}
#sfWebDebug h1
{
font-size: 16px;
font-weight: bold;
margin-bottom: 20px;
padding: 0;
border: 0px;
background-color: #eee;
}
#sfWebDebug h2
{
font-size: 14px;
font-weight: bold;
margin: 10px 0;
padding: 0;
border: 0px;
background: none;
}
#sfWebDebug .sfWebDebugTop
{
position: absolute;
left: 0px;
top: 0px;
width: 100%;
padding: 10px;
z-index: 9999;
background-color: #efefef;
border-bottom: 1px solid #aaa;
}
#sfWebDebugLog
{
margin: 0;
padding: 3px;
font-size: 11px;
}
#sfWebDebugLogMenu li
{
display: inline;
list-style: none;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugConfigSummary
{
display: inline;
padding: 5px;
background-color: #ddd;
border: 1px solid #aaa;
margin: 20px 0;
}
#sfWebDebugConfigSummary li
{
list-style: none;
display: inline;
margin: 0;
padding: 0 5px;
border-right: 1px solid #aaa;
}
#sfWebDebugConfigSummary li.last
{
margin: 0;
padding: 0;
border: 0;
}
.sfWebDebugInfo, .sfWebDebugInfo td
{
background-color: #ddd;
}
.sfWebDebugWarning, .sfWebDebugWarning td
{
background-color: orange;
}
.sfWebDebugError, .sfWebDebugError td
{
background-color: #f99;
}
.sfWebDebugLogNumber
{
width: 1%;
}
.sfWebDebugLogType
{
width: 1%;
white-space: nowrap;
color: darkgreen;
}
.sfWebDebugLogInfo
{
color: blue;
}
.ison
{
color: #3f3;
margin-right: 5px;
}
.isoff
{
color: #f33;
margin-right: 5px;
text-decoration: line-through;
}
.sfWebDebugLogs
{
padding: 0;
margin: 0;
border: 1px solid #999;
font-family: Arial;
font-size: 11px;
}
.sfWebDebugLogs tr
{
padding: 0;
margin: 0;
border: 0;
}
.sfWebDebugLogs td
{
margin: 0;
border: 0;
padding: 1px 3px;
vertical-align: top;
}
.sfWebDebugLogs th
{
margin: 0;
border: 0;
padding: 3px 5px;
vertical-align: top;
background-color: #999;
color: #eee;
white-space: nowrap;
}
.sfWebDebugDebugInfo
{
margin-left: 10px;
padding-left: 5px;
border-left: 1px solid #aaa;
}
.sfWebDebugCache
{
padding: 0;
margin: 0;
font-family: Arial;
position: absolute;
overflow: hidden;
z-index: 995;
font-size: 9px;
padding: 2px;
filter:alpha(opacity=85);
-moz-opacity:0.85;
opacity: 0.85;
}

View File

@@ -0,0 +1,77 @@
K 25
svn:wc:ra_dav:version-url
V 62
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images
END
time.png
K 25
svn:wc:ra_dav:version-url
V 71
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/time.png
END
comment.png
K 25
svn:wc:ra_dav:version-url
V 74
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/comment.png
END
toggle.gif
K 25
svn:wc:ra_dav:version-url
V 73
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/toggle.gif
END
database.png
K 25
svn:wc:ra_dav:version-url
V 75
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/database.png
END
close.png
K 25
svn:wc:ra_dav:version-url
V 72
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/close.png
END
config.png
K 25
svn:wc:ra_dav:version-url
V 73
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/config.png
END
warning.png
K 25
svn:wc:ra_dav:version-url
V 74
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/warning.png
END
reload.png
K 25
svn:wc:ra_dav:version-url
V 73
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/reload.png
END
memory.png
K 25
svn:wc:ra_dav:version-url
V 73
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/memory.png
END
sf.png
K 25
svn:wc:ra_dav:version-url
V 69
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/sf.png
END
error.png
K 25
svn:wc:ra_dav:version-url
V 72
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/error.png
END
info.png
K 25
svn:wc:ra_dav:version-url
V 71
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/images/info.png
END

View File

@@ -0,0 +1,184 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/htdocs/sf/sf_web_debug/images
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
time.png
file
2009-05-28T02:26:21.000000Z
b139ed675fdbdca56f0d73121f36f836
2009-05-28T02:14:48.119086Z
25
ben
has-props
comment.png
file
2009-05-28T02:26:21.000000Z
a22ab82fb3a33ece38c3ab5e0844154d
2009-05-28T02:14:48.119086Z
25
ben
has-props
toggle.gif
file
2009-05-28T02:26:21.000000Z
4f85ad4104963a3926b8bb096d2f4a6e
2009-05-28T02:14:48.119086Z
25
ben
has-props
database.png
file
2009-05-28T02:26:21.000000Z
d698a5e9a755a97b51e657256881bbde
2009-05-28T02:14:48.119086Z
25
ben
has-props
close.png
file
2009-05-28T02:26:21.000000Z
42492684e24356a4081134894eabeb9e
2009-05-28T02:14:48.119086Z
25
ben
has-props
config.png
file
2009-05-28T02:26:21.000000Z
94b0bdf2d5246e62ebbb07a2e152752f
2009-05-28T02:14:48.119086Z
25
ben
has-props
warning.png
file
2009-05-28T02:26:21.000000Z
03e8370494222f89af21831bb1146e10
2009-05-28T02:14:48.119086Z
25
ben
has-props
reload.png
file
2009-05-28T02:26:21.000000Z
fc1ba12390db7eb5ec9ec9293c70842c
2009-05-28T02:14:48.119086Z
25
ben
has-props
memory.png
file
2009-05-28T02:26:21.000000Z
8d60518c6d18af693cfeea9c066026c1
2009-05-28T02:14:48.119086Z
25
ben
has-props
sf.png
file
2009-05-28T02:26:21.000000Z
5c0a823af58206a1ec7b716d3b419f50
2009-05-28T02:14:48.119086Z
25
ben
has-props
error.png
file
2009-05-28T02:26:21.000000Z
d5c637d85a8d50799e5ece1deced569c
2009-05-28T02:14:48.119086Z
25
ben
has-props
info.png
file
2009-05-28T02:26:21.000000Z
17aaa229c657ed7dfb95b3e3dcaf7ccf
2009-05-28T02:14:48.119086Z
25
ben
has-props

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

View File

@@ -0,0 +1,5 @@
K 13
svn:mime-type
V 24
application/octet-stream
END

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 845 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 845 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 58
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/js
END
main.js
K 25
svn:wc:ra_dav:version-url
V 66
/svn/!svn/ver/25/pae.co.at/trunk/htdocs/sf/sf_web_debug/js/main.js
END

View File

@@ -0,0 +1,40 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/htdocs/sf/sf_web_debug/js
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
main.js
file
2009-05-28T02:26:21.000000Z
7cb5aa2cb39ec30ad61a4b4215fbdc35
2009-05-28T02:14:48.119086Z
25
ben

View File

@@ -0,0 +1,133 @@
function sfWebDebugGetElementsByClassName(strClass, strTag, objContElm)
{
// http://muffinresearch.co.uk/archives/2006/04/29/getelementsbyclassname-deluxe-edition/
strTag = strTag || "*";
objContElm = objContElm || document;
var objColl = (strTag == '*' && document.all) ? document.all : objContElm.getElementsByTagName(strTag);
var arr = new Array();
var delim = strClass.indexOf('|') != -1 ? '|' : ' ';
var arrClass = strClass.split(delim);
var j = objColl.length;
for (var i = 0; i < j; i++) {
if(objColl[i].className == undefined) continue;
var arrObjClass = objColl[i].className.split(' ');
if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
var c = 0;
comparisonLoop:
{
var l = arrObjClass.length;
for (var k = 0; k < l; k++) {
var n = arrClass.length;
for (var m = 0; m < n; m++) {
if (arrClass[m] == arrObjClass[k]) c++;
if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) {
arr.push(objColl[i]);
break comparisonLoop;
}
}
}
}
}
return arr;
}
function sfWebDebugToggleMenu()
{
var element = document.getElementById('sfWebDebugDetails');
var cacheElements = sfWebDebugGetElementsByClassName('sfWebDebugCache');
var mainCacheElements = sfWebDebugGetElementsByClassName('sfWebDebugActionCache');
if (element.style.display != 'none')
{
document.getElementById('sfWebDebugLog').style.display = 'none';
document.getElementById('sfWebDebugConfig').style.display = 'none';
document.getElementById('sfWebDebugDatabaseDetails').style.display = 'none';
document.getElementById('sfWebDebugTimeDetails').style.display = 'none';
// hide all cache information
for (var i = 0; i < cacheElements.length; ++i)
{
cacheElements[i].style.display = 'none';
}
for (var i = 0; i < mainCacheElements.length; ++i)
{
mainCacheElements[i].style.border = 'none';
}
}
else
{
for (var i = 0; i < cacheElements.length; ++i)
{
cacheElements[i].style.display = '';
}
for (var i = 0; i < mainCacheElements.length; ++i)
{
mainCacheElements[i].style.border = '1px solid #f00';
}
}
sfWebDebugToggle('sfWebDebugDetails');
sfWebDebugToggle('sfWebDebugShowMenu');
sfWebDebugToggle('sfWebDebugHideMenu');
}
function sfWebDebugShowDetailsFor(element)
{
if (element != 'sfWebDebugLog') document.getElementById('sfWebDebugLog').style.display='none';
if (element != 'sfWebDebugConfig') document.getElementById('sfWebDebugConfig').style.display='none';
if (element != 'sfWebDebugDatabaseDetails') document.getElementById('sfWebDebugDatabaseDetails').style.display='none';
if (element != 'sfWebDebugTimeDetails') document.getElementById('sfWebDebugTimeDetails').style.display='none';
sfWebDebugToggle(element);
}
function sfWebDebugToggle(element)
{
if (typeof element == 'string')
element = document.getElementById(element);
if (element)
element.style.display = element.style.display == 'none' ? '' : 'none';
}
function sfWebDebugToggleMessages(klass)
{
var elements = sfWebDebugGetElementsByClassName(klass);
var x = elements.length;
for (var i = 0; i < x; ++i)
{
sfWebDebugToggle(elements[i]);
}
}
function sfWebDebugToggleAllLogLines(show, klass)
{
var elements = sfWebDebugGetElementsByClassName(klass);
var x = elements.length;
for (var i = 0; i < x; ++i)
{
elements[i].style.display = show ? '' : 'none';
}
}
function sfWebDebugShowOnlyLogLines(type)
{
var types = new Array();
types[0] = 'info';
types[1] = 'warning';
types[2] = 'error';
for (klass in types)
{
var elements = sfWebDebugGetElementsByClassName('sfWebDebug' + types[klass].substring(0, 1).toUpperCase() + types[klass].substring(1, types[klass].length));
var x = elements.length;
for (var i = 0; i < x; ++i)
{
if ('tr' == elements[i].tagName.toLowerCase())
{
elements[i].style.display = (type == types[klass]) ? '' : 'none';
}
}
}
}

View File

@@ -0,0 +1,133 @@
function sfWebDebugGetElementsByClassName(strClass, strTag, objContElm)
{
// http://muffinresearch.co.uk/archives/2006/04/29/getelementsbyclassname-deluxe-edition/
strTag = strTag || "*";
objContElm = objContElm || document;
var objColl = (strTag == '*' && document.all) ? document.all : objContElm.getElementsByTagName(strTag);
var arr = new Array();
var delim = strClass.indexOf('|') != -1 ? '|' : ' ';
var arrClass = strClass.split(delim);
var j = objColl.length;
for (var i = 0; i < j; i++) {
if(objColl[i].className == undefined) continue;
var arrObjClass = objColl[i].className.split(' ');
if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
var c = 0;
comparisonLoop:
{
var l = arrObjClass.length;
for (var k = 0; k < l; k++) {
var n = arrClass.length;
for (var m = 0; m < n; m++) {
if (arrClass[m] == arrObjClass[k]) c++;
if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) {
arr.push(objColl[i]);
break comparisonLoop;
}
}
}
}
}
return arr;
}
function sfWebDebugToggleMenu()
{
var element = document.getElementById('sfWebDebugDetails');
var cacheElements = sfWebDebugGetElementsByClassName('sfWebDebugCache');
var mainCacheElements = sfWebDebugGetElementsByClassName('sfWebDebugActionCache');
if (element.style.display != 'none')
{
document.getElementById('sfWebDebugLog').style.display = 'none';
document.getElementById('sfWebDebugConfig').style.display = 'none';
document.getElementById('sfWebDebugDatabaseDetails').style.display = 'none';
document.getElementById('sfWebDebugTimeDetails').style.display = 'none';
// hide all cache information
for (var i = 0; i < cacheElements.length; ++i)
{
cacheElements[i].style.display = 'none';
}
for (var i = 0; i < mainCacheElements.length; ++i)
{
mainCacheElements[i].style.border = 'none';
}
}
else
{
for (var i = 0; i < cacheElements.length; ++i)
{
cacheElements[i].style.display = '';
}
for (var i = 0; i < mainCacheElements.length; ++i)
{
mainCacheElements[i].style.border = '1px solid #f00';
}
}
sfWebDebugToggle('sfWebDebugDetails');
sfWebDebugToggle('sfWebDebugShowMenu');
sfWebDebugToggle('sfWebDebugHideMenu');
}
function sfWebDebugShowDetailsFor(element)
{
if (element != 'sfWebDebugLog') document.getElementById('sfWebDebugLog').style.display='none';
if (element != 'sfWebDebugConfig') document.getElementById('sfWebDebugConfig').style.display='none';
if (element != 'sfWebDebugDatabaseDetails') document.getElementById('sfWebDebugDatabaseDetails').style.display='none';
if (element != 'sfWebDebugTimeDetails') document.getElementById('sfWebDebugTimeDetails').style.display='none';
sfWebDebugToggle(element);
}
function sfWebDebugToggle(element)
{
if (typeof element == 'string')
element = document.getElementById(element);
if (element)
element.style.display = element.style.display == 'none' ? '' : 'none';
}
function sfWebDebugToggleMessages(klass)
{
var elements = sfWebDebugGetElementsByClassName(klass);
var x = elements.length;
for (var i = 0; i < x; ++i)
{
sfWebDebugToggle(elements[i]);
}
}
function sfWebDebugToggleAllLogLines(show, klass)
{
var elements = sfWebDebugGetElementsByClassName(klass);
var x = elements.length;
for (var i = 0; i < x; ++i)
{
elements[i].style.display = show ? '' : 'none';
}
}
function sfWebDebugShowOnlyLogLines(type)
{
var types = new Array();
types[0] = 'info';
types[1] = 'warning';
types[2] = 'error';
for (klass in types)
{
var elements = sfWebDebugGetElementsByClassName('sfWebDebug' + types[klass].substring(0, 1).toUpperCase() + types[klass].substring(1, types[klass].length));
var x = elements.length;
for (var i = 0; i < x; ++i)
{
if ('tr' == elements[i].tagName.toLowerCase())
{
elements[i].style.display = (type == types[klass]) ? '' : 'none';
}
}
}
}