devi calcolando in base alla query string. se puņ aiutarti, questo č il modo in cui viene fatto in questo forum: total := @UrlQueryString("ExpandSection"); total := @If(total="" | total = "undefined"; @If( @UrlQueryString("RestrictToCategory")=""; @Middle(@DbColumn("Notes":"NoCache" ; "" ; "(LookupCategories)"; 2);"<MAINCOUNT>";"</"); @Middle(@DbLookup("Notes":"NoCache" ; "" ; "(LookupCategories)"; @UrlQueryString("RestrictToCategory") ; "XML");"<MAINCOUNT>";"</")); total); total:= @If(@IsError(Total) ; @Return("") ; @Sum(@TextToNumber(total)) ); perpage := @UrlQueryString("Count"); perpage:=@If(perpage=""; 30 ; @TextToNumber(perpage)); number_of_pages:=@Integer(total/perpage)+1; number_of_pages:=@If(@IsError(number_of_pages) ; @Return(total) ; number_of_pages); currentstart:=@UrlQueryString("Start"); currentstart:=@If(currentstart=""; 1 ; @TextToNumber(currentstart)); current_page:=@Integer((currentstart)/perpage)+1; current_page:=@Integer((currentstart+current_page)/perpage)+1;
-- il nuovo evento dominopoin: ddive.dominopoint.it
|