<p class="description">
  <br />
  Si dà atto che il presente registro è composto da
  <b><?php echo htmlspecialchars($pageCount,ENT_QUOTES,'UTF-8'); ?></b>
  pagine compresa questa, e contiene:
  <br />
  <b><?php echo htmlspecialchars(count($validEvents),ENT_QUOTES,'UTF-8'); ?></b>
  Accertamenti di Infrazione
  <?php if (count($validEvents)>0) { ?>
    dall'A.D.I. N°
    <b><?php echo htmlspecialchars($firstEvent->ext_code,ENT_QUOTES,'UTF-8'); ?></b>
    all'A.D.I. N°
    <b><?php echo htmlspecialchars($lastEvent->ext_code,ENT_QUOTES,'UTF-8'); ?></b>
    <br />
  <?php } ?>
  rilevati dal sottoscritto Verbalizzante
  <?php echo htmlspecialchars($user->fullName,ENT_QUOTES,'UTF-8'); ?>
  nella località
  <?php echo htmlspecialchars($gateGroup->name,ENT_QUOTES,'UTF-8'); ?>
  <br />
  <?php if(count($validEvents)>0) { ?>
    dal giorno
    <b><?php echo htmlspecialchars(DateHelper::formatISO9075Date($firstEvent->StartTime) ,ENT_QUOTES,'UTF-8'); ?></b>
    alle ore
    <b><?php echo htmlspecialchars(DateHelper::formatISO9075Time($firstEvent->StartTime, 'medium'),ENT_QUOTES,'UTF-8'); ?></b>
    <br />
    al giorno
    <b><?php echo htmlspecialchars(DateHelper::formatISO9075Date($lastEvent->StartTime) ,ENT_QUOTES,'UTF-8'); ?></b>
    alle ore
    <b><?php echo htmlspecialchars(DateHelper::formatISO9075Time($lastEvent->StartTime,  'medium') ,ENT_QUOTES,'UTF-8'); ?></b>
  <?php } ?>
  <br />
</p>
<span class="sign">FIRMA</span>
<br />
<br />
<span class="sign">------------------------------</span>
<br />
<span class="sign-details"><?php echo htmlspecialchars($user->qualification . " " . $user->fullName,ENT_QUOTES,'UTF-8'); ?></span>
<br />
<span class="sign-details"><?php echo htmlspecialchars("mat: " . $user->matriculation_number,ENT_QUOTES,'UTF-8'); ?></span>
