Location: PHPKode > projects > Joomla SEF / SEO - extending OpenSEF > admin/view_aliases.tpl.php
<?php
if (@$row->site_id == '-1') {
  $site = _T( 'DEFAULT' );
  $use_site_url = $GLOBALS['mosConfig_live_site'];
}
if (!@$row->site_id) {
  $site = _T( 'ALL' );
  $use_site_url = $GLOBALS['mosConfig_live_site'];
}
if (@$row->site_id > 0) {
  $rows= null;
  global $database;
  $query = "SELECT * FROM #__opensef_sef_site" .
      "\nWHERE id = '$row->site_id'" ;
    $database->setQuery( $query );
    $database->loadObject($rows);
  $site = $rows->title;
  $use_site_url = "http://".$rows->host.$rows->base_url;
}
if ($headerRow): ?>
  <thead>
    <tr>
      <th width="20">#</th>
      <th width="25" class="title"><input type="checkbox" name="toggle" value=""
        onClick="checkAll(<?php echo count( $this->rows ) ?>);" /></th>
      <th width="45%" class="title" style="text-align: left !important;"><?php echo _T( 'FRIENDLY_URL' ) ?>
        <br /><?php echo _T( 'INTERNAL_URL' ) ?></th>
      <th width="5%" class="title" style="text-align: center;"><?php echo _T( 'LINKPRIO' ) ?></th>
      <th width="6%" class="title" style="text-align: center;"><?php echo _T( 'USED' ) ?></th>
      <th width="5%" class="title" style="text-align: center;"><?php echo _T( 'LOCKED' ) ?></th>
      <th width="5%" class="title" style="text-align: center;"><?php echo _T( 'PUBLISHED' ) ?></th>
      <th width="5%" class="title" style="text-align: center;"><?php echo _T( 'VALID' ) ?></th>
      <th width="10%" class="title"><?php echo _T( 'SITE' ) ?></th>
      <th width="4%" class="title" style="text-align: center;"><?php echo _T( 'DIRECTION' ) ?></th>
      <th width="4%" class="title" style="text-align: right;"><?php echo _T( 'HITS' ) ?></th>
    </tr>
  </thead>
<?php else: ?>
  <tr class="<?php echo 'row' . ($rowNo % 2 == 0 ? 0 : 1) ?>">
    <td><?php echo $rowNo + 1 + $this->pageNav->limitstart ?></td>
    <td align="left"><?php echo mosHTML::idBox( $rowNo, $row->id ) ?></td>
    <td align="left">
      <a href="#edit" onClick="return listItemTask('cb<?php echo $rowNo ?>', 'edit')"><?php
      echo ($row->external ?
        (!empty( $this->site_id ) ? $row->external : $row->external) : //$row->getFullAlias()) :
        '(' . _T( 'UNDEFINED' ) . ')');
      ?></a><br />
      <?php $row->internal = str_replace("&amp;","&", $row->internal); ?>
      <a class="managelink" href="<?php echo $use_site_url.'/'.$row->internal ;?>" target="_blank">
      <?php echo substr( $row->internal, 0, 65 ) . (strlen( $row->internal ) >65 ? '...' : ''); ?>
      </a>
      <?php
        if ($row->notes) {
          echo '<br /><b>NOTES: </b>'.$row->notes.'</br /><br />';
        }
      ?>
    </td>
    <td align="center"><b><?php echo $row->link_prio  ?></b></td>
    <td align="center">
      <?php $this->plugin( 'Joomla', 'publishToggle', array( $rowNo, 'use_internal', $row->use_internal ) ); ?>
    </td>
    <td align="center">
      <?php $this->plugin( 'Joomla', 'publishToggle', array( $rowNo, 'locked', $row->locked ) ); ?>
    </td>
    <td align="center">
      <?php $this->plugin( 'Joomla', 'publishToggle', array( $rowNo, 'published', $row->published ) ); ?>
    </td>
    <td align="center">
      <?php $this->plugin( 'Joomla', 'publishToggle', array( $rowNo, 'valid', $row->valid ) ); ?>
    </td>
    <td align="left"><?php echo $site ?></td>
    <td align="center"><?php echo ( $row->direction == '' ? '&lt;=&gt;' :
      ($row->direction == 'i' ? '=&gt;' : '&lt;=') ) ?></td>
    <td align="right"><?php echo $row->hits  ?></td>
  </tr>
<?php endif; ?>
Return current item: Joomla SEF / SEO - extending OpenSEF