代码适用于:
V7整站系统、各类整合万能文章系统(新闻系统)
使用范围:list.htm 列表页(不分大小栏目。)
<ul class="newlist"> <!-- EOT; if($listdb){ $i=0; foreach($listdb AS $key=>$rs){ $rs[posttime]=date("y/m/d",time($rs[posttime])); print <<<EOT --><li><span><a href="bencandy.php?fid=$rs[fid]&id=$rs[aid]" target="$target" title='$rs[full_title]' class="f14">$rs[title]</a></span><span class="fr f14">({$rs[posttime]})</span></li> <!-- EOT; }}elseif($listdb_moresort){ $rows=15; if($page<1){ $page=1; }$min=($page-1)*$rows; unset($listdb,$key); $query = $db->query("SELECT SQL_CALC_FOUND_ROWS A.* FROM {$_pre}article A LEFT JOIN {$_pre}sort B ON A.fid=B.fid WHERE A.yz=1 AND B.fup='$fid' ORDER BY list DESC LIMIT $min,$rows"); $RS=$db->get_one("SELECT FOUND_ROWS()"); $showpage=getpage('','',"list.php?fid=$fid",$rows,$RS['FOUND_ROWS()']); while($rs = $db->fetch_array($query)){ $rs[posttime]=date("y/m/d",$rs[posttime]); $rs[picurl]=tempdir("$rs[picurl]"); $listdb[]=$rs; }foreach($listdb AS $key1=>$rs){ print <<<EOT --> <li><span><a href="bencandy.php?fid=$rs[fid]&id=$rs[aid]" target="$target" title='$rs[full_title]' class="f14">$rs[title]</a></span><span class="fr f14">({$rs[posttime]})</span></li> <!-- EOT; }}print <<<EOT --> </ul> <!-- EOT; if($showpage){ print <<<EOT --> <div class="pages"> $showpage </div> <!-- EOT; }print <<<EOT -->
3