主页
>
文件
>
{foreach from=$item.categories item=e} {foreach from=$e item=c name=foo}
{$categories[$c].name}
{if !$smarty.foreach.foo.last}
>
{/if} {/foreach} {/foreach}
{$item.name}
作品详情
{if $faqs>0 || check_login_bool() && $item.user_id == $smarty.session.user.user_id}
常见问题解答
{/if} {if check_login_bool() && $item.user_id == $smarty.session.user.user_id}
编辑
{/if}
评论
{$errorMessage} {include file="$root_path/apps/items/views/purchase_panel.html"}
{if $faq}
{foreach from=$faq item=f}
{$f.question|nl2br}
{$f.answer|nl2br}
{if check_login_bool() && $item.user_id == $smarty.session.user.user_id}
删除
{/if}
{/foreach}
{else}
尚无常见问题与解答
{/if} {if check_login_bool() && $item.user_id == $smarty.session.user.user_id}
创建常见问题解答
问题
解答
创建问答
{/if}
{if $otherItems} {foreach from=$otherItems item=i}
{/foreach} {/if} {if $otherItemsCount < 6} {section name=foo start=$otherItemsCount loop=6 step=1}
{/section} {/if}
{$item.user.nickname}的其它作品
{include file="$root_path/apps/items/views/rightside.html"}