<% Sayfa=Request.QueryString("Sayfa") %> <% ID = Request.QueryString("Detay") IF Not IsNumeric(Request.QueryString("Detay")) THEN Response.Redirect("sayfa.asp?Sayfa=Hata" ) response.end END IF Detay=ID %> <% KAD = Request.QueryString("Firma") IF Not IsNumeric(Request.QueryString("Firma")) THEN Response.Redirect("sayfa.asp?Sayfa=Hata" ) response.end END IF Firma=KAD %> <% Function KarakterTemizle(Veri) KarakterTemizle = Replace(Veri, "'", "''") KarakterTemizle = Replace(Veri, "<", "<") KarakterTemizle = Replace(Veri, ">", ">") Veri = KarakterTemizle End Function %> <% ID = KarakterTemizle(Request.QueryString ("Detay")) KAD = KarakterTemizle(Request.QueryString ("Firma")) Set baglanti = Server.CreateObject("ADODB.Connection") baglanti.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("veri/At486Las623_.mdb") set ty1 = Server.CreateObject("ADODB.RecordSet") set ty2 = Server.CreateObject("ADODB.RecordSet") set ty3 = Server.CreateObject("ADODB.RecordSet") %> ATLAS Bağımsız Denetim Yeminli Mali Müşavirlik A.Ş.
<% if Sayfa="Sonuc" then %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.ID="&ID&" ", baglanti, 1, 3 %>
  • <% If Not IsNull (ty1(2)) Then %> <% Else %> <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
    <% End If %>

    <%=ty1(5)%>

    <%=ty1(6)%>

    <%=ty1(7)%>

<% ty1.Close %> <% End If %> <% if Sayfa="Hata" then %>

Kayıt Bulunamadı

<% End If %> <% if Sayfa="" or Sayfa="Kurumsal" then %> <% If KAD="" then %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori,C.kategori from sayfa A, bolumler B,bolumalt C where A.KAD=C.KAD and A.KAT=B.KAT and A.KAD=1 ", baglanti, 1, 3 %> <% Else %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori,C.kategori from sayfa A, bolumler B,bolumalt C where A.KAD=C.KAD and A.KAT=B.KAT and A.KAD="&KAD&" ", baglanti, 1, 3 %> <% End If %> <% If ty1.eof then %>

Kayıt Bulunamadı

<% Else %>

    <%=ty1(9)%>

  • <% If Not IsNull (ty1(2)) Then %> <% Else %> <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
    <% End If %>
<% End If %> <% ty1.Close %> <% End If %> <% If Sayfa="Mevzuat" then %> <% If ID="" Then %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.onay=yes and A.KAT=B.KAT and A.KAT=4 Order by A.tarih DESC, A.ID DESC", baglanti, 1, 3 Toplam = ty1.RecordCount If Toplam = 0 Then intSayfaSayisi = 0 %> <% else %>
    <% intGecerliSayfa = Request.Querystring("sayfala") If intGecerliSayfa = "" OR IsNumeric(intGecerliSayfa) = False Then intGecerliSayfa = 1 ty1.PageSize = 20 intSayfaSayisi= ty1.PageCount ty1.AbsolutePage =intGecerliSayfa For m = 1 to 20 If ty1.Eof Then Exit For %>
  • <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
  • <% ty1.Movenext:Next End If %>
<% ty1.Close %> <% Else %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.ID="&ID&" ", baglanti, 1, 3 %> <% If ty1.eof Then %>

    Kayıt Bulunamadı..

<% Else %>
  • <% If Not IsNull (ty1(2)) Then %> <% Else %> <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
    <% End If %>

    <%=ty1(5)%>

    <%=ty1(6)%>

    <%=ty1(7)%>

  • Mevzuatların Tümü
<% End If %> <% ty1.Close %><% End If %><% End If %> <% If Sayfa="Guncel" then %>
<% End If %> <% If Sayfa="EskiGuncel" then %> <% If ID="" Then %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.onay=yes and A.KAT=B.KAT and A.KAT=3 Order by A.tarih DESC, A.ID DESC", baglanti, 1, 3 Toplam = ty1.RecordCount If Toplam = 0 Then intSayfaSayisi = 0 %> <% else %>
    <% intGecerliSayfa = Request.Querystring("sayfala") If intGecerliSayfa = "" OR IsNumeric(intGecerliSayfa) = False Then intGecerliSayfa = 1 ty1.PageSize = 20 intSayfaSayisi= ty1.PageCount ty1.AbsolutePage =intGecerliSayfa For m = 1 to 20 If ty1.Eof Then Exit For %>
  • <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
  • <% ty1.Movenext:Next End If %>
<% ty1.Close %> <% Else %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.ID="&ID&" ", baglanti, 1, 3 %>
  • <% If Not IsNull (ty1(2)) Then %> <% Else %> <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
    <% End If %>

    <%=ty1(5)%>

    <%=ty1(6)%>

    <%=ty1(7)%>

  • Güncel Bilgilerin Tümü
<% ty1.Close %><% End If %> <% End If %> <% If Sayfa="Haber" then %> <% If ID="" Then %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.onay=yes and A.KAT=B.KAT and A.KAT=5 Order by A.tarih DESC, A.ID DESC", baglanti, 1, 3 Toplam = ty1.RecordCount If Toplam = 0 Then intSayfaSayisi = 0 %> <% else %>
    <% intGecerliSayfa = Request.Querystring("sayfala") If intGecerliSayfa = "" OR IsNumeric(intGecerliSayfa) = False Then intGecerliSayfa = 1 ty1.PageSize = 20 intSayfaSayisi= ty1.PageCount ty1.AbsolutePage =intGecerliSayfa For m = 1 to 20 If ty1.Eof Then Exit For %>
  • <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
  • <% ty1.Movenext:Next End If %>
<% ty1.Close %> <% Else %> <% ty1.open "Select A.ID,A.resim,A.video,A.tarih,A.baslik,A.kisa,A.kisa1,A.detay,B.kategori from sayfa A, bolumler B where A.ID="&ID&" ", baglanti, 1, 3 %>
  • <% If Not IsNull (ty1(2)) Then %> <% Else %> <% If Not IsNull (ty1(1)) Then %> <% Else %> <% End If %>
    <% End If %>

    <%=ty1(5)%>

    <%=ty1(6)%>

    <%=ty1(7)%>

  • Haberlerin Tümü
<% ty1.Close %> <% End If %> <% End If %>
<% baglanti.Close Set baglanti = Nothing %>