Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:20:19

0001 <form name="datatypeselect" method="post" action="runrange_select.php" target="topright">
0002 <center>
0003 <p>
0004 Select datatype from dropdown list <br>
0005  <select name="datatype">
0006 
0007 <?php
0008 
0009 //$run_directory = "/phenix/WWW/run/10/online_monitoring/200GeV/";
0010 $run_directory = "/common/s6/backup/OnlMon/html/";
0011 
0012 if( $dh = opendir($run_directory))
0013 {
0014     while (($file = readdir($dh))!==false) 
0015     { 
0016 //      echo("   " . $run_directory . " - " . $file . " <br> \n"); 
0017 // Skip '.' and '..'
0018       if( $file == '.' || $file == '..') continue;
0019       if( is_dir($run_directory.$file) && stristr($file, "data") && !(stristr($file, "reject")) && !(stristr($file, "unknown")))
0020       {
0021         echo("<option value=\"" . $run_directory.$file . "\">" . $file . "</option>\n");
0022       }
0023     }
0024     closedir($dh);
0025 }
0026 
0027 ?>
0028  
0029 </select>
0030 <br><input type="submit" name="Submit" value="Select">
0031 </center>
0032 </form> 
0033 
0034