aurweb/web/template/account_details.php
Lukas Fleischer 6102759b7c Use echo shortcut syntax
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to
reduce noise in templates.

Note that as of PHP 5.4.0, "<?=" is always available and no longer
requires "short_open_tag" to be set.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-09-24 12:23:04 +02:00

57 lines
1.5 KiB
PHP

<table>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td align="left"><?= __("Username") . ":" ?></td>
<td align="left"><?= $row["Username"] ?></td>
</tr>
<tr>
<td align="left"><?= __("Account Type") . ":" ?></td>
<td align="left">
<?php
if ($row["AccountType"] == "User") {
print __("User");
} elseif ($row["AccountType"] == "Trusted User") {
print __("Trusted User");
} elseif ($row["AccountType"] == "Developer") {
print __("Developer");
}
?>
</td>
</tr>
<tr>
<td align="left"><?= __("Email Address") . ":" ?></td>
<td align="left"><a href="mailto:<?= htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?= htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
</tr>
<tr>
<td align="left"><?= __("Real Name") . ":" ?></td>
<td align="left"><?= htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
</tr>
<tr>
<td align="left"><?= __("IRC Nick") . ":" ?></td>
<td align="left"><?= htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
</tr>
<tr>
<td align="left"><?= __("PGP Key Fingerprint") . ":" ?></td>
<td align="left"><?= html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
</tr>
<tr>
<td align="left"><?= __("Last Voted") . ":" ?></td>
<td align="left">
<?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
</td>
</tr>
<tr>
<td colspan="2"><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a></td>
</tr>
</table>