Modify
'.
# $name.'';
# }
#
# if ( preg_match("/^F\d+_T\d\w_V\d*_N(\d*)$/", $name, $matches) ) {
# return ''.
# $name.'';
# }
#
# return $name;
#}
?>
Installed Components
\n";
echo " \n";
echo " DCS Board: | \n";
echo " ".hrefname($row['dcsboard'])." | \n";
echo "
\n";
echo " ORI (A-Side): | \n";
echo " ".hrefname($row['ori_a'])." | \n";
echo "
\n";
echo " ORI (B-Side): | \n";
echo " ".hrefname($row['ori_b'])." | \n";
echo "
\n";
echo "\n";
#echo "DCS Board: ";
#echo $row['dcsboard']."
\n";
for ($i = 0; $i < 8; $i++) {
$roblink[$i] = '';
}
$res = pg_query ("SELECT roc_pos,name ".
"FROM rob_inventory,rob ".
"WHERE rob_inventory.id=rob.rob_id ".
" AND roc_type='$type' AND roc_serial=$serial");
while ($row = pg_fetch_assoc($res)) {
$roblink[$row['roc_pos']] = hrefname($row['name']);
#td_link_component('F'.$row['form']
# .'_T'.$row['type']
# .'_V'.$row['ver']
# .'_N'.$row['rob_id']);
}
echo "\n";
echo ' RB26 / C-Side |
'."\n";
echo ' Position 7: | | Position 6: |
';
echo ' '.$roblink[7].' | | '.$roblink[6]." |
\n";
echo ' Position 5: | | Position 4: |
';
echo ' '.$roblink[5].' | | '.$roblink[4]." |
\n";
echo ' Position 3: | | Position 2: |
';
echo ' '.$roblink[3].' | | '.$roblink[2]." |
\n";
echo ' Position 1: | | Position 0: |
';
echo ' '.$roblink[1].' | | '.$roblink[0]." |
\n";
echo ' RB24 / A-Side |
'."\n";
echo "\n";
?>
Comments
HV Tests
'.$what.' test on '.$when.' - PDF';
}
$hvtypes = array("anode"=>"Anode HV",
"dwr"=>"Drift HV (with return cable)",
"dwor"=>"Drift HV (without return cable)");
foreach ($hvtypes as $hvtype=>$hvname){
$file = $name."*-".$hvtype.".pdf";
$command = 'ls /alice1/www/html/trd-db-files/HVTestROC/'.$file;
$line = exec($command, $output, $retval);
$nfiles = sizeof($output);
if($nfiles>0){
for($ifile=0; $ifile<$nfiles; $ifile++){
$filename = substr($output[$ifile],17);
$year = substr($filename,32,4);
$month = substr($filename,36,2);
$day = substr($filename,38,2);
$hour = substr($filename,41,2);
$min = substr($filename,43,2);
$sec = substr($filename,45,2);
$when = "$day/$month/$year $hour:$min:$sec";
PostLink($hvname,$when,$filename);
}
} else {
echo "
$hvname test file does not exist.";
}
unset($file); unset($command); unset($nfiles); unset($output);
}
?>
History
History of ROBs on Chamber