Greater / less than table data search operators

This commit is contained in:
Jamie Cameron
2010-04-10 17:12:01 -07:00
parent a4e2c1e085
commit ddf4372ae0
6 changed files with 13 additions and 2 deletions

View File

@@ -92,3 +92,5 @@ The information_schema database is no longer included when backing up all databa
Added a collation order field to the database creation form.
Added an option to the backup form to do backup in a single transaction, for InnoDB tables.
The default MySQL table type can now be set on the MySQL Server Configuration page.
---- Changes since 1.510 ----
Added greater than / less than selectors to the table data search form.

View File

@@ -194,6 +194,8 @@ view_match0=contains
view_match1=matches
view_match2=doesn't contain
view_match3=doesn't match
view_match4=greater than
view_match5=less than
view_searchok=Search
view_searchhead=Search results for $1 in field $2 ..
view_searchhead2=Advanced search results on $1 fields ..

View File

@@ -86,7 +86,10 @@ local $qu = $module_name eq "mysql" ? '"' : "'";
return $match == 0 ? "like $qu%$for%$qu" :
$match == 1 ? "like $qu$for$qu" :
$match == 2 ? "not like $qu%$for%$qu" :
$match == 3 ? "not like $qu$for$qu" : " = \"\"";
$match == 3 ? "not like $qu$for$qu" :
$match == 4 ? "> $for" :
$match == 5 ? "< $for" :
" = \"\"";
}
1;

View File

@@ -437,7 +437,7 @@ if (!$in{'field'} && $total > $displayconfig{'perpage'}) {
$sel = &ui_select("field", undef,
[ map { [ $_->{'field'}, $_->{'field'} ] } @str ]);
$match = &ui_select("match", 0,
[ map { [ $_, $text{'view_match'.$_} ] } (0.. 3) ]);
[ map { [ $_, $text{'view_match'.$_} ] } (0.. 5) ]);
print "<td>",&text('view_search2', "<input name=for size=20>", $sel,
$match);
print "&nbsp;&nbsp;",

View File

@@ -69,3 +69,5 @@ Improve support for PostgreSQL 8.3 on Ubuntu 8.04.
---- Changes since 1.440 ----
Re-wrote the entire user interface to use Webmin's new UI library, for a more consistent and themable look.
Added a history of previous commands to the Execute SQL page.
---- Changes since 1.510 ----
Added greater than / less than selectors to the table data search form.

View File

@@ -185,6 +185,8 @@ view_match0=contains
view_match1=matches
view_match2=doesn't contain
view_match3=doesn't match
view_match4=greater than
view_match5=less than
view_searchok=Search
view_searchhead=Search results for $1 in field $2 ..
view_searchhead2=Advanced search results on $1 fields ..