mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
tu: Bring Trusted User interface in line with the rest of the site.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
f6387253b4
commit
cdd2e5dbd4
3 changed files with 9 additions and 30 deletions
|
@ -129,10 +129,6 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
include("tu_list.php");
|
include("tu_list.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<center>
|
|
||||||
<a href='addvote.php'><?php print __("Add") ?></a>
|
|
||||||
</center><br />
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$q = "SELECT * FROM TU_VoteInfo ORDER BY Submitted " . $order . $lim;
|
$q = "SELECT * FROM TU_VoteInfo ORDER BY Submitted " . $order . $lim;
|
||||||
$result = db_query($q, $dbh);
|
$result = db_query($q, $dbh);
|
||||||
|
@ -143,22 +139,18 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
$qnext = "SELECT ID FROM TU_VoteInfo";
|
$qnext = "SELECT ID FROM TU_VoteInfo";
|
||||||
$nextresult = db_query($qnext, $dbh);
|
$nextresult = db_query($qnext, $dbh);
|
||||||
?>
|
?>
|
||||||
<table style='width: 90%'>
|
<div class="pgbox">
|
||||||
|
<p><a href='addvote.php'><?php print __("Add Proposal") ?></a></p>
|
||||||
|
|
||||||
<?php if (mysql_num_rows($result)) { $by = htmlentities($by, ENT_QUOTES); ?>
|
<?php if (mysql_num_rows($result)) { $by = htmlentities($by, ENT_QUOTES); ?>
|
||||||
<tr>
|
|
||||||
<td align='left'>
|
|
||||||
<?php if ($off != 0) { $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
<?php if ($off != 0) { $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
||||||
<a href='tu.php?off=<?php print $back ?>&by=<?php print $by ?>'><?php print __("Back") ?></a>
|
<a href='tu.php?off=<?php print $back ?>&by=<?php print $by ?>'><?php print __("Back") ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
|
||||||
<td align='right'>
|
|
||||||
<?php if (($off + $limit) < mysql_num_rows($nextresult)) { $forw = $off + $limit; ?>
|
<?php if (($off + $limit) < mysql_num_rows($nextresult)) { $forw = $off + $limit; ?>
|
||||||
<a href='tu.php?off=<?php print $forw ?>&by=<?php print $by ?>'><?php print __("Next") ?></a>
|
<a href='tu.php?off=<?php print $forw ?>&by=<?php print $by ?>'><?php print __("Next") ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</table>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,11 +24,7 @@ N/A
|
||||||
<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?>
|
<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table cellspacing='3' class='boxSoft' style='width: 50%'>
|
<table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class='boxSoft'>
|
|
||||||
<table width='100%' cellspacing='0' cellpadding='2'>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th>
|
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th>
|
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th>
|
||||||
|
@ -50,7 +46,6 @@ N/A
|
||||||
</span></span></td>
|
</span></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</table>
|
|
||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
<center>
|
<div class="pgbox">
|
||||||
<table cellspacing='3' class='boxSoft'>
|
<div class="pgboxtitle" align="right">
|
||||||
<tr>
|
|
||||||
<td class='boxSoftTitle' align='right'>
|
|
||||||
<span class='f3'><?php print $type ?></span>
|
<span class='f3'><?php print $type ?></span>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class='boxSoft'>
|
|
||||||
<table width='100%' cellspacing='0' cellpadding='2'>
|
<table width='100%' cellspacing='0' cellpadding='2'>
|
||||||
<tr>
|
<tr>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Proposal") ?></span></th>
|
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Proposal") ?></span></th>
|
||||||
|
@ -62,7 +57,4 @@
|
||||||
</tr>
|
</tr>
|
||||||
<?php } } ?>
|
<?php } } ?>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</center>
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue