<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?> </div> <?php if(empty($_G['forum']['sortmode'])) { ?> </div> <?php } if(empty($topic) || ($topic['usefooter'])) { $focusid = getfocus_rand($_G[basescript]);?><?php if($focusid !== null) { $focus = $_G['cache']['focus']['data'][$focusid];?><?php $focusnum = count($_G['setting']['focus'][$_G[basescript]]);?><div class="focus" id="sitefocus"> <div class="bm"> <div class="bm_h cl"> <a href="javascript:;" onclick="setcookie('nofocus_<?php echo $_G['basescript'];?>', 1, <?php echo $_G['cache']['focus']['cookie'];?>*3600);$('sitefocus').style.display='none'" class="y" title="关闭">关闭</a> <h2> <?php if($_G['cache']['focus']['title']) { ?><?php echo $_G['cache']['focus']['title'];?><?php } else { ?>站长推荐<?php } ?> <span id="focus_ctrl" class="fctrl"><img src="<?php echo IMGDIR;?>/pic_nv_prev.gif" alt="上一条" title="上一条" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/<?php echo $focusnum;?></em> <img src="<?php echo IMGDIR;?>/pic_nv_next.gif" alt="下一条" title="下一条" id="focusnext" class="cur1" onclick="showfocus('next')" /></span> </h2> </div> <div class="bm_c" id="focus_con"> </div> </div> </div><?php $focusi = 0;?><?php if(is_array($_G['setting']['focus'][$_G['basescript']])) foreach($_G['setting']['focus'][$_G['basescript']] as $id) { ?><div class="bm_c" style="display: none" id="focus_<?php echo $focusi;?>"> <dl class="xld cl bbda"> <dt><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2" target="_blank"><?php echo $_G['cache']['focus']['data'][$id]['subject'];?></a></dt> <?php if($_G['cache']['focus']['data'][$id]['image']) { ?> <dd class="m"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" target="_blank"><img src="<?php echo $_G['cache']['focus']['data'][$id]['image'];?>" alt="<?php echo $_G['cache']['focus']['data'][$id]['subject'];?>" /></a></dd> <?php } ?> <dd><?php echo $_G['cache']['focus']['data'][$id]['summary'];?></dd> </dl> <p class="ptn cl"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2 y" target="_blank">查看 »</a></p> </div><?php $focusi ++;?><?php } ?> <script type="text/javascript"> var focusnum = <?php echo $focusnum;?>; if(focusnum < 2) { $('focus_ctrl').style.display = 'none'; }
echo $multipage; ?> </div><?php } ?> </div><?php } ?> </div> </div> <?php if (!empty($_G['setting']['pluginhooks']['forum_bottom'])) { echo $_G['setting']['pluginhooks']['forum_bottom']; } $focusid = getfocus_rand($_G[basescript]); if ($focusid !== null) { $focus = $_G['cache']['focus']['data'][$focusid]; ?> <div class="focus" id="focus"> <div class="bm"> <div class="bm_h cl"> <a href="javascript:;" onclick="setcookie('nofocus_<?php echo $focusid; ?> ', 1, <?php echo $_G['cache']['focus']['cookie']; ?> *3600);$('focus').style.display='none'" class="y" title="关闭">关闭</a> <h2><?php if ($_G['cache']['focus']['title']) {
<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?> </div> <?php if(empty($topic) || ($topic['usefooter'])) { $focusid = getfocus_rand($_G[basescript]);?><?php if($focusid !== null) { $focus = $_G['cache']['focus']['data'][$focusid];?><?php $focusnum = count($_G['setting']['focus'][$_G[basescript]]);?><link rel="stylesheet" type="text/css" href="index.css"> <div class="focus" id="sitefocus"> <div class="bm"> <div class="bm_h cl"> <a href="javascript:;" onclick="setcookie('nofocus_<?php echo $_G['basescript'];?>', 1, <?php echo $_G['cache']['focus']['cookie'];?>*3600);$('sitefocus').style.display='none'" class="y" title="关闭">关闭</a> <h2> <?php if($_G['cache']['focus']['title']) { ?><?php echo $_G['cache']['focus']['title'];?><?php } else { ?>站长推荐<?php } ?> <span id="focus_ctrl" class="fctrl"><img src="<?php echo IMGDIR;?>/pic_nv_prev.gif" alt="上一条" title="上一条" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/<?php echo $focusnum;?></em> <img src="<?php echo IMGDIR;?>/pic_nv_next.gif" alt="下一条" title="下一条" id="focusnext" class="cur1" onclick="showfocus('next')" /></span> </h2> </div> <div class="bm_c" id="focus_con"> </div> </div> </div><?php $focusi = 0;?> <?php if(is_array($_G['setting']['focus'][$_G['basescript']])) foreach($_G['setting']['focus'][$_G['basescript']] as $id) { ?><div class="bm_c" style="display: none" id="focus_<?php echo $focusi;?>"> <dl class="xld cl bbda"> <dt><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2" target="_blank"><?php echo $_G['cache']['focus']['data'][$id]['subject'];?></a></dt> <?php if($_G['cache']['focus']['data'][$id]['image']) { ?> <dd class="m"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" target="_blank"><img src="<?php echo $_G['cache']['focus']['data'][$id]['image'];?>" alt="<?php echo $_G['cache']['focus']['data'][$id]['subject'];?>" /></a></dd> <?php } ?> <dd><?php echo $_G['cache']['focus']['data'][$id]['summary'];?></dd> </dl> <p class="ptn cl"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2 y" target="_blank">查看 »</a></p> </div><?php $focusi ++;?> <?php } ?> <script type="text/javascript"> var focusnum = <?php echo $focusnum;?>; if(focusnum < 2) { $('focus_ctrl').style.display = 'none'; } if(!$('focuscur').innerHTML) { var randomnum = parseInt(Math.round(Math.random() * focusnum)); $('focuscur').innerHTML = Math.max(1, randomnum);