File:g-festschrift.htm
Method:query.scalar(columns,*where,*order)
'WHERE' 附近有语法错误。 select top 1 MemorialId FROM moudieinfo WHERE
数据库执行错误
xmls/mudi.xmls
...urn(@content);
}


//
$sub liuyan(){
@format=[#
<div class="surnam_cli clearfix">
<div class="mes_txtimg">
<img src="{@pic}">
</div>
<div class="mes_txtcon">
<div class="surc_top">
<a href="javascript:void(0)" class="surc_tith">签名:{*Username}</a>
<p class="surc_tim"> {#date(CreateDate,yyyy-MM-dd)}</p>
</div>
<div class="surc_tco">
<p>
{*Body}
</p>
</div>
</div>
</div>
#];
@querymsg=$query(memomsg,mourn);
@querydie=$query(dieinfo,mourn);
@querydie[DieInfoId]=$argv(0);
@
MemorialId=@querydie.scalar(MemorialId,['{*DieInfoId =}']);
@querymsg[MemorialId]=@MemorialId;
@table=@querymsg.pager(*,['{*MemorialId =}'],['MemoMsgId desc'],7,$get(page,1));
@content=@table.format(@format){
$if($var[Pic]){
@pic=$var[Pic];
}
$else{
@pic=../images/2.gif;
}
}
@pager=$helper.pager([#
{?option}<a href="{*link}" >{*text}</a>
{?selected}<a href="{*link}" class="on">{*text}</a>
{?pager}
<a href="{*prev}" class="prev">上一页</a>
{*list}
<a href="{*next}" class="next">下一页...