Gönderen Konu: Yeni modülün site aramasına eklenmesi  (Okunma sayısı 1280 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7977
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
Yeni modülün site aramasına eklenmesi
« : Ekim 08, 2006, 02:08:59 ÖÖ »
<%
End If

objPagIngRS.Close
Set objPagIngRS = NothIng
end If 'strNavIcons

'################ siir SEARCH #######################
If Instr(strNavIcons,":7:") then
strSQL = "select * from siir where Keyword lIke'%" & search & "%' or DescrIptIon lIke '%" & search & "%' and show=1 order by siir_ID"

IPageSIze = show
'set page sIze

If Request.QueryStrIng("page") = "" Then
IPageCurrent = 1
Else
IPageCurrent = CInt(Request.QueryStrIng("page"))
End If

If Request.QueryStrIng("order") = "" Then
strOrderBy = "siir_Id"
Else
strOrderBy = Request.QueryStrIng("order")
End If


Set objPagIngRS = Server.CreateObject("ADODB.Recordset")
objPagIngRS.PageSIze = IPageSIze
objPagIngRS.CacheSIze = IPageSIze
objPagIngRS.Open strSQL, my_Conn, adOpenStatIc, adLockReadOnly, adCmdText


reccount = objPagIngRS.recordcount
IPageCount = objPagIngRS.PageCount

If IPageCurrent > IPageCount Then IPageCurrent = IPageCount
If IPageCurrent < 1 Then IPageCurrent = 1

If IPageCount = 0 Then
%>
<center><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>+1">Şiirler -
Arama Sonuçları :
</font><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>+1" color="#FF0000"> "<%=search%>"</font><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>" color="<%= strDefaultFontColor %>"> bulunan <font color="#FF0000"><%=reccount%><% If reccount = 1 then %> Şiir<% else %> Şiirler<% end If %></font></center>



<%

'Response.WrIte "<center><font color=red sIze=3>Şiir Bulunamadı!</font></center>"
Else
objPagIngRS.AbsolutePage = IPageCurrent

%>
<center><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>+1">Şiirler -
Arama Sonuçları :
</font><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>+1" color="#FF0000"> "<%=search%>"</font><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>" color="<%= strDefaultFontColor %>"> bulunan <font color="#FF0000"><%=reccount%><% If reccount = 1 then %> Şiir<% else %> Şiirler<% end If %></font></center>
<center><a href="siir_search.asp?search=<%=search%>&submIt1=Search&num=<%=show%>"><font face="<%= strDefaultFontFace %>" sIze="<%= strDefaultFontSIze %>">
Sonuçları Görüntüleyiniz[/url]</font></center>




değiştirilecek yerler kırmızı renkte belirtilmiştir. modülün isimleri, hedef dosyaları ve tablo isimlerini değiştirdiğinizde sitenizin ana aramasına eklenecektir. ve aramada sonuçlar gözükecektir.

Yazan: burajan
Konuyu Paylaş:
  delicious  facebook  twitter  google

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
260 Yanıt
44164 Gösterim
Son İleti Mayıs 19, 2012, 12:25:04 ÖS
Gönderen: burajan
2 Yanıt
996 Gösterim
Son İleti Nisan 29, 2007, 15:50:03 ÖS
Gönderen: adnancelik
2 Yanıt
1280 Gösterim
Son İleti Temmuz 16, 2007, 23:31:30 ÖS
Gönderen: burajan
10 Yanıt
943 Gösterim
Son İleti Ekim 22, 2010, 00:58:51 ÖÖ
Gönderen: coruhunsesi
3 Yanıt
132 Gösterim
Son İleti Mart 18, 2012, 19:47:52 ÖS
Gönderen: altin