<{* -- list type -- *}>
<{if $cfg_viewtype == 'list'}>
<{foreach name=webphoto_list item=photo from=$photo_list}>
<{assign var="webphoto_list_num" value=$smarty.foreach.webphoto_list.iteration }>
<{include file="db:`$mydirname`_inc_photo_in_list.html"}>
<{/foreach}>
<{else}>
<{/if}>
<{* -- list type end -- *}>
<{* -- table type -- *}>
<{if $cfg_viewtype == 'table'}>
<{foreach name=webphoto_list item=photo from=$photo_list}>
<{include file="db:`$mydirname`_inc_photo_in_table.html"}>
<{/foreach}>
<{else}>
<{/if}>
<{* -- table type end -- *}>