更改前:
<ul class="clearfix AnewListShowlibiao boxSiziing">
<?php $dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=9 or parentid=9) AND delstate='' AND checkinfo=true ORDER BY orderid DESC LIMIT 0,3");
while($row = $dosql->GetArray())
{
//获取链接地址
if($row['linkurl']=='' and $cfg_isreurl!='Y')
$gourl = 'newsshow.php?cid='.$row['classid'].'&id='.$row['id'];
else if($cfg_isreurl=='Y')
$gourl = 'newsshow-'.$row['classid'].'-'.$row['id'].'-1.html';
else
$gourl = $row['linkurl'];
//获取缩略图地址
if($row['picurl']!='')
$picurl = $row['picurl'];
else
$picurl = 'templates/default/images/nofoundpic.gif';
?>
<li class="wow fadeInUp boxSiziing clearfix">
<a href="<?php echo $gourl; ?>" class="clearfix">
<div class="AnewList_img ">
<img src="<?php echo $picurl; ?>" />
</div>
<div class="fl Anew_r">
<div class="ANewsDate boxSiziing fl">
<p><?php echo MyDate('m-d', $row['posttime']); ?></p>
<p><?php echo MyDate('Y', $row['posttime']); ?></p>
</div>
<div class="AnewsList_i fl boxSiziing">
<h3><?php echo ReStrLen($row['title'],25); ?></h3>
<p><?php echo ReStrLen($row['description'],60); ?></p>
</div>
</div>
</a>
</li>
<?php } ;?>
</ul>
更改后的代码:增加了flag跳转标签的判断。
//获取链接地址
if($row['linkur']!=='' and $row['flag']=='j' and $cfg_isreurl!='Y')
$gourl = $row['linkurl'].'" target="_blank';
else if($cfg_isreurl=='Y')
$gourl = 'newsshow-'.$row['classid'].'-'.$row['id'].'-1.html';
else
$gourl = 'newsshow.php?cid='.$row['classid'].'&id='.$row['id'];
Date:202310262318