#!/usr/bin/perl

$IMG_URL="http://particle.phys.uvic.ca/~web-atlas/atlas/feedthroughs/status/image/BrushedMetal.gif";
$BAS_URL="http://particle.phys.uvic.ca/~web-atlas/atlas/feedthroughs/status";

$PAGE='<html>
<body style="background-image: url(' . $IMG_URL . ')">
  <font face="Zurich BT" font size=+1 color=darkblue>

    <br> <center> <a href="' . $BAS_URL . '/status.html"> 
      Return to EndCap Signal FeedThrough Production Status </a> </center> <br>

    <br> The Precision Resistance is measured for each channel, from the pincarrier at
    the ambient flange to the micro-D connector at the end of the pigtail.

    The format of the resistance data summary is one line for each of the two vacuum cable
    striplines of a pincarrier slot: <br> <br>
    <center>
    <table border=0 cellspacing=0 cellpadding=0 cols=7 align=left width=800
      style="background-image: url(BrushedMetal.gif)">
      <tr align=center>
        <th> serial number ,  </th>
        <th> slot number ,    </th>
        <th> data directory , </th>
        <th> min R 1 ,        </th>
        <th> max R 1 ,        </th>
        <th> min R 2 ,        </th>
        <th> max R 2          </th>
      </tr>
    </table>
    </center>

    <br> <br> The various entries are defined as follows: <br> <br>

    <center>
    <table border=1 cellspacing=0 cellpadding=3 cols=2
      style="background-image: url(BrushedMetal.gif)">
      <tr align=left>
        <th width=100> serial number </th> 
        <td> the serial number of the feedthrough </td>
      </tr>
      <tr align=left>
        <th width=100> slot number </th> 
        <td> the pincarrier slot number 1 - 15 a/b (each of the 30 slots has 64 channels) </td>
      </tr>
      <tr align=left>
        <th width=100> data directory </th> 
        <td> the basename of the directory where the data is stored on computer disk </td>
      </tr>
      <tr align=left>
        <th width=100> min R 1 </th>
        <td> the minimum resistance measured for the 32 channels of stripline 1 of the slot </td>
      </tr>
      <tr align=left>
        <th width=100> max R 1 </th>
        <td> the maximum resistance measured for the 32 channels of stripline 1 of the slot </td>
      </tr>
      <tr align=left>
        <th width=100> min R 2 </th>
        <td> the minimum resistance measured for the 32 channels of stripline 2 of the slot </td>
      </tr>
      <tr align=left>
        <th width=100> max R 2 </th>
        <td> the maximum resistance measured for the 32 channels of stripline 2 of the slot </td>
      </tr>
    </table>
    </center>

    <br><br>
    The raw data can be viewed as png images by following the "View Raw Data" link.
    <br><br>

</body>
</html>';

print "Content-type: text/html\n\n";
print $PAGE;

exit(0);
