4 <?php
if ($type == __("Current Votes")): ?
>
5 <ul
class="admin-actions">
6 <li
><a href
="<?= get_uri('/addvote/'); ?>"><?
= __("Add Proposal") ?
></a
></li
>
10 <?php
if (empty($result)): ?
>
11 <p
><?
= __("No results found.") ?
></p
>
13 <table
class="results">
16 <th
><?
= __("Proposal") ?
></th
>
17 <th
><a href
="?off=<?= $off ?>&by=<?= $by_next ?>"><?
= __("Start") ?
></a
></th
>
18 <th
><?
= __("End") ?
></th
>
19 <th
><?
= __("User") ?
></th
>
20 <?php
if ($type != __("Current Votes")): ?
>
21 <th
><?
= __("Yes") ?
></th
>
22 <th
><?
= __("No") ?
></th
>
24 <th
><?
= __('Voted') ?
></th
>
29 <?php
foreach ($result as $indx => $row): ?
>
37 <tr
class="<?= $c ?>">
38 <td
><?php
$row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?
>
39 <a href
="<?= get_uri('/tu/'); ?>?id=<?= $row['ID'] ?>"><?
= $row["Agenda"] ?
></a
>
41 <td
><?
= date("Y-m-d", $row["Submitted"]) ?
></td
>
42 <td
><?
= date("Y-m-d", $row["End"]) ?
></td
>
44 <?php
if (!empty($row['User'])): ?
>
45 <a href
="<?= get_uri('/packages/'); ?>?K=<?= $row['User'] ?>&SeB=m"><?
= $row['User'] ?
></a
>
51 <?php
if ($type != __("Current Votes")): ?
>
52 <td
><?
= $row['Yes'] ?
></td
>
53 <td
><?
= $row['No'] ?
></td
>
56 <?php
if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?
>
57 <span style
="color: green; font-weight: bold"><?
= __("Yes") ?
></span
>
59 <span style
="color: red; font-weight: bold"><?
= __("No") ?
></span
>
67 <div
class="pkglist-stats">
68 <p
class="pkglist-nav">
70 $by = htmlentities($by, ENT_QUOTES
); ?
>
71 <?php
if ($nextresult > 0 && $off != 0):
72 $back = (($off - $limit) <= 0) ?
0 : $off - $limit; ?
>
73 <a
class="page" href
='<?= get_uri('/tu
/'); ?>?off=<?= $back ?>&by=<?= $by ?>'>&lsaquo
; <?
= __("Back") ?
></a
>
75 <?php
if (($off +
$limit) < $nextresult):
76 $forw = $off +
$limit; ?
>
77 <a
class="page" href
="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&by=<?= $by ?>"><?
= __("Next") ?
> &rsaquo
;</a
>