<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
$__WRAPBORDERCOLOR = WRAPBORDERCOLOR;$return = <<<EOF

<!-- Thread List -->

EOF;
 if($thread_list['prompt']) { 
$return .= <<<EOF

<script src="source/plugin/thread_list/images/title.js" type="text/javascript"></script>

EOF;
 } 
$return .= <<<EOF

<style type="text/css">
<!-- 
#toplist_all { margin-bottom: 10px; width:960px; }
#toplist_left { position:absolute;width:600px; }
#toplist_right { border:1px solid {$__WRAPBORDERCOLOR}; background:url(source/plugin/thread_list/images/bbsplaybg.gif);height:280px; padding-left:599px; overflow:hidden; }
.toplist_right .txt td{padding:0;vertical-align:top;}
.toplist_right .txt li{width:100%;height:20px;overflow:hidden; *margin:0 0 0 -16px; list-style:none}
.toplist_right .txt span{float:right;}
.popupmenu_popup { background:none repeat scroll 0 0 #FEFEFE; border:1px solid #7FCAE2; overflow:hidden; padding:10px; text-align:left; }
.toplist_member { width:51px; text-align:center; display:inline; }
.toplist_member a{ text-align:center; }
-->
</style>
<div id="toplist_all">
<div id="toplist_left">
    <script src="source/plugin/thread_list/images/flashobj.js" type="text/javascript" type="text/javascript"></script>
    <div id=sasFlashFocus27></div>
    <script type="text/javascript">
        var swf_width=600	
        var swf_height=282
        var files = '{$picpics}';
        var links = '{$piclinks}';
        var texts = '{$pictexts}';
        var sohuFlash2 = new sohuFlash("source/plugin/thread_list/images/focus_4_pic.swf", "27",600,282, "7");
        sohuFlash2.addParam("quality", "high");
        sohuFlash2.addParam("wmode", "opaque");
        sohuFlash2.addVariable("image","{$picpics}");
        sohuFlash2.addVariable("url","{$piclinks}");
        sohuFlash2.addVariable("info", "{$pictexts}");
        sohuFlash2.addVariable("stopTime","5000");
        sohuFlash2.write("sasFlashFocus27");
    </script>
</div>
<div id="toplist_right" class="toplist_right">
<div style="width:359px; background:url(source/plugin/thread_list/images/Top_list_BG.png) repeat-x top;">
<script>
function Top_List_option(number,index){
 for (var i = 1; i <= number; i++) {
document.getElementById('Top_List' + i).className = '';
document.getElementById('Top_List' + i).style.display = 'none';
 }
  document.getElementById('Top_List' + index).className = 'current';
  document.getElementById('Top_List' + index).style.display = 'block';
}
//-->
</script>


<div class=Top_List id=Top_List1>
<table cellSpacing=0 cellPadding=0 border=0>
  <tbody>
  <tr>
    <td valign=top align=right><a onmouseover=Top_List_option(4,1); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_01.png" width=73 border=0></a><a onmouseover=Top_List_option(4,2); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_02_.png" width=67 border=0></a><a onmouseover=Top_List_option(4,3); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_03_.png" width=70 border=0></a><a onmouseover=Top_List_option(4,4); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_04_.png" width=73 border=0></a></td>
</tr>
    <tr>
    <td>
<div style="width:359px; height:250px;"><div style="padding: 2px 5px 0 5px;">

    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="txt">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="source/plugin/thread_list/images/list.png" border="0" /></td>
      <td background="source/plugin/thread_list/images/listbg.gif" style="line-height:20px; padding:0; border-top:0px; background-repeat: repeat-y" width="325">
EOF;
 if(is_array($newPost)) foreach($newPost as $thread) { 
$return .= <<<EOF
<li >

EOF;
 if($thread_list['is_author']) { 
$return .= <<<EOF
<span><a style="color:{$author_color}" href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
space-uid-{$thread['authorid']}.html
EOF;
 } else { 
$return .= <<<EOF
home.php?mod=space.php&uid={$thread['authorid']}
EOF;
 } 
$return .= <<<EOF
" c="1">[{$thread['authors']}]</a></span>
EOF;
 } if($thread['replies']) { 
$return .= <<<EOF

<a{$linkwindow} href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
thread-{$thread['tid']}-1-1.html
EOF;
 } else { 
$return .= <<<EOF
forum.php?mod=viewthread&tid={$thread['tid']}
EOF;
 } 
$return .= <<<EOF
"{$thread['highlight']} title="{$propre['0']}{$thread['name']}\n{$propre['1']}{$thread['subject']}\n{$propre['2']}{$thread['author']} ({$thread['date']})\n{$propre['3']}{$thread['views']}{$propre['4']}\n{$propre['5']}{$thread['lastposter']} ({$thread['retime']})\n{$propre['5']}{$thread['replies']}{$propre['4']}">{$thread['view_subject']}</a>

EOF;
 } else { 
$return .= <<<EOF

<a{$linkwindow} href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
thread-{$thread['tid']}-1-1.html
EOF;
 } else { 
$return .= <<<EOF
forum.php?mod=viewthread&tid={$thread['tid']}
EOF;
 } 
$return .= <<<EOF
"{$thread['highlight']} title="{$propre['0']}{$thread['name']}\n{$propre['1']}{$thread['subject']}\n{$propre['2']}{$thread['author']} ({$thread['date']})\n{$propre['3']}{$thread['views']}{$propre['4']}\n{$propre['6']}">{$thread['view_subject']}</a>

EOF;
 } 
$return .= <<<EOF

</li>

EOF;
 } 
$return .= <<<EOF


      </td>
     </tr>
    </table>

</div></div>
    </td>
    </tr>
</tbody>
</table>
</div>

<div class=Top_List id=Top_List2>
<table cellSpacing=0 cellPadding=0 border=0>
<tbody>
    <tr>
    <td valign=top align=right><a onmouseover=Top_List_option(4,1); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_01_.png" width=73 border=0></a><a onmouseover=Top_List_option(4,2); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_02.png" width=67 border=0></a><a onmouseover=Top_List_option(4,3); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_03_.png" width=70 border=0></a><a onmouseover=Top_List_option(4,4); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_04_.png" width=73 border=0></a></td>
</tr>
    <tr>
    <td>
<div style="width:359px; height:250px;"><div style="padding: 2px 5px 0 5px;">

    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="txt">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="source/plugin/thread_list/images/list.png" border="0" /></td>
      <td background="source/plugin/thread_list/images/listbg.gif" style="line-height:20px; padding:0; border-top:0px; background-repeat: repeat-y" width="325">
EOF;
 if(is_array($newReply)) foreach($newReply as $thread) { 
$return .= <<<EOF
<li>

EOF;
 if($thread_list['is_author']) { 
$return .= <<<EOF
<span><a style="color:{$author_color}" href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
space-username-{$thread['lastposter']}.html
EOF;
 } else { 
$return .= <<<EOF
home.php?mod=space&name={$thread['lastposter']}
EOF;
 } 
$return .= <<<EOF
" c="1">[{$thread['lastposter']}]</a></span>

EOF;
 } 
$return .= <<<EOF
<a{$linkwindow} href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
forum.php?mod=redirect&tid={$thread['tid']}&goto=lastpost#lastpost
EOF;
 } 
$return .= <<<EOF
"{$thread['highlight']} title="{$propre['0']}{$thread['name']}\n{$propre['1']}{$thread['subject']}\n{$propre['2']}{$thread['author']} ({$thread['date']})\n{$propre['3']}{$thread['views']}{$propre['4']}\n{$propre['5']}{$thread['lastposter']} ({$thread['retime']})\n{$propre['5']}{$thread['replies']}{$propre['4']}">{$thread['view_subject']}</a>
</li>

EOF;
 } 
$return .= <<<EOF


      </td>
     </tr>
    </table>

</div></div>
</td>
</tr>
</tbody>
</table>
</div>

<div class=Top_List id=Top_List3>
<table cellSpacing=0 cellPadding=0 border=0>
    <tbody>
    <tr>
    <td valign=top align=right><a onmouseover=Top_List_option(4,1); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_01_.png" width=73 border=0></a><a onmouseover=Top_List_option(4,2); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_02_.png" width=67 border=0></a><a onmouseover=Top_List_option(4,3); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_03.png" width=70 border=0></a><a onmouseover=Top_List_option(4,4); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_04_.png" width=73 border=0></a></td>
    <tr>
    <td>
<div style="width:359px; height:250px;"><div style="padding: 2px 5px 0 5px;">

    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="txt">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="source/plugin/thread_list/images/list.png" border="0" /></td>
      <td background="source/plugin/thread_list/images/listbg.gif" style="line-height:20px; padding:0; border-top:0px; background-repeat: repeat-y" width="325">
EOF;
 if(is_array($ObjArray)) foreach($ObjArray as $thread) { 
$return .= <<<EOF
<li>

EOF;
 if($thread_list['is_author']) { 
$return .= <<<EOF
<span><a style="color:{$author_color}" href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
space-uid-{$thread['authorid']}.html
EOF;
 } else { 
$return .= <<<EOF
home.php?mod=space&uid={$thread['authorid']}
EOF;
 } 
$return .= <<<EOF
" c="1">[{$thread['authors']}]</a></span>
EOF;
 } 
$return .= <<<EOF

                				<a{$linkwindow} href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
thread-{$thread['tid']}-1-1.html
EOF;
 } else { 
$return .= <<<EOF
forum.php?mod=viewthread&tid={$thread['tid']}
EOF;
 } 
$return .= <<<EOF
"{$thread['highlight']} title="{$propre['0']}{$thread['name']}\n{$propre['1']}{$thread['subject']}\n{$propre['2']}{$thread['author']} ({$thread['date']})\n{$propre['3']}{$thread['views']}{$propre['4']}\n{$propre['5']}{$thread['lastposter']} ({$thread['retime']})\n{$propre['5']}{$thread['replies']}{$propre['4']}">{$thread['view_subject']}</a>

</li>

EOF;
 } 
$return .= <<<EOF


      </td>
     </tr>
    </table>

</div></div>
</td>
</tr>
</tbody>
</table>
</div>

<div class=Top_List id=Top_List4>
<table cellSpacing=0 cellPadding=0 border=0>
    <tbody>
    <tr>
    <td valign=top align=right><a onmouseover=Top_List_option(4,1); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_01_.png" width=73 border=0></a><a onmouseover=Top_List_option(4,2); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_02_.png" width=67 border=0></a><a onmouseover=Top_List_option(4,3); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_03_.png" width=70 border=0></a><a onmouseover=Top_List_option(4,4); href="javascript:;"><img height=30 src="source/plugin/thread_list/images/Top_list_04.png" width=73 border=0></a></td>
</tr>
    <tr>
    <td>
<div style="width:359px; height:250px;"><div style="padding: 2px 5px 0 5px;">
<div style="width:349px; height:250px; overflow:hidden;">
<div style="width:359px; height:250px; overflow:hidden;">
EOF;
 if(is_array($postStar)) foreach($postStar as $result) { 
$return .= <<<EOF
<div style="float: left; margin: 2px 5px 5px 0; width:54px; height:54px; overflow:hidden;">
<div class="avt">
<a title="{$result['autitl']} [{$result['num']}]" href="
EOF;
 if($thread_list['Rewrite']) { 
$return .= <<<EOF
space-uid-{$result['authorid']}.html
EOF;
 } else { 
$return .= <<<EOF
home.php?mod=space&uid={$result['authorid']}
EOF;
 } 
$return .= <<<EOF
" c="1">{$result['avatar']}</a>
</div>
</div>

EOF;
 } 
$return .= <<<EOF


</div>
</div>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>


</div>
</div>
<div style="clear:both"></div>
</div>
<!-- thread_list end -->

EOF;
?>