-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
190 lines (149 loc) · 5.19 KB
/
index.php
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<html>
<head>
<link type="text/css" rel="stylesheet" href="doxygen_php_files/doxygen.css">
<script type="text/javascript" src="common/jquery-1.10.2.min.js"></script>
<title> CMSSW Reference Manual </title>
<style>
.roundbox{
margin:5px;
padding:5px;
-moz-background-clip: border;
-moz-background-inline-policy: continuous;
-moz-background-origin: padding;
-moz-border-radius-bottomleft: 15px;
-moz-border-radius-bottomright: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
-webkit-border-radius: 15px;
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
background: #cccccc none repeat scroll 0 0;
width:115px;
}
</style>
<script>
function filter()
{
var version = $('#filter').val();
$("a").each(function() {
if($(this).text().indexOf('Contact') != -1) return;
if($(this).text().indexOf('ECAL API Documentation') != -1) return;
if($(this).text().toLowerCase().indexOf(version.toLowerCase()) == -1)
$(this).parent().css({'display':'none'}); // hide
else
$(this).parent().css({'display':'block'}); // show
})
}
$(document).ready(function() {
$('#filter').bind("change paste keyup", filter);
});
</script>
</head>
<body style="padding:20px; background-color:lightBlue;">
<center>
<h1>CMSSW Reference Manual (doxygen)</h1>
<h2>Click on a version </h2>
<div> <b>Filter</b>: <input type="text" id="filter" value=""> </div>
</center>
<?php
function getEcalDirList()
{
$base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
$output = trim(shell_exec("ls -rs ".$base_dir."/ecaldoc | grep ECAL | awk -F \" \" '{print $2}'"));
$arr = explode("\n", $output);
foreach($arr as $file){
//echo "-".$file;
$suboutput = trim(shell_exec("ls -rs ".$base_dir."/ecaldoc/".$file." | grep ECAL | awk -F \" \" '{print $2}'"));
$subarr = explode("\n", $suboutput);
foreach($subarr as $subfile){
//echo "--".$subfile;
$version_list[$file][] = $subfile;
}
}
return $version_list;
}
function getDirList()
{
$base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
$output = trim(shell_exec("ls ".$base_dir."/cmssw/ | grep CMSSW_ | sed 's|\.zip$||'"));
$arr = explode("\n", $output);
foreach($arr as $file){
if (strpos($file, "CMSSW_") === 0) {
if (strpos($file, "_X_") === false){
$version = explode("_", $file);
$version_list[$version[1]][$version[2]][$version[3]][] = $file;
}
else{
$nightbuilds[$file] = $file;
}
}
}
// return $version_list;
return array ( $version_list, $nightbuilds );
}
$base_dir = dirname($_SERVER['SCRIPT_NAME']);
$BASE = $base_dir."/";
// ECAL RELEASES
//$level1 = getEcalDirList();
//krsort($level1);
//while (list ($key1, $values) = each ($level1) ){
// echo "<hr><div class=\"roundbox\"><b>".$key1."</b></div>";
// echo "<div class=\"tabs\" style=\"margin-left:150px; width:auto\"><ul class=\"tablist\" style=\"margin:0px;\">";
// sort($values);
// while (list ($key, $value) = each ($values) ) {
// echo "<li><a target=\"_blank\" href=".$BASE."ecaldoc/".$key1."/".$value."/doxygen>".$value."</a></li> ";
// }
// echo("</ul></div>");
// }
// END OF ECAL
//echo "<hr>";
?>
<div class="tabs" style="margin:10px;">
<ul class="tablist" style="margin:0px;">
<li><a target="_blank" href="https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuidePackageDocumentation">Package Documentation Guide</a></li>
<li><a target="_blank" href="http://cmsdoxy.web.cern.ch/cmsdoxy/cmsrel/">CMSSW Release List</a></li>
<li><a target="_blank" href="http://cms-ecaldaq-doxygen.web.cern.ch/cms-ecaldaq-doxygen/"> ECAL API Documentation </a></li>
</ul>
</div>
<?php
//echo ("<div class=\"tabs\" style=\"width:212px\"><ul class=\"tablist\" style=\"margin:0px;\"> <li><a target=\"_blank\" href=\"http://cms-ecaldaq-doxygen.web.cern.ch/cms-ecaldaq-doxygen/\"> ECAL API Documentation </a></li></ul></div></br>");
// CMSSW and NB RELEASES
$dirList = getDirList();
$level1 = $dirList[0];
//$level1 = getDirList();
$nb = $dirList[1];
// NIGHT BUILDS
echo "<hr><div class=\"roundbox\"><b><center> Night builds </center> </b></div>";
echo "<div class=\"tabs\" style=\"margin-left:150px; width:auto\"><ul class=\"tablist\" style=\"margin:0px;\">";
foreach ($nb as $key => $value){
echo "<li><a target=\"_blank\" href=".$BASE.$value."/doc/html>".$value."</a></li> ";
}
echo("</ul></div>");
// END OF NB
echo "<hr>";
// CMSSW RELEASES
krsort($level1);
foreach ($level1 as $key1 => $level2){
krsort($level2);
foreach ($level2 as $key2 => $level3){
krsort($level3);
echo "<hr><div class=\"roundbox\"><b>CMSSW_".$key1."_".$key2."_* </b></div>";
foreach ($level3 as $key3 => $values) {
echo "<div class=\"tabs\" style=\"margin-left:150px; width:auto\"><ul class=\"tablist\" style=\"margin:0px;\">";
sort($values);
foreach ($values as $key => $value) {
echo "<li><a target=\"_blank\" href=".$BASE.$value."/doc/html>".$value."</a></li> ";
}
echo("</ul></div>");
}
}
}
// END OF CMSSW
?>
<br>
<hr>
<div>
<i>Please avoid using links from pre-releases, they will be removed after their production releases.</i>
<center><a href="mailto:[email protected]">Contact</a></center>
</div>
</body>
</html>