File:support.htm
Method:map.get(key,default)
introduce??get
类型不正确
xmls/news.xmls
...@count,$get(page,1),page,12);
$if(@count==0){
@honorli=['<div style="color: #B3B3B3; font-size: 13px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>'];
@pager=$empty;
}
$return($empty);
}
//新闻详情
$sub GetNewsPagesdetails(){
@query=$query(content,content);
@querylog=$query(catalog,content);
@query[ContentId]=$argv(0);
@AreaId=$shell[AreaId];
@query[AreaId]=@AreaId;
@introduce=@query.map(*,['Status=1 and ContentId={*ContentId}']);
@imgtb=$datatable.loadJson(@
introduce[Groupic]);
$if(@imgtb<>$null){
@imglist=@imgtb.format([#
<li>
<div class="pic">
<a href="javascript:;">
<img src="{*src}" /></a>
</div>
</li>
#]);
}
$else{
@imglist=['<div style="color: #FF0000; font-size: 12px; height: 45px; line-height: 45px; text-align: center;"></div>'];
}
@querylog[CatalogId]=@introduce[CatalogId];
@CatalogName=@querylog.scalar(CatalogName,['CatalogId={*CatalogId}']);
@Time=@introduce[Modified];
@DateTime=$datetime.format(@Time,yyyy-MM-dd);
$retu...