{template:header}
<!--top end-->
<article> 
  <!--lbox begin-->
  <div class="lbox">    
    <div class="ad whitebg"><a href='{$host}' target=_blank><img src='{$host}zb_users/theme/{$theme}/style/images/tupian1.jpg'></a></div>
    <div class="whitebg bloglist">
      <h2 class="htitle"><span class="hnav">
</span>{$title}</h2>
      <ul>
{foreach $articles as $article}
    {$i = $key+1}
						{if $article.IsTop}
        <li>
          <h3 class="blogtitle"><b>【顶】</b><a href="{$article.Url}" title="{$article.Title}" target="_blank">{$article.Title}</a></h3>
           <span class="blogpic imgscale"><i><a href="{$article.Category.Url}" target="_blank">{$article.Category.Name}</a></i><a href="{$article.Url}" title="{$article.Title}"><img src="{orangecms_thumbnail($article)}" alt="{$article.Title}"></a></span>
          <p class="blogtext">{if strlen($article.Intro)>0}
				{php}$intro= trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),100)).'...';{/php}
				{else}
				{php}$intro= trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),90)).'...';{/php}
			{/if}
			{$intro}</p>
          <p class="bloginfo"><span>DATE:{$article.Time('Y-m-d')}</span><span>TAG:{if Count($article.Tags)>0}{foreach $article.Tags as $tag}<a href="{$tag.Url}" target="_blank" rel="tag">{$tag.Name}</a> {/foreach}{/if}</span></p>
          <a href="{$article.Url}" class="viewmore">阅读更多</a></li>
          {else}
<li>
          <h3 class="blogtitle"><a href="{$article.Url}" title="{$article.Title}" target="_blank">{$article.Title}</a></h3>
           <span class="blogpic imgscale"><i><a href="{$article.Category.Url}" target="_blank">{$article.Category.Name}</a></i><a href="{$article.Url}" title="{$article.Title}"><img src="{orangecms_thumbnail($article)}" alt="{$article.Title}"></a></span>
          <p class="blogtext">{if strlen($article.Intro)>0}
				{php}$intro= trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),100)).'...';{/php}
				{else}
				{php}$intro= trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),90)).'...';{/php}
			{/if}
			{$intro}</p>
          <p class="bloginfo"><span>DATE:{$article.Time('Y-m-d')}</span><span>TAG:{if Count($article.Tags)>0}{foreach $article.Tags as $tag}<a href="{$tag.Url}" target="_blank" rel="tag">{$tag.Name}</a> {/foreach}{/if}</span></p>
          <a href="{$article.Url}" class="viewmore">阅读更多</a></li>
          {/if}
{/foreach}     

      </ul>
      <!--pagelist-->
      <div class="pagelist">{template:pagebar}</div>
      <!--pagelist end--> 
    </div>
    <!--bloglist end--> 
  </div>
  <div class="rbox">
    <div class="whitebg paihang">
      <h2 class="htitle">点击排行</h2>
      <ul>
   {php}
$order = array('log_ViewNums'=>'DESC');
$where = array(array('=','log_Status','0'));
$array = $zbp->GetArticleList(array('*'),$where,$order,array(8),'');
{/php}
{foreach $array as $hotlist}
   <li><i></i><a href="{$hotlist.Url}" title="{$hotlist.Title}" target="_blank">{$hotlist.Title}</a></li>
   {/foreach}
      </ul>
    </div>
    <div class="whitebg tuijian">
      <h2 class="htitle">相关推荐</h2>    
      <ul>
       {$topArray = GetList(10, null, null, null, null, null, array("only_ontop"  => true));}
{foreach $topArray as $top}
        <li><a href="{$top.Url}" target="_blank" title="{$top.Title}"><i><img src="{orangecms_thumbnail($article)}" alt="{$top.Title}"></i>
          <p>{$top.Title}</p>
          </a></li>{/foreach}

      </ul>

    </div>
    <div class="ad whitebg imgscale">
      <ul>
       <a href='{$host}' target=_blank><img src='{$host}zb_users/theme/{$theme}/style/images/tupian2.jpg'></a>      </ul>
    </div>
    <div class="whitebg cloud">
      <h2 class="htitle">标签云</h2>
      <ul>
      {orangecms_cloud()} </ul>
    </div>
 
  </div>
</article>
{template:footer}