mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Break start and end bits of pkg search form out of PHP
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
parent
ab023f4ccf
commit
83b4945fb4
1 changed files with 44 additions and 42 deletions
|
@ -1,3 +1,25 @@
|
||||||
|
|
||||||
|
<form action='packages.php' method='get'>
|
||||||
|
<input type='hidden' name='O' value='0'>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<table cellspacing='3' class='boxSoft'>
|
||||||
|
<tr>
|
||||||
|
<td class='boxSoftTitle' align='right'>
|
||||||
|
<span class='f3'><?php echo __('Search Criteria'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class='boxSoft'>
|
||||||
|
<table style='width: 100%' align='center'>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align='right'>
|
||||||
|
<span class='f5'><span class='blue'><?php echo __('Location'); ?>
|
||||||
|
</span></span><br />
|
||||||
|
<select name='L'>
|
||||||
|
<option value='0'><?php echo __('Any'); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// The search form - XXX: split into own function?
|
// The search form - XXX: split into own function?
|
||||||
|
@ -6,26 +28,6 @@
|
||||||
// less print statements gets a cookie
|
// less print statements gets a cookie
|
||||||
// FIXME: ugly html. whoever un-tables this gets
|
// FIXME: ugly html. whoever un-tables this gets
|
||||||
// another cookie
|
// another cookie
|
||||||
print "<form action='/packages.php' method='get'>\n";
|
|
||||||
print "<input type='hidden' name='O' value='0'>\n";
|
|
||||||
|
|
||||||
print "<center>\n";
|
|
||||||
print "<table cellspacing='3' class='boxSoft'>\n";
|
|
||||||
print "<tr>\n";
|
|
||||||
print " <td class='boxSoftTitle' align='right'>\n";
|
|
||||||
print " <span class='f3'>".__("Search Criteria")."</span>\n";
|
|
||||||
print " </td>\n";
|
|
||||||
print "</tr>\n";
|
|
||||||
print "<tr>\n";
|
|
||||||
print " <td class='boxSoft'>\n";
|
|
||||||
print "<table style='width: 100%' align='center'>\n";
|
|
||||||
|
|
||||||
print "<tr>\n";
|
|
||||||
print "<td align='right'>\n";
|
|
||||||
print " <span class='f5'><span class='blue'>".__("Location");
|
|
||||||
print "</span></span><br />\n";
|
|
||||||
print " <select name='L'>\n";
|
|
||||||
print " <option value=0> ".__("Any")."\n";
|
|
||||||
while (list($id, $loc) = each($locs)) {
|
while (list($id, $loc) = each($locs)) {
|
||||||
if (intval($_REQUEST["L"]) == $id) {
|
if (intval($_REQUEST["L"]) == $id) {
|
||||||
print " <option value=".$id." selected> ".$loc."\n";
|
print " <option value=".$id." selected> ".$loc."\n";
|
||||||
|
@ -96,26 +98,26 @@
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
// Added to break put the buttons in a new line
|
// Added to break put the buttons in a new line
|
||||||
print"</tr></table><center><table><tr>";
|
|
||||||
|
|
||||||
print "<td align='right' valign='bottom'> \n";
|
|
||||||
print " <input type='submit' style='width:80px' class='button' name='do_Search'";
|
|
||||||
print " value='".__("Go")."'>\n";
|
|
||||||
print "</td>\n";
|
|
||||||
|
|
||||||
print "<td align='right' valign='bottom'> \n";
|
|
||||||
print " <input type='submit' style='width:80px' class='button' name='do_Orphans'";
|
|
||||||
print " value='".__("Orphans")."'>\n";
|
|
||||||
print "</td>\n";
|
|
||||||
|
|
||||||
print "</tr>\n";
|
|
||||||
print "</table>\n";
|
|
||||||
|
|
||||||
print " </td>\n";
|
|
||||||
print "</tr>\n";
|
|
||||||
print "</table>\n";
|
|
||||||
print "</center>\n";
|
|
||||||
print "</form>\n";
|
|
||||||
print "<br />\n";
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
</tr></table><center><table><tr>
|
||||||
|
|
||||||
|
<td align='right' valign='bottom'>
|
||||||
|
<input type='submit' style='width:80px' class='button' name='do_Search'
|
||||||
|
value='<?php echo __('Go'); ?>'>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td align='right' valign='bottom'>
|
||||||
|
<input type='submit' style='width:80px' class='button' name='do_Orphans'
|
||||||
|
value='<?php echo __('Orphans'); ?>'>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
||||||
|
</form>
|
||||||
|
<br />
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue