|
|
<% 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%>
<%%>
<%%>
<%%>
<%%>
|
 |
|
<%
if (request.form("keyword")<>"" or trim(request.querystring("page"))<>"" ) and len(trim(request("keyword")))>1 then
if request.form("keyword")<>"" then
key=replace(request.form("keyword"),"'","''")
area=request.form("select")
else
key=trim(request.querystring("keyword"))
area=trim(request.querystring("area"))
end if
found_item=0
if area="TV" then
AdTypeNo="2"
AdTypePopUpSize="300,220"
end if
if area="PRESS" then
AdTypeNo=""
AdTypePopUpSize="650,450"
end if
if area="ANTIADS" then
AdTypeNo="3"
AdTypePopUpSize="650,450"
end if
sql="SELECT * FROM " & area & " WHERE TITLE LIKE '%" & key & "%'"
objRs.open sql,objCn,1,3
if not objRS.eof then
found_item=1
%>
<%
maxPageCap=6
counter=3
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
%>
<%end if%><%end if%>
|
<% if len(key)< 2 then %>
İstediğiniz kategoriyi seçip
istediğiniz anahtar sözcüğü yazarak arama yapabilirsiniz.
Anahtar kelimeniz en az 2 karakterden oluşmalıdır.
Kolay gelsin.
<% end if%>
<% if found_item=0 then %>
Üzgünüz!
Aradığınız kritere uyan bir sonuç bulunamamıştır !
<% end if%>
|
|
|
 |