Update wiki links to the new short URL
[aur.git] / web / template / account_search_results.php
blob0f7eb7a4fdac3bcea92307c129d017506e573632
1 <?php
2 if (!$result):
3 print __("No results matched your search criteria.");
4 else:
5 if ($result):
6 ?>
7 <table class="results">
8 <thead>
9 <tr>
10 <th><?= __("Username") ?></th>
11 <th><?= __("Type") ?></th>
12 <th><?= __("Status") ?></th>
13 <th><?= __("Real Name") ?></th>
14 <th><?= __("IRC Nick") ?></th>
15 <th><?= __("PGP Key Fingerprint") ?></th>
16 <th><?= __("Edit Account") ?></th>
17 </tr>
18 </thead>
19 <tbody>
20 <?php foreach ($userinfo as $idx => $row): ?>
21 <tr class ="<?= ($idx % 2 == 0) ? 'odd' : 'even' ?>">
22 <td><a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;K=<?= $row["Username"] ?>"><?= $row["Username"] ?></a></td>
23 <td><?= $row["AccountType"] ?></td>
24 <td>
25 <?php
26 if ($row["Suspended"]):
27 print __("Suspended");
28 else:
29 print __("Active");
30 endif;
32 </td>
33 <td><?php $row["RealName"] ? print htmlspecialchars($row["RealName"],ENT_QUOTES) : print "&nbsp;" ?></td>
34 <td><?php $row["IRCNick"] ? print htmlspecialchars($row["IRCNick"],ENT_QUOTES) : print "&nbsp;" ?></td>
35 <td><?php $row["PGPKey"] ? print html_format_pgp_fingerprint($row["PGPKey"]) : print "&nbsp;" ?></td>
36 <td>
37 <?php if (can_edit_account($row)): ?>
38 <a href="<?= get_user_uri($row["Username"]) . "edit/" ?>"><?= __("Edit") ?></a>
39 <?php else: ?>
40 &nbsp;
41 <?php endif; ?>
42 </td>
43 </tr>
44 <?php endforeach; ?>
45 </tbody>
46 </table>
48 <table class="results">
49 <tr>
50 <td align="left">
51 <form action="<?= get_uri('/accounts/'); ?>" method="post">
52 <fieldset>
53 <input type="hidden" name="Action" value="SearchAccounts" />
54 <input type="hidden" name="O" value="<?= ($OFFSET-$HITS_PER_PAGE) ?>" />
55 <?php
56 reset($search_vars);
57 foreach ($search_vars as $k => $ind):
59 <input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
60 <?php endforeach; ?>
61 <input type="submit" class="button" value="&lt;-- <?= __("Less") ?>" />
62 </fieldset>
63 </form>
64 </td>
65 <td align="right">
66 <form action="<?= get_uri('/accounts/'); ?>" method="post">
67 <fieldset>
68 <input type="hidden" name="Action" value="SearchAccounts" />
69 <input type="hidden" name="O" value="<?= ($OFFSET+$HITS_PER_PAGE) ?>" />
70 <?php
71 reset($search_vars);
72 foreach ($search_vars as $k => $ind):
74 <input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
75 <?php endforeach; ?>
76 <input type="submit" class="button" value="<?= __("More") ?> --&gt;" />
77 </fieldset>
78 </form>
79 </td>
80 </tr>
81 </table>
82 <?php else: ?>
83 <p style="text-align:center;">
84 <?= __("No more results to display."); ?>
85 </p>
86 <?php endif; ?>
87 <?php endif; ?>