[an error occurred while processing this directive] [an error occurred while processing this directive] <% Dim Cp,Tp,Pd,rA,Np,Pp Dim sType,sLoc,wc,wc1 const RecPerPage = 2 wc = "": wc1 = "" Cp = request.form("CurrentPage") sType = cint(0&request.form("seltype")) sLoc = cint(0&request.form("selloc")) if sType <> 0 then wc = " and i.typeid = " & stype wc1 = " where i.typeid = " & stype end if if sLoc <> 0 then wc = wc & " and i.locid = " & sloc if wc1 = "" then wc1 = " where i.locid = " & sloc else wc1 = wc1 & " and i.locid = " & sloc end if set Aji = new Ajinkara Set Pd = New PageDisplay function LoadPage Pd.connect strConn Pd.recPerPage = RecPerPage Pd.CurrentPage = Cp Pd.NavStyle = "page" If request.QueryString("Index") <> "" Then Pd.TopSql = "Select Top " & RecPerPage & " i.*,t.type,l.loc from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid where i.catid = " & Request.QueryString("Index") & wc & " ORDER BY i.id DESC" Pd.MainSql = "Select i.*,t.type,l.loc from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid where i.catid = " & Request.QueryString("Index") & wc & " ORDER BY i.id DESC" Pd.CountSql = "Select count(i.id) from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid where i.catid = " & Request.QueryString("Index") & wc else Pd.TopSql = "Select Top " & RecPerPage & " i.*,t.type,l.loc from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid" & wc1 & " ORDER BY i.id DESC" Pd.MainSql = "Select i.*,t.type,l.loc from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid" & wc1 & " ORDER BY i.id DESC" Pd.CountSql = "Select count(i.id) from (prop_item i left join prop_type t on i.typeid = t.typeid) left join prop_loc l on i.locid = l.locid" & wc1 end if Pd.Load() Np = Pd.NextPage Pp = Pd.PreviousPage End Function LoadPage %>
<% pageheading = "Property Listing"%>| [an error occurred while processing this directive] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||