File:demo/newsdetails.html
Method:query.scalar(columns,*where,*order)
'=' 附近有语法错误。 select top 1 CatalogName FROM jxcatalog WHERE CatalogId=
数据库执行错误
demo/xmls/index.xmls
...ent[ContentId]=@ContentId;
@rowcontent=@querycontent.map(*,['ContentId={*ContentId} and Status>0 ']);
@Modified=$empty;
$if(@rowcontent<>$null){
@Modified=@rowcontent[Modified];
@Modified=$datetime.format(@Modified,yyyy-MM-dd);
@Click=@rowcontent[Click];
@querycontent[ContentId]=@ContentId;
@querycontent[Click]=(@Click+1);
@querycontent.update();
}
$else{
@rowcontent=$map();
@rowcontent[Title]=No data!;
}
@CatalogId=@rowcontent[CatalogId];
@querycatalog[CatalogId]=@CatalogId;
@
CatalogName=@querycatalog.scalar(CatalogName,CatalogId={*CatalogId});
$return($empty);
}


//物料城市
$sub wuliucitylist(){
@querycity=$query(City,logistics);
@Province=$empty();
//语言
@querycity[AreaId]=0;
@table=@querycity.table(['CityId,CityName'],ParentId=0 and AreaId={*AreaId},['CityId asc']);
@listTag=$list();
@listTag.add(0,Please Select);
@table.fillList(@listTag,CityId,CityName);
@mapTag=$map();
@mapTag[call]=input;
@mapTag[id]=Country;
@mapTag[type]=select;
@mapTag[class...