首页的头部
<!--头部-->
<div class="topfull">
<div class="centerIn">
<div class="welcome">
<div class="corlorA fl">
<?php
if(empty($GLOBALS[navclassid])){
$city = "东莞";
}
?>
<div class="fl clockone">当前城市:<span><?=$city?></span></div><div class="fl clocktwo"><label>切换城市:</label>
<?php
$sql=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0 and showclass=0 order by myorder");
while($bqr3=$empire->fetch($sql)){
?>
<a href=""></a>
<a href="/<?=$bqr3[classpath]?>/"><?=$bqr3[classname]?></a><span>|</span>
<?php
}
?>
<a href="#">更多城市</a></div></div>
<div class="corlorB fr"><a href="#">登陆</a><span>|</span><a href="#">注册</a><span>|</span><a href="#">会员中心</a><span>|</span><a href="#">免费发布信息</a></div>
</div>
</div>
</div>
<div class="foxFull bgcoone">
<div class="centerIn">
<div class="logo">
<div class="logoL fl"><a href="[!--news.url--]" ><img src="[!--news.url--]skin/myk/images/logo.jpg" /></a></div>
<div class="logoC_1 fl city_t">
<div class="city_show"><span><?=$city?></span><a href="#">【切换城市】</a></div>
<div class="dn city_hot">
<div class="city_sj"></div>
<ul class="clearfix">
<?php
$sqls=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0
and showclass=0 order by myorder");
while($bqrs3=$empire->fetch($sqls)){
if($bqrs3[classname]==$city){
$class = 'class="active"';
}else{
$class = '';
}
?>
<li><a href="/<?=$bqrs3[classpath]?>/" <?="$class"?>><?=$bqrs3[classname]?></a></li>
<?php
}
?>
</ul>
</div>
</div>
<script type="text/javascript">
$(function () {
$('.city_show').on('click', function () {
$('.city_t>.city_hot').toggleClass('dn');
});
});
</script>
<div class="logoC_2 fl"><p class="logoC_2_1">全国客服热线:<span><?=$public_r['add_lxr']?></span></p><p class="logoC_2_2"><?=$public_r['add_tel']?></p></div>
<div class="logoR fr">
<form action="/e/sch/schs.php" method="get" name="schform" id="schform" >
<div class="logoR_a fl">
<div class="logoR_1">
<div id="dropdown">
<p>找厂房</p>
<!--<ul>
<li><a href="#" rel="1">长沙</a></li>
<li><a href="#" rel="2">北京</a></li>
<li><a href="#" rel="3">南京</a></li>
<li><a href="#" rel="4">堪培拉</a></li>
<li><a href="#" rel="5">多伦多</a></li>
</ul>-->
</div>
<input name="keyboard" id="keyboard" type="text" class="logoR_txt" value="请输入关健词"onFocus="if(value==defaultValue){value='';this.style.color='#000'}"onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#666" />
</div>
<input name="btn1" type="submit" class="logoR_btn" value="搜索" />
</div>
<div class="logoR_b fl"><span>热搜词:</span>
<a href="[!--news.url--]e/sch/schs.php?keyboard=钢结构">钢结构</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=一楼厂房">一楼厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=独院厂房">独院厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=特价厂房">特价厂房</a>
</div>
</form>
</div>
</div>
</div>
</div>
<!--头部-->
<!--导航-->
<div class="navfull">
<div class="centerIn">
<div class="navv">
<nav class="nav">
<ul class="nav__menu">
<li class='<?=$GLOBALS[navclassid]==0?'vistid':''?>' ><a href="[!--news.url--]" >网站首页</a></li>
[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=1 and showclass=0 order by myorder',0,24,0}]
<?php
if($bqno == 1 ){
$citys = $city;
}else{
$citys = '';
}
?>
<li class="<?=(($GLOBALS[navclassid]==$bqr[classid]) || ($class_r[$GLOBALS[navclassid]][bclassid] == $bqr[classid])) ?'vistid':''?>">
<a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>/" title="<?=$citys?><?=$bqr[classname]?>" ><?=$citys?><?=$bqr[classname]?></a>
</li>
[/e:loop]
</ul>
</nav>
</div>
</div>
</div>
<!--导航-->
一级栏目的头部
<!--头部-->
<div class="topfull">
<div class="centerIn">
<div class="welcome">
<div class="corlorA fl"><div class="fl clockone">当前城市:<span>[!--class.name--]</span></div><div class="fl clocktwo"><label>切换城市:</label>
<?php
$sql=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0 and showclass=0 order by myorder");
while($bqr3=$empire->fetch($sql)){
?>
<a href="/<?=$bqr3[classpath]?>/"><?=$bqr3[classname]?></a><span>|</span>
<?php
}
?>
<a href="#">更多城市</a></div></div>
<div class="corlorB fr"><a href="#">登陆</a><span>|</span><a href="#">注册</a><span>|</span><a href="#">会员中心</a><span>|</span><a href="#">免费发布信息</a></div>
</div>
</div>
</div>
<div class="foxFull bgcoone">
<div class="centerIn">
<div class="logo">
<div class="logoL fl"><a href="[!--news.url--]" ><img src="[!--news.url--]skin/myk/images/logo.jpg" /></a></div>
<div class="logoC_1 fl city_t">
<?php
$city = $class_r[$GLOBALS[navclassid]]['classname'];;
?>
<div class="city_show"><span><?=$city?></span><a href="#">【切换城市】</a></div>
<div class="dn city_hot">
<div class="city_sj"></div>
<ul class="clearfix">
<?php
$sqls=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0 and showclass=0 order by myorder");
while($bqrs3=$empire->fetch($sqls)){
if($bqrs3[classname]==$city){
$class = 'class="active"';
}else{
$class = '';
}
?>
<li><a href="/<?=$bqrs3[classpath]?>/" <?="$class"?>><?=$bqrs3[classname]?></a></li>
<?php
}
?>
</ul>
</div>
</div>
<script type="text/javascript">
$(function () {
$('.city_show').on('click', function () {
$('.city_t>.city_hot').toggleClass('dn');
});
});
</script>
<div class="logoC_2 fl"><p class="logoC_2_1">全国客服热线:<span><?=$public_r['add_lxr']?></span></p><p class="logoC_2_2"><?=$public_r['add_tel']?></p></div>
<div class="logoR fr">
<form action="/e/sch/schs.php" method="get" name="schform" id="schform" >
<div class="logoR_a fl">
<div class="logoR_1">
<div id="dropdown">
<p>找厂房</p>
<!--<ul>
<li><a href="#" rel="1">长沙</a></li>
<li><a href="#" rel="2">北京</a></li>
<li><a href="#" rel="3">南京</a></li>
<li><a href="#" rel="4">堪培拉</a></li>
<li><a href="#" rel="5">多伦多</a></li>
</ul>-->
</div>
<input name="keyboard" id="keyboard" type="text" class="logoR_txt" value="请输入关健词"onFocus="if(value==defaultValue){value='';this.style.color='#000'}"onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#666" />
</div>
<input name="btn1" type="submit" class="logoR_btn" value="搜索" />
</div>
<div class="logoR_b fl"><span>热搜词:</span>
<a href="[!--news.url--]e/sch/schs.php?keyboard=钢结构">钢结构</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=一楼厂房">一楼厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=独院厂房">独院厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=特价厂房">特价厂房</a></div>
</form>
</div>
</div>
</div>
</div>
<!--头部-->
<!--导航-->
<div class="navfull">
<div class="centerIn">
<div class="navv">
<nav class="nav">
<ul class="nav__menu">
<li class='<?=$class_r[$GLOBALS[navclassid]][bclassid]==0?'vistid':''?>'><a href="<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>" >网站首页</a></li>
[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='.$GLOBALS[navclassid].' and showclass=0 order by myorder',0,24,0}]
<li class="<?=(($GLOBALS[navclassid]==$bqr[classid]) || ($class_r[$GLOBALS[navclassid]][bclassid] == $bqr[classid])) ?'vistid':''?>">
<?php
if($bqno == 1 ||$bqno == 2 ||$bqno == 3 ){
$citys = $class_r[$GLOBALS[navclassid]]['classname'];
}else{
$citys = '';
}
?>
<a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>/" title="<?=$citys?><?=$bqr[classname]?>"><?=$citys?><?=$bqr[classname]?></a>
</li>
[/e:loop]
</ul>
</nav>
</div>
</div>
</div>
<!--导航-->
二极栏目的头部
<!--头部-->
<div class="topfull">
<div class="centerIn">
<div class="welcome">
<div class="corlorA fl">
<?php
if(empty($GLOBALS[navclassid])){
$city = "东莞";
}else{
$sql = $empire->fetch1("select bclassid,classname from phome_enewsclass where classid='$GLOBALS[navclassid]'");
if($sql['bclassid']==0){
$city = $sql['classname'];
}else{
$city = $class_r[$class_r[$navclassid][bclassid]][classname];
}
}
?>
<div class="fl clockone">当前城市:<span><?=$city?></span></div><div class="fl clocktwo"><label>切换城市:</label>
<?php
$sql=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0 and showclass=0 order by myorder");
while($bqr3=$empire->fetch($sql)){
?>
<a href="/<?=$bqr3[classpath]?>/"><?=$bqr3[classname]?></a><span>|</span>
<?php
}
?>
<a href="#">更多城市</a></div></div>
<div class="corlorB fr"><a href="#">登陆</a><span>|</span><a href="#">注册</a><span>|</span><a href="#">会员中心</a><span>|</span><a href="#">免费发布信息</a></div>
</div>
</div>
</div>
<div class="foxFull bgcoone">
<div class="centerIn">
<div class="logo">
<div class="logoL fl"><a href="[!--news.url--]" ><img src="[!--news.url--]skin/myk/images/logo.jpg" /></a></div>
<div class="logoC_1 fl city_t">
<div class="city_show"><span><?=$city?></span><a href="#">【切换城市】</a></div>
<div class="dn city_hot">
<div class="city_sj"></div>
<ul class="clearfix">
<?php
$sqls=$empire->query("select classid,classname,classpath from phome_enewsclass where bclassid=0 and showclass=0 order by myorder");
while($bqrs3=$empire->fetch($sqls)){
if($bqrs3[classname]==$city){
$class = 'class="active"';
}else{
$class = '';
}
?>
<li><a href="/<?=$bqrs3[classpath]?>/" <?="$class"?>><?=$bqrs3[classname]?></a></li>
<?php
}
?>
</ul>
</div>
</div>
<script type="text/javascript">
$(function () {
$('.city_show').on('click', function () {
$('.city_t>.city_hot').toggleClass('dn');
});
});
</script>
<div class="logoC_2 fl"><p class="logoC_2_1">全国客服热线:<span><?=$public_r['add_lxr']?></span></p><p class="logoC_2_2"><?=$public_r['add_tel']?></p></div>
<div class="logoR fr">
<form action="/e/sch/schs.php" method="get" name="schform" id="schform" >
<div class="logoR_a fl">
<div class="logoR_1">
<div id="dropdown">
<p>找厂房</p>
<!--<ul>
<li><a href="#" rel="1">长沙</a></li>
<li><a href="#" rel="2">北京</a></li>
<li><a href="#" rel="3">南京</a></li>
<li><a href="#" rel="4">堪培拉</a></li>
<li><a href="#" rel="5">多伦多</a></li>
</ul>-->
</div>
<input name="keyboard" id="keyboard" type="text" class="logoR_txt" value="请输入关健词"onFocus="if(value==defaultValue){value='';this.style.color='#000'}"onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#666" />
</div>
<input name="btn1" type="submit" class="logoR_btn" value="搜索" />
</div>
<div class="logoR_b fl"><span>热搜词:</span>
<a href="[!--news.url--]e/sch/schs.php?keyboard=钢结构">钢结构</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=一楼厂房">一楼厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=独院厂房">独院厂房</a>
<a href="[!--news.url--]e/sch/schs.php?keyboard=特价厂房">特价厂房</a>
</div>
</form>
</div>
</div>
</div>
</div>
<!--头部-->
<!--导航-->
<div class="navfull">
<div class="centerIn">
<div class="navv">
<nav class="nav">
<ul class="nav__menu">
<?php
$sql=$empire->query('select classid,classname,classpath from phome_enewsclass where classid='.$class_r[$GLOBALS[navclassid]][bclassid].' and showclass=0 order by myorder');
while($bqr3=$empire->fetch($sql)){
?>
<li><a href="/<?=$bqr3[classpath]?>/" >网站首页</a></li>
<?php
}
?>
[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='.$class_r[$GLOBALS[navclassid]][bclassid].' and showclass=0 order by myorder',0,24,0}]
<?php
if($bqno == 1 ||$bqno == 2 ||$bqno == 3 ){
$citys = $class_r[$class_r[$navclassid][bclassid]][classname];
}else{
$citys = '';
}
?>
<li class="<?=(($GLOBALS[navclassid]==$bqr[classid]) || ($class_r[$GLOBALS[navclassid]][bclassid] == $bqr[classid])) ?'vistid':''?>">
<a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>/" title="<?=$citys?><?=$bqr[classname]?>"><?=$citys?><?=$bqr[classname]?></a>
</li>
[/e:loop]
</ul>
</nav>
</div>
</div>
</div>
<!--导航-->