[%import file="header.html"%] [%if $ROWS%]

[%if $SHOW_FIELD_TITLES%]
[%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%if $FIELD.HIDDEN != true && $FIELD.DISPLAY.HIDDEN !== true && $FIELD.DISPLAY.HIDDEN.SELECT != true %] [%if $FIELD.DESCRIPTION%] [%$FIELD.DESCRIPTION|embeddedTags|smilies%] [%elseif $FIELDNAME == $PRIMARY_KEY%] ID [%else%] [%$FIELDNAME%] [%/if%] [%/if%] [%/foreach%]
[%/if%]
[%assign var="UPPER_PRIMARY_KEY" value=$PRIMARY_KEY|upper%] [%foreach item=ROW from=$ROWS%]
[%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%if $FIELD.HIDDEN != true && $FIELD.DISPLAY.HIDDEN !== true && $FIELD.DISPLAY.HIDDEN.SELECT != true %] [%assign var="UPPER_FIELDNAME" value=$FIELDNAME|upper%] [%assign var="FIELDVALUE" value=$ROW.$UPPER_FIELDNAME%] [%if $FIELD.TYPE == "boolean"%] [%if $FIELDVALUE%][%else%][%/if%] [%elseif $FIELD.TYPE == "time"%] [%$FIELDVALUE|date%] [%elseif $FIELD.TYPE == "text"%] [%$FIELDVALUE|embeddedTags|smilies%] [%elseif $FIELD.TYPE == "select"%] [%$CONTENT.$FIELDNAME.DEFAULT.$FIELDVALUE%] [%else%] [%$FIELDVALUE|embeddedTags|smilies%] [%/if%] [%/if%] [%/foreach%]
[%/foreach%]

[%else%]
[%$LANGUAGE.NO_ENTRIES_FOUND%]
[%/if%] [%import preparser file="footer.html"%]