<?php if($seat->getSold()):?>
  <td class="occupy">
  <a title="<?php echo $seat->getGuest()?> <?php if($seat->getPartnerSeatId()) echo 'Tow:'.$seat->getPartnerSeatId();?>" href="<?php echo url_for('seller/show?id='.$seat->getId()) ?>">
<?php else: ?>
  <td class="free">
  <a title="Sprzedaj" href="<?php echo url_for('seller/sell?id='.$seat->getId()) ?>">
<?php endif;?>
  <?php echo $seat->getId() ?></a>
</td>