<notempty name="ad_list">
<div class="top_bar">
    <ul id="banner_list" class="banner">
    <volist name="ad_list" id="ad" key="i">
        <li style="display: list-item;"><a style="background:url({:attach($ad['content'],'advert')}) no-repeat center center;" target="_blank" href="{$ad.url}" class="pic"></a></li>
       </volist>
        </ul>
</div>
</notempty>