<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); include template('common/header_ajax'); ?><script type="text/javascript">
if(!isUndefined(checkForumnew_handle)) {
clearTimeout(checkForumnew_handle);
}
<?php if($threadlist) { ?>
if($('separatorline')) {
var table = $('separatorline').parentNode;
} else {
var table = $('forum_' + <?php echo $fid;?>);
}
var newthread = [];<?php $i = 0;?><?php if(is_array($threadlist)) foreach($threadlist as $thread) { ?><?php
$__IMGDIR = IMGDIR;$icon = <<<EOF
<a href="forum.php?mod=viewthread&amp;tid={$thread['icontid']}&amp;
EOF;
 if($_GET['archiveid']) { 
$icon .= <<<EOF
archiveid={$_GET['archiveid']}&amp;
EOF;
 } 
$icon .= <<<EOF
extra={$extra}" title="
EOF;
 if($thread['displayorder'] == 1) { 
$icon .= <<<EOF
�����ö����� - 
EOF;
 } if($thread['displayorder'] == 2) { 
$icon .= <<<EOF
�����ö����� - 
EOF;
 } if($thread['displayorder'] == 3) { 
$icon .= <<<EOF
ȫ���ö����� - 
EOF;
 } if($thread['displayorder'] == 4) { 
$icon .= <<<EOF
����ö����� - 
EOF;
 } if($thread['folder'] == 'lock') { 
$icon .= <<<EOF
�رյ����� - 
EOF;
 } if($thread['special'] == 1) { 
$icon .= <<<EOF
ͶƱ - 
EOF;
 } if($thread['special'] == 2) { 
$icon .= <<<EOF
��Ʒ - 
EOF;
 } if($thread['special'] == 3) { 
$icon .= <<<EOF
���� - 
EOF;
 } if($thread['special'] == 4) { 
$icon .= <<<EOF
� - 
EOF;
 } if($thread['special'] == 5) { 
$icon .= <<<EOF
���� - 
EOF;
 } if($thread['folder'] == "new") { 
$icon .= <<<EOF
���»ظ� - 
EOF;
 } 
$icon .= <<<EOF
�´��ڴ�" target="_blank">
EOF;
 if($thread['folder'] == 'lock') { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/folder_lock.gif" />
EOF;
 } elseif($thread['special'] == 1) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/pollsmall.gif" alt="ͶƱ" />
EOF;
 } elseif($thread['special'] == 2) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/tradesmall.gif" alt="��Ʒ" />
EOF;
 } elseif($thread['special'] == 3) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/rewardsmall.gif" alt="����" />
EOF;
 } elseif($thread['special'] == 4) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/activitysmall.gif" alt="�" />
EOF;
 } elseif($thread['special'] == 5) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/debatesmall.gif" alt="����" />
EOF;
 } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/pin_{$thread['displayorder']}.gif" alt="{$_G['setting']['threadsticky'][3-$thread['displayorder']]}" />
EOF;
 } else { 
$icon .= <<<EOF
<img src="{$__IMGDIR}/folder_common.gif" />
EOF;
 } 
$icon .= <<<EOF
</a>
EOF;
?>
newthread[<?php echo $i;?>] = {'tid':<?php echo $thread['tid'];?>, 'thread': {'icn':{'className':'icn','val':'<?php echo $icon;?>'}<?php if($_G['forum']['ismoderator']) { ?>, 'o':{'className':'o','val':'<input type="checkbox" value="<?php echo $thread['tid'];?>" name="moderate[]" onclick="tmodclick(this)">'}<?php } ?> ,'common':{'className':'new fn','val':'<?php if(!$_G['setting']['forumdisplaythreadpreview']) { ?><a class="tdpre y" href="javascript:void(0);" onclick="javascript:previewThread(\'<?php echo $thread['tid'];?>\', \'<?php echo $thread['id'];?>\');">Ԥ��</a><?php } ?><?php echo $thread['threadurl'];?>'}, 'author':{'className':'by','val':'<cite><?php echo $thread['authorurl'];?></cite><em><span><?php echo $thread['dateline'];?></span></em>'}, 'num':{'className':'num','val':'<a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>"><?php echo $thread['replies'];?></a><em><?php echo $thread['views'];?></em>'}, 'lastpost':{'className':'by','val':'<cite><?php echo $thread['lastposterurl'];?></cite><em><a href="forum.php?mod=redirect&amp;tid=<?php echo $thread['tid'];?>&amp;goto=lastpost#lastpost"><?php echo $thread['lastpost'];?></a></em>'}}};<?php $i++;?><?php } ?>
removetbodyrow(table, 'forumnewshow');
for(var i = 0; i < newthread.length; i++) {
if(newthread[i].tid) {
addtbodyrow(table, ['tbody', 'newthread'], ['normalthread_', 'normalthread_'], 'separatorline', newthread[i]);
}
}
function readthread(tid) {
if($("checknewthread_"+tid)) {
$("checknewthread_"+tid).className = "";
}
}
<?php } elseif(!$threadlist && $_GET['uncheck'] == 2) { ?>
showDialog('�����»ظ�����', 'notice', null, null, 0, null, null, null, null, 3);
<?php } ?>
checkForumnew_handle = setTimeout(function () {checkForumnew('<?php echo $fid;?>', '<?php echo $_G['timestamp'];?>');}, checkForumtimeout);
</script><?php include template('common/footer_ajax'); ?>