<?php echo '恩斯道商业模板保护！请到官网上购买正版模板  www.eisdl.com';exit;?>
<!--{subtemplate common/header}-->
<script language="javascript" src="{STYLEIMGDIR}/js/msclass.js"></script>
<script language="javascript">
function Eis(area,id) {
	var tabArea=document.getElementById(area);
	var contents=tabArea.childNodes;
	for(i=0; i<contents.length; i++) {
		if(contents[i].className=='tabcontent'){contents[i].style.display='none';}
	}
	document.getElementById(id).style.display='';

	var tabs=document.getElementById(area+'tabs').getElementsByTagName('li');
	for(i=0; i<tabs.length; i++) { tabs[i].className='tab'; }
	document.getElementById(id+'tab').className='tab curtab';
	document.getElementById(id+'tab').blur();
}

</script>
<style id="diy_style" type="text/css"></style>
<!--{if $_EIS && empty($gid)}-->
<div {if $_EIS['default']==2}style="display:none"{/if}>
  <!--[diy=eis_du1]--><div id="eis_du1" class="area"></div><!--[/diy]-->
  <div class="eis_dtopdefault cl">
    <div class="eis_dr">
      <!--[diy=eis_dr]--><div id="eis_dr" class="area"></div><!--[/diy]-->
      <div id="index" class="cl">
        <div id="i1" class="tabcontent">
          <!--[diy=eis_i1]--><div id="eis_i1" class="area"></div><!--[/diy]-->
        </div>
        <div id="i2" class="tabcontent" style="display:none">
          <!--[diy=eis_i2]--><div id="eis_i2" class="area"></div><!--[/diy]-->
        </div>
        <div id="i3" class="tabcontent" style="display:none">
          <!--[diy=eis_i3]--><div id="eis_i3" class="area"></div><!--[/diy]-->
        </div>
        <ul class="eis_index_tab cl" id="indextabs">
          <li id="i1tab" class="tab curtab"><a href="javascript:" onmousemove="Eis('index','i1')">新<br />贴</a></li>
          <li id="i2tab" class="tab"><a href="javascript:" onmouseover="Eis('index','i2')">热<br />门</a></li>
          <li id="i3tab" class="tab"><a href="javascript:" onmouseover="Eis('index','i3')">推<br />荐</a></li>
        </ul>
      </div>
    </div>
    <div class="eis_dl">
    <!--[diy=eis_dl]--><div id="eis_dl" class="area"></div><!--[/diy]-->
    </div>
  </div>
  <!--[diy=eis_du2]--><div id="eis_du2" class="area"></div><!--[/diy]-->
</div>
<!--{/if}-->
<!--{if $_EIS['default']!=2 || !empty($gid)}-->
<!--{subtemplate forum/discuz_main}-->
<!--[diy=eis_du3]--><div id="eis_du3" class="area"></div><!--[/diy]-->
<!--{/if}-->
<!--{if empty($gid)}-->
<div {if $_EIS['default']==1}style="display:none"{/if}><!--[diy=eis_du4]--><div id="eis_du4" class="area"></div><!--[/diy]--></div>
<div class="eis_dtop cl" {if $_EIS['default']==1}style="display:none"{/if}>
  <div class="eis_side">
    <!--{if $_EIS}-->
    <h3>关注$_G['setting']['sitename']</h3>
    <!--[diy=eis_c3d3]--><div id="eis_c3d3" class="area"></div><!--[/diy]-->
    <!--{if $_EIS['default']==2}-->
    <div id="eis_marquee" class="eis_dmarquee">
    <div id="eis_marqueec" class="eis_dmqc">
      <ul id="eis_marqueecl">
      <!--{if empty($gid) && $announcements}-->$announcements<!--{else}--><li>暂无公告</li><!--{/if}-->
      </ul>
    </div>
    </div>
    <script type="text/javascript">srcmarquee('eis_marquee');</script>
    <!--{/if}-->
    <div class="eis_apco cl">
      <div class="eis_diap">
        <a onClick="showWindow('nav', this.href, 'get', 0)" href="forum.php?mod=misc&amp;action=nav"><span>发帖</span></a>
      </div>
      <div class="eis_dico">
        <p>今日：<a href="forum.php?mod=guide&view=new">$todayposts</a></p>
        <p>昨日：$postdata[0]</p>
        <p>帖子：$posts</p>
        <p>会员：$_G['cache']['userstats']['totalmembers']</p>
        <p>在线：<a href="home.php?mod=space&do=friend&view=online&type=member">$onlinenum</a></p>
      </div>
    </div>
    <!--{/if}-->
  </div>
  <div class="eis_main">
  <!--{if $_EIS}--><!--[diy=eis_c3d4]--><div id="eis_c3d4" class="area"></div><!--[/diy]--><!--{/if}-->
  </div>  
</div>
<div {if $_EIS['default']==1}style="display:none"{/if}><!--[diy=eis_du5]--><div id="eis_du5" class="area"></div><!--[/diy]--></div>
<div class="eis_ct2 mbm cl" {if $_EIS['default']==1}style="display:none"{/if}>
  <div class="eis_side">
    <!--{if $_EIS}--><!--[diy=eis_c3d5]--><div id="eis_c3d5" class="area"></div><!--[/diy]--><!--{/if}-->
  </div>
  <div class="eis_main">
    <div class="eis_mainarea">
      <!--{if $_EIS}-->
      <ul class="eis_myfavforum cl">
        <!--{if !empty($forum_favlist)}-->
        <li class="first"><span>我的收藏</span></li>
        <!--{eval $i=1}-->
        <!--{loop $forum_favlist $key $favorite}-->
        <!--{if $favforumlist[$favorite[id]]}-->
        <!--{eval $forum=$favforumlist[$favorite[id]];}-->
        <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
        <!--{if $i<=5}-->
        <li><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em>+{$forum[todayposts]}</em><!--{/if}--></li>
        <!--{elseif $i==6}-->
        <li class="more"><a id="morefav" class="png" href="javascript:;" onmouseover="showMenu(this.id)">更多</a></li>
        <!--{/if}-->
        <!--{/if}-->
        <!--{eval $i++}-->
        <!--{/loop}-->
        <!--{else}-->
        <li class="first"><span>论坛地图</span></li>
        <li>添加收藏板块可以在这里快捷访问！</li>
        <!--{/if}-->
      </ul>
      <!--{if !empty($forum_favlist)}-->
      <div id="morefav_menu" class="cl" style="display:none">
        <div class="cl">
        <!--{eval $i=1;}-->
        <!--{loop $forum_favlist $key $favorite}-->
        <!--{if $favforumlist[$favorite[id]]}-->
        <!--{eval $forum=$favforumlist[$favorite[id]];}-->
        <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
        <!--{if $i>5}-->
        <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>$forum[name]<!--{if $forum[todayposts] && !$forum['redirect']}--><em>($forum[todayposts])</em><!--{/if}--></a>
        <!--{/if}-->
        <!--{/if}-->
        <!--{eval $i++;}-->
        <!--{/loop}-->
        </div>
      </div>      
      <!--{/if}-->
      <div class="eis_cats">
        <!--{eval $i=1;}-->
        {eval $cnum=count($catlist)}
        <!--{loop $catlist $key $cat}-->

        <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
        <div class="eis_cat {if $cnum==$i}nb{/if} {if $i==1}nt{/if} cl">
          <a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" class="eis_cn eis_cn_{$i}">{$i}</a>
          <h3><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}">$cat[name]</a><em>{if $cat[todayposts]}($cat[todayposts]){/if}</em></h3>
          <p class="cl">
          <!--{loop $cat[forums] $forumid}-->
          <!--{eval $forum=$forumlist[$forumid];}-->
          <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
          <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>$forum[name]<!--{if $forum[todayposts] && !$forum['redirect']}--><em>($forum[todayposts])</em><!--{/if}--></a>
          <!--{/loop}-->
          </p>
        </div>
        <!--{eval $i++}-->
        <!--{/loop}-->        
      </div>
      <!--[diy=eis_c3d6]--><div id="eis_c3d6" class="area"></div><!--[/diy]-->
    </div>
    <!--{/if}-->
  </div>
</div>
<div {if $_EIS['default']==1}style="display:none"{/if}><!--[diy=eis_du6]--><div id="eis_du6" class="area"></div><!--[/diy]--></div>
<!--{/if}-->
<!--{if $_G['group']['radminid'] == 1}-->
	<!--{eval helper_manyou::checkupdate();}-->
<!--{/if}-->
<!--{subtemplate common/footer}-->