|
|
<% if pagename="gulenelma" then %>
 |
|
<%
sql=" SELECT * FROM TV WHERE ID IN (SELECT MAX(ID) FROM TV)"
objRS.open sql,objCN,1,3
%>
<% objRS.close %>
|
 |
|
<% else %>
<%end if%>
<%%>
<%%>
<%%>
<%%>
|
 |
<%
sql=" SELECT * FROM AGENCIES WHERE ISPUBLISH=1 ORDER BY PRIORITY DESC, NAME "
objRS.open sql,objCN,1,3
if not objRS.eof then
%>
<%
maxPageCap=10
if trim(request.querystring("page"))="" then
curpage=1
else
curPage=cint(trim(request.querystring("page")))
end if
recCo=objRs.recordcount
x=(curpage-1)*maxPageCap
if x>recCo then
response.write "hata"
response.end
end if
objRs.move x
co=0
co1=(curPage-1)*maxPageCap
%>
<% if ((curPage>1)or((curPage*maxPageCap)
<%else%>
<%end if%>
<%
while not objrs.eof and co
<%
co=co+1
co1=co1+1
objRS.movenext
wend
end if
%>
<% if ((curPage>1)or((curPage*maxPageCap)
<%else%>
<%end if%>
|
|
|
 |