| Index
» Projekty
» phpMyEdit
» Fórum
» Display only search field on page |
 |
ninxai
Založený: 14.12.2004
Príspevky: 6
Zaslal: 2005-01-05 04:07
Návrat hore
Odpovedať s citátom
|
i want to use pme's search/filter functionality as a simple search menu for my website. upon entering the page, the user can only see the search fields until a keyword (query) is submitted. in this case, all results of the query will be displayed. i've already placed
$opts['cgi']['append']['fl'] = 1;
in my calling function so the search field is already expanded. i have also done what michal suggested about the
?new=yes
and setting inc to 0, and then tweaking pme.class a little to suppress the errors of inc=0. the problem is, when i set inc=0, the search field(s) also vanishes, together with the rows it should display. it seems the search/filter functionality is available only if inc > 0.
how can i solve this problem?
thanks a lot in advance!
|
hbernard
Založený: 23.03.2003
Príspevky: 159
Bydlisko: FRANCE
Zaslal: 2005-01-05 09:18
Návrat hore
Odpovedať s citátom
|
I would suggest to use
to test CGI variables to know if user has already keyed some values in the filters,
if not, set :
$opts['filters'] = '0 = 1';
else, continue...
_________________ hbernard - phpMyEdit updater.
|
ninxai
Založený: 14.12.2004
Príspevky: 6
Zaslal: 2005-01-05 14:16
Návrat hore
Odpovedať s citátom
|
hei that was
great
! i never expected it to be
that
simple. thanks a lot!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|