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

phpMyEdit Configuration     Age group select from birth year
Odoslať novú tému   Odpovedať na tému    
 
Pixed     Založený: 28.01.2011   Príspevky: 7  
Príspevok Zaslal: 2011-01-28 17:32
Návrat hore  Odpovedať s citátom     

I'm storing birth year as a part of a member database. So a member row contains e.g. birth_year = 1973.

Out of the box, the query field for this birth year field lets you enter a year value. But this is not very useful for what I'm going to use this for.

I'm after a solution where I can specify an Age range in the query field. Something like:

Age < 15
Age 15-30
Age 30-50
Age > 50

Is this possible to configure somehow?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-01-29 13:20
Návrat hore  Odpovedať s citátom     

I assume that in List mode you want to display for example users age 30-50. Add some A HREF tags in the page footer which allow you to set various filters (evaluated in the header on the next reload). Make your custom filters persistent. You might find related examples by searching the forum for 'persist'.

http://www.php-form-generator.com/phpmyedit/cheat-sheet/filters_a-z.txt

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

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.cgi-variables.html#AEN680

 
Pixed     Založený: 28.01.2011   Príspevky: 7  
Príspevok Zaslal: 2011-01-29 13:40
Návrat hore  Odpovedať s citátom     

Thanks, I'll check out how that works. I'm after a solution that works inline with the search query form.

I.e. when I open the search query panel, I want to display a drop down with age ranges, instead of the plain input that lets me enter an exact year value (this query is way too restrictive for what I'm using it for).

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-01-29 13:50
Návrat hore  Odpovedať s citátom     

You'll need to make a copy of the class file and hack it to create the desired drop down.

 
Pixed     Založený: 28.01.2011   Príspevky: 7  
Príspevok Zaslal: 2011-01-29 14:21
Návrat hore  Odpovedať s citátom     

Yeah thats what I feared, but before looking into it I wanted to ensure that it couldn't be done via configuration :-D Thanks again.

Btw, I just discovered phpMyEdit - cool stuff! Its been a while since last release - is the project still alive?

The devs should consider moving the project to sourceforge and let in some new people on the dev team perhaps?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-01-29 16:07
Návrat hore  Odpovedať s citátom     

http://sourceforge.net/projects/phpmyedit/

I'd call it a mature project, few if any bugs using the current CVS version. Maintainers Nepto and HBernard compiled a list of proposed modifications recently but apparently haven't found time to implement them.

 
Pixed     Založený: 28.01.2011   Príspevky: 7  
Príspevok Zaslal: 2011-01-29 16:33
Návrat hore  Odpovedať s citátom     

ah hehe ;) well then that is in order (I had the impression that the development and repository was hosted on this site alone).

I guess I should add some feature requests and ideas on the SF project page then.

I have an updated set of danish translation files. Where should I send them to?

 
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