<?php $gateFunctions = array_translate(paramdeep('gateFunctions')); ?>
<table class="table span5">
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "ID"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->ID,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Description"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Descrizione,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "S/N"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Gate,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "IP Address"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->IP,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Model"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars(t($gate->device_model)      ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Device"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars(t($gate->GateType),ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Function"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gateFunctions[$gate->function],ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Group"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars(($gate->gateGroup)? $gate->gateGroup->name : "",ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Short name"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->short_name,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Code"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Code,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Code 2"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Matricola,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Latitude"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->latitude   ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Longitude"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->longitude         ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Altitiude"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->altitude                   ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Validation Max Delay (Days)"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->ValidationMaxDelay  ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Type"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Type       ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Homologation"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->Homologation      ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Order Index"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->orderIndex,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
  <tr>
    <td>
      <?php echo htmlspecialchars(Yii::t("app", "Live url"),ENT_QUOTES,'UTF-8'); ?>
    </td>
    <td>
      <?php echo htmlspecialchars($gate->live_url               ,ENT_QUOTES,'UTF-8'); ?>
    </td>
  </tr>
</table>
