[%import file="header.html"%] [%if $ENTRIES == "1"%] [%/if%] [%assign var="UPPER_PRIMARY_KEY" value=$PRIMARY_KEY|upper%]

[%if $ENTRIES > 1%]
[%/if%] [%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%if $FIELD.DISPLAY.HIDDEN !== true && $FIELD.DISPLAY.HIDDEN.EDIT != true %] [%if $ENTRIES == "1"%]
[%else%] | [%/if%] [%if $FIELD.REQUIRED%] * [%/if%] [%if $FIELD.DESCRIPTION%] [%if $ENTRIES > 1%][%/if%] [%$FIELD.DESCRIPTION|embeddedTags|smilies%] [%if $ENTRIES > 1%][%/if%] [%elseif $FIELDNAME == $PRIMARY_KEY%] [%if $ENTRIES > 1%][%/if%] ID [%if $ENTRIES > 1%][%/if%] [%else%] [%if $ENTRIES > 1%][%/if%] [%$FIELDNAME%] [%if $ENTRIES > 1%][%/if%] [%/if%] [%if $ENTRIES > 1%] [%/if%] [%if $ENTRIES == "1" %] [%import file="edit_file.html" PRIMARY_KEY=$CURRENT_INDEX FIELDNAME=$FIELDNAME FIELD=$FIELD FIELDVALUE=$ROWS.$CURRENT_INDEX.$FIELDNAME%]
--- | ---
[%/if%] [%/if%] [%/foreach%] [%if $ENTRIES > "1"%]
[%foreach item=ROW from=$ROWS%]
[%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%assign var="UPPER_FIELDNAME" value=$FIELDNAME|upper%] [%import file="edit_file.html" PRIMARY_KEY=$ROW.$UPPER_PRIMARY_KEY IGNORE_TEXT="true" FIELDNAME=$FIELDNAME FIELD=$FIELD FIELDVALUE=$ROW.$UPPER_FIELDNAME%] [%/foreach%]
[%foreachelse%]
[%$LANGUAGE.NO_ENTRIES_FOUND%]
[%/foreach%]
[%assign var="FIELDPREFIX" value="" %] [%assign var="IGNORE_TEXT" value="true" %] [%foreach key=FIELDNAME item=FIELD from=$CONTENT%] [%assign var="FIELDVALUE" value=$FIELD.DEFAULT%] [%if $FIELD.DISPLAY.HIDDEN !== true && $FIELD.DISPLAY.HIDDEN.EDIT != true %] [%if $FIELD.READONLY !== true && $FIELD.DISPLAY.READONLY !== true && $FIELD.DISPLAY.READONLY.NEW != true && $FIELD.DISPLAY.READONLY.EDIT != true && $FIELD.DISPLAY.HIDDEN.NEW != true %] | [%import preparser file="input.html"%] [%else%] | [%/if%] [%/if%] [%/foreach%] |
[%/if%]

[%import preparser file="footer.html"%]