<{if $templates=="album"}> <{if $dataList[0].treelevel=='1'||$dataList[0].treelevel=='2'}>
<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{include file=$pagelist_tpl}> <{/if}>
<{else}>

<{$dataInfo.name}>

<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{include file=$pagelist_tpl}> <{/if}>
<{/if}> <{elseif $templates=="file"}> <{if $dataList[0].datatype=='dir'}>
<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{section name=i loop=$dataList}>
<{$dataList[i].title}>
<{$dataList[i].pubDate}>
<{/section}> <{/if}>
<{include file=$pagelist_tpl}> <{else}>
<{$_DOWNLOAD_NAME}>
<{$_DOWNLOAD_IT}>
<{/if}> <{elseif $templates=="brands"}> <{if $datatype=='dir'}>
<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{/if}>
<{else}> <{/if}> <{elseif $templates=="download"}>
<{$_DOWNLOAD_NAME}>
<{$_DOWNLOAD_IT}>
<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{section name=i loop=$dataList}>
<{$dataList[i].title}>
<{if $dataList[i].file[0]}> Download<{/if}>
<{/section}> <{/if}>
<{include file=$pagelist_tpl}> <{elseif $templates=="faq"}>
<{if $empty}>
<{$_NO_DATA_MSG}>
<{else}> <{foreach item=li from=$dataList name=li}>
<{$li.allcontent}>
<{/foreach}> <{/if}>
<{include file=$pagelist_tpl}> <{elseif $templates=="news" || $templates=="news2"}>
<{section name=i loop=$dataList}>
<{$dataList[i].pubDate}>

<{$dataList[i].title}>

<{$dataList[i].content}>

<{/section}>
<{include file=$pagelist_tpl}>
<{elseif $templates=="prd"}>
<{section name=i loop=$fields_name}> <{/section}> <{if $bid!='51'}> <{/if}> <{if $bid=='51' || $bid=='30' }> <{/if}> <{if $bid=='51'}> <{section name=i loop=$dataList}> <{/section}> <{elseif $bid=='30'}> <{section name=i loop=$dataList}> <{/section}> <{else}> <{section name=i loop=$dataList}> <{/section}> <{/if}>
<{$fields_name[i]}>TFDA仿單產品圖
<{$dataList[i].name}>
<{$dataList[i].content_other[0]}>
<{$dataList[i].content_other[1]}> <{$dataList[i].content_other[2]}> <{$dataList[i].content_other[3]}> <{section name=j loop=$dataList[i].bimg}> <{if $smarty.section.j.index==0}><{/if}> <{/section}>
<{$dataList[i].name}>
<{$dataList[i].content_other[0]}>
<{$dataList[i].content_other[1]}> <{$dataList[i].content_other[2]}> <{$dataList[i].content_other[3]}> <{$dataList[i].content_other[4]}> <{section name=j loop=$dataList[i].bimg}> <{if $smarty.section.j.index==0}><{/if}> <{/section}>
<{$dataList[i].name}>
<{$dataList[i].content_other[0]}>
<{$dataList[i].content_other[1]}> <{$dataList[i].content_other[2]}> <{$dataList[i].content_other[3]}> <{$dataList[i].content_other[4]}>
<{elseif $templates=="prd2"}>
<{section name=i loop=$fields_name}> <{/section}> <{if $bid=='93'}> <{section name=i loop=$dataList}> <{/section}> <{else}> <{section name=i loop=$dataList}> <{/section}> <{/if}>
<{$fields_name[i]}>產品圖
<{$dataList[i].name}>
<{$dataList[i].content_other[0]}>
<{$dataList[i].content_other[1]}> <{$dataList[i].content_other[2]}> <{$dataList[i].content_other[3]}> <{section name=j loop=$dataList[i].bimg}> <{if $smarty.section.j.index==0}><{/if}> <{/section}>
<{$dataList[i].name}>
<{$dataList[i].content_other[0]}>
<{$dataList[i].content_other[1]}> <{$dataList[i].content_other[2]}> <{$dataList[i].content_other[3]}> <{$dataList[i].content_other[4]}> <{section name=j loop=$dataList[i].bimg}> <{if $smarty.section.j.index==0}><{/if}> <{/section}>
<{else}>
<{if $empty}> <{else}> <{foreach item=li name=l from=$dataList name=li}> class="alt last"<{/if}>> <{/foreach}> <{/if}>
<{$_NEWS_DATE}> <{$_NEWS_TITLE}>
<{$_NO_DATA_MSG}>
<{$li.pubDate}> <{$li.name}>
<{include file=$pagelist_tpl}> <{/if}>