Erase login IP addresses after seven days
[aur.git] / web / template / account_search_results.php
blob43f2d1d6094c0c1ab848f2e07064be9ffa2382bb
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 <?php
20 $i = 0;
21 while (list($indx, $row) = each($userinfo)):
22 if ($i % 2):
23 $c = "even";
24 else:
25 $c = "odd";
26 endif;
28 <tbody>
29 <tr class ="<?= $c ?>">
30 <td><a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;K=<?= $row["Username"] ?>"><?= $row["Username"] ?></a></td>
31 <td><?= $row["AccountType"] ?></td>
32 <td>
33 <?php
34 if ($row["Suspended"]):
35 print __("Suspended");
36 else:
37 print __("Active");
38 endif;
40 </td>
41 <td><?php $row["RealName"] ? print htmlspecialchars($row["RealName"],ENT_QUOTES) : print "&nbsp;" ?></td>
42 <td><?php $row["IRCNick"] ? print htmlspecialchars($row["IRCNick"],ENT_QUOTES) : print "&nbsp;" ?></td>
43 <td><?php $row["PGPKey"] ? print html_format_pgp_fingerprint($row["PGPKey"]) : print "&nbsp;" ?></td>
44 <td>
45 <?php if (can_edit_account($row)): ?>
46 <a href="<?= get_user_uri($row["Username"]) . "edit/" ?>"><?= __("Edit") ?></a>
47 <?php else: ?>
48 &nbsp;
49 <?php endif; ?>
50 </td>
51 </tr>
52 <?php
53 $i++;
54 endwhile;
56 </table>
58 <table class="results">
59 <tr>
60 <td align="left">
61 <form action="<?= get_uri('/accounts/'); ?>" method="post">
62 <fieldset>
63 <input type="hidden" name="Action" value="SearchAccounts" />
64 <input type="hidden" name="O" value="<?= ($OFFSET-$HITS_PER_PAGE) ?>" />
65 <?php
66 reset($search_vars);
67 while (list($k, $ind) = each($search_vars)):
69 <input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
70 <?php endwhile; ?>
71 <input type="submit" class="button" value="&lt;-- <?= __("Less") ?>" />
72 </fieldset>
73 </form>
74 </td>
75 <td align="right">
76 <form action="<?= get_uri('/accounts/'); ?>" method="post">
77 <fieldset>
78 <input type="hidden" name="Action" value="SearchAccounts" />
79 <input type="hidden" name="O" value="<?= ($OFFSET+$HITS_PER_PAGE) ?>" />
80 <?php
81 reset($search_vars);
82 while (list($k, $ind) = each($search_vars)):
84 <input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
85 <?php endwhile; ?>
86 <input type="submit" class="button" value="<?= __("More") ?> --&gt;" />
87 </fieldset>
88 </form>
89 </td>
90 </tr>
91 </table>
92 <?php else: ?>
93 <p style="text-align:center;">
94 <?= __("No more results to display."); ?>
95 </p>
96 <?php endif; ?>
97 <?php endif; ?>