<!--论坛-首页四格-是否开启首页四格(1是,0否)--> <?php if(!empty($_G['setting']['grid']['showgrid'])) { ?> <div class="fl bm"> <div class="bm bmw cl"> <div id="category_grid" class="bm_c"> <table cellspacing="0" cellpadding="0"> <tr> <!--论坛-在开启首页四格-展示风格(0图文并茂,1简洁文字)--> <!--图文并茂: 幻灯+新帖+新回复+热帖。--> <!--简洁文字:新帖+新回复+精华贴+精华贴。--> <?php if(!$_G['setting']['grid']['gridtype']) { ?> <td valign="top" class="category_l1"> <div class="newimgbox"> <h4>最新图片</h4> <div class="module cl slidebox_grid"> <script type="text/javascript"> var slideSpeed = 5000; var slideImgsize = [220,200]; var slideBorderColor = '<?php echo $_G['style']['specialborder'];?>'; var slideBgColor = '<?php echo $_G['style']['commonbg'];?>'; var slideImgs = new Array(); var slideImgLinks = new Array(); var slideImgTexts = new Array(); var slideSwitchColor = '<?php echo $_G['style']['tabletext'];?>'; var slideSwitchbgColor = '<?php echo $_G['style']['commonbg'];?>'; var slideSwitchHiColor = '<?php echo $_G['style']['specialborder'];?>'; <?php $k = 1;?> <?php if(is_array($grids['slide'])) foreach($grids['slide'] as $stid => $svalue) { ?> slideImgs[<?php echo $k; ?>] = '<?php echo $svalue['image'];?>'; slideImgLinks[<?php echo $k; ?>] = '<?php echo $svalue['url'];?>'; slideImgTexts[<?php echo $k; ?>] = '<?php echo $svalue['subject'];?>'; <?php $k++;?> <?php } ?> </script> <script src="<?php echo $_G['setting']['jspath'];?>forum_slide.js?<?php echo VERHASH;?>" type="text/javascript"></script> </div> </div> </td> <?php } ?> <td valign="top" class="category_l2"> <div class="subjectbox"> <h4>最新主题</h4> <ul class="category_newlist"> <?php if(is_array($grids['newthread'])) foreach($grids['newthread'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed]; } ?> <li><a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li> <?php } ?> </ul> </div> </td> <td valign="top" class="category_l3"> <div class="replaybox"> <h4>最新回复</h4> <ul class="category_newlist"> <?php if(is_array($grids['newreply'])) foreach($grids['newreply'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed]; } ?> <li><a href="forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost#lastpost"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li> <?php } ?> </ul> </div> </td> <td valign="top" class="category_l3"> <div class="hottiebox"> <h4>热帖</h4> <ul class="category_newlist"> <?php if(is_array($grids['hot'])) foreach($grids['hot'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed]; } ?> <li><a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li> <?php } ?> </ul> </div> </td> <?php if($_G['setting']['grid']['gridtype']) { ?> <td valign="top" class="category_l4"> <div class="goodtiebox"> <h4>精华帖子</h4> <ul class="category_newlist"> <?php if(is_array($grids['digest'])) foreach($grids['digest'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed]; } ?> <li><a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li> <?php } ?> </ul> </div> </td> <?php } ?> </table> </div> </div> </div> <?php } ?>