Şimdi Ara

10 gundur yapamadım.bu asp kodunu.

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
3
Cevap
0
Favori
260
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • bu sayfa urulerı sergıleyen sayfa.ve ürünleri alt alta sergılıyor.ben bunu yan yana sergılemek istiyorum.yani yan yana 2 tane olacak şekilde sıralamak istiyorum ama olmuyor.

    ne yaptımsa da olmadı



    <%
    order = killChars(request.querystring("order"))
    pp = killChars(request.querystring("pp"))

    if len(pp) > 0 AND IsNumeric(pp) then
    pp = cint(pp)
    else
    pp = 1
    end if

    set rsProducts = server.createobject("ADODB.recordset")
    rsProducts.cursortype = 3

    strSQL = "SELECT products.product_id, product_description.product_name, manufacturer.manufacturer_id, manufacturer.manufacturer_name, products.newPrice, products.product_image "
    strSQL = strSQL & "FROM (product_description INNER JOIN products ON product_description.product_id = products.product_id) INNER JOIN manufacturer ON products.product_manufacturer_id = manufacturer.manufacturer_id WHERE product_cat_id = " & arrCats(ubound(arrCats)) & " AND product_lang_ID = " & session("language_ID")
    select case left(order,1)
    case "1":
    strOrderBy = " ORDER BY product_name"
    if right(order,1) = "d" then
    OppOrder1 = "a"
    Order1 = "-"
    strOrderBy = strOrderBy & " DESC;"
    else
    OppOrder1 = "d"
    Order1 = "+"
    strOrderBy = strOrderBy & " ASC;"
    end if
    case "2":
    strOrderBy = " ORDER BY manufacturer_name"
    if right(order,1) = "d" then
    OppOrder2 = "a"
    Order2 = "-"
    strOrderBy = strOrderBy & " DESC;"
    else
    OppOrder2 = "d"
    Order2 = "+"
    strOrderBy = strOrderBy & " ASC;"
    end if
    case "3":
    strOrderBy = " ORDER BY newPrice"
    if right(order,1) = "d" then
    OppOrder3 = "a"
    Order3 = "-"
    strOrderBy = strOrderBy & " DESC;"
    else
    OppOrder3 = "d"
    Order3 = "+"
    strOrderBy = strOrderBy & " ASC;"
    end if
    case else
    Order1 = ""
    Order2 = ""
    Order3 = ""
    end select

    strSQL = strSQL & strOrderBy

    rsProducts.open strSQL, adoCon

    TotalRecords = rsProducts.recordcount
    rsProducts.pagesize = strProductsPerPage
    pages = rsProducts.pagecount

    FirstRecord = (pp * strProductsPerPage) - (strProductsPerPage - 1)

    if not rsProducts.eof then
    rsProducts.absolutepage = pp
    %>
    <table width="394" border="0" cellspacing="0" cellpadding="0" class="productListing" height="185">
    <tr>
    <td width="323" class="productListing-heading" height="17">as</td>
    <td width="9" class="productListing-heading" height="17"> <a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url=?mod=cat&parent_id=<%=parent_id%>&cat_id=<%=cat_id%>&order=2<%=OppOrder2%>&pp=<%=pp%>" class="productListing-heading" data-href="?mod=cat&parent_id=<%=parent_id%>&cat_id=<%=cat_id%>&order=2<%=OppOrder2%>&pp=<%=pp%>" class="productListing-heading"></a></td>
    <td width="5" class="productListing-heading" height="17"> <a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url=?mod=cat&parent_id=<%=parent_id%>&cat_id=<%=cat_id%>&order=3<%=OppOrder3%>&pp=<%=pp%>" class="productListing-heading" data-href="?mod=cat&parent_id=<%=parent_id%>&cat_id=<%=cat_id%>&order=3<%=OppOrder3%>&pp=<%=pp%>" class="productListing-heading"></a></td>
    </tr>
    <%
    even = "even"
    LastRecord = FirstRecord - 1
    for all_prod_looper = 1 to strProductsPerPage
    if rsProducts.eof then exit for
    LastRecord = LastRecord + 1
    if even = "even" then
    even = "odd"
    else
    even = "even"
    end if
    product_image = ""
    product_image = rsProducts("product_image")
    if instr(product_image, ";") > 0 then
    product_image = left(product_image, instr(product_image, ";") - 1)
    end if

    if prod_showtype = "list" then
    thumb = "<img src=""images/foto.gif"" width=""300"" alt=""" & rsProducts("product_name") & """ align=""absmiddle"">"
    else
    thumb = "<img src=""images/products/" & product_image & """ width=""300"" height=""166"" alt=""" & rsProducts("product_name") & """ align=""absmiddle"">"
    end if
    productPrice = csng(replace(rsProducts("newPrice"), ".", strServerComma))
    %>
    <tr class="productListing-<%=even%>">
    <td class="productListing-data" width="323" height="168">
    <% if len(product_image) > 0 then %>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url=javascript:;" onmouseover="doTooltip(event,'images/products/<%=product_image%>', '')" onmouseout="hideTip()" onclick="PopImage('product','','0');" data-href="javascript:;" onmouseover="doTooltip(event,'images/products/<%=product_image%>', '')" onmouseout="hideTip()" onclick="PopImage('product','','0');"><%=thumb%></a>
    <% else %>
     
    <% end if %>
    </td>
    <td class="productListing-data" width="9" height="168"> </td>
    <td class="productListing-data" width="5" height="168"> </td>
    </tr>
    </table>
    <div align="left">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="322" height="25" id="AutoNumber1">
    <tr>
    <td width="322" height="25">as<%=rsProducts("product_name")%></td>
    </tr>
    </table>
    </div>
    <div align="left">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="322" height="25" id="AutoNumber2">
    <tr>
    <td width="322" height="25"><%=rsProducts("manufacturer_name")%> </td>
    </tr>
    </table>
    </div>
    <div align="left">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="322" height="17" id="AutoNumber3">
    <tr>
    <td width="322" height="17"><%=strCurrency%> <%=RoundNumber(productPrice)%>/td>
    </tr>
    </table>
    </div>
    <%
    rsProducts.movenext
    next
    %>

    <p> </p>
    <table width="64%" border="0" cellspacing="0" cellpadding="0" height="104">
    <tr>
    <td width="50%" height="104">
    <%=strProduct%> <b><%=FirstRecord%></b> <%=strTo%> <b><%=LastRecord%></b> ( <%=strOf%> <b><%=TotalRecords%></b> <%=strProducts%> )
    </td>
    <td width="50%" align="right" height="104">
    <%=strPage%>:
    <%
    if pages = 1 then
    response.write("<b>1</b> ")
    else
    if pp > 1 then
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&cat_id=" & getLink(arrCats(ubound(arrCats))) & "&pp=" & pp - 1 & """ data-href=""?mod=cat&cat_id=" & getLink(arrCats(ubound(arrCats))) & "&pp=" & pp - 1 & """>[<<" & strPrevious & "]</a> ")
    if pp - 1 > 3 then
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=1"" data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=1"">1</a> ")
    response.write("... ")
    for x = pp - 2 to pp - 1
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """>" & x & "</a> ")
    next
    else
    for x = 1 to pp - 1
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """>" & x & "</a> ")
    next
    end if
    end if
    response.write("<b>" & pp & "</b> ")
    if pages > pp then
    if pages - pp > 3 then
    for x = pp + 1 to pp + 2
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """>" & x & "</a> ")
    next
    response.write("... ")
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & pages & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & pages & """>" & pages & "</a> ")
    else
    for x = pp + 1 to pages
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & x & """>" & x & "</a> ")
    next
    end if
    response.write("<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=21328876&url="?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & (pp + 1) & """ data-href=""?mod=cat&parent_id=" & parent_id & "&cat_id=" & cat_id & "&pp=" & (pp + 1) & """>[" & strNext & ">>]</a> ")
    end if
    end if
    %>
    </td>
    </tr>
    </table>
    <% else %>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="productListing">
    <tr>
    <td class="productListing-data"><%=strNoProductsInCategory%></td>
    </tr>
    </table>
    <% end if %>
    <%
    rsProducts.close
    set rsProducts = nothing
    %>







  • <style>
    #resimler {
    width:700px;
    font-size:11px; font-family:Arial, Helvetica, sans-serif;
    color:#333;
    text-align:center;
    list-style:none;
    margin:0px;
    }
    #resimler li {
    list-style:none;
    margin:20 0 0 20;
    width:100px;
    height:77px;
    float:left;
    }
    #resimler li .resim {
    text-align:center;
    width:100%;
    }
    #resimler li .resim IMG {
    cursor:ne-resize;
    border:1px solid #f0f0f0;
    }
    #resimler li .baslik {
    font-size:11px;
    font-family:Arial, Helvetica, sans-serif;
    padding:0px;
    margin:0px;
    }

    </style>

    <div>
    <ul id="resimler">
    <!--
    <%
    resimSQL = "Select * From resimler"
    Set resim = baglanti.execute(resimSQL)
    while not resim.eof
    %>
    <li>
    <label class="resim"><img src="<%=resim("resim")%>" height="77" width="100" /></label>
    <label class="baslik"><%=resim("isim")%></label>
    </li>
    <%
    resim.movenext:wend
    %>
    -->


    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>

    <li>
    <label class="resim"><img src="ornek.jpg" height="77" width="100" /></label>
    <label class="baslik">Resim Açıklama</label>
    </li>


    </ul>
    </div>




  • sağolasın kardeş.inan çok iyiliğe geçti.
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.