func printSection(evn) fvar(old,s) old = block.select(block.reggen()) block.lvloff() event(evn:html) s = block.astext() block.delete(block.select(old)) println('echo ', s, ';') end func beginForm(id, up, attr) fvar(p) _SCOPE_ = code(id) p = str(_SITE_) if(linked(onPages)) p &= "&start=\".$start.\"" end if(str(up) != "") p &= "&" & up end println('echo ', "
";') if(linked(onInsert)) beginForm(_id_ + "ins", UserParams, "enctype=\\\"" & FormType & "\\\"") printSection("onInsert") println('echo "";') end if(linked(onFooter)) printSection("onFooter") end if(isndef(PageCount)) event(onPages, '$start'@int & PageCount) end include("dm_tail") end