File:system/casePage.htm
Method:map.set(key,value)
img
对像不存在
system/xmls/case.xmls
...)']);
@ContentId=$argv(0,$null);
$if(@map[ProductPic]){
@array=$datatable.loadJson(@map[ProductPic]);
@img=@array.format([#<li>
<div class="banner_con">
<img src="{*src}" alt="">
</div>
</li>
#]);
}
$if(@map[Body]){
@Description=['<div class="cap_tetx">
<div class="ca_wrap">
<div class="cap_fr">
{@map[Body]}
</div>
</div>
</div>'];
}
$else{
@Description=['<div class="cap_tetx" style="display:none">
<div class="ca_wrap">
<div class="cap_fr">
</div>
</div>
</div>'];
}
@map[imglist]=@img;
@map[Body1]=@Description;
$shell.put(@map);
$return($empty);
}
//新闻内容上一篇下一篇
$sub prevnextG(){
@call=$call(xmls/public.xmls);
@call.load();
@query=$query(content,content);
@query[AreaId]=$shell[AreaId];
@query[ContentId]=$argv(0);
@CatalogId=@query.scalar(CatalogId,ContentId={*ContentId});
@query[CatalogId]=@CatalogId;
@prevrow=@query.map(*,['CatalogId={*CatalogId} and Status=1 and AreaId=1 and ContentId<{*ContentId} '],['ContentId desc']);
@nextrow=@query....