aurweb/web/template/stats/user_table.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

21 lines
500 B
PHP

<?php
$username = username_from_sid($_COOKIE["AURSID"]);
?>
<h3><?= __("My Statistics"); ?></h3>
<table>
<tr>
<td>
<a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;L=2&amp;K=<?= $username; ?>">
<?= __("Packages in unsupported"); ?></a>
</td>
<td><?= $maintainer_unsupported_count; ?></td>
</tr>
<tr>
<td>
<a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;outdated=on&amp;K=<?= $username; ?>"><?= __("Out of Date"); ?></a>
</td>
<td><?= $flagged_outdated ?></td>
</tr>
</table>