[%assign var="UPPER_PRIMARY_KEY" value=$PRIMARY_KEY|upper%] [%import file="header.html"%] [%foreach item=ROW from=$ROWS%]
[%foreach name="for_base" key="FIELDNAME" item="FIELD" from=$CONTENT%] [%assign var="UPPER_FIELDNAME" value=$FIELDNAME|upper%] [%assign var="FIELDVALUE" value=$ROW.$UPPER_FIELDNAME%] [%if (! $FIELD.HIDDEN && $FIELD.DISPLAY.HIDDEN !== true && $FIELD.DISPLAY.HIDDEN.SELECT != true && $FIELDNAME != $PRIMARY_KEY) && ($FIELD.TYPE == "boolean" || $FIELD.TYPE == "select" || $FIELDVALUE) && ($FIELD.TYPE != "text")%]
[%if $SHOW_FIELD_TITLES%] [%if $FIELD.DESCRIPTION%] [%$FIELD.DESCRIPTION|embeddedTags|smilies%] [%else%] [%$FIELDNAME%] [%/if%] [%/if%] [%if $FIELD.TYPE == "boolean"%] [%if $FIELDVALUE%][%else%][%/if%] [%elseif $FIELD.TYPE == "mail"%] [%mailto address="$FIELDVALUE" text="$FIELDVALUE"%] [%elseif $FIELD.TYPE == "time"%] [%$FIELDVALUE|date%] [%elseif $FIELD.TYPE == "select"%] [%$CONTENT.$FIELDNAME.DEFAULT.$FIELDVALUE%] [%elseif $FIELDVALUE%] [%$FIELDVALUE|embeddedTags|smilies%] [%/if%]
[%/if%] [%/foreach%]
[%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%assign var="UPPER_FIELDNAME" value=$FIELDNAME|upper%] [%assign var="FIELDVALUE" value=$ROW.$UPPER_FIELDNAME%] [%if (! $FIELD.HIDDEN && $FIELDNAME != $PRIMARY_KEY) && $FIELD.TYPE == "text" && $FIELDVALUE %]
[%$FIELDVALUE|embeddedTags|smilies%]
[%/if%] [%/foreach%]
[%foreachelse%]
[%$LANGUAGE.NO_ENTRIES_FOUND%]
[%/foreach%] [%import preparser file="footer.html"%]