Next / Previous / Contents / TCC Help System / NM Tech homepage

3.1. XHTML for the start page

The start page we generate will not be a standalone page. It will be an XHTML fragment that is included via a server-side include from a page that is part of the regular TCC PyStyler structure at http://www.nmt.edu/tcc.

Hence, what we generate will be appropriate child content for the body element. We'll use a div to package up everything generated here.

Here is the actual XHTML framework. Following a heading, it has three main sections: the table of login servers; the bullet list of open labs; and the table of classrooms.

  <div>
    <h1>TCC server and workstation inventory</h1>
    <h2>Linux servers for remote login</h2>
    <!--Table of login servers-->
    <table rules='all' border='8' cellpadding='10' cellspacing='10'>
      <col valign='top' align='left'/>   <!--name-->
      <col valign='top' align='right'/>  <!--nCpus-->
      <col valign='top' align='right'/>  <!--speed-->
      <col valign='top' align='left'/>   <!--arch-->
      <col valign='top' align='right'/>  <!--memory-->
      <thead>
        <tr>
          <th>Name</th>
          <th># CPUs</th>
          <th>Speed (MHz)</th>
          <th>Architecture</th>
          <th>Memory (MB)</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td align='left'><tt>name</tt></td>
          <td align='right'>nCpus</td>
          <td align='right'>speed</td>
          <td align='left'>arch</td>
          <td align='right'>memory</td>
        </tr>
        ...additional rows for each server...
      </tbody>
    </table>
    <hr/>
    <!--Bullet list of open labs-->
    <h2>Open labs</h2>
    <p>
      Click on the room name for a list of the workstations in
      that room.
    </p>
    <ul>
      <li><tt><a href='prefix.html'>room-full-name</tt></a></li>
      ...additional bullets for each open lab...
    </ul>
    <hr/>
    <!--Table of classrooms-->
    <h2>Classrooms</h2>
    <p>
      Click on the room name for a list of the workstations in
      that room.
    </p>
    <table rules='all' border='8' cellpadding='5' cellspacing='5'>
      <col align='left'/>   <!--Room-->
      <col align='right'/>  <!--Workstations-->
      <col align='right'/>  <!--Instructor?-->
      <thead>
        <tr>
          <th>Room</th>
          <th>Workstations</th>
          <th>Instructor station</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td align='left'><tt><a href='room-prefix'>
          room-full-name</tt></a></td>
          <td align='right'>nWorkstations</td>
          <td align='right'>nInstructors</td>
        </tr>
        ...additional rows for each classroom...
      </tbody>
    </table>
  </div>