asp ürün sırlama yardım - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Server Side Programlama > ASP
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

ASP Script sorunları yardım paylaşım bölümü

Cevapla
 
LinkBack Seçenekler
  1  
Alt 20-01-2012, 18:58:34
 
Standart asp ürün sırlama yardım

merhaba arkadaşlar yardımınıza ihtiyacım var. default.asp de eklenen ürünler aşağıya doğru sıralnıp uzayıp gitmekte. ben ürünleri yanyan 5 li halde sıralamak istiyorum. örnek
1,2,3,4,5
6,7,8,9,10
111,12,13,14,15 gibi.
şimdiki kodum aşağıdakidir. neresini değiştirmem lazım

Kod:
<!--#include file="up_incs/meta.asp"-->
<link rel="canonical" href="<%=strASiteURL%>/" />
<title><%=strSiteTit%></title>
<meta name="keywords" content="<%=strSiteKey%>" />
<meta name="description" content="<%=strSiteTit%>" />
</head>

<body>

<!-- end #header-wrapper -->
<!--#include file="up_incs/header.asp"-->

<div id="slideshow">
	<!-- start -->
	<div id="foobar">
		<div id="col1"><a href="#" class="previous">&nbsp;</a></div>
		<div id="col2">
			<div class="viewer">
				<div class="reel">
<%
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
Set rsCommon = Server.CreateObject("ADODB.Recordset")
rsCommon.ActiveConnection = adoCon
rsCommon.Source = "SELECT * From tblUrun Where UManset <> "&"0"&" Order By UID DESC"
rsCommon.CursorLocation = 3
rsCommon.LockType = 1
rsCommon.Open()
	Do While Not rsCommon.Eof
	  UResim	= rsCommon("UResim")
	  UHit		= rsCommon("UHit")
	  UTarih	= rsCommon("UTarih")
	  If strSiteDil = "en" Then
		UBaslik 	= rsCommon("UBaslikEN")
	  ElseIf strSiteDil = "ru" Then
		UBaslik 	= rsCommon("UBaslikRU")
	  ElseIf strSiteDil = "ar" Then
		UBaslik 	= rsCommon("UBaslikAR")
	  Else
		UBaslik 	= rsCommon("UBaslikTR")
	  End If
%>
					<div class="slide">
						<div align="center"><img src="<%=strASiteURL%>/uploads/urun/<%If Uresim <> "" Then%><%=UResim%><%Else%>no-image.png<%End If%>" width="500" height="225" alt="" />
						    <a href="urun.asp?id=<%=rsCommon("UID")%>"><span><%=UBaslik%></span></a>
					      </div>
					</div>
<%
	rsCommon.MoveNext : Loop
rsCommon.Close
Set rsCommon = Nothing
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
%>
				</div>
			</div>
		</div>
		<div id="col3"><a href="#" class="next">&nbsp;</a></div>
	</div>
	<script type="text/javascript">

						$('#foobar').slidertron({
							viewerSelector:			'.viewer',
							reelSelector:			'.viewer .reel',
							slidesSelector:			'.viewer .reel .slide',
							navPreviousSelector:	'.previous',
							navNextSelector:		'.next',
							navFirstSelector:		'.first',
							navLastSelector:		'.last'
						});
						
					</script>
	<!-- end -->
</div>
<div id="page">
	<div id="page-bgtop">
		<div id="content">
<%
strSay = 0
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
Set rsCommon = Server.CreateObject("ADODB.Recordset")
rsCommon.ActiveConnection = adoCon
rsCommon.Source = "SELECT * From tblUrun Order By UID DESC"
rsCommon.CursorLocation = 3
rsCommon.LockType = 1
rsCommon.Open()
	strToplam = rsCommon.RecordCount
	If strToplam = 0 Then
		strSayfaSay = 0
	Else
		strGecerliSayfa = Request.QueryString("p")
		If strGecerliSayfa = "" OR IsNumeric(strGecerliSayfa) = False Then strGecerliSayfa = 1
		rsCommon.PageSize = strASayfalama
		strSayfaSay = rsCommon.PageCount
		rsCommon.AbsolutePage = strGecerliSayfa
	For strSay = 1 To strASayfalama
	If rsCommon.Eof Then Exit For
	  UResim	= rsCommon("UResim")
	  UHit		= rsCommon("UHit")
	  UTarih	= rsCommon("UTarih")
	  If strSiteDil = "en" Then
		UBaslik 	= rsCommon("UBaslikEN")
		UOzet		= rsCommon("UOzetTR")
	  ElseIf strSiteDil = "ru" Then
		UBaslik 	= rsCommon("UBaslikRU")
		UOzet		= rsCommon("UOzetTR")
	  ElseIf strSiteDil = "ar" Then
		UBaslik 	= rsCommon("UBaslikAR")
		UOzet		= rsCommon("UOzetTR")
	  Else
		UBaslik 	= rsCommon("UBaslikTR")
		UOzet		= rsCommon("UOzetTR")
	  End If
%>
			<div class="post">
				<p class="meta"><%=strTarih%>: <span class="date"><%=FormatDateTime(UTarih, 1)%></span> <%=strHit%>: <a><%=UHit%></a></p>
				<h2 class="title"><a href="urun.asp?id=<%=rsCommon("UID")%>"><%=UBaslik%></a></h2>
				<div class="entry">
					<p><img src="<%=strASiteURL%>/uploads/urun/<%If UResim <> "" Then%><%=UResim%><%Else%>no-image.png<%End If%>" width="560" height="270" alt="" /><%=UOzet%></p>
				</div>
				<div><a href="urun.asp?id=<%=rsCommon("UID")%>" class="links"><%=strDevami%></a></div>
			</div>
<%If strSay = 1 Then%>
<div style="padding:8px; height:98px" align="center" class="post">
<%
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
Set rsCommonV = Server.CreateObject("ADODB.Recordset")
rsCommonV.ActiveConnection = adoCon
rsCommonV.Source = "SELECT * From tblVideoKtg Order By VKID Desc"
rsCommonV.CursorLocation = 3
rsCommonV.LockType = 1
rsCommonV.Open()
	For im = 1 To 3
	If rscommonV.Eof Then Exit For
%>
	<a href="video-detay.asp?id=<%=rsCommonV("VKID")%>" style="text-decoration:none;"><img src="<%=strASiteURL%>/uploads/video/<%If rsCommonV("VKResim") <> "" Then%><%=rsCommonV("VKResim")%><%Else%>no-image.png<%End If%>" width="180" height="87" alt="" style="margin:5px 5px 5px 5px; border:1px #666666 solid;" /></a>
<%
	rsCommonV.MoveNext : Next
rsCommonV.Close
Set rsCommonV = Nothing
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
%>
</div>
<%End If%>
<%
	rsCommon.MoveNext : Next
	End If
rsCommon.Close
Set rsCommon = Nothing
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
%>

<div style="padding:8px; height:98px" align="center" class="post">
<%
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
Set rsCommon = Server.CreateObject("ADODB.Recordset")
rsCommon.ActiveConnection = adoCon
rsCommon.Source = "SELECT * From tblGaleriKtg Order By GKID Desc"
rsCommon.CursorLocation = 3
rsCommon.LockType = 1
rsCommon.Open()
	For im = 1 To 3
	If rscommon.Eof Then Exit For
%>
	<a href="galeri-detay.asp?id=<%=rsCommon("GKID")%>" style="text-decoration:none;"><img src="<%=strASiteURL%>/uploads/galeri/<%If rsCommon("GKResim") <> "" Then%><%=rsCommon("GKResim")%><%Else%>no-image.png<%End If%>" width="180" height="87" alt="" style="margin:5px 5px 5px 5px; border:1px #666666 solid;" /></a>
<%
	rsCommon.MoveNext : Next
rsCommon.Close
Set rsCommon = Nothing
' * * ** * * ** * * * ** * * * * ** * * *** ** * * * *** * * ** * * * ** *
%>
</div>

<div style="padding:8px;" align="center" class="post">
<%
'Sayfalama
Aralik = 2
strSayfaAltSiniri = strGecerliSayfa - Aralik
strSayfaUstSiniri = strGecerliSayfa + Aralik
strSolGrupSayisi = 1 + Aralik
strSagAltSinir = strSayfaSay - Aralik
%>

<%
If (strSayfaUstSiniri > strSayfaSay) Then
strSayfaAltSiniri = strSayfaSay - (2 * Aralik)
strSayfaUstSiniri = strSayfaSay
End If
%>

<%
If (strSayfaAltSiniri <= 0) Then
strSayfaAltSiniri = 1
strSayfaUstSiniri = strSayfaAltSiniri + (2 * Aralik)
If strSayfaUstSiniri >= strSayfaSay Then strSayfaUstSiniri = strSayfaSay
End If
%>

<%
If strSolGrupSayisi >= strSayfaAltSiniri Then strSolGrupSayisi = strSayfaAltSiniri - 1
If strSagAltSinir <= strSayfaUstSiniri Then strSagAltSinir = strSayfaUstSiniri + 1
%>

<%
If strGecerliSayfa >1 Then %>
<a href="?p=1" style="font-weight:bold;">[««]</a>
<a href="?p=<%=strGecerliSayfa-1%>" style="font-weight:bold;">[«]</a><%
End If
%>

<%
For i = 1 to strSolGrupSayisi
If CInt(i) = (strGecerliSayfa) Then
Response.Write " <b>"
Else %>
<a href="?p=<%=i%>" style="font-weight:bold;"><%
End If
Response.Write i &"</a></b>"
Next
%>

<%
If (strSayfaAltSiniri - strSolGrupSayisi >1 ) Then Response.Write "<b>. . .</b>"
%>

<%
For i = strSayfaAltSiniri to strSayfaUstSiniri
If CInt(i) = CInt(strGecerliSayfa) Then
Response.Write " <b>"
Else %>
<a href="?p=<%=i%>" style="font-weight:bold;"><%
End If
Response.Write i &"</a></b>"
Next
%>

<%
If (strSagAltSinir - strSayfaUstSiniri >1) Then Response.Write "<b>. . .</b>"
%>

<%
For i = strSagAltSinir to strSayfaSay
If CInt(i) = CInt(strGecerliSayfa) Then
Response.Write " <b>"
Else %>
<a href="?p=<%=i%>" style="font-weight:bold;"><%
End If
Response.Write i &"</a></b>"
Next
%>

<%
If CInt(strGecerliSayfa) <> CInt(strSayfaSay) Then %>
<a href="?p=<%=strGecerliSayfa+1%>" style="font-weight:bold;">[»]</a>
<a href="?p=<%=strSayfaSay%>" style="font-weight:bold;">[»»]</a><%
End If
%>
</div>

		</div>
		<!-- end #content -->
<!--#include file="up_incs/sidebar.asp"-->
		<!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>

<!--#include file="up_incs/footer.asp"-->
__________________
İskele
Alıntı ile Cevapla
  2  
Alt 20-01-2012, 20:20:15
 
Standart

for komutu ile bunu cok rahat yapabilirsin.
Alıntı ile Cevapla
  3  
Alt 21-01-2012, 10:52:10
 
Standart

nicturkey ilgine teşekkür ederim yalnız kodlama bilgim yok for komutunu nereye yazmam icab ediyor yardımcı olabilirmisiniz.
__________________
İskele
Alıntı ile Cevapla
  4  
Alt 21-01-2012, 16:21:12
 
Standart

yardımcı olcak bir arkadaş yokmu acaba
__________________
İskele
Alıntı ile Cevapla
  5  
Alt 21-01-2012, 16:33:37
 
Standart

konuyla alakalı pm gönderdim size..
Alıntı ile Cevapla
  6  
Alt 25-01-2012, 10:21:15
 
Standart

Bigisi olan arkadaşlar yardımcı olabilirmi acaba
__________________
İskele
Alıntı ile Cevapla
  7  
Alt 25-01-2012, 10:34:07
 
Standart

Script'in tam çalışır haline erişebilirsem yardımcı olmaya çalışırım
Alıntı ile Cevapla
  8  
Alt 26-01-2012, 17:18:04
 
Standart

http://www.r10.net/asp-hazir-kodlar/...-siralama.html

Yukardaki konuyu bi incelemeni tavsiye ederim kardeşim. Kolay gesin.
__________________
Bütün Scriptlerde Büyük İndirim - Scriptler | Satış Ortaklığı
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 09:12:41.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252