r1 - 12 Jan 2010 - 09:12:57 - PeterSykoraYou are here: CWiki >  Canyons Web > RenderCanyonTime

Function: RenderCanyonTime

Parameters

Implementation

~~~ %STARTINCLUDE%
~~~ %DBQUERY{topic="%name%" format="$percntIFDEFINEDTHEN{\"$formfield(Zustiegszeit)\"}$percnt $percntCALC{$FORMATGMTIME($EVAL($SUM($formfield(Zustiegszeit),$formfield(Routenzeit),$formfield(Rueckwegszeit)) * 60 ), $hourh $minute')}$percnt
~~~ $percntELSIFDEFINED{\"$formfield(Routenzeit)\"}$percnt $percntCALC{$FORMATGMTIME($EVAL($SUM($formfield(Zustiegszeit),$formfield(Routenzeit),$formfield(Rueckwegszeit)) * 60 ), $hourh $minute')}$percnt
~~~ $percntELSIFDEFINED{\"$formfield(Rueckwegszeit)\"}$percnt $percntCALC{$FORMATGMTIME($EVAL($SUM($formfield(Zustiegszeit),$formfield(Routenzeit),$formfield(Rueckwegszeit)) * 60 ), $hourh $minute')}$percnt
~~~ $percntELSEDEFINED$percnt ka
~~~ $percntFIDEFINED$percnt"}%
~~~ %STOPINCLUDE%

Test

Time 05h 42'

-- PeterSykora - 25 Oct 2007

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
CWiki