Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
84f08cf8
Commit
84f08cf8
authored
Feb 15, 2009
by
Andrea Scarpino
Committed by
Loui Chang
Feb 18, 2009
Browse files
Add 'Out of Date' detail in search form
Signed-off-by:
Loui Chang
<
louipc.ist@gmail.com
>
parent
710ff234
Changes
2
Hide whitespace changes
Inline
Side-by-side
web/lib/pkgfuncs.inc
View file @
84f08cf8
...
...
@@ -449,6 +449,10 @@ function pkg_search_page($SID="") {
$q
.
=
"AND MaintainerUID = 0 "
;
}
if
(
isset
(
$_GET
[
'outdated'
]))
{
$q
.
=
"AND OutOfDate = 1 "
;
}
$order
=
$_GET
[
"SO"
]
==
'd'
?
'DESC'
:
'ASC'
;
switch
(
$_GET
[
"SB"
])
{
...
...
web/template/pkg_search_form.php
View file @
84f08cf8
...
...
@@ -120,6 +120,14 @@
?>
</select>
</li>
<li>
<label>
<?php
echo
__
(
'Out of Date'
);
?>
</label>
<?php
if
(
isset
(
$_GET
[
'outdated'
]))
:
?>
<input
type=
"checkbox"
name=
"outdated"
checked
/>
<?php
else
:
?>
<input
type=
"checkbox"
name=
"outdated"
/>
<?php
endif
;
?>
</li>
</ul>
</div>
<?php
endif
;
?>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment