<div class="sae_gl"> [e:loop={'select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid=($class_r[$GLOBALS[navclassid]][bclassid]) order by `classid` desc limit 7',7,24,0}]
<?php //取得父栏目下的子栏目 $commbook=$empire->fetch1("select title,titlepic,smalltext,titleurl,keyboard,groupid,classid,newspath,filename,id from phome_ecms_news where classid = '".$bqr[classid]."' and isgood = '1' limit 1"); $commbookurl=sys_ReturnBqTitleLink($commbook); //这里是取得该分类下的推荐数据 ?> <div class="gl_01" <?php $i++;if($i%2==0){echo 'id="gl_01"';} ?>> <ol class="gl_c"><h3><?=$bqr[classname]?></h3><a href="<?=$public_r[newsurl].$bqr[classpath]?>">更多>></a></ol> <div class="yd"> <dl> <dt><a href="<?=$commbookurl?>"><img src="<?=$public_r[newsurl].$commbook[titlepic]?>" /></a></dt> <dd><b><a href="<?=$commbookurl?>"><?=$commbook[title]?></a></b><a class="uus" href="#"><?=esub($commbook[smalltext],84)?></a></dd> </dl> <ol class="ga_ic"> <?php $newbook=$empire->query("select title,titlepic,smalltext,titleurl,keyboard,newstime,groupid,classid,newspath,filename,id from phome_ecms_news where classid = '".$bqr[classid]."' order by newstime desc limit 5"); //取得该分类下的最新数据 while($r=$empire->fetch($newbook)) { ?> <li><a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>">·<?=<?=$r[title]?></a><span class="riq"><?=date('Y-m-d',$bqr[newstime])?></span></li> <?php } //显示5条 ?> </ol> </div> <div class="bj_t"></div> </div> [/e:loop] </div>
大家给我看看我的这个哪里错了,总是报错“Parse error: syntax error, unexpected '<' in D:\news.joqoo.com\e\data\tmp\class1.php on line 153”
|