<?php if (isset($dataProvider) && count($dataProvider->data)>0) { ?>
  <?php $alerts = $dataProvider->data; ?>
  <div class="tableContainer pagination-data-container" data-behavior="NuclearAlert">
    <table class="table table-condensed span12">
      <thead>
        <tr></tr>
        <tr>
          <th></th>
          <th><?php echo htmlspecialchars(t('Description'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Gate'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Date'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Time'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Km/h'),ENT_QUOTES,'UTF-8'); ?></th>
          <?php if(!isset(Yii::app()->params['eventsToShow']) || Yii::app()->params['eventsToShow']!=="alarm") { ?>
            <th><?php echo htmlspecialchars(t('Kemler'),ENT_QUOTES,'UTF-8'); ?></th>
          <?php } ?>
          <th><?php echo htmlspecialchars(t('Class'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Colors'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('License plate'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Manage'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Actions'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t(''),ENT_QUOTES,'UTF-8'); ?></th>
        </tr>
      </thead>
      <tbody>
        <?php foreach($alerts as $alert) { ?>
          <?php $alert = new AlertPresenter($alert); ?>
          <?php $this->renderPartial('_alertRow', array('alert' => $alert)); ?>
        <?php } ?>
      </tbody>
    </table>
  </div>
  <?php if (isset($dataProvider->pagination)) { ?>
    <div class="pagination pagination-links-container">
      <?php $this->widget('bootstrap.widgets.TbPager', array('pages' => $dataProvider->pagination)); ?>
    </div>
  <?php } ?>
<?php } else { ?>
  <h4><?php echo htmlspecialchars(Yii::t("app", "No results"),ENT_QUOTES,'UTF-8'); ?></h4>
<?php } ?>
