% call doLoadLinks() call doShowLinks() dim tmpTableData sub doLoadLinks() dim tmpSQL,tmpSort:tmpSort=ops.request.getQuery("sort") if not opsCheck.isName(tmpSort) then tmpSort="" tmpSQL="select * from db_sys_links where l_sort='"&tmpSort&"' and l_hidden=1 order by l_order desc,l_id asc" set tmpTableData=ops.db.getQueryTable(tmpSQL) end sub sub doShowLinks() dim tmpPic,tmpstr,tmpImg,tmpLink,tmpName,tmpSort,rr,tmpCol tmpCol=ops.request.getQueryInt("col") if int(tmpCol)<1 then tmpCol=5 if not isTable(tmpTableData) then exit sub 'debug opsTest.toTableString(tmpTableData,"tmpTableData") 'echo "document.write (""
| "&tmpstr&" | "");"&vbcrlf 'if rr mod tmpCol=0 then echo "document.write (""