26 exec(
$cmd, $all_files);
27 foreach (
$dirs as $subdir){
28 if( stristr($subdir,
"data"))
break;
38 echo(
"<html>\n<head>\n</head>\n<body>\n");
40 echo(
"<h1> OnlMon Summary for $subsystem </h1>\n");
41 echo(
"<center> Selection was: $topdir </center>\n");
42 echo(
"<table cellpadding=2 border=1>\n");
44 foreach ( $all_files as $file ){
45 $dirs = explode(
"/", $file);
47 $file_1008 =
"http://logbook.phenix.bnl.gov/OnlMon/".$dirs[6].
"/".
$dirs[7].
"/".
$dirs[8].
"/".
$dirs[9];
52 $url =
"/OnlMon/mon.cgi?runnumber=".$runnumber.
"&runtype=".$subdir;
53 echo(
"<tr>\n<th colspan=\"$ncolumns\" bgcolor=\"lightgrey\"> <center> <a href=\"$url\" target=\"_blank\"> Run : $runnumber </a> </center></th>\n</tr>\n<tr>\n");
57 echo(
"<td><a href=\"$file_1008\" target=\"_blank\"><img src=\"$file_1008\" width=\"$scale\" alt=\"$file_1008\"></a></td>");
60 echo(
"</tr>\n<tr>\n");