<%Rf.movenext
loop
Rf.close
End Function %>
<% Function kategori_listele()
sorgum="Select * from sektor order by adi asc"
Rf.Open Sorgum, Baglantim, 1, 3
i=0%>
<%do while not Rf.eof
i=i+1
if rf.eof then exit do %>
<% End Function %>
<% Function Altsektor_listele(skodu)
skodu=PostKontrol(skodu)
sorgum="Select * from altsektor where skodu="&skodu
Rf.Open Sorgum, Baglantim, 1, 3
i=1
%>
<% End Function %>
<% Function Altsektor_adibul(askodu)
askodu=PostKontrol(askodu)
sorgum="Select * from altsektor where askodu="&askodu
Rf.Open Sorgum, Baglantim, 1, 3
i=1
%>
<%= PostKontrol(rf("adi")) %>
<%
Rf.close %>
<% End Function %>
<% Function Altsektoradibul(askodu)
altkodu=PostKontrol(altkodu)
sorgum="Select * from altsektor where askodu="&askodu
Ru.Open Sorgum, Baglantim, 1, 3
%>
<%Altsektoradibul=ru("adi") %>
<%
Ru.close %>
<% End Function %>
<% Function Altsektor_liste(skodu)
skodu=PostKontrol(skodu)
sorgum="Select * from altsektor where skodu="&skodu
Rf.Open Sorgum, Baglantim, 1, 3
i=0
%>
<% End Function %>
<% Function Firma_sayisi(skodu)
skodu=PostKontrol(skodu)
Sorgum="select * from firma where onay=true and skodu="&skodu
Rfs.Open Sorgum, Baglantim, 1, 3
Response.Write rfs.recordcount
Rfs.close
End Function %>
<% Function altfirma_sayisi(askodu)
Sorgum="select * from firma where onay=true and askodu LIKE '%"&askodu&"%'"
Ras.Open Sorgum, Baglantim, 1, 3
Response.Write ras.recordcount
Ras.close
End Function %>
<% Function Firma_listele(skodu,askodu,ara)
skodu=PostKontrol(skodu)
askodu=PostKontrol(askodu)
ara=PostKontrol(ara)
if askodu<>"" then
Sorgum="select * from firma where onay=true and askodu LIKE '%"&askodu&"%'"
else
Sorgum="select * from firma where onay=true and skodu="&skodu
end if
if ara<>"" then
Sorgum="select * from firma where onay=true and adi LIKE '%"&ara&"%'"&" or yetkili LIKE '%"&ara&"%'"&" or aciklama LIKE '%"&ara&"%'"
end if
Rf.Open Sorgum, Baglantim, 1, 3
if Rf.eof or Rf.bof then
Response.Write("
Tel:<%= Rf("telefon") %>
<% if rf("ozel")=true then %>
','','resizable=yes,status=yes,width=800,height=600')">
<% else %>
-<%=cevir(rs("adi"))%>.html">
<% end if %>
Web : <%= Rf("www") %>
<% Rf.movenext
loop
end if
Rf.close
End Function %>
<%Function gununsozu(x)
ay=month(Now)
gun=day(now)
sorgum="Select * from olay where ay="&"'"&ay&"'"&" and gun="&"'"&gun&"'"
Rf.Open Sorgum, Baglantim, 1, 3 %>
<% if x="soz" then %>
<%= rf("soz") %>
<% end if%>
<% if x="olay" then %>
<%= rf("olay1")&" " %>
<%= rf("olay2")&" " %>
<%= rf("olay3")&" " %>
<% end if %>
<% rf.close %>
<% End Function %>
<% Function ozel_listele()
sorgum="select * from firma where ozel=true"
Rf.Open Sorgum, Baglantim, 1, 3
if Rf.eof or Rf.bof then
Response.Write("Kayit Bulunamadi")
else %>
...:: ÖZEL FİRMALAR::..
<% cellcolor="EEEEEE"%>
<% do while not Rf.eof %>
<%=Rf("adi") %>
<%=Rf("adresi") %> <%=rf("sehir") %>
<%=Rf("telefon") %>
<%Rf.movenext
loop
Rf.close
%>
Özel Kayitli Firma : <%= Rf.recordcount %>
<% end if
End Function %>
<% Function arama_listele(deger)
deger=PostKontrol(deger)
sorgum="select * from firma where adi LIKE '%" & deger & "%'"&" or yetkili LIKE '%" & deger & "%'"&" or adresi LIKE '%" & deger & "%'" &" or sehir LIKE '%" & deger & "%'" &" or bilgi LIKE '%" & deger & "%'"
Rf.Open Sorgum, Baglantim, 1, 3
if Rf.eof or Rf.bof then
Response.Write("Kayit Bulunamadi")
else %>
...:: ARAMA SONUÇLARI ::..
<% cellcolor="EEEEEE"%>
<% do while not Rf.eof %>
<%=Rf("adi") %>
<%=Rf("adresi") %> <%=rf("sehir") %>
<%=Rf("telefon") %>
<%Rf.movenext
loop
Rf.close
%>
Bulunan Firma Sayısı : <%= Rf.recordcount %>
<% end if
End Function %>
<% Function sektor_combo()
sorgum="Select * from sektor"
Rf.Open Sorgum, Baglantim, 1, 3 %>
<%
rf.close
End Function %>
<% Function altsektor_combo(skodu)
skodu=PostKontrol(skodu)
sorgum="Select * from altsektor where skodu='"&skodu&"'"
Rf.Open Sorgum, Baglantim, 1, 3 %>
<%
rf.close
End Function %>
<% Function altsektor_sec(sektor)
sektor=PostKontrol(sektor)
sorgum="Select * from altsektor where SKODU='"&sektor&"'"
Rf.Open Sorgum, Baglantim, 1, 3 %>
<% do while not rf.eof %>
"><%= rf("adi") %>
<% rf.movenext
loop
Rf.close %>
<% End Function %>
<% Function menu_yaz()
sorgum="Select * from sayfa where (id<>10 and id<>11) and goster=true"
Rf.Open Sorgum, Baglantim, 1, 3 %>
<% End Function %>
<% Function eczane_yaz()
sorgum="Select * from eczane where gun="&day(now())
Rf.Open Sorgum, Baglantim, 1, 3
if not rf.eof then
do while not rf.eof
Response.Write ""&rf("adi")&" "&rf("telefon")&" "&rf("adres")&" "
rf.movenext
loop
else
Response.Write("Eczaneler Kapali")
end if
Rf.close
End Function %>
<%
Function ilanadi(kod)
kod=PostKontrol(kod)
select case kod
case ""
Response.Write("Ilan Katagorisi Bulunmadi")
case "1"
Response.Write("Eleman Arayanlar")
case "2"
Response.Write("Is Arayanlar")
case "3"
Response.Write("Bilgisayar - Elektronik")
case "4"
Response.Write("Araba - Vasita")
case "5"
Response.Write("Emlak - Kiralik")
case "6"
Response.Write("Emlak - Satilik")
case "10"
Response.Write("Diger")
end select
End Function
Function reklam_goster(id)
id=PostKontrol(id)
sorgum="Select * from reklam where id="&id
Rx.Open Sorgum, Baglantim, 1, 3
bittarihi=cdate(rx("bitis"))
if bittarihi>date() then
if rx("detay")<>"" then
Response.Write rx("detay")
else
Response.Write siteadi
end if
else
response.write("
Bu Reklamın Süresi Dolmuştur. Reklam Ayarlarını Düzenleyiniz.
")
end if
Rx.close
End Function
Function sayfa_goster(id)
id=PostKontrol(id)
sorgum="Select * from sayfa where id="&id
Rx.Open Sorgum, Baglantim, 1, 3
if rx.eof or rx.bof then
Response.Write("
Kayit Bulamadim
")
else
Response.Write rx("detay")
end if
Rx.close
End Function
Function sayfa_baslik(id)
id=PostKontrol(id)
sorgum="Select * from sayfa where id="&id
Rx.Open Sorgum, Baglantim, 1, 3
if rx.eof or rx.bof then
Response.Write("Sayfa Kaldirilmis...")
else
Response.Write rx("adi")
end if
Rx.close
End Function
Function haber_sayisi()
sorgum="Select * from haber where goster=true"
Rx.Open Sorgum, Baglantim, 1, 3
Response.Write rx.recordcount
Rx.close
End Function
Function hesapla_sektor(sektor)
sektro=PostKontrol(sektor)
tablo="firma"
sorgum="Select * from "&tablo&" where Skodu="&sektor&" and onay=true"
Rx.Open Sorgum, Baglantim, 1, 3
Response.Write Rx.recordcount
Rx.close
End Function
Function hesapla_altsektor(altsektor)
altsektor=PostKontrol(altsektor)
tablo="firma"
sorgum="Select * from "&tablo&" where askodu like '%"&altsektor &"%'"&" and onay=true"
Rx.Open Sorgum, Baglantim, 1, 3
Response.Write Rx.recordcount
Rx.close
End Function
Function hesapla_talep(sektor)
sektor=PostKontrol(sektor)
sorgum="Select * from talepler where Skodu="&sektor
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function hesapla_urun(sektor)
sektor=PostKondtrol(sektor)
Set Rx=Server.CreateObject("Adodb.Recordset")
sorgum="Select * from urun where Skodu="&sektor
Rx.Open Sorgum, Baglantim, 1, 3
Response.Write Rx.recordcount
Rx.close
End Function
Function hesapla_talep_alt(kodu)
kodu=PostKontrol(kodu)
tablo="talepler"
sorgum="Select * from "&tablo&" where Altsektor="&kodu
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function ozel_firma()
sorgum="Select * from firma where ozel=true"
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function normal_firma()
sorgum="Select * from firma"
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
%>
<%Function firmabul(Fkodu)
Fkodu=PostKontrol(FKodu)
sorgum="Select * from Firma where Fkodu="&Fkodu
Ru.Open Sorgum, Baglantim, 1, 3
if Ru.eof then
Response.Write("Firma Bulunamadi")
else
Response.Write(ru("Adi"))
end if
ru.close
End Function %>
<%Function firmabultel(Fkodu)
Fkodu=PostKontrol(Fkodu)
sorgum="Select * from Firma where Fkodu="&Fkodu
Rx.Open Sorgum, Baglantim, 1, 3
if Rx.eof then
Response.Write("::")
else
Response.Write(rx("telefon"))
end if
rx.close
End Function %>
<%Function sektorbul(sektor)
sektor=PostKontrol(sektor)
sorgum="Select * from sektor where skodu="&sektor
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf("Adi")
Rf.close
End Function
Function altsektorbul(altsektor)
altsektor=PostKontrol(altsektor)
sorgum="Select * from altsektor where askodu='"&altsektor&"'"
Ru.Open Sorgum, Baglantim, 1, 3
altsektorbul=Ru("Adi")
Ru.close
End Function
Function firma_toplami()
sorgum="Select * from firma "
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function urun_toplami(sektor)
sektor=PostKontrol(sektor)
sorgum="Select * from urun "
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function talep_toplami(sektor)
sektor=PostKontrol(sektor)
sorgum="Select * from talep "
Rf.Open Sorgum, Baglantim, 1, 3
Response.Write Rf.recordcount
Rf.close
End Function
Function say(cookle)
sorgum="Select * from sayac "
Rf.Open Sorgum, Baglantim, 1, 3
if cookle<>"ekle" then
x=rf("cogul")
x=x+1
rf("cogul")=x
Rf.update
Response.Write rf("cogul")
end if
Rf.close
End Function
%>
<%
Function sayfa_numarasi()%>
<%= shf %>
<% onceki=shf-1%>
<%if shf=1 then%>
««
<%else%>
««
<%end if%>
| <%if onceki<1 then%>
«
<%else%>
«
<%end if%>
|
<% for y=1 to sayfa %>
<% x=x+1
if shf=y then
response.write ""&y&" | "
else%>
<%=y%> |
<% end if
if x>18 then
response.write ("
")
x=0
end if
next
sonraki=shf+1
if sonraki>sayfa then
%>
»
<%else%>
»
<%end if%>
|
<%if shf=sayfa then%>
»»
<%else%>
»»
<%end if%>
<% End Function %>
<%function resme_yazi_yaz(resim)
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Path = Server.MapPath(""&resim &"") '{Burasi resimlerimizi depoladigimiz alan Server'daki.}
Jpeg.Open Path
Jpeg.Canvas.Font.Color = &HFF0000 '{Yazinin Font Rengi}
Jpeg.Canvas.Font.Family = "Verdana" '{Yazimizin Türünü belirliyoruz}
Jpeg.Canvas.Font.Bold = TRUE '{Kalin veya normal yazim özelligi}
Jpeg.Canvas.Pen.Color = &H000000 '{Yazi rengi}
Jpeg.Canvas.Pen.Width = 1 '{Yazi Kalinlik}
jpeg.Canvas.Font.Size = 20 '{Yazinin büyüklügü}
Jpeg.Canvas.Brush.Solid = False '{Firça Baski Sekli}
Jpeg.Canvas.PrintText 1, 180, ""&siteadi&""
Jpeg.Save Server.MapPath(""&resim &"") '{Resimler klasörümüzün altina .jpg uzantili resmimizin adini yazdiriyoruz.}
end function%>
<%function yazar_bul(yid)
set yazaRbul =veri.execute("select * from yazar where durum<>1 and id="&yid)
if yazarbul.eof then
response.write("Yazar Bulunamadi.")
else
response.write(yazarbul("ad_soyad"))
end if
yazarbul.close
end function%>
<%
Function bcevir(metin)
metin = Replace(metin, "a", "A")
metin = Replace(metin, "b", "B")
metin = Replace(metin, "c", "C")
metin = Replace(metin, "ç", "Ç")
metin = Replace(metin, "d", "D")
metin = Replace(metin, "e", "E")
metin = Replace(metin, "f", "F")
metin = Replace(metin, "g", "G")
metin = Replace(metin, "g", "G")
metin = Replace(metin, "h", "H")
metin = Replace(metin, "i", "I")
metin = Replace(metin, "i", "I")
metin = Replace(metin, "j", "K")
metin = Replace(metin, "k", "K")
metin = Replace(metin, "l", "L")
metin = Replace(metin, "m", "M")
metin = Replace(metin, "n", "N")
metin = Replace(metin, "o", "O")
metin = Replace(metin, "ö", "Ö")
metin = Replace(metin, "p", "P")
metin = Replace(metin, "r", "R")
metin = Replace(metin, "s", "S")
metin = Replace(metin, "s", "S")
metin = Replace(metin, "t", "T")
metin = Replace(metin, "u", "U")
metin = Replace(metin, "ü", "Ü")
metin = Replace(metin, "v", "V")
metin = Replace(metin, "w", "W")
metin = Replace(metin, "x", "X")
metin = Replace(metin, "y", "Y")
metin = Replace(metin, "z", "Z")
bcevir = metin
End Function
Function kcevir(kelime)
kelime = Replace(kelime, "A", "a")
kelime = Replace(kelime, "B", "b")
kelime = Replace(kelime, "C", "c")
kelime = Replace(kelime, "Ç", "ç")
kelime = Replace(kelime, "D", "d")
kelime = Replace(kelime, "E", "e")
kelime = Replace(kelime, "F", "f")
kelime = Replace(kelime, "G", "g")
kelime = Replace(kelime, "G", "g")
kelime = Replace(kelime, "H", "h")
kelime = Replace(kelime, "I", "i")
kelime = Replace(kelime, "I", "i")
kelime = Replace(kelime, "J", "j")
kelime = Replace(kelime, "K", "k")
kelime = Replace(kelime, "L", "l")
kelime = Replace(kelime, "M", "m")
kelime = Replace(kelime, "N", "n")
kelime = Replace(kelime, "O", "o")
kelime = Replace(kelime, "Ö", "ö")
kelime = Replace(kelime, "P", "p")
kelime = Replace(kelime, "R", "r")
kelime = Replace(kelime, "S", "s")
kelime = Replace(kelime, "S", "s")
kelime = Replace(kelime, "T", "t")
kelime = Replace(kelime, "U", "u")
kelime = Replace(kelime, "Ü", "ü")
kelime = Replace(kelime, "V", "v")
kelime = Replace(kelime, "W", "w")
kelime = Replace(kelime, "X", "x")
kelime = Replace(kelime, "Y", "y")
kelime = Replace(kelime, "Z", "z")
Kcevir = kelime
End Function%>