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

phpMyEdit Features     custom filters
Odoslať novú tému   Odpovedať na tému    
 
would you use it ?
yes
100%
 100%  [ 4 ]
no
0%
 0%  [ 0 ]
Celkom hlasov : 4
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-02-20 09:48
Návrat hore  Odpovedať s citátom     

current filters (in F mode) are hardcoded into the class and allow very precisous filtering. however, this is sometimes not desirable. for example in a datetime field, i want to be able to click on whether to show rows only from february or january. i know this could be made by extra buttons and $opts['filters'], but that's not nice.
i imagine configuration like this:
Kód:

$opts['fdd']['col_name']['filter'] = array ("date >= '2004-1-1' AND date <= '2004-1-31'" => "january 2004");


the questions:
- API (where to put this into fdd)
- whether to show the filter in post variables or not (preferably not, safety reasons)
- whether to use $tbmain and $idmain as aliases for table and column

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-03-20 23:21
Návrat hore  Odpovedať s citátom     

Something similar to this is already written in the documentation.

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.filters.html

It could be definitely useful feature.

_________________
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