<div id="export-registratin-index-page">
  <div class="page-header">
    <h2>
      <li class="icon-sign-out"></li>
      <?php echo htmlspecialchars(Yii::t("app", "Export History"),ENT_QUOTES,'UTF-8'); ?>
    </h2>
  </div>
  <div class="registered-server-list">
    <?php foreach($eventServers as $eventServer) { ?>
      <div class="server">
        <h3>
          <a <?php echo MtHaml\Runtime::renderAttributes(array(array('href', (Yii::app()->createUrl('ExportRegistration/serverDetails', array('idServer' => $eventServer->id))))), 'html5', 'UTF-8'); ?>>
            <?php echo htmlspecialchars($eventServer->name,ENT_QUOTES,'UTF-8'); ?>
          </a>
        </h3>
        <table class="table table-condensed span12">
          <thead>
            <tr>
              <?php foreach($months as $month) { ?>
                <th><?php echo htmlspecialchars($month['month'].'/'.$month['year'],ENT_QUOTES,'UTF-8'); ?></th>
              <?php } ?>
            </tr>
          </thead>
          <tbody>
            <tr></tr>
            <?php foreach($months as $month) { ?>
              <?php $mn = $month['month'];; ?>
              <?php $yr = $month['year'];  ; ?>
              <?php $exp = isEmpty($expCounters["$eventServer->id"]["$yr"]["$mn"]['exported']) ? 0: $expCounters["$eventServer->id"]["$yr"]["$mn"]['exported']; ; ?>
              <?php $del = isEmpty($expCounters["$eventServer->id"]["$yr"]["$mn"]['deleted']) ? 0: $expCounters["$eventServer->id"]["$yr"]["$mn"]['deleted'];; ?>
              <td><?php echo htmlspecialchars($exp.'/'.$del,ENT_QUOTES,'UTF-8'); ?></td>
            <?php } ?>
          </tbody>
        </table>
      </div>
    <?php } ?>
  </div>
</div>
