<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>{:$title}_{:if $seotitle}$seotitle{:else}{:C('name')}{:/if}</title>
<meta name="keywords" content="{:$keywords}" />
<meta name="description" content="{:$description}" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
<link href="../../statics/skins/blue/jxbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../statics/js/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/js/jquery.cookie.js"></script>
<script type="text/javascript" src="../../statics/js/jquery.jxbox.min.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
</head>
<body>
<div id="top">
 <div id="top_login">
  <div id="top_login_1">欢迎来到{:$config['name']}！请 <a href="javascript:;" onclick="login()">登录</a> <a href="{:Url::getUrl('member', 'reg')}">免费注册</a></div>
  <div id="top_login_2">您好，{username} <a href="{:Url::getUrl('member')}">会员中心</a> <a href="{:Url::getUrl('member', 'logout')}">退出</a></div>
 </div>
 <div class="search">
  <form name="search" action="{:ROOT_PATH}index.php" target="_blank">
   <input type="text" name="q" size="20" />
   <input type="hidden" name="a" value="search" />
   <select name='c'>
    <option value="article" selected="selected">文章</option>
    <option value="product">产品</option>
   </select>
   <input type="submit" name="s" value="搜索" class="button"/>
  </form>
 </div>
 <div class="rss">
  <a href="{:Url::getRssUrl()}" title="RSS订阅中心" target="_blank">
   <img src="images/rss.png" alt="RSS订阅" border="0" width="52" height="24" />
  </a>
 </div>
</div>
<div id="head">
 <div class="logo"><a href="{:ROOT_PATH}" title="{:$config['name']}">{:$config['name']}</a></div>
 <div class="banner"> {:Tag :: ad('top')}</div>
</div>
<ul id="nav">
 <li class="first"><a href="{:ROOT_PATH}" title="{:$config['name']}首页">首&nbsp;&nbsp;页</a></li>
 <!--{:loop Tag::menu($catid) $v}-->
 <li><a href="{:$v['url']}" title="{:$v['name']}"{:if $v['active']} class="active"{:/if}>{:$v['name']}</a></li>
 <!--{:/loop}-->
</ul>
<!--{:if $catid && (get_category($catid, 'pid') or get_category($catid, 'subnum'))}-->
<ul id="sub_nav">
 <!--{:loop Tag::menu($catid, $catid, 0, true) $v}-->
 <li><a href="{:$v['url']}" title="{:$v['name']}">{:$v['name']}</a></li>
 <!--{:/loop}-->
</ul>
<!--{:/if}-->
<!--{#:tpl head}-->
<div id="main">
 <div class="index_1">
  <div class="left">
   <div class="slide bdr_1">
    <script type="text/javascript" src="../../statics/js/jquery.sGallery.js"></script>
    <div class="FocusPic" id="main-slide">
     <div class="changeDiv">
      <!--{:loop Tag::listOne('model=article,ispic=1,num=5') $v}-->
      <a href="{:$v['url']}" title="{:Tag::cut($v['title'], 40)}"><img src="{:$v['defaultpicurl']}" alt="{:$v['title']}" width="300" height="200" /></a>
	  <!--{:/loop}-->
     </div>
    </div>
    <script type="text/javascript"> 
	 $(function(){
	  //焦点图，参数Name,Class,Width,Height,fun
	  new slide("#main-slide","cur",300,200,2);
	 })
    </script>
   </div>
   <div class="announce bdr_1">
    <h4>最新公告</h4>
    <ul>
     <!--{:loop Tag::listOne("model=announcement, num=5") $v}-->
     <li><a href="{:$v['url']}" title="{:$v['title']}">{:$v['title']}</a></li>
     <!--{:/loop}-->
    </ul>
   </div>
  </div>
  <div class="center">
   <div class="headline">
    {:$tmp=Tag::listOne('model=article,type=headline,num=1')}
    <h2><a href="{:$tmp['url']}" title="{:$tmp['title']}">{:Tag::cut($tmp['title'],42,0)}</a></h2>
    <p class="c_gray">{:Tag::cut($tmp['description'],170)}&nbsp;<span class="more">[<a href="{:$tmp['url']}" title="{:$tmp['title']}" class="more">详细</a>]</span></p>
   </div>
   <ul>
    <!--{:loop Tag::listOne("model=article, type=elite, num=10, outid=$tmp[id]") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],52,0)}</a></li>
    <!--{:/loop}-->
   </ul>
  </div>
  <div class="right bdr_1">
   <div class="menu">
    <div class="title">排行榜</div>
    <ul class="tabs" id="tabs_phb">
     <li class="active"><a href="javascript:;">热点</a></li>
     <li><a href="javascript:;">月排行</a></li>
     <li><a href="javascript:;">周排行</a></li>
    </ul>
   </div>
   <div class="content">
    <ul id="tabs_phb_0">
    <!--{:loop Tag::listOne("model=article,type=hot,num=12") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],40,0)}</a></li>
    <!--{:/loop}-->
    </ul>
    <ul id="tabs_phb_1" style="display:none;">
    <!--{:loop Tag::listOne("model=article,type=hot,num=12,hotday=30") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],40,0)}</a></li>
    <!--{:/loop}-->
    </ul>
    <ul id="tabs_phb_2" style="display:none;">
    <!--{:loop Tag::listOne("model=article,type=hot,num=12,hotday=7") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],40,0)}</a></li>
    <!--{:/loop}-->
    </ul>
   </div>
  </div>
 </div>
 <div class="banner"><img src="images/centerbanner.gif" /></div>
 <!--{:loop Tag::listMore("catid=0,num=8") $tmp}-->
 <div class="index_2 mb_10">
  <div class="left bdr_1">
   <h4><a href="{:$tmp['url']}" class="more"><img src="images/more.gif" title="更多" /></a>{:$tmp['name']}</h4>
   <div class="list">
    <div class="l">
      <p>
        <!--{:$l=Tag::listOne("catid=$tmp[catid], type=elite, num=1, ispic=1")}-->
        <a href="{:$l['url']}" title="{:$l['title']}"><img src="{:$l['defaultpicurl']}" width="230" height="138" /></a>
        <a href="{:$l['url']}" title="{:$l['title']}"><strong>{:Tag::cut($l['title'], 34)}</strong></a><br />
        <span class="c_gray">{:Tag::cut($l['description'], 146)}</span>
      </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </div>
    <div class="r">
      {:$h=Tag::listOne("catid=$tmp[catid],type=headline,num=1")}
      <h3><a href="{:$h['url']}" title="{:$h['title']}">{:Tag::cut($h['title'],44,0)}</a></h3>
      <ul>
       <!--{:loop $tmp['list'] $k $v}-->
       <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:$v['title']}</a></li>
    <!--{:/loop}-->
      </ul>
    </div> 
   </div>
  </div>
  <div class="right bdr_1">
   <h4>{:$tmp['name']}排行榜</h4>
   <ul>
    <!--{:loop Tag::listOne("catid=$tmp[catid],type=hot,num=10") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],40,0)}</a></li>
    <!--{:/loop}-->
   </ul>
  </div>
 </div>
 <!--{:/loop}-->
 <div class="link bdr_1">
  <h4><a href="{:Url::getUrl('link', 'add', '', 0)}" class="f_r">申请友情链接</a>友情链接</h4>
  <div class="list">{:Tag::link(30)}</div>
</div>
</div>
{:tpl foot}