-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
130 lines (127 loc) · 3.5 KB
/
Copy pathindex.html
File metadata and controls
130 lines (127 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<title>PHP Samples</title>
<style>
.tree-container {
text-align: left;
padding-left: 42px;
}
#foldhead {
cursor: pointer;
font-size: 16px;
font-weight: bold;
margin-bottom: -18px;
list-style-image: url(img/tree_fold.png)
}
#foldhead>p {
position: relative;
bottom: 18px;
}
#foldhead.open {
list-style-image: url(img/tree_open.png)
}
#foldlist {
font-size: 16px;
margin-bottom: -18px;
list-style-image: url(img/tree_item.png)
}
#foldlist>li>a {
position: relative;
bottom: 18px;
}
@-moz-document url-prefix() {
.tree-container {
padding-top: 8px;
}
#foldhead {
margin-bottom: 0px;
height: 16px;
}
#foldhead>p {
margin-top: 32px;
}
#foldlist {
margin-bottom: 0px;
}
}
</style>
<script>
function documentOnClick(e){
var ie_old = (e == undefined);
var n = ie_old ? event.srcElement : e.target;
if(n == null) return;
if(n.tagName != 'LI') n = n.parentNode;
if(n.id=="foldhead"){
var folderContent = ie_old ? n.childNodes[1] : n.nextSibling.nextSibling;
if(folderContent == null) return;
if(folderContent.style.display=="none"){
folderContent.style.display="";
n.style.listStyleImage="url(img/tree_open.png)";
}
else{
folderContent.style.display="none";
n.style.listStyleImage="url(img/tree_fold.png)";
}
}
}
document.onclick = documentOnClick;
function treeExpandAll(){
var allul = document.getElementsByTagName('UL');
if(!allul || !allul.length) return;
for(var i = 0; i < allul.length; i++){
var eul = allul[i];
if(eul.id!="foldlist")continue;
eul.style.display="";
}
}
function treeCollapseAll(){
var allul = document.getElementsByTagName('UL');
if(!allul || !allul.length) return;
for(var i = 0; i < allul.length; i++){
var eul = allul[i];
if(eul.id!="foldlist")continue;
eul.style.display="none";
}
}
</script>
</head>
<body onload="bodyOnLoad()">
<h1>PHP Samples</h1>
<hr>
<p><img src="img/alert.png" style="margin-bottom:-2px;"> MySQL e world database is required.</p>
<div class="tree-container">
<ul>
<li id="foldhead" class="open"> <p>Samples</p></li>
<ul id="foldlist" style="display:none">
<li id="foldhead" class="open"> <p>PHP info</p></li>
<ul id="foldlist" style="display:none">
<li><a href="php.php">phpinfo</a></li>
</ul>
<li id="foldhead" class="open"> <p>Search engine</p></li>
<ul id="foldlist" style="display:none">
<li><a href="search.php">Simple search</a></li>
</ul>
<li id="foldhead" class="open"> <p>RESTful</p></li>
<ul id="foldlist" style="display:none">
<li><a href="rest_country.php?c=Europe">REST service</a></li>
</ul>
<li id="foldhead" class="open"> <p>JSON-RPC</p></li>
<ul id="foldlist" style="display:none">
<li><a href="json-rpc.html">JSON-RPC service</a></li>
</ul>
<li id="foldhead" class="open"> <p>SOAP</p></li>
<ul id="foldlist" style="display:none">
<li><a href="soap_country.php?wsdl">SOAP service</a></li>
</ul>
</ul>
</ul>
</div>
<hr>
<script>
function bodyOnLoad() {
treeExpandAll();
}
</script>
</body>
</html>