刚开始好好的,后来一diy就出现这样的情况,就多出一段页头代码来。换成默认的模板中的页头代码就没有问题。
header_common.htm
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
- <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}-->-$_G['setting']['bbname']<!--{/if}--></title>
- $_G['setting']['seohead']
- <meta name="keywords" content="{if !empty($metakeywords)}{echo htmlspecialchars($metakeywords)}{/if}" />
- <meta name="description" content="{if !empty($metadescription)}{echo htmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
- <meta name="MSSmartTagsPreventParsing" content="True" />
- <meta http-equiv="MSThemeCompatible" content="Yes" />
- <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}-->
- <base href="{$_G['siteurl']}" />
- <!--{csstemplate}-->
- <!--{if $_G['basescript'] == 'portal' && CURMODULE == index}-->
- <link rel="stylesheet" type="text/css" href='{IMGDIR}/ndsns_index.css' >
- <!--{/if}-->
- <script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}', showusercard = '{$_G[setting][showusercard]}', attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G[style][defaultextstyle]', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]';</script>
- <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script>
-
复制代码
header.htm
- <!--{subtemplate common/header_common}-->
- <meta name="application-name" content="$_G['setting']['bbname']" />
- <meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
- <!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->
- <meta name="msapplication-task" content="name=$_G['setting']['navs'][2]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G[siteurl].'forum.php'};icon-uri={$_G[siteurl]}{IMGDIR}/bbs.ico" />
- <!--{if $_G['setting']['groupstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][3]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G[siteurl].'group.php'};icon-uri={$_G[siteurl]}{IMGDIR}/group.ico" /><!--{/if}-->
- <!--{if $_G['setting']['homestatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][4]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G[siteurl].'home.php'};icon-uri={$_G[siteurl]}{IMGDIR}/home.ico" /><!--{/if}-->
- <!--{if $_G['basescript'] == 'forum' && $_G['setting']['archiver']}-->
- <link rel="archives" title="$_G['setting']['bbname']" href="{$_G[siteurl]}archiver/" />
- <!--{/if}-->
- <!--{if defined('CURMODULE') && ($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') && (CURMODULE == 'index' || CURMODULE == 'forumdisplay' || CURMODULE == 'group')}-->$rsshead<!--{/if}-->
- <!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->
- <!--{if $_G['basescript'] == 'forum' && empty($_G['disabledwidthauto']) && $_G['forum_widthauto']}-->
- <link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
- <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
- <!--{/if}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'home' || $_G['basescript'] == 'userapp'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'portal'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!--{if $_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && (CURMODULE == 'topic' || $_G['group']['allowdiy']) && !empty($_G['style']['tplfile'])}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!--{if $_GET['diy'] == 'yes' && (CURMODULE == 'topic' || $_G['group']['allowdiy']) && !empty($_G['style']['tplfile'])}-->
- <link rel="stylesheet" type="text/css" id="diy_common" href="data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
- <!--{/if}-->
- <!--{if $_G['basescript'] == 'portal' && CURMODULE == index}-->
- <script src="{IMGDIR}/ndsns_jq.js" type="text/javascript"></script>
- <!--{/if}-->
- </head>
- <body id="nv_{$_G[basescript]}" class="pg_{CURMODULE}" onkeydown="if(event.keyCode==27) return false;">
- <div id="append_parent"></div><div id="ajaxwaitid"></div>
- <!--{if $_GET['diy'] == 'yes' && (CURMODULE == 'topic' || $_G['group']['allowdiy']) && !empty($_G['style']['tplfile'])}-->
- <!--{template common/header_diy}-->
- <!--{/if}-->
- <!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && !empty($_G['style']['tplfile']) && ($_G['group']['allowdiy'] || $_G['group']['allowaddtopic'] && $topic['uid'] == $_G['uid'] || $_G['group']['allowmanagetopic'])}-->
- <a id="diy-tg" href="javascript:openDiy();" title="{lang open_diy}" class="y"><img src="{STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
- <!--{/if}-->
- <!--{if empty($topic) || $topic['useheader']}-->
- <!--{if $_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')}-->
- <div class="xi1 bm bm_c">
- {lang your_mobile_browser}<a href="{$_G['siteurl']}forum.php?mobile=yes">{lang go_to_mobile}</a> <span class="xg1">|</span> <a href="$_G['setting']['mobile']['nomobileurl']">{lang to_be_continue}</a>
- </div>
- <!--{/if}-->
- <div class="y ndsns_diy">
- <!--{hook/global_cpnav_extra2}-->
- <!--{loop $_G['setting']['topnavs'][1] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
- <!--{/loop}-->
- <!--{if $_G['basescript'] == 'forum' && empty($_G['disabledwidthauto']) && $_G['setting']['switchwidthauto']}-->
- <a href="javascript:;" onClick="widthauto(this)"><!--{if !$_G['forum_widthauto']}-->{lang switch_wide}<!--{else}-->{lang switch_narrow}<!--{/if}--></a>
- <!--{/if}-->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}--><a id="sslct" href="javascript:;" onMouseOver="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});">{lang changestyle}</a><!--{/if}-->
- <!--{if CURMODULE != 'topic' && $_G['group']['allowdiy'] && !empty($_G['style']['tplfile']) || CURMODULE == 'topic' && !empty($_G['style']['tplfile']) && ($_G['group']['allowaddtopic'] && $topic['uid'] == $_G['uid'] || $_G['group']['allowmanagetopic'])}-->
- <a id="diy-tg" href="javascript:openDiy();" title="{lang open_diy}" class="xi1 xw1">DIY</a>
- <!--{/if}-->
- </div>
- <div class="cl ndsns_topbar">
- <form target="_blank" action="http://www.baidu.com/s" method="get" name="scForm">
- <div class="wp">
- <span class="left">yesbaobao.comYes包包欢迎您!<script type="text/javascript">var d = new Date(); document.write('<input type="hidden" name="wd" type="text" value="'+ (d.getMonth()+1)+'月'+d.getDate()+'日'+ '">'); document.write('<a class="scbutton" href="javascript:document.scForm.submit()">'+d.getFullYear()+'年'+(d.getMonth()+1)+'月'+d.getDate()+'日'+' 星期'+'日一二三四五六'.charAt(new Date().getDay()));</script></a></span><span class="right">·<a href="Javascript: void(0)" id="sqgj" onMouseOver="showMenu(this.id)">社区工具</a>·<a href="home.php?mod=space&do=thread&view=all&order=dateline" target="_blank">查看新帖</a>·<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.ndsns.com/');return(false);" href="javascript:">设为首页</a>··<a href="http://m.yesbaobao.com" target="_blank" title="用手机上yesbaobao.com">手机版</a></span>
- <div class="sqgj_menu" id="sqgj_menu" style="display:none;">
- <ul>
- <li><a target="_blank" href="meitu.php">图片处理</a></li>
- <li><a target="_blank" href="plugin.php?id=ks_ac:ks_ac&apc=apply&mod=index">申请版主</a></li>
- <li><a target="_blank" href="plugin.php?id=dsu_paulconvertx:dsu_paulconvertx">转帖工具</a></li>
- <li><a target="_blank" href="home.php?mod=magic">道具商店</a></li>
- <li><a target="_blank" href="home.php?mod=medal">勋章中心</a></li>
- <li><a target="_blank" href="map.php">yes包包地图</a></li>
- </ul>
- </div>
- </div>
- </div>
- <!--{if !IS_ROBOT}-->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}-->
- <div id="sslct_menu" class="cl p_pop" style="display: none;">
- <!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onClick="extstyle('')" title="{lang default}"><i></i></span><!--{/if}-->
- <!--{loop $_G['style']['extstyle'] $extstyle}-->
- <span class="sslct_btn" onClick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'></i></span>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <div id="qmenu_menu" class="p_pop" style="display: none;">
- <ul>
- <!--{loop $_G['setting']['mynavs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
- <li>$nav[code]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- </div>
- <!--{/if}-->
- <input type="hidden" value="andy215_pg" name="tn"></form>
- <!--{ad/headerbanner/wp a_h}-->
- <div id="hd" class="ndsns_hd">
- <div class="wp">
- <div class="hdc cl">
- <!--{eval $mnid = getcurrentnav();}-->
- <h2><!--{if !isset($_G['setting']['navlogos'][$mnid])}--><a href="./" title="$_G['setting']['bbname']">{$_G['style']['boardlogo']}</a><!--{else}-->$_G['setting']['navlogos'][$mnid]<!--{/if}--></h2>
- <!--{if $_G['uid']}-->
- <div id="um">
- <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
- <p>
- <strong class="vwmy{if $_G['setting']['connect']['allow'] && $_G[member][conisbind]} qq{/if}"><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
- <!--{if $_G['group']['allowinvisible']}-->
- <span id="loginstatus">
- <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onClick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
- </span>
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><a href="home.php?mod=spacecp">{lang setup}</a>
- <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
- <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
- <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><span class="pipe">|</span><a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a><!--{/if}-->
- <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
- <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
- <!--{/if}-->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
- <!--{hook/global_usernav_extra2}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <!--{hook/global_usernav_extra3}-->
- <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onMouseOver="delayShow(this, showCreditmenu);" class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
- <span class="pipe">|</span>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onMouseOver="delayShow(this, showUpgradeinfo)"{/if}>$_G[group][grouptitle]</a>
- </p>
- </div>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <p>
- <strong><a id="loginuser" class="noborder"><!--{echo htmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href)">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <!--{else}-->
- <!--{template member/login_simple}-->
- <!--{/if}-->
- </div>
- <div id="nv">
- <div class="nv_l"></div>
- <div class="nv_r"></div>
- <a href="javascript:;" id="qmenu" onMouseOver="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});">{lang my_nav}</a>
- <ul>
- <!--{loop $_G['setting']['navs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}-->
- <!--{/loop}-->
- </ul>
- </div>
- <!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
- <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
- <!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
- <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
- <li>$module[url]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{/if}-->
- $_G[setting][menunavs]
- <div id="mu" class="cl">
- <!--{if $_G['setting']['subnavs']}-->
- <!--{loop $_G[setting][subnavs] $navid $subnav}-->
- <!--{if $_G['setting']['navsubhover'] || $mnid == $navid}-->
- <ul class="cl {if $mnid == $navid}current{/if}" id="snav_$navid" style="display:{if $mnid != $navid}none{/if}">
- $subnav
- </ul>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- </div>
- <div class="nav_bd">
- <ul class="nav_bd_ul">
- <li class="nav_spe"><a title="箱包行业资讯" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=77">箱包资讯</a></li>
- <li><a title="箱包品牌资讯" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=78">品牌资讯</a></li>
- <li><a title="箱包企业新闻" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=73">企业新闻</a></li>
- <li><a title="箱包新品、流行趋势" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=93">新品速递</a></li>
- <li><a title="箱包外贸" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=46">箱包外贸</a></li>
- <li><a title="我们想采购" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=54">采购</a></li>
- <li><a title="我们可以供应" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=53">供应</a></li>
- <li><a title="外贸英语、箱包英语" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=88">箱包英语</a></li>
- <li><a title="明星品包" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=74">明星品包</a></li>
- <li><a title="箱包行业政策法规" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=81">政策法规</a></li>
- <li class="nav_spe"><a title="人物专访" href="/">人物专访</a></li>
- <li><a title="箱包行活" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=75">箱包行情</a></li>
- <li><a title="下载分享" href="http://www.yesbaobao.com/forum.php?gid=40">下载专区</a></li>
- <li><a title="箱包QQ群" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=38">qq群集锦</a></li>
- <li><a title="箱包知识分享学习" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=69">箱包知识</a></li>
- <li><a title="网友活动召集区" href="/">活动聚会</a></li>
- <li><a title="人才频道,招聘、求职、兼职" href="http://www.yesbaobao.com/forum.php?gid=42">招聘求职</a></li>
- <li><a title="品牌加产品盟代理" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=68">加盟代理</a></li>
- <li><a title="箱包行业经营管理" href="http://www.yesbaobao.com/forum.php?mod=forumdisplay&fid=76">经营管理</a></li>
- <li><a title="团购特价优惠、淘宝网购" href="/">网购团购</a></li>
- </ul>
- </div>
- </div>
- </div>
- <!--{hook/global_header}-->
- <!--{/if}-->
- <!--{ad/subnavbanner/a_mu}-->
- <div id="wp" class="wp">
复制代码
|