Location: PHPKode > projects > Webextreme > webextreme/userview.php
<?php
  require("functions.php");
  check_login(); 
  check("domain", $_GET['domain'], 1);
?>
<html>
<head>
<title><?php echo $lang['user_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['user_list'] . " " . $_GET['domain']; ?></td>
    </tr>
    <tr>
      <td align="center" bgcolor="white"><?php echo $lang['click_user_edit']; ?></td>
    </tr>
    <tr>
      <td bgcolor="white">
        <table border="0" cellspacing="1" cellpadding="4">
          <tr bgcolor="#C0C0C0" align="center">
            <td class="header"><?php echo $lang['username']; ?></td>
            <td class="header"><?php echo $lang['status']; ?></td>
            <td class="header"><?php echo $lang['forward']; ?></td>
            <td class="header"><?php echo $lang['copy']; ?></td>
            <td class="header"><?php echo $lang['disk_quota']; ?></td>
            <td class="header"><?php echo $lang['access']; ?></td>
          </tr>
<?php
  $result = get_userlist($_GET['domain']);
  sort($result);
  $count = true;

  for($idx = 0; $idx < count($result); ++$idx)
  {
    $emailaddress = $result[$idx];
    if(check("e-mail", $emailaddress, 0))
    {
      $username = get_username($emailaddress);
      $userinfo = get_mailuserinfo($username, $_GET['domain']);
      $userinfo = parse_mailuserinfo($userinfo);

      if($count)
      {
?>
          <tr class="menu" onmouseover="className='menuhover';" onmouseout="className='menu';" onclick="javascript:location.href='useredit.php?username=<?php echo get_username($userinfo["User"]); ?>&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='useredit.php?username=<?php echo get_username($userinfo["User"]); ?>&amp;domain=<?php echo $_GET['domain']; ?>';">
<?php
        $count = true;
      }
?>
            <td><?php echo get_username($userinfo["User"]); ?></td>
            <td><?php echo $userinfo["Status"]; ?></td>
            <td><?php echo $userinfo["Forward"]; ?></td>
            <td><?php echo $userinfo["Copy"]; ?></td>
            <td><?php echo $userinfo["DiskUsed"] . " " . $lang['kb'] . " / " . $userinfo["DiskQuota"] . " " . $lang['kb']; ?></td>
            <td><?php echo get_mailaccess($userinfo["MailboxAccess"]); ?></td>
          </tr>
<?php
    }
  }
?>
        </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="white">
        <input type="button" value="<?php echo $lang['add_email']; ?>" class="norm" onclick="location.href='useredit.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