<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<%
Response.ContentType = "text/html" 
Response.Charset = "UTF-8" 
Response.Codepage = 65001

degisken = Request.QueryString
gelenlink_bol = split(degisken, "/")
kategoriid = replace(gelenlink_bol(4),".html","")

IF Not IsNumeric(kategoriid) THEN
response.write "<center><br><br>Sistemi fazla kurcalama! Sana ekmek &#231;&#305;kmaz burdan.</center>"
response.end
END IF
%>
<!--#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 notes where (code='"&session("code")&"' and id="&kategoriid&") order by id desc"
    giris.open sqlm, baglanti, 1, 3
	%>    
			
   
    <!-- Page Content-->
    <div id="content" class="snap-content">
        <div class="full-bottom"></div>
        	<%
			if not giris.eof then
			
			Set categ = Server.CreateObject("ADODB.Recordset")
    		sqlca = "SELECT * from category where (code='"&session("code")&"' and id="&giris("cat")&") order by id desc"
    		categ.open sqlca, baglanti, 1, 3
			kategorisi=categ("name")
			categ.close
			set categ=nothing
			%>
        <div class="content">
                <div class="container no-bottom">
                    <div class="no-bottom">

					<div class="contact-form no-bottom">
			
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("#evet").hide();
  $("#kapali").hide();
  $("#goster").click(function(){
    $("#goster").hide();
    $("#evet").show();
    $("#kapali").show();
  });
  $("#kapali").click(function(){
    $("#goster").show();
    $("#evet").hide();
    $("#kapali").hide();
  });
});
</script>

							<div class="formSuccessMessageWrap" id="formSuccessMessageWrap" style="margin-top:20px;">
                        		<div class="static-notification-green tap-dismiss-notification">
                        			<p class="center-text uppercase">Bu not başarıyla silindi.</p>
                   				 </div>
                        	</div>
                
                        <form action="/cmd.asp?page=delete&id=<%=giris("id")%>" method="post" class="contactForm" id="contactForm" style="margin-top:10px;">
                            <fieldset>
                            
            		<div class="ipod-detected">
                        <div class="detected-wrapper">
                            <h4><%=giris("name")%></h4>
                            <em><%=giris("date")%> / <%=kategorisi%></em>
                            <p><%=giris("note")%></p>
                            <center>
                            <a href="/cmd.asp?page=star&note=<%=giris("id")%>&high=<% if giris("high")="1" then response.Write("0") else response.Write("1") end if %>" class="button button-yellow"><i class="fa fa-heart<% if giris("high")=1 then response.Write("") else response.Write("-o") end if %>"></i>Önemli</a>
                            <a href="/duzenle/<%=giris("id")%>.html" class="button button-blue"><i class="fa fa-pencil"></i>Düzenle</a>
                            <a href="#" class="button button-red" id="goster"><i class="fa fa-trash-o"></i>Sil</a>
                            <a href="#" class="button button-light" id="kapali"><i class="fa fa-trash-o"></i>Sil</a>
                            </center>
                        </div>
                    </div>
                   
                           
                    <div id="evet">
                    
                                <div class="formFieldWrap" style="display:none;">
                                    <label for="contactNameField"></label>
                                    <input type="text" name="id" value="<%=giris("id")%>" class="contactField requiredField" id="contactNameField"/>
                                </div>
                              
                                <div class="formSubmitButtonErrorsWrap" style="margin-top:10px;">
                                    <center><input type="submit" class="buttonWrap button button-red contactSubmitButton" id="contactSubmitButton" value="Silmek istediğinize emin misiniz?" data-formId="contactForm" style="margin-top:20px; width:200px; height:30px;"/></center>
                                </div>
                    
                    
                    </div>
                            </fieldset>
                        </form>  
                       
                    </div>
                   
            <div style="margin-top:10px;">&nbsp;</div> 
            <div class="decoration"></div>
            
                    </div>
                </div>
           
                    
        	<%
			else
			%>
            <div class="content">
            			<div style="margin-top:10px;">&nbsp;</div>
                <div class="container no-bottom">
                    <div class="no-bottom">
            		<div class="static-notification-yellow tap-dismiss-notification">
                        <p class="center-text uppercase">Aradığınız not bulunamadı.</p>
                    </div>
            <div style="margin-top:10px;">&nbsp;</div> 
            <div class="decoration"></div>
            		</div>
                </div>
            </div>
            <%
			end if
			%>
            
	<%
    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>

</body>