www.gusucode.com > 迪恩育儿亲子4商城商家+手机版【整站带测试数据】源码程序 > web/template/dean_momkid_161107/forum/ajax_threadlist.php
<?php echo '加田小店';exit;?> <!--{template common/header_ajax}--> <script type="text/javascript"> if(!isUndefined(checkForumnew_handle)) { clearTimeout(checkForumnew_handle); } <!--{if $threadlist}--> if($('separatorline')) { var table = $('separatorline').parentNode; } else { var table = $('forum_' + $fid); } var newthread = []; <!--{eval $i = 0;}--> <!--{loop $threadlist $thread}--> {block icon}<a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}{if $thread['displayorder'] == 2}{lang thread_type2} - {/if}{if $thread['displayorder'] == 3}{lang thread_type3} - {/if}{if $thread['displayorder'] == 4}{lang thread_type4} - {/if}{if $thread[folder] == 'lock'}{lang closed_thread} - {/if}{if $thread['special'] == 1}{lang thread_poll} - {/if}{if $thread['special'] == 2}{lang thread_trade} - {/if}{if $thread['special'] == 3}{lang thread_reward} - {/if}{if $thread['special'] == 4}{lang thread_activity} - {/if}{if $thread['special'] == 5}{lang thread_debate} - {/if}{if $thread[folder] == "new"}{lang have_newreplies} - {/if}{lang target_blank}" target="_blank"><!--{if $thread[folder] == 'lock'}--><img src="{IMGDIR}/folder_lock.gif" /><!--{elseif $thread['special'] == 1}--><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /><!--{elseif $thread['special'] == 2}--><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /><!--{elseif $thread['special'] == 3}--><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" /><!--{elseif $thread['special'] == 4}--><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /><!--{elseif $thread['special'] == 5}--><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /><!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}--><img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" /><!--{else}--><img src="{IMGDIR}/folder_common.gif" /><!--{/if}--></a>{/block} newthread[{$i}] = {'tid':$thread[tid], 'thread': {'icn':{'className':'icn','val':'<div class="dean_forumlistava"><!--{if $thread['authorid'] && $thread['author']}--><a href="home.php?mod=space&uid=$thread[authorid]" c="1"><!--{avatar($thread[authorid],small)}--></a><!--{else}--> <img src="$_G['style']['styleimgdir']/hidden.png" title="$_G[setting][anonymoustext]" alt="$_G[setting][anonymoustext]" /> <!--{/if}-->'}<!--{if $_G['forum']['ismoderator']}-->, 'o':{'className':'o','val':'<input type="checkbox" value="{$thread[tid]}" name="moderate[]" onclick="tmodclick(this)">'}<!--{/if}--> ,'common':{'className':'new fn','val':'<div class="listt">{if !$_G['setting']['forumdisplaythreadpreview']}<a class="tdpre y" href="javascript:void(0);" onclick="javascript:previewThread(\'$thread[tid]\', \'$thread[id]\');">{lang preview}</a>{/if}$thread[threadurl]</div><div class="listb cl"><div class="listbl z"><span class="listcategory"></span><cite>$thread[authorurl]</cite> <em><span>{$thread[dateline]}</span></em> </div><div class="listbr y"><span class="llp y">{lang lastpost} :<cite>$thread[lastposterurl]</cite><em><a style=" color:#a4a4a4;" href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost">{$thread[lastpost]}</a></em></span></div><div class="listcount"><span class="listviews">{$thread[views]}</span><span class="listreplies">{$thread[replies]}</span></div></div></div> '},'author':{'className':'by','val':'<cite>$thread[authorurl]</cite><em><span>{$thread[dateline]}</span></em>'}, 'num':{'className':'num','val':'<a href="forum.php?mod=viewthread&tid={$thread[tid]}">{$thread[replies]}</a><em>{$thread[views]}</em>'}, 'lastpost':{'className':'by','val':'<cite>$thread[lastposterurl]</cite><em><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost">{$thread[lastpost]}</a></em>'}}}; <!--{eval $i++;}--> <!--{/loop}--> 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 = ""; } } <!--{elseif !$threadlist && $_GET['uncheck'] == 2}--> showDialog('{lang none_newthread}', 'notice', null, null, 0, null, null, null, null, 3); <!--{/if}--> checkForumnew_handle = setTimeout(function () {checkForumnew('{$fid}', '{$_G[timestamp]}');}, checkForumtimeout); </script> <!--{template common/footer_ajax}-->