File:web/product3.html
Function Code:310
Method Code:1
newsMap??get
类型不正确
class/product.xmlc
...ID={@cid});
@data=@catalog.pager(@format,*,{%Status>0 and Path like '%.{@cid}.%' {=} and Title like '%{@keyword}%' or cxh like '%{@keyword}%' %},{%Grade asc,ID desc%},16,$get.number(page,1),8);
$return(@format.toString(body));
}



//产品详情
$sub prodview(){
@querys=$query(content,product);
@cid=$get.number(cid);
@catalog=$query(catalog,product);
@id=$get.number(id);
$layout[title]=@catalog.dataScalar(CatalogName,CatalogID={@cid});
@newsMap=@querys.dataMap(*,ID={@id} and Status=1);
@
dt=@newsMap[Modified].to(datetime);
@newsMap[Modified]=@dt.toString(yyyy-MM-dd);
$if(@newsMap==$null){
$content.write(数据不存在!);
$end();
}
$return($empty);
}