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
9c98047f
Commit
9c98047f
authored
Mar 03, 2009
by
Loui Chang
Browse files
Fix search output if no results are found.
Signed-off-by:
Loui Chang
<
louipc.ist@gmail.com
>
parent
2f8b8aac
Changes
2
Hide whitespace changes
Inline
Side-by-side
web/lib/pkgfuncs.inc
View file @
9c98047f
...
...
@@ -528,7 +528,7 @@ function pkg_search_page($SID="") {
}
if
(
$total
>
1
)
{
if
(
$total
>
1
||
$total
==
0
)
{
include
(
'pkg_search_form.php'
);
include
(
'pkg_search_results.php'
);
}
...
...
web/template/pkg_search_results.php
View file @
9c98047f
<form
action=
'packages.php?
<?php
echo
htmlentities
(
$_SERVER
[
'QUERY_STRING'
])
?>
'
method=
'post'
>
<div
class=
"pgbox"
>
<div
class=
"pgboxtitle"
>
<span
class=
'f3'
>
<?php
print
__
(
"Package Listing"
)
?>
</span>
</div>
<?php
if
(
!
$result
)
{
?>
<div
class=
'pgboxbody'
>
<?php
print
__
(
"Error retrieving package list."
)
?>
</div>
<?php
}
elseif
(
$total
==
0
)
{
?>
<div
class=
'pgboxbody'
>
<?php
print
__
(
"No packages matched your search criteria."
)
?>
</div>
<?php
}
else
{
?>
<div
class=
"pgboxtitle"
>
<span
class=
'f3'
>
<?php
print
__
(
"Package Listing"
)
?>
</span>
</div>
<table
width=
'100%'
cellspacing=
'0'
cellpadding=
'2'
>
<tr>
...
...
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