File indexing completed on 2025-08-05 08:20:19
0001 <table>
0002 <tr>
0003 <td>
0004 <form name="subsystemselect" method="post" action="showplots.php" target="main">
0005 <center>
0006 <p>
0007
0008 Select subsystem from dropdown list <br>
0009 <select name="histos">
0010
0011 <?php
0012
0013
0014 $subsys = array(
0015 "ACCMON_",
0016 "BBCLVL1MON_",
0017 "BbcMON_",
0018 "DAQ_[0-9,c,l]",
0019 "DCHMON_",
0020 "EMCalMON_",
0021 "ERTLVL1MON_",
0022 "ERTMaskMon_",
0023 "GL1MON_",
0024 "LOCALPOLMON_0_",
0025 "MCRMON_",
0026 "MPCMON_",
0027 "MUIDLVL1MON_",
0028 "MUIDMONITOR_",
0029 "MUTRGMON_",
0030 "MUTRIGLVL1MON_",
0031 "MUTRMON_[0-2]",
0032 "PADMON_display",
0033 "PBGLUMON_",
0034 "PKTSIZEMON_",
0035 "RICHMON_",
0036 "RPCMON_",
0037 "TOF",
0038 "TOFWMON_",
0039 "ZDCLVL1MON_",
0040 "ZdcMON_[0,8]"
0041 );
0042
0043 echo(" " . $run_directory. "<br>\n");
0044 foreach( $subsys as $sub){
0045 echo("<option value=\"" . $run_directory."/*/".$sub."*.png\"> " . $sub . " </option>\n");
0046 }
0047
0048 echo("</select>\n");
0049 echo("</td>\n");
0050
0051 echo("<td>\n");
0052 echo("<hr width=50>\n");
0053 echo("</td>\n");
0054
0055 echo("<td>\n");
0056
0057 echo("<form name=\"runselect\" method=\"post\" action=\"showplots.php\" target=\"main\">\n");
0058 echo("<center>\n");
0059
0060 echo("Select runrange from dropdown list <br>\n");
0061 echo("<select name=\"runrange\">\n");
0062
0063 $run_directory = $_POST[datatype];
0064
0065 echo(" " . $run_directory. "<br>\n");
0066
0067 $file_list = array();
0068
0069 if( $dh = opendir($run_directory))
0070 {
0071 while( false !== ($file = readdir($dh)))
0072 {
0073 echo(" " . $file . "<br>\n");
0074
0075 if( $file == '.' || $file == '..') continue;
0076 if( is_dir($run_directory."/".$file) && stristr($file, "un_0"))
0077 {
0078 array_push($file_list, $file);
0079 }
0080 }
0081 closedir($dh);
0082 }
0083
0084 rsort($file_list);
0085
0086 foreach ( $file_list as $file)
0087 {
0088 echo(" " . $file . "<br>\n");
0089 echo("<option value=\"" . $run_directory."/".$file . "\">" . $file . "</option>\n");
0090 }
0091
0092 ?>
0093
0094 </select>
0095 <br><input type="submit" name="Submit" value="Select">
0096 </center>
0097 </form>
0098 </td>
0099 </tr>
0100 </table>
0101