Location: PHPKode > projects > Webextreme > webextreme/aliasview.php
<?php
  require("functions.php");
  if(!check_login())
  {
    header("Location: index.php");
  } 
  check("domain", $_GET['domain'], 1)
?>
<html>
<head>
<title><?php echo $lang['alias_view']; ?></title>
<link rel="stylesheet"                  href="style.css">
<meta http-equiv="pragma"               content="no-cache">
<meta http-equiv="content-type"         content="text/html; charset=iso-8859-1">
</head>

<body>

<div align="center">
  <table border="0" bgcolor="black" cellpadding="2" cellspacing="1">
    <tr>
      <td class="highlightwhite" align="center"><?php echo $lang['alias_list'] . " " . $_GET['domain']; ?></td>
    </tr>
    <tr>
      <td align="center" bgcolor="white"><?php echo $lang['click_alias_edit']; ?></td>
    </tr>
    <tr>
      <td bgcolor="white">
        <table border="0" cellspacing="1" cellpadding="4" width="100%">
          <tr bgcolor="#C0C0C0" align="center">
            <td class="header"><?php echo $lang['alias']; ?></td>
            <td class="header"><?php echo $lang['forward']; ?></td>
          </tr>
<?php
  $result = get_aliaslist($_GET['domain']);
  sort($result);
  $count = true;

  for($idx = 0; $idx < count($result); ++$idx)
  {
    $alias = $result[$idx];
    if(check("e-mail", $alias, 0))
    {
      $username = get_username($alias);
      $aliasinfo= get_mailaliasinfo($username, $_GET['domain']);
      $aliasinfo = parse_mailaliasinfo($aliasinfo);
      if($count)
      {
?>
          <tr class="menu" onmouseover="className='menuhover';" onmouseout="className='menu';" onclick="javascript:location.href='aliasedit.php?username=<?php echo get_username($aliasinfo["Name"]); ?>&amp;domain=<?php echo $_GET['domain']; ?>';">
<?php
        $count = false;
      }
      else
      {
?>
          <tr class="menu" onmouseover="className='menuhover';" onmouseout="className='menu';" bgcolor="#E0E0E0" onclick="javascript:location.href='aliasedit.php?username=<?php echo get_username($aliasinfo["Name"]); ?>&amp;domain=<?php echo $_GET['domain']; ?>';">
<?php
        $count = true; 
      }
?>
            <td><?php echo get_username($aliasinfo["Name"]); ?></td>
            <td><?php echo $aliasinfo["Value"]; ?></td>
          </tr>
<?php
    }
  }
?>
        </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="white">
        <input type="button" value="<?php echo $lang['add_alias']; ?>" class="norm" onclick="location.href='aliasedit.php?domain=<?php echo $_GET['domain'] ?>';">
        <input type="button" value="<?php echo $lang['return']; ?>" class="norm" onclick="location.href='domainedit.php?domain=<?php echo $_GET['domain'] ?>';">
      </td>
    </tr>
  </table>
</div>

<?php display_info(); ?>

</body>
</html>
Return current item: Webextreme