File:news/news-page.htm
Method:query.scalar(columns,*where,*order)
已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。)
数据库执行错误
news/frame.xmls
$sub main(){
$shell.call($get(method));
}


$sub catalog(){
@maps=$map();
@query=$query(catalog,content);
@CatalogId=$argv(0,$null);
$if(!@CatalogId){
@query[TagIds]=[",3,"];
@
CatalogId=@query.scalar(CatalogId,['Status>0 and {*TagIds like}'],['Grade desc,CatalogId asc']);
}
@format=[#<li class="{@On}"><a href="{~news-page/*CatalogId}">{*CatalogName}</a></li>#];
@query[TagIds]=[",3,"];
@tablea=@query.table(*,['Status>0 and {*TagIds like}'],['Grade desc,CatalogId asc']);
@maps[listta]=@tablea.format(@format){
@On=$empty;
$if(@CatalogId==$var[CatalogId]){
@On=on;
}
}
$if(@CatalogId){
@query[CatalogId]=@CatalogId;
@querymap=@query.map(['Pic,Description'],['{*...