summaryrefslogtreecommitdiffstats
path: root/web/template/tu_list.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-21 08:57:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-24 12:23:04 +0200
commit6102759b7cb9fd23f4e7fa5f12137334ff30a410 (patch)
treefba81fdedea0dd6ca3f1e1bdd260fa55ebc36ee9 /web/template/tu_list.php
parent964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff)
downloadaurweb-6102759b7cb9fd23f4e7fa5f12137334ff30a410.tar.xz
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>
Diffstat (limited to 'web/template/tu_list.php')
-rw-r--r--web/template/tu_list.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/web/template/tu_list.php b/web/template/tu_list.php
index eed7f74..566cb17 100644
--- a/web/template/tu_list.php
+++ b/web/template/tu_list.php
@@ -1,21 +1,21 @@
<div class="box">
- <h2><?php print $type ?></h2>
+ <h2><?= $type ?></h2>
<table class="results">
<thead>
<tr>
- <th><?php print __("Proposal") ?></th>
- <th><a href="?off=<?php print $off ?>&amp;by=<?php print $by_next ?>"><?php print __("Start") ?></a></th>
- <th><?php print __("End") ?></th>
- <th><?php print __("User") ?></th>
- <th><?php print __("Yes") ?></th>
- <th><?php print __("No") ?></th>
- <th><?php print __('Voted') ?></th>
+ <th><?= __("Proposal") ?></th>
+ <th><a href="?off=<?= $off ?>&amp;by=<?= $by_next ?>"><?= __("Start") ?></a></th>
+ <th><?= __("End") ?></th>
+ <th><?= __("User") ?></th>
+ <th><?= __("Yes") ?></th>
+ <th><?= __("No") ?></th>
+ <th><?= __('Voted') ?></th>
</tr>
</thead>
<tbody>
<?php if (empty($result)): ?>
- <tr><td align="center" colspan="0"><?php print __("No results found.") ?></td></tr>
+ <tr><td align="center" colspan="0"><?= __("No results found.") ?></td></tr>
<?php else: while (list($indx, $row) = each($result)):
if ($indx % 2):
$c = "even";
@@ -23,27 +23,27 @@
$c = "odd";
endif;
?>
- <tr class="<?php print $c ?>">
+ <tr class="<?= $c ?>">
<td><?php $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?>
- <a href="<?php echo get_uri('/tu/'); ?>?id=<?php print $row['ID'] ?>"><?php print $row["Agenda"] ?></a></span></span>
+ <a href="<?= get_uri('/tu/'); ?>?id=<?= $row['ID'] ?>"><?= $row["Agenda"] ?></a></span></span>
</td>
- <td><?php print gmdate("Y-m-d", $row["Submitted"]) ?></td>
- <td><?php print gmdate("Y-m-d", $row["End"]) ?></td>
+ <td><?= gmdate("Y-m-d", $row["Submitted"]) ?></td>
+ <td><?= gmdate("Y-m-d", $row["End"]) ?></td>
<td>
<?php if (!empty($row['User'])): ?>
- <a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo $row['User'] ?>&amp;SeB=m"><?php echo $row['User'] ?></a>
+ <a href="<?= get_uri('/packages/'); ?>?K=<?= $row['User'] ?>&amp;SeB=m"><?= $row['User'] ?></a>
<?php else:
print "N/A";
endif;
?>
</td>
- <td><?php print $row['Yes'] ?></td>
- <td><?php print $row['No'] ?></td>
+ <td><?= $row['Yes'] ?></td>
+ <td><?= $row['No'] ?></td>
<td>
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
- <span style="color: green; font-weight: bold"><?php print __("Yes") ?></span>
+ <span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
<?php else: ?>
- <span style="color: red; font-weight: bold"><?php print __("No") ?></span>
+ <span style="color: red; font-weight: bold"><?= __("No") ?></span>
<?php endif; ?>
</td>
</tr>