<?php echo '恩斯道商业模板保护！请到官网上购买正版模板  www.eisdl.com';exit;?>
<!--{template forum/forum_top}-->
<!--{template forum/forum_tb}-->
<div class="eis_tplr">
<div id="threadlist" {if $_G['uid']} style="position: relative;"{/if}>
	<script type="text/javascript">var lasttime = $_G['timestamp'];</script>
  <div id="forumnew" style="display:none"></div>
  <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
    <input type="hidden" name="formhash" value="{FORMHASH}" />
    <input type="hidden" name="listextra" value="$extra" />
    
    <ul id="waterfall" class="waterfall cl">
      <!--{if $_G['forum_threadcount']}-->
      <!--{loop $_G['forum_threadlist'] $key $thread}-->
      <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
        <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
          <!--{eval $thread[tid]=$thread[closed];}-->
        <!--{/if}-->
      <!--{/if}-->
      <li onmouseover="this.className='on'" onmouseout="this.className=''">
        <div class="eis_box">
					<div class="eis_threadcover"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick'] || CURMODULE == 'guide'} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if $thread['cover']}--><img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" /><!--{else}--><span class="nopic"></span><!--{/if}--></a></div>
					<h3>
          <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
          <img src="{STYLEIMGDIR}/forum/p_pin.gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
          <!--{/if}-->
          <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
          <img src="{STYLEIMGDIR}/forum/p_digest.gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
          <!--{/if}-->
          <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
          <!--{if $thread['fid'] == $_G[fid]}-->
          <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
          <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
          <!--{else}-->
          <input type="checkbox" disabled="disabled" />
          <!--{/if}-->
          <!--{else}-->
          <input type="checkbox" disabled="disabled" />
          <!--{/if}-->
          <!--{/if}-->
          <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]">$thread[subject]</a>
          </h3>
					<div class="eis_author">
            <strong title="$thread[cover] {lang pics}"><!--{if $thread['cover']}--><em>$thread[cover]</em>/{lang pics}<!--{/if}--></strong>
            <a href="home.php?mod=space&uid=$thread[authorid]"><!--{avatar($thread[authorid], small)}--></a>
            <h4><!--{if $thread['authorid'] && $thread['author']}--><a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}--><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></h4>
            <p>$thread[dateline]</p>
          </div>		
        </div>
      </li>
      <!--{/if}-->
      
      <!--{/loop}-->
    </ul>
    <div id="tmppic" style="display: none;"></div>
    <script type="text/javascript" src="$_G['style']['styleimgdir']/js/redef.js?{VERHASH}"></script>
    <script type="text/javascript" reload="1">
    var wf = {};

    _attachEvent(window, "load", function () {
      if($("waterfall")) {
        wf = waterfall();
      }

      <!--{if $page < $_G['page_next'] && !$subforumonly}-->
        var page = $page + 1,
          maxpage = $page + 10,
					stopload = 0,
          scrolltimer = null,
          tmpelems = [],
          tmpimgs = [],
          markloaded = [],
          imgsloaded = 0,
          loadready = 0,
          showready = 1,
          nxtpgurl = 'forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&page=',
          wfloading = "<img src=\"{STYLEIMGDIR}/forum/loading.gif\" alt=\"\" class=\"vm\" /> 加载中...",
          pgbtn = $("pgbtn").getElementsByTagName("a")[0];

        function loadmore() {
          var url = nxtpgurl + page + '&t=' + parseInt((+new Date()/1000)/(Math.random()*1000));
          var x = new Ajax("HTML");
          x.get(url, function (s) {
            s = s.replace(/\n|\r/g, "");
            if(s.indexOf("id=\"pgbtn\"") == -1) {
              $("pgbtn").style.display = "none";
              stopload++;
              window.onscroll = null;
            }

            s = s.substring(s.indexOf("<ul id=\"waterfall\""), s.indexOf("<div id=\"tmppic\""));
            s = s.replace("id=\"waterfall\"", "");
            $("tmppic").innerHTML = s;
            loadready = 1;
          });
        }

        window.onscroll = function () {
          if(scrolltimer == null) {
            scrolltimer = setTimeout(function () {
              try {
                if(page < maxpage && stopload < 2 && showready && ((document.documentElement.scrollTop || document.body.scrollTop) + document.documentElement.clientHeight + 500) >= document.documentElement.scrollHeight) {
                  pgbtn.innerHTML = wfloading;
                  loadready = 0;
                  showready = 0;
                  loadmore();
                  tmpelems = $("tmppic").getElementsByTagName("li");
                  var waitingtimer = setInterval(function () {
                    stopload >= 2 && clearInterval(waitingtimer);
                    if(loadready && stopload < 2) {
                      if(!tmpelems.length) {
                        page++;
                        pgbtn.href = nxtpgurl + page;
                        pgbtn.innerHTML = "{echo '点击查看更多 &gt;&gt;'}";
                        showready = 1;
                        clearInterval(waitingtimer);
                      }
                      for(var i = 0, j = tmpelems.length; i < j; i++) {
                        if(tmpelems[i]) {
                          tmpimgs = tmpelems[i].getElementsByTagName("img");
                          imgsloaded = 0;
                          for(var m = 0, n = tmpimgs.length; m < n; m++) {
                            tmpimgs[m].onerror = function () {
                              this.style.display = "none";
                            };
                            markloaded[m] = tmpimgs[m].complete ? 1 : 0;
                            imgsloaded += markloaded[m];
                          }
                          if(imgsloaded == tmpimgs.length) {
                            $("waterfall").appendChild(tmpelems[i]);
                            wf = waterfall({
                              "index": wf.index,
                              "totalwidth": wf.totalwidth,
                              "totalheight": wf.totalheight,
                              "columnsheight": wf.columnsheight
                            });
                          }
                        }
                      }
                    }
                  }, 40);
                }
              } catch(e) {}
              scrolltimer = null;
            }, 320);
          }
        };
      <!--{/if}-->

    });

    </script>

    <!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
    <!--{template forum/topicadmin_modlayer}-->
    <!--{/if}-->
  </form>

  <!--{if $_G['setting']['threadmaxpages'] > 1 && $page && !$subforumonly && $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->
  <!--{eval $nxtpage = $page + 1;}-->
  <div id="pgbtn" class="pgbtn"><a href="forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&{$multipage_archive}&page=$nxtpage" hidefocus="true">{echo '点击查看更多 &gt;&gt;'}</a></div>
  <!--{/if}-->

	<!--{hook/forumdisplay_threadlist_bottom}-->
</div>
<div id="filter_orderby_menu" class="p_pop" style="display:none">
  <ul>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang list_default_sort}</a></li>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=author&orderby=dateline$forumdisplayadd[author]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang list_post_time}</a></li>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=replies$forumdisplayadd[reply]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang replies}</a></li>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=views$forumdisplayadd[view]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang views}</a></li>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang lastpost}</a></li>
    <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang order_heats}</a></li>
  </ul>
</div>
</div>
</div><!--thread_b--></div><!--thread_c-->