<div
class
=
"nav"
>
<div
class
=
"nav"
>
<div
class
=
"nav-inner"
>
<div
class
=
"clearfix nav-inner"
id=
"menu"
>
<ul
class
=
"navlist"
>
<li><a href=
"[!---news.url--]"
><span>网站首页</span></a></li><!--
class
=
"current"
-->
[e:loop={
"select classid,classname,islast,sonclass from {$dbtbpre}enewsclass where bclassid='0' order by myorder,classid ASC limit 11"
,0,24,0}]
<?php
$classurl
=sys_ReturnBqClassname(
$bqr
,9);
$tbname
=
$class_r
[
$bqr
[classid]][tbname];
$navshow
=ReturnClassAddField(
$bqr
[classid],
'nav'
);
?>
<li><a href=
"<?=$classurl?>"
target=
"_blank"
><span><?=
$bqr
[classname]?></span></a>
<?php
if
(!
$navshow
)
{
if
(!
$bqr
[islast])
{
if
(
$bqr
[sonclass])
{
echo
'<ul>'
;
$newsclass
=
$empire
->query(
"select classid,classname from "
.
$dbtbpre
.
"enewsclass where bclassid="
.
$bqr
[classid].
" order by myorder,classid desc limit 10"
);
while
(
$classr
=
$empire
->fetch(
$newsclass
)) {
$classrurl
=sys_ReturnBqClassname(
$classr
,9);
?>
<li><a href=
"<?=$classrurl?>"
><?=
$classr
[classname]?></a></li>
<?php
}
echo
'</ul>'
;
}
}
else
{
$numinfo
=
$empire
->gettotal(
"select count(*) as total from "
.
$dbtbpre
.
"ecms_"
.
$tbname
.
" where classid="
.
$bqr
[classid]);
if
(
$numinfo
)
{
echo
'<ul>'
;
$newsinfo
=
$empire
->query(
"select title,id,classid,newspath,filename,groupid,titleurl from "
.
$dbtbpre
.
"ecms_"
.
$tbname
.
" where classid="
.
$bqr
[classid].
" order by newstime desc limit 10"
);
while
(
$infor
=
$empire
->fetch(
$newsinfo
)) {
$titleurl
=sys_ReturnBqTitleLink(
$infor
);
?>
<li><a href=
"<?=$titleurl?>"
><?=
$infor
[title]?></a></li>
<?php
}
echo
'</ul>'
;
}
}
}
?>
</li>
[/e:loop]
</ul>
</div>
</div>
</div>