From: x2000habouzit Date: Mon, 26 Apr 2004 13:40:12 +0000 (+0000) Subject: mise à jour du template de table-editor p/r aux nouveaux développements diogenes X-Git-Tag: xorg/old~1825 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=19d621342570de7a7638a24076b0213ebd4adfb4;p=platal.git mise à jour du template de table-editor p/r aux nouveaux développements diogenes --- diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index e503592..ce9aaab 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -1,4 +1,4 @@ -{* $Id: table-editor.tpl,v 1.3 2004-02-20 03:01:10 x2000habouzit Exp $ *} +{* $Id: table-editor.tpl,v 1.4 2004-04-26 13:40:12 x2000habouzit Exp $ *} {dynamic} @@ -56,6 +56,10 @@ {if $myval.type=="timestamp"} {$myarr.$mykey|date_format:"%Y-%m-%d %H:%M:%S"} + {elseif $myval.type=="set" and $myval.trans} + {$myval.trans[$myval.value]} + {elseif $myval.type=="ext"} + {extval table=$table field=$mykey value=$myarr.$mykey vtable=$myval.vtable vjoinid=$myval.vjoinid vfield=$myval.vfield} {else} {$myarr.$mykey} {/if} @@ -99,7 +103,13 @@ {if $myval.type=="textarea"} {elseif $myval.type=="set"} + {if $myval.trans} + {flags table=$table field=$mykey name="$prefix$mykey" selected=$myval.trans[$myval.value] trans=$myval.trans} + {else} {flags table=$table field=$mykey name="$prefix$mykey" selected=$myval.value} + {/if} +{elseif $myval.type=="ext"} + {extval table=$table field=$mykey name="$prefix$mykey" vtable=$myval.vtable vjoinid=$myval.vjoinid vfield=$myval.vfield selected=$myval.value} {elseif $myval.type=="timestamp"} {elseif $myval.type=="password"}