Authored by tmq

处理老数据

... ... @@ -44,7 +44,15 @@ $width = 342;
echo "limited-edition";
break;
}
?>" href="/news/index/tag/<?php echo $news['tag']?>"><?php echo $news['tag']?></a>
?>" href="/news/index/tag/<?php echo $news['tag']?>">
<?php
$newtag=array("品牌资讯","活动介绍","亮点活动","限量商品");
if(!in_array($news['tag'],$newtag)){
$news['tag']='品牌资讯';
}
echo $news['tag'];
?>
</a>
<span class="item-time"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $news['create_time']);echo $en[$m]?>&nbsp;<?php ECHO $m=date('d,Y', $news['create_time'])?></span>
</div>
<div class="content">
... ...