<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<%
if session("code")<>"" then
	
Response.ContentType = "text/html" 
Response.Charset = "UTF-8" 
Response.Codepage = 65001
if request.QueryString("arama")<>"" then
%>
<link href="/styles/style.css" rel="stylesheet" type="text/css">
<link href="/styles/framework.css" rel="stylesheet" type="text/css">
<link href="/styles/owl.theme.css" rel="stylesheet" type="text/css">
<link href="/styles/swipebox.css" rel="stylesheet" type="text/css">
<link href="/styles/font-awesome.css" rel="stylesheet" type="text/css">
<link href="/styles/animate.css"	rel="stylesheet" type="text/css">
<script type="text/javascript" src="/scripts/jquery.js"></script>
<script type="text/javascript" src="/scripts/jqueryui.js"></script>
<script type="text/javascript" src="/scripts/framework.plugins.js"></script>
<script type="text/javascript" src="/scripts/custom.js"></script>
<%
Function KarakterTemizle(Veri)
KarakterTemizle = Replace(Veri, "<", "&lt;")
KarakterTemizle = Replace(Veri, ">", "&gt;")
KarakterTemizle = Replace(Veri, "'", "")
KarakterTemizle = Replace(Veri, "%", "")
Veri = KarakterTemizle
End Function

Set kon = CreateObject("ADODB.Connection")
kon.Open ("DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("kb45t49fehrgi5.mdb")) 
	
Set rs = server. CreateObject("ADODB.Recordset") 
sql="select * from notes where code='"&session("code")&"' and (name like '%"&KarakterTemizle(request("uara"))&"%' or note like '%"&KarakterTemizle(request("uara"))&"%') order by name asc"
rs.Open sql, kon, 1, 3

If not rs.eof then

Do While not rs.eof
%>
					<div style="margin-top:0px;">&nbsp;</div> 
                    <div class="toggle-3">
                        <a href="/detay/<%=rs("id")%>.html" class="deploy-toggle-3"><%=rs("name")%><em style="width:145px; padding-left:15px; color:#FCFCFC;"><%=rs("date")%></em></a>
                    </div>
<% 
rs.movenext
loop

else
%>
					<div class="static-notification-red tap-dismiss-notification" style="margin-top:10px;">
                        <p class="center-text uppercase"><b><%=KarakterTemizle(request("uara"))%></b> kelimesi için sonuç bulunamadı</p>
                    </div>
<%
end if

rs.close
set rs = nothing

kon.close
set kon = nothing

else
%>
<!--#include file ="header.asp"-->

<div class="all-elements">
    
	<!--#include file ="menu.asp"-->
    
<%
Set baglanti = server.CreateObject("adodb.connection")
baglanti.open "Provider=Microsoft.Jet.oledb.4.0;Data Source=" & server.Mappath("kb45t49fehrgi5.mdb")

	Set giris = Server.CreateObject("ADODB.Recordset")
    sqlm = "SELECT * from users where code='"&session("code")&"'"
    giris.open sqlm, baglanti, 1, 3
	%>    

    <!-- Page Content-->
    <div id="content" class="snap-content">
        <div class="full-bottom"></div>
        <div class="content">
                <div class="container no-bottom">
                <h3>Arama yap</h3>
                <p>Not içeriğinde veya başlığında arama yapabilirsiniz.</p>
                    <div class="no-bottom" style="margin-top:-16px;">
                    <div class="contact-form no-bottom">

                        <form method="post" class="contactForm" style="margin-top:10px; overflow:visible;">
                           
                                <div class="formFieldWrap">
<input type="text" name="uara" value="" placeholder="Herhangi bir kelime arayın.." class="contactField requiredField" id="uaralen" autocomplete="off" onKeyUp="uyeara(this.value)"/>
<span id="yukleniyo" style="width:100%; margin-top:-38px; position:absolute;"><img src="/images/loadingdata.gif" style="float:right; margin-right:15px;"></span>
                                </div>
                        </form>  


			<span id="uaram" name="uaram"></span>

               
            <div style="margin-top:10px;">&nbsp;</div> 
            
            <div class="decoration"></div>
                    </div>
                </div>
            </div>
        
            
	<%
    giris.close
	set giris=nothing

baglanti.close
Set baglanti = nothing
%>
      
        <!-- Page Footer-->
        <div class="footer">
            <div class="footer-socials half-bottom">
                <a href="#" class="footer-up"><i class="fa-menu fa-angle-up"></i></a>
            </div>
        </div>
                
    </div>   
</div>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#yukleniyo").hide();
});
</script>
<script type="text/javascript" src="/scripts/check.js"></script>

</body>
<%
end if
end if
%>