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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161 | <?php
if (isset($_REQUEST['remove_tag'])) {
$file=$_REQUEST['remove_tag'];
if (is_file('tags/' . $file))
$do = unlink('tags/'.$file);
}
?>
<div style=" display: inline-block;float:right;position:relative; top:100px; right:10px; ">
<div align="right" style="width:10px;">
<style scoped>
/*General Label Style*/
ul.labels{
font-family: Verdana,Arial,Helvetica,sans-serif;
font-weight: 100;
line-height: 13px;
}
ul.labels li{
display: inline;
color: #CCCCCC;
float: right;
margin: 0px 2px 2px 0px;
height: 13px;
line-height: 13px;
}
ul.labels li span{
background: url(/_static/label_front.gif) no-repeat center left;
font-size: 11px;
font-weight: normal;
white-space: nowrap;
padding: 0px 3px;
color: white;
vertical-align: top; */
float: right;
}
a.xbut{
padding: 1px 4px 0px 11px;
padding-top /*\**/: 0px\9; /*Hack for IE*/
background: url(/_static/labelx.gif) no-repeat center right;
cursor: pointer;
border-left: 1px dotted white;
outline: none;
margin-right: 0px;
}
a.xbut:hover{
background: url(/_static/labelx_hover.gif) no-repeat center right;
}
a {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
/*Colored Label Attributes*/
ul.labels li.class_0{
background-color: #000 ;
}
ul.labels li.class_1{
background-color: #F1A9E7;
}
ul.labels li.class_2{
background-color: #99CCFF;
}
ul.labels li.class_3{
background-color: #3019FF;
}
ul.labels li.class_4{
background-color: #CCCC66;
}
ul.labels li.class_5{
background-color: #37B700;
}
ul.labels li.class_6{
background-color: #C5AD98;
}
ul.labels li.class_7{
background-color: #CEA6CE;
}
ul.labels li.class_8{
background-color: #8FCDB6;
}
ul.labels li.class_9{
background-color: #EE998A ;
}
ul.labels li.class_10{
background-color: #FF9E28 ;
}
ul.labels li.class_11{
background-color: #B6FF00 ;
}
ul.labels li.class_12{
background-color: #21007F ;
}
ul.labels li.class_13{
background-color: #00CC00 ;
}
ul.labels li.class_14{
background-color: #B24700 ;
}
ul.labels li.class_15{
background-color: #80C8FE ;
}
ul.labels li.class_16{
background-color: #8E006B ;
}
ul.labels li.class_17{
background-color: #8E0D6B ;
}
</style>
<form name="tags">
<ul class="labels">
<?php
$dirFiles = array();
$thelist="";
if ($handle = opendir("tags/")) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != ".." && $file != "index.php")
{
$dirFiles[] = $file;
}
}
closedir($handle);
}
sort($dirFiles);
foreach($dirFiles as $file)
{
$class = ord($file[0]) % 18;
$thelist .= '<li class="class_'.$class.'"><a href="/utils/close_shots?diagn_0=tags&value_0='.$file.'"><span>'.$file."</span></a><a href=\"?remove_tag=".$file."\" class='xbut'></a></li>\n";
}
echo $thelist;
?>
</ul>
</form>
</div>
</div>
|