你好我加了代码没用啊
文件是PHP的,名字是footer.php
- <?php exit; ?>
- </div>
- <!--{if empty($topic) || ($topic[usefooter])}-->
- <!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
- <!--{if $focusid !== null}-->
- <!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
- <!--{eval $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_$_G[basescript]', 1, $_G['cache']['focus']['cookie']*3600);$('sitefocus').style.display='none'" class="y" title="{lang close}">{lang close}</a>
- <h2>
- <!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}-->
- <span id="focus_ctrl" class="fctrl"><img src="{IMGDIR}/pic_nv_prev.gif" alt="{lang footer_previous}" title="{lang footer_previous}" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/$focusnum</em> <img src="{IMGDIR}/pic_nv_next.gif" alt="{lang footer_next}" title="{lang footer_next}" id="focusnext" class="cur1" onclick="showfocus('next')" /></span>
- </h2>
- </div>
- <div class="bm_c" id="focus_con">
- </div>
- </div>
- </div>
- <!--{eval $focusi = 0;}-->
- <!--{loop $_G['setting']['focus'][$_G[basescript]] $id}-->
- <div class="bm_c" style="display: none" id="focus_$focusi">
- <dl class="xld cl bbda">
- <dt><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2" target="_blank">$_G['cache']['focus']['data'][$id]['subject']</a></dt>
- <!--{if $_G['cache']['focus']['data'][$id][image]}-->
- <dd class="m"><a href="{$_G['cache']['focus']['data'][$id]['url']}" target="_blank"><img src="{$_G['cache']['focus']['data'][$id]['image']}" alt="$_G['cache']['focus']['data'][$id]['subject']" /></a></dd>
- <!--{/if}-->
- <dd>$_G['cache']['focus']['data'][$id]['summary']</dd>
- </dl>
- <p class="ptn cl"><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2 y" target="_blank">{lang focus_show} »</a></p>
- </div>
- <!--{eval $focusi ++;}-->
- <!--{/loop}-->
- <script type="text/javascript">
- var focusnum = $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);
- }
- showfocus();
- var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
- </script>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1}-->
- <div class="focus patch" id="patch_notice"></div>
- <!--{/if}-->
- <!--{ad/footerbanner/wp a_f/1}--><!--{ad/footerbanner/wp a_f/2}--><!--{ad/footerbanner/wp a_f/3}-->
- <!--{ad/float/a_fl/1}--><!--{ad/float/a_fr/2}-->
- <!--{ad/couplebanner/a_fl a_cb/1}--><!--{ad/couplebanner/a_fr a_cb/2}-->
- <!--{ad/cornerbanner/a_cn}-->
- <!--{hook/global_footer}-->
- <div id="ft" class="wp cl">
- <div id="flk" class="y">
- <p>
- <!--{if $_G['setting']['site_qq']}--><a href="http://wpa.qq.com/msgrd?V=3&Uin=$_G['setting']['site_qq']&Site=$_G['setting']['bbname']&Menu=yes&from=discuz" target="_blank" title="QQ"><img src="{IMGDIR}/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><!--{/if}-->
- <!--{loop $_G['setting']['footernavs'] $nav}--><!--{if $nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) ||
- !$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))}-->$nav[code]<span class="pipe">|</span><!--{/if}--><!--{/loop}-->
- <strong><a href="$_G['setting']['siteurl']" target="_blank">$_G['setting']['sitename']</a></strong>
- <!--{if $_G['setting']['icp']}-->( <a target="_blank">$_G['setting']['icp']</a> )<!--{/if}-->
- <!--{hook/global_footerlink}-->
- <!--{if $_G['setting']['statcode']}-->$_G['setting']['statcode']<!--{/if}-->
- </p>
- <p class="xs0">
- {lang time_now}
- <span id="debuginfo">
- <!--{if debuginfo()}-->, Processed in $_G[debuginfo][time] second(s), $_G[debuginfo][queries] queries
- <!--{if $_G['gzipcompress']}-->, Gzip On<!--{/if}--><!--{if C::memory()->type}-->, <!--{echo ucwords(C::memory()->type)}--> On<!--{/if}-->.
- <!--{/if}-->
- </span>
- </p>
- </div>
- <div id="frt">
-
- </div>
- <!--{eval updatesession();}-->
- <!--{if $_G['uid'] && $_G['group']['allowinvisible']}-->
- <script type="text/javascript">
- var invisiblestatus = '<!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}-->';
- var loginstatusobj = $('loginstatusid');
- if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus;
- </script>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{if !$_G['setting']['bbclosed']}-->
- <!--{if $_G[uid] && !isset($_G['cookie']['checkpm'])}-->
- <script type="text/javascript" src="home.php?mod=spacecp&ac=pm&op=checknewpm&rand=$_G[timestamp]"></script>
- <!--{/if}-->
- <!--{if $_G[uid] && helper_access::check_module('follow') && !isset($_G['cookie']['checkfollow'])}-->
- <script type="text/javascript" src="home.php?mod=spacecp&ac=follow&op=checkfeed&rand=$_G[timestamp]"></script>
- <!--{/if}-->
- <!--{if !isset($_G['cookie']['sendmail'])}-->
- <script type="text/javascript" src="home.php?mod=misc&ac=sendmail&rand=$_G[timestamp]"></script>
- <!--{/if}-->
- <!--{if $_G[uid] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkpatch'])}-->
- <script type="text/javascript" src="misc.php?mod=patch&action=checkpatch&rand=$_G[timestamp]"></script>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $_GET['diy'] == 'yes'}-->
- <!--{if check_diy_perm($topic) && (empty($do) || $do != 'index')}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
- <script type="text/javascript" src="{$_G[setting][jspath]}portal_diy{if !check_diy_perm($topic, 'layout')}_data{/if}.js?{VERHASH}"></script>
- <!--{/if}-->
- <!--{if $space['self'] && CURMODULE == 'space' && $do == 'index'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
- <script type="text/javascript" src="{$_G[setting][jspath]}space_diy.js?{VERHASH}"></script>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1}-->
- <script type="text/javascript">patchNotice();</script>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && empty($_G['cookie']['pluginnotice'])}-->
- <div class="focus plugin" id="plugin_notice"></div>
- <script type="text/javascript">pluginNotice();</script>
- <!--{/if}-->
- <!--{if !$_G['setting']['bbclosed'] && $_G['setting']['disableipnotice'] != 1 && $_G['uid'] && !empty($_G['cookie']['lip'])}-->
- <div class="focus plugin" id="ip_notice"></div>
- <script type="text/javascript">ipNotice();</script>
- <!--{/if}-->
- <!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_GET['do'] != 'notice'}-->
- <script type="text/javascript">noticeTitle();</script>
- <!--{/if}-->
- <!--{if ($_G[member][newpm] || $_G[member][newprompt]) && empty($_G['cookie']['ignore_notice'])}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}html5notification.js?{VERHASH}"></script>
- <script type="text/javascript">
- var h5n = new Html5notification();
- if(h5n.issupport()) {
- <!--{if $_G[member][newpm] && $_GET[do] != 'pm'}-->
- h5n.shownotification('pm', '$_G[siteurl]home.php?mod=space&do=pm', '<!--{avatar($_G[uid],small,true)}-->', '{lang newpm_subject}', '{lang newpm_notice_info}');
- <!--{/if}-->
- <!--{if $_G[member][newprompt] && $_GET[do] != 'notice'}-->
- <!--{loop $_G['member']['category_num'] $key $val}-->
- <!--{eval $noticetitle = lang('template', 'notice_'.$key);}-->
- h5n.shownotification('notice_$key', '$_G[siteurl]home.php?mod=space&do=notice&view=$key', '<!--{avatar($_G[uid],small,true)}-->', '$noticetitle ($val)', '{lang newnotice_notice_info}');
- <!--{/loop}-->
- <!--{/if}-->
- }
- </script>
- <!--{/if}-->
- <!--{eval userappprompt();}-->
- <!--{if $_G['basescript'] != 'userapp'}-->
- <div id="scrolltop">
- <!--{if $_G[fid] && $_G['mod'] == 'viewthread'}-->
- <span><a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('reply', this.href)" class="replyfast" title="{lang fastreply}"><b>{lang fastreply}</b></a></span>
- <!--{/if}-->
- <span hidefocus="true"><a title="{lang scrolltop}" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>{lang scrolltop}</b></a></span>
- <!--{if $_G[fid]}-->
- <span>
- <!--{if $_G['mod'] == 'viewthread'}-->
- <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" hidefocus="true" class="returnlist" title="{lang return_list}"><b>{lang return_list}</b></a>
- <!--{else}-->
- <a href="forum.php" hidefocus="true" class="returnboard" title="{lang return_forum}"><b>{lang return_forum}</b></a>
- <!--{/if}-->
- </span>
- <!--{/if}-->
- </div>
- <script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script>
- <!--{/if}-->
- <!--{if isset($_G['makehtml'])}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}html2dynamic.js?{VERHASH}"></script>
- <script type="text/javascript">
- var html_lostmodify = {TIMESTAMP};
- htmlGetUserStatus();
- <!--{if isset($_G['htmlcheckupdate'])}-->
- htmlCheckUpdate();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{eval output();}-->
- <!--{if !$_G['uid']}-->
- <link rel="stylesheet" rev="stylesheet" href="popuppp_img/login19.css" type="text/css" />
- <script language="javascript" type="text/javascript">function login19Submit(op) {
- var op = !op ? 0 : op;
- if(op) {
- $('19loginlsform').cookietime.value = 2592000;
- }
- if($('19login_username').value == ""|| $('19login_password').value == "") {
- showWindow('login', 'member.php?mod=logging&action=login' + (op ? '&cookietime=1' : ""));
- } else {
- ajaxpost('19loginlsform', 'return_19ls', 'return_19ls');
- }
- return false;}
- function close19login(){
-
- $('J_loginGuide').style.display="none";
-
- }
-
- </script>
- <div id="J_loginGuide" class="login-wrap">
-
- <i class="Bw_reward-ico"></i>
- <div class="login-box"><div class="login-user clearall"><div class="login-title flflfl clearall"><h3 class="flflfl">逛了这许久,何不进去瞧瞧?</h3><span class="login-arrow flflfl"><img src="popuppp_img/view_bg.png" class="vm" /></span></div>
- <div class="login-cont flflfl"><ul><form method="post" autocomplete="off" id="19loginlsform" action="member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes" onsubmit="pwmd5('ls_password');return login19Submit();"><span id="return_19ls" style="display:none"></span><input type="hidden" name="quickforward" value="yes" /><input type="hidden" name="handlekey" value="ls" /><li><input name="username" id="19login_username" class="txt" tabindex="1" value="请输入用户名" onclick="this.value = ''" placeholder="用户名"><div class="login-item"><label><input id="uauto" name="cookietime" id="ls_cookietime" value="2592000" class="checkbox" checked="checked" tabindex="4" type="checkbox"> 下次自动登录</label></div></li><li><input name="password" id="19login_password" class="txt" tabindex="2" placeholder="请输入密码" type="password"><div class="login-item"><a href="javascript:void(0);" onclick="showWindow('login', 'member.php?mod=logging&action=login&viewlostpw=1')">忘记密码</a></div></li><li class="login-qt"><button id="J_loginBtn" type="submit" class="login-button" tabindex="904"><em>登录</em></button><div class="login-item"><a href="member.php?mod={$_G[setting][regname]}" target="_blank" ttname="login_entry_captcha_reg_20120508">新用户注册</a></div></li><li class="login-shortcut color6"><span class="flflfl">用其他账号登录:</span>
- <a href="connect.php?mod=login&op=init&referer=index.php&statfrom=login_simple" target="_top" rel="nofollow"><img src="static/image/common/qq_login.gif" class="vm" /></a>
- </li></form></ul><div id="J_loginGuidePopo" class="popo-id" style="display:none"><div class="popo-bd popo-mod"><p id="J_loginGuideTip"></p><a href="javascript:void(0);" class="close" title="关闭">关闭</a><p class="popo-aw"></p></div></div></div></div><a href="javascript:void(0);" id="J_loginGuideClose" class="close" title="关闭" onclick="close19login()"></a></div>
- </div>
- k="close19login()"></a></div>
- </div>
- <!--{/if}--></body>
- </html>
复制代码
那里有问题??? |