<?php echo '恩斯道商业模板保护！请到官网上购买正版模板  www.eisdl.com';exit;?>

<!--{if empty($gid)}-->
	<!--{ad/text/wp a_t}-->
<!--{/if}-->

<div id="ct" class="wpcl">
	<!--{if empty($gid)}-->
		<div id="chart" class="bm bw0 eis_plr cl">
			<p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
			<div class="y">
				<!--{hook/index_nav_extra}-->
				<!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" title="{lang my_posts}">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}">{lang show_newthreads}</a><!--{/if}-->
			</div>
		</div>
	<!--{/if}-->

  <!--{hook/index_top}-->

  <!--{if !empty($_G['cache']['heats']['message'])}-->
    <div class="bm">
      <div class="bm_h cl">
        <h2>{lang hotthreads_forum}</h2>
      </div>
      <div class="bm_c cl">
        <div class="heat z">
          <!--{loop $_G['cache']['heats']['message'] $data}-->
            <dl class="xld">
              <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
              <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
              <dd>$data[message]</dd>
            </dl>
          <!--{/loop}-->
        </div>
        <ul class="xl xl1 heatl">
        <!--{loop $_G['cache']['heats']['subject'] $data}-->
          <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->&middot; <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
        <!--{/loop}-->
        </ul>
      </div>
    </div>
  <!--{/if}-->

  <!--{hook/index_catlist_top}-->
  <div class="fl bm">
		<!--{if empty($gid) && !empty($forum_favlist)}-->
			<!--{eval $forumscount = count($forum_favlist);}-->
			<!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->

			<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

			<div class="bm {if $forumcolumns} flg{/if} cl">
				<div class="bm_h cl">
					<span class="o">
						<img id="category_0_img" src="{STYLEIMGDIR}/forum/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
					</span>
					<h2><strong><a href="home.php?mod=space&do=favorite&type=forum">我的收藏</a></strong></h2>
				</div>
				<div class="bm_c">
          <div id="category_0" style="{echo $collapse['category_0']}">
            <table cellspacing="0" cellpadding="0" class="fl_tb">
              <tr>
              <!--{eval $x=1}-->
              <!--{eval $favorderid = 0;}-->
              <!--{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 $forumcolumns>1}-->
                  <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
                    </tr>
                    <!--{if $favorderid < $forumscount}-->
                      <tr class="fl_row">
                    <!--{/if}-->
                  <!--{/if}-->
                  <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
                    <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
                    <!--{if $forum[icon]}-->
                      $forum[icon]
                    <!--{else}-->
                      <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{STYLEIMGDIR}/forum/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
                    <!--{/if}-->
                    </div>
                    <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
                      <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
                      <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
                      <dd>
                      <!--{if $forum['permission'] == 1}-->
                        {lang private_forum}
                      <!--{else}-->
                        <!--{if $forum['redirect']}-->
                          <a href="$forumurl" class="xi2">{lang url_link}</a>
                        <!--{elseif is_array($forum['lastpost'])}-->
                          <!--{if $forumcolumns < 3}-->
                            <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                          <!--{else}-->
                            <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
                          <!--{/if}-->
                        <!--{else}-->
                          {lang never}
                        <!--{/if}-->
                      <!--{/if}-->
                      </dd>
                      <!--{hook/index_favforum_extra $forum[fid]}-->
                    </dl>
                  </td>
                  <!--{eval $favorderid++;}-->
                <!--{else}-->
                  <td class="fl_icn">
                    <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{STYLEIMGDIR}/forum/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
                  </td>
                  <td class="eis_fl_forum">
                    <!--{if $forum[icon]}-->
                      $forum[icon]
                    <!--{else}-->
                    <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} class="eis_fn">{$x}</a>
                    <!--{/if}-->
                    <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
                    <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
                    <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
                    <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
                    <!--{hook/index_favforum_extra $forum[fid]}-->
                  </td>
                  <td class="fl_i">
                    <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
                  </td>
                  <td class="fl_by">
                    <div>
                    <!--{if $forum['permission'] == 1}-->
                      {lang private_forum}
                    <!--{else}-->
                      <!--{if $forum['redirect']}-->
                        <a href="$forumurl" class="xi2">{lang url_link}</a>
                      <!--{elseif is_array($forum['lastpost'])}-->
                        <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                      <!--{else}-->
                        {lang never}
                      <!--{/if}-->
                    <!--{/if}-->
                    </div>
                  </td>
                </tr>
                <tr class="fl_row">
  
                <!--{/if}-->
              <!--{/if}-->
              <!--{eval $x++}-->
              <!--{/loop}-->
              <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
              </tr>
            </table>
          </div>
				</div>
			</div>
			<!--{ad/intercat/bm a_c/-1}-->
		<!--{/if}-->
  
  
  <!--{loop $catlist $key $cat}-->
    <!--{hook/index_catlist $cat[fid]}-->
    <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
      <div class="bm_h cl">
        <span class="o">
          <img id="category_$cat[fid]_img" src="{STYLEIMGDIR}/forum/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
        </span>
        <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
        <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
        <h2><strong><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></strong></h2>
      </div>
      <div class="bm_c">
        <div id="category_$cat[fid]" style="{echo $collapse['category_'.$cat[fid]]}" >
          <table cellspacing="0" cellpadding="0" class="fl_tb">
            <tr>
            <!--{eval $i=1}-->
            <!--{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'];}-->
            <!--{if $cat['forumcolumns']}-->
              <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
                </tr>
                <!--{if $forum['orderid'] < $cat['forumscount']}-->
                  <tr class="fl_row">
                <!--{/if}-->
              <!--{/if}-->
              <td class="fl_g" width="$cat[forumcolwidth]">
                <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
                <!--{if $forum[icon]}-->
                  $forum[icon]
                <!--{else}-->
                  <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{STYLEIMGDIR}/forum/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
                <!--{/if}-->
                </div>
                <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
                  <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
                  <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
                  <dd>
                  <!--{if $forum['permission'] == 1}-->
                    {lang private_forum}
                  <!--{else}-->
                    <!--{if $forum['redirect']}-->
                      <a href="$forumurl">{lang url_link}</a>
                    <!--{elseif is_array($forum['lastpost'])}-->
                      <!--{if $cat['forumcolumns'] < 3}-->
                        <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                      <!--{else}-->
                        <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
                      <!--{/if}-->
                    <!--{else}-->
                      {lang never}
                    <!--{/if}-->
                  <!--{/if}-->
                  </dd>
                  <!--{hook/index_forum_extra $forum[fid]}-->
                </dl>
              </td>
            <!--{else}-->
              <td class="fl_icn">
                <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{STYLEIMGDIR}/forum/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
              </td>
              <td class="eis_fl_forum">
                <!--{if $forum[icon]}-->
                  $forum[icon]
                <!--{else}-->
                <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} class="eis_fn">{$i}</a>
                <!--{/if}-->
                <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
                <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
                <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
                <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
                <!--{hook/index_forum_extra $forum[fid]}-->
              </td>
              <td class="fl_i">
                <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
              </td>
              <td class="fl_by">
                <div>
                <!--{if $forum['permission'] == 1}-->
                  {lang private_forum}
                <!--{else}-->
                  <!--{if $forum['redirect']}-->
                    <a href="$forumurl">{lang url_link}</a>
                  <!--{elseif is_array($forum['lastpost'])}-->
                    <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                  <!--{else}-->
                    {lang never}
                  <!--{/if}-->
                <!--{/if}-->
                </div>
              </td>
            </tr>
            <tr class="fl_row">
            <!--{/if}-->
            <!--{eval $i++}-->
            <!--{/loop}-->
            $cat['endrows']
            </tr>
          </table>
        </div>
      </div>
    </div>
    <!--{ad/intercat/bm a_c/$cat[fid]}-->
  <!--{/loop}-->
  </div>
  <!--{hook/index_middle}-->
  <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
    <div id="online" class="bm eis_bm oll">
      <div class="bm_h {if !$detailstatus}bm_h_nb{/if}">
      <!--{if $detailstatus}-->
        <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{STYLEIMGDIR}/forum/collapsed_no.gif" alt="{lang spread}" /></a></span>
        <h3>
          <strong class="eis_f18"><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
          - $onlinenum {lang onlines}- $membercount {lang index_members}($invisiblecount {lang index_invisibles}),$guestcount {lang index_guests}- {lang index_mostonlines} $onlineinfo[0] {lang on} $onlineinfo[1] .
        </h3>
      <!--{else}-->
        <!--{if empty($_G['setting']['sessionclose'])}-->
          <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{STYLEIMGDIR}/forum/collapsed_yes.gif" alt="{lang spread}" /></a></span>
        <!--{/if}-->
        <h3>
          <strong>
            <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
              {lang onlinemember}
            <!--{else}-->
              <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
            <!--{/if}-->
          </strong>
          <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
          <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
          - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
        </h3>
      <!--{/if}-->
      </div>
      <div class="bm_c ptn pbn">
      <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
        <dl id="onlinelist">
          <dt class="ptm pbm bbs">$_G[cache][onlinelist][legend]</dt>
          <!--{if $detailstatus}-->
            <dd class="ptm pbm">
            <ul class="cl">
            <!--{if $whosonline}-->
              <!--{loop $whosonline $key $online}-->
                <li title="{lang time}: $online[lastactivity]">
                <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
                <!--{if $online['uid']}-->
                  <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
                <!--{else}-->
                  $online[username]
                <!--{/if}-->
                </li>
              <!--{/loop}-->
            <!--{else}-->
              <li style="width: auto">{lang online_only_guests}</li>
            <!--{/if}-->
            </ul>
          </dd>
          <!--{/if}-->
        </dl>
      <!--{/if}-->      
      </div>

    </div>
  <!--{/if}-->

  <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  <div class="bm eis_bm lk">
    <div class="bm_h">
      <a href="$_EIS[var][application_url]" target="_blank" class="y">申请链接</a>
      <h3><span class="eis_f18">友情链接</span>$_EIS[var][application_text]</h3>
    </div>
    <div id="category_lk" class="bm_c ptm">
      <!--{if $_G['cache']['forumlinks'][0]}-->
        <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
      <!--{/if}-->
      <!--{if $_G['cache']['forumlinks'][1]}-->
        <div class="mbn cl">
          $_G['cache']['forumlinks'][1]
        </div>
      <!--{/if}-->
      <!--{if $_G['cache']['forumlinks'][2]}-->
        <ul class="x mbm cl">
          $_G['cache']['forumlinks'][2]
        </ul>
      <!--{/if}-->
    </div>
  </div>
  <!--{/if}-->

  <!--{hook/index_bottom}-->

</div>
