File:newPage.htm
Method:map.get(key,default)
pageMap??get
類型不正確
xmls/new.xmls
...font-size: 15px;height: 45px;line-height: 45px;text-align: center;">--沒有找到任何數據--</div>"];
}
@map=$map();
@map[list]=@Pagelist;
@map[pages]=$number.ceiling((@count/3));
@map[count]=@count;
$write(@map.toJson());
}
//書院活動詳情
$sub getGoodsview(){
@query=$query(content,content);
@querycag=$query(catalog,content);
@query[ContentId]=$argv(0);
@pageMap=@query.map(['ContentId,CatalogId,Subtitle,Title,Body,Modified,Pics,CreateDate'],['ContentId={*ContentId}']);
@CreateDate=$datetime.format(@pageMap[CreateDate],yyyy-MM-dd);
@format=[#<li><div class="dem_pic defo_img2"><img class="hhh" src="{*Src}"></div>
<div class="demo_ig">
<img src="../images/big.png" alt="">
</div></li>#];
@ImageList=@pageMap[Pics];
@Images=$empty;
$if(@ImageList){
@ImageJson=$datatable.loadJson(@ImageList);
$if(@ImageJson<>$null){
@Images=@ImageJson.format(@format);
@pageMap[Pics]=@Images;
}
}
$if(@pageMap==$null){
@pageMap=$map();
}
@querycag[CatalogId]=@pageMap[CatalogId];
@cagMap=@querycag....