鏁版嵁搴撴墽琛岄敊璇?/div>
class/news.xmlc
...{@id}%});
@dt=@newsMap[Modified].to(datetime);
@newsMap[Modified]=@dt.toString(yyyy-MM-dd);
$if(@newsMap==$null){
$content.write(鏁版嵁涓嶅瓨鍦?);
$end();
}
$return($empty);
}
$function message(format,cid){
@message=$query(content,news);
@list=@message.format(@format,*,{%CatalogID={@cid}%},{%Grade desc,CatalogID asc%});
$return(@list);
}
$sub detail(contentid){
@querys=$query(content,news);
@catalog=$query(catalog,news);
@id=$get.number(id,0);
$if(@id==0){
@id=@contentid;
}
@data=@querys.dataMap(*,{%ID={@id}%});
$if(@data==$null){
$content.write(鏁版嵁涓嶅瓨鍦?);
$end();
}
$return($empty);
}