File:cn/news2.html
Method:datetime(value)
~value:@
类型不正确
cn/xmls/news.xmls
...}</a>

{?selected}
<a href="{*link}">{*text}</a>

{?pager}
<a href="{*prev}">
上一页
</a>

{*list}

<a href="{*next}">下一页</a>
#],5,@count,$http.get(page,1),page,3);

@content=@listnews.format(@format);
$if(@count==0){
@content=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">对不起,当前没有数据!</div>'];
@Pager=$empty;
}
$return($empty);
}


//查询内容详情
$sub getNewShow(){
@query=$query(content,content);
@rows=@query.row($http.get(cid));
@
time=$datetime(@rows[Ftime]).toString(yyyy-MM-dd);
$if(@rows==$null){
@rows=$map();
@rows[Title]=无数据;
}
$return($empty);
}

//文献
$sub reflist(cataid){
@format=[#
<li>
<a href="{~References.html&cid=*ContentId}"> {*Title}</a>
<span class="date">[{#toDatetime(Modified,yyyy-MM-dd)}]</span>
</li>
#];
@querynew=$query(content,content);
//语言
@call=$call(xmls/language.xmls);
@call.load();
@querynew[AreaId]=$shell[AreaId];

@querynew[CatalogId]=@cataid;
@listnews=@querynew.dataPag...