<events-to-export>
  <?php if (count($events)>0) { ?>
    <div id="export-event-table-result" class="tableContainer" data-behavior="nuclearExportEventImages">
      <table class="table table-condensed">
        <thead>
          <tr>
            <th>
              <img width="16px" />
              <?php echo htmlspecialchars(t('License plate'),ENT_QUOTES,'UTF-8'); ?>
            </th>
            <th>
              <?php echo htmlspecialchars(t('Read plate'),ENT_QUOTES,'UTF-8'); ?>
            </th>
            <th>
              <?php echo htmlspecialchars(t('Plate layout'),ENT_QUOTES,'UTF-8'); ?>
            </th>
            <th><?php echo htmlspecialchars(t('Gate'),ENT_QUOTES,'UTF-8'); ?></th>
            <th><?php echo htmlspecialchars(t('Date/Time'),ENT_QUOTES,'UTF-8'); ?></th>
            <th><?php echo htmlspecialchars(t('Km/h'),ENT_QUOTES,'UTF-8'); ?></th>
            <th><?php echo htmlspecialchars(t('Class'),ENT_QUOTES,'UTF-8'); ?></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <?php foreach($events as $event) { ?>
            <?php $eventPresenter = new EventPresenter($event);; ?>
            <?php $this->renderPartial('performances/_eventRow', array('event' => $eventPresenter, 'exportTime' => $exportTime)); ?>
          <?php } ?>
        </tbody>
      </table>
    </div>
  <?php } else { ?>
    <p><?php echo htmlspecialchars(t('No events found'),ENT_QUOTES,'UTF-8'); ?></p>
  <?php } ?>
</events-to-export>
