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  »  Calculations (date and numeric)

phpMyEdit Features     Calculations (date and numeric)
Odoslať novú tému   Odpovedať na tému    
 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2003-08-25 21:14
Návrat hore  Odpovedať s citátom     

a more general solution would be an output function option. a php function would take some arguments (date) do something with it in its blackbox an return a string to be displayed.
the question is how to harmlessly but generally implement such thing.
my proposal:
$opts['fdd']['col_name']['output_function'] = "my_function($value)"; (with " or ' or ` ? )
then call this my_function on appropriate place in phpMyEdit.class.php . (with eval ?)
other input arguments could be row['col_name'] (the row as parsed by other datemask and such options), row_rough['col_name'] (row as gotten from database), and other as in URL option. i would prefer rows to be adressed as $row['col_name'] and not $row['qf4'] as is now.
this would also solve : images in table, calculations with other columns (or rows)
i have a patch but need to tidy it up, so coming soon

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2003-08-26 22:39
Návrat hore  Odpovedať s citátom     

is here:
http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=127

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2003-11-14 21:44
Návrat hore  Odpovedať s citátom     

The 'sql' option is in cvs and works as you need it.

Doug Hockinson Napísal:
New ['sql'] option to make calculations based on the value entered in a DATE field. For example in general accounting, the bookkeeper wants to know how many days until a bill is due or payable. Or maybe how many days have passed since a given date. Also possibly similar calculations, such as sales tax or commissions or similar percentage calculations.


 
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