mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 14:20:31 +01:00
Greater / less than table data search operators
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 ..
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 " ",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 ..
|
||||
|
||||
Reference in New Issue
Block a user