<div id='content'>

  <h2>Description</h2>
  <p><?php echo $experiment->getDescription(); ?></p>

  <h2>Location</h2>
  <p><?php echo $experiment->getLocation(); ?></p>

  <h2>Requirements</h2>
  <ul><?php $experiment->printRequirements(); ?></ul>

  <h2>Contact details</h2>
  <p>Experimenter: <?php echo $user->getName(); ?><br />
  Email: <a href='mailto:<?php echo $user->getEmail(); ?>'><?php echo $user->getEmail(); ?></a><br />
  Phone: <?php echo $user->getPhone(); ?></p>

  <form name='signup' action='index.php' method='POST'>
    <input type='hidden' name='page' value='signup' />
    <input type='hidden' name='own' value='<?php echo $experiment->owner; ?>' />
    <input type='hidden' name='exp' value='<?php echo $experiment->id; ?>' />
    <p><input type='submit' id='button' name='signup' value='Sign up for this experiment' /></p>
  </form>

</div>

<div id='content'>

  <h2>Description</h2>
  <p><?php echo $experiment->getDescription(); ?></p>

  <h2>Location</h2>
  <p><?php echo $experiment->getLocation(); ?></p>

  <h2>Requirements</h2>
  <ul><?php $experiment->printRequirements(); ?></ul>

  <h2>Contact details</h2>
  <p>Experimenter: <?php echo $user->getName(); ?><br />
  Email: <a href='mailto:<?php echo $user->getEmail(); ?>'><?php echo $user->getEmail(); ?></a><br />
  Phone: <?php echo $user->getPhone(); ?></p>

<?php
if ($experiment->getStatus() == 'open') {
  echo "
  <form name='signup' action='index.php' method='POST'>
    <input type='hidden' name='page' value='signup' />
    <input type='hidden' name='own' value='{$experiment->owner}' />
    <p><input type='submit' id='button' name='signup' value='Sign up for this experiment' /></p>
  </form>

  ";
}
else {
  echo "<div id='status-closed'>CLOSED</div>";
}
?>
</div>

Hide Sign Up button when experiment is closed
Hide Sign Up button when experiment is closed

If the status of an experiment has been set to closed, closed a red
closed symbol rather than the sign up button.
