Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Simple search

phpMyEdit Configuration     Simple search
Odoslať novú tému   Odpovedať na tému    
 
gbalt     Založený: 20.02.2005   Príspevky: 7  
Príspevok Zaslal: 2005-03-03 13:16
Návrat hore  Odpovedať s citátom     

How can I put a single search text box at the top of my page or table listing that queries all desired fields from one text box.

This would eliminate the search row and allow me to have a "metafield" where I can dump misc key words for searching exposure, but hide the "metafield" from the list view.

Currently user must click a Search button to expose the search/query row. (I don't want the dedicated seach row.) And the user must select which field from which to search.

Thank you
Greg

 
gbalt     Založený: 20.02.2005   Príspevky: 7  
Príspevok Zaslal: 2005-03-05 04:32
Návrat hore  Odpovedať s citátom     

LOL! Oh, I was afraid of that! Dude, I'm struggling to make sense of what's here already. But thanks for the vote of confidence.

 
gbalt     Založený: 20.02.2005   Príspevky: 7  
Príspevok Zaslal: 2005-03-05 18:54
Návrat hore  Odpovedať s citátom     

..will do! Thanx

And if my php ever gets good enough to write that code, I'll gladly post it here :)

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-03-01 10:40
Návrat hore  Odpovedať s citátom     

it depends on the variable prefix you have defined

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-03-01 15:17
Návrat hore  Odpovedať s citátom     

it is better to have :
Kód:

$opts['cgi']['append'][$opts['cgi']['prefix']['sys'].'_fl'] = 1;

if you want to change the prefixes. however you need to have them defined earlier in the script (and not to change them later, took me a while to figure it out :) )

 
Denver Dave     Založený: 02.02.2003   Príspevky: 19  
Príspevok Zaslal: 2006-03-02 03:33
Návrat hore  Odpovedať s citátom     

I must not have something defined for Michal's approach, although I took the stock scripts. Doug's approach worked for me and I placed the line at the top of the phpMyEdit.class.php file now all my scripts have the search forced on - I never use any other way.

Thanks !!

 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2006-03-06 00:15
Návrat hore  Odpovedať s citátom     

Variables in $opts['cgi'] should be without prefixes.

If prefix before variable is required to have things working, than it is certainly bug.

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov