<?php $bclassid=$GLOBALS[navclassid]; ?> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",10,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 titlepic!='' order by newstime desc limit 5"); $commbookurl=sys_ReturnBqTitleLink($commbook); ?> <div class="left_001" style="position:relative;"> <div class="title1"> <p class="p1"><a href="<?=$public_r[newsurl].$bqr[classpath]?>/"> <?=$bqr[classname]?> </a></p> <p class="p2"><a href="<?=$public_r[newsurl].$bqr[classpath]?>/">更多>></a></p> </div> <div class="new1"> <?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 1"); while($r=$empire->fetch($newbook)) { ?> <div class="new1_a"> <a target="_blank" href="<?=$commbookurl?>"><img src="<?=$bqr[titlepic]?$bqr[titlepic]:$public_r[newsurl]."e/data/[!--news.url--]skin/default/images/notimg.gif"?>" width="300" height="200" alt=""></a> <p><a target="_blank" href="<?=$commbookurl?>"><?=$public_r[newsurl].$commbook[title]?></a></p></a> </div> <?php }
?> <div class="new1_b"> <ul> <?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 2"); while($r=$empire->fetch($newbook)) { ?> <li style="float:left"><a target="_blank" href="<?=$commbookurl?>"><img src="<?=$bqr[titlepic]?$bqr[titlepic]:$public_r[newsurl]."e/data/[!--news.url--]skin/default/images/notimg.gif"?>" width="300" height="200" alt=""> <p><?=$public_r[newsurl].$commbook[title]?></p></a></li> <?php }
?> </ul> </div> </div> <div class="new2"> <ul> <?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 1"); while($r=$empire->fetch($newbook)) { ?> <h3 style="overflow:hidden; line-height:35px;"><a target="_blank" href="<?=$commbookurl?>"><?=$public_r[newsurl].$commbook[title]?></a></h3> <?php }
?>
<?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 12"); while($r=$empire->fetch($newbook)) { ?> <li style="overflow:hidden;"><a target="_blank" href="<?=sys_ReturnBqTitleLink($r)?>"><?=$r[title]?></a></li> <?php }
?> </ul> </div> </div> [/e:loop] 谁能帮我看看这块怎么调: <?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 2"); while($r=$empire->fetch($newbook)) { ?> <li style="float:left"><a target="_blank" href="<?=$commbookurl?>"><img src="<?=$bqr[titlepic]?$bqr[titlepic]:$public_r[newsurl]."e/data/[!--news.url--]skin/default/images/notimg.gif"?>" width="300" height="200" alt=""> <p><?=$public_r[newsurl].$commbook[title]?></p></a></li> <?php }
?> 要求调出恋母下不同的两个图片,求在线的指教!
|
|
|