{template 'header'}
{if $itemid}

# {$title}

票数：{$votes} 浏览：{$hits}添加时间：{$adddate} 有效期：{$fromdate} 至 {$todate}
{if $linkto}{$linkto}
{/if}{$content}

{loop $V $k $v}
{$v[number]} | {$v[title]} |  | {$v[percent]} | {$v[votes]}
{/loop}

{load('vote_'.$itemid.'.htm')}
{else}

{if !$typeid}类别{/if} | 标题 | 票数 | 发布时间
--- | --- | --- | ---
{loop $lists $k $v}
{if !$typeid}{$v[typename]}{/if} | {$v[title]} | {$v[votes]} | {$v[adddate]}
{/loop}

{if $pages}
{$pages}
{/if} {/if}

- 投票调查
{loop $_TP[0] $v0}
- {$v0[typename]}
{if isset($_TP[1][$v0[typeid]])} {loop $_TP[1][$v0[typeid]] $v1}
- |-- {$v1[typename]}
{/loop} {/if} {/loop}

{template 'footer'}