CloudBT CloudBT
  • 15-10-2010, 11:13:37
    #10
    Üyeliği durduruldu
    resimler.asp (resimler ve kategoriler burda listeleniyor.

    <%@ LANGUAGE ="VBScript.Encode" CODEPAGE="1254" %>
    <!-- #include file="baglanti.asp" -->
    <!-- #include file="_inc/ayar.asp" -->
    <html>
    <head>
    <!-- #include file="_inc/head.asp" -->
    <title>Resimler | <%=siteadi%></title>
    </head>
    <body background="tema/<%=tema%>/ana-arka-plan.PNG">
    <div align="center">
    <!-- #include file="gorunum/ust-koseler.asp" -->
    <table background="tema/<%=tema%>/orta-arka-plan.PNG" cellpadding="0" cellspacing="0" class="cizgi" border="0" width="950">
    <!-- #include file="tablolar/logo-menu.asp" -->
    <tr>
    <td class="ustcizgi" width="800" align="center" valign="top" style="padding: 2px">
    <table border="0" width="100%" height="563">
    <tr>
    <td width="53%" align="left" valign="top">
    <%
    Set rec = Server.CreateObjecT("ADODB.RecordSet")
    rSQL = "Select * FROM resim ORDER BY id DESC"
    rec.open rSQL,Connection,3,3
    for i=1 to 1
    if (not rec.eof) then
    %>
    <table class="cizgi" cellpadding="0" cellspacing="0" background="tema/<%=tema%>/blok-ana-arka.PNG" border="0" width="100%">
    <tr>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="16" align="center" valign="middle"><font class="basliklar"><b>»</b></font></td>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="409" align="left" valign="middle"><font class="basliklar"><b><%=server.htmlencode(rec("isi m"))%></b></font></td>
    </tr>
    <tr>
    <td width="100%" colspan="2" align="left" valign="top">
    <img border="0" src="<%=rec("resim")%>" width="486" height="347">
    </td>
    </tr>
    </table>
    <%
    rec.movenext
    end if
    next
    %>
    </td>
    <td width="45%" align="left" valign="top">
    <table class="cizgi" cellpadding="0" cellspacing="0" background="tema/<%=tema%>/blok-ana-arka.PNG" border="0" width="450">
    <tr>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="12" align="center" valign="middle"><font class="basliklar"><b>»</b></font></td>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="184" align="left" valign="middle"><font class="basliklar"><b>Kategoriler</b></font></td>
    </tr>
    <tr>
    <td width="100%" colspan="2" align="left" valign="top">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
    <%
    Set rec = Server.CreateObjecT("ADODB.RecordSet")
    rSQL = "select * from r_kategori order by isim asc"
    rec.open rSQL,Connection,3,3
    ya=1
    al=1
    for al=1 to 48
    if rec.eof then exit for
    %>
    <td height="50%" align="left" valign="top">
    <%
    Set rec1 = Server.CreateObjecT("ADODB.RecordSet")
    rSQL = "Select * FROM resim where onay=1 and kategori=" & rec("ID") & ""
    rec1.open rSQL,Connection,1,3
    %>
    <table border="0" width="100%">
    <tr>
    <td width="15" align="center" valign="middle">
    <img border="0" src="img/menu/vidsamp.gif" width="16" height="16"></td>
    <td width="98%" align="left" valign="middle"><a href="resim_k.asp?id=<%=rec("id")%>"><%=rec("isim" )%></a>&nbsp; (<%=rec1.recordcount%>)</td>
    </tr>
    </table>
    </td>
    <%
    rec.movenext
    ya=ya+1
    if ya=3 then
    ya=1
    %>
    </tr>
    <tr>
    <%
    end if
    next
    rec.close
    %>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <br>
    </td>
    </tr>
    <tr>
    <td colspan="2" height="275" align="left" valign="top">
    <table border="0" width="100%">
    <tr>
    <%
    Set rec = Server.CreateObjecT("ADODB.RecordSet")
    rSQL = "select * from resim where onay=1 order by id desc"
    rec.open rSQL,Connection,3,3
    ya=1
    al=1
    for al=1 to 10
    if rec.eof then exit for
    %>
    <td width="110" height="100" align="center">
    <table class="cizgi" cellpadding="0" cellspacing="0" background="tema/<%=tema%>/blok-ana-arka.PNG" border="0" width="141">
    <tr>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="16" align="center" valign="middle"><font class="basliklar"><b>»</b></font></td>
    <td background="tema/<%=tema%>/blok-arka.PNG" class="altcizgi" height="20" width="144" align="left" valign="middle"><font class="basliklar"><b>
    <a target="_blank" href="resimgoster.asp?id=<%=rec("id")%>"><%=left(s erver.htmlencode(rec("isim")),15)%>...</a></b></font></td>
    </tr>
    <tr>
    <td width="100%" colspan="2" align="left" valign="top">
    <a target="_blank" href="resimgoster.asp?id=<%=rec("id")%>">
    <img border="0" src="<%=rec("resim")%>" width="141" height="92"></a>
    </td>
    </tr>
    </table>
    </td>
    <%
    rec.movenext
    ya=ya+1
    if ya=6 then
    ya=1
    %>
    </tr>
    <tr>
    <%
    end if
    next
    rec.close
    %>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <!-- #include file="tablolar/copyright.asp" -->
    </table>
    <!-- #include file="gorunum/alt-koseler.asp" -->
    </div>
    </body>
    </html>


    resimgoster.asp (herhangi bir resme tıkladığımızda bu sayfada açıyor)

    <%@ LANGUAGE ="VBScript.Encode" CODEPAGE="1254" %>
    <%on error resume next%>
    <!-- #include file="baglanti.asp" -->
    <!-- #include file="_inc/ayar.asp" -->
    <html>
    <head>
    <!-- #include file="_inc/head.asp" -->
    <title>Resimler | <%=siteadi%></title>
    </head>
    <body background="tema/<%=tema%>/ana-arka-plan.PNG">
    <%
    if Request.ServerVariables("QUERY_STRING") = "" then
    response.redirect "resimler.asp"
    response.end
    end if
    %>
    <div align="center">
    <!-- #include file="gorunum/ust-koseler.asp" -->
    <table background="tema/<%=tema%>/orta-arka-plan.PNG" cellpadding="0" cellspacing="0" class="cizgi" border="0" width="596">
    <tr>
    <td class="ustcizgi" width="592" style="padding: 2px" align="center" valign="top">
    <%
    if (not Isnumeric(request.QueryString("ID"))) then
    else
    Set rec = Server.CreateObjecT("ADODB.RecordSet")
    rSQL = "Select * FROM resim WHERE onay=1 and ID=" & request.QueryString("ID")
    rec.open rSQL,Connection,3,3
    rec("hit")=rec("hit")+1
    rec.update
    %>
    <table class="cizgi" cellpadding="0" cellspacing="0" background="tema/<%=tema%>/blok-ana-arka.PNG" border="0" width="100%">
    <tr>
    <td width="100%" align="center" valign="top" style="padding: 3px">
    <table width="100%" border="0">
    <tr>
    <td width="100%" height="100">
    <table border="0" width="100%">
    <tr><td height="90" width="701">
    <img border="0" src="<%=rec("resim")%>" width="593" height="468">
    </td></tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>

    </tr>
    </table>
    <%end if%>
    </td>
    </tr>
    </table>
    <!-- #include file="gorunum/alt-koseler.asp" -->
    </div>
    </body>
    </html>


    Sizden ricamız fotoğrafın sağ ına ileri yani sonraki butonu ekleyerek diger resme geçebilmeyi sağlamak.
    Yardımlar için şimdiden teşekkürler.
  • 15-10-2010, 14:11:27
    #11
    Üyeliği durduruldu
    Kaç yıldır ilk kez bi şey sordum cevap mı yok bilenmi yok anlamadım.
    Biri bi ÖHÖ desin yav
  • 15-10-2010, 18:39:24
    #12
    hocam uyarsa şunu öneririm:

    http://www.lokeshdhakar.com/projects/lightbox2/