<h4>
  <?php echo htmlspecialchars(t('Used by'),ENT_QUOTES,'UTF-8'); ?>
</h4>
<?php echo htmlspecialchars($timeSchedule->getUsingObjectsTypes(),ENT_QUOTES,'UTF-8'); ?>
<h4>
  <?php echo htmlspecialchars(t("Time Slots"),ENT_QUOTES,'UTF-8'); ?>
</h4>
<table class="table table-condensed span6">
  <tbody>
    <?php foreach($timeSchedule->timeSlots as $timeSlot) { ?>
      <tr>
        <td>
          <?php if($timeSlot->WeekDay != TimeSlot::TS_SINGLE_DAY  || empty($timeSlot->YearDay))  { ?>
            <?php echo htmlspecialchars($timeSlot->WeekDay,ENT_QUOTES,'UTF-8'); ?>
          <?php } else   { ?>
            <?php echo htmlspecialchars($timeSlot->YearDay,ENT_QUOTES,'UTF-8'); ?>
          <?php } ?>
        </td>
        <td>
          <?php echo htmlspecialchars(substr($timeSlot->TimeStart,0,strlen($timeSlot->TimeStart)-3),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars(substr($timeSlot->TimeStop,0,strlen($timeSlot->TimeStop)-3),ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
    <?php } ?>
  </tbody>
</table>
