<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

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 cat='"&kategoriid&"') order by id desc"
    giris.open sqlm, baglanti, 1, 3
	%>    

    <!-- Page Content-->
    <div id="content" class="snap-content">
        <div class="full-bottom"></div>
        <div class="content">
                
                <%
				if not giris.eof then
				%>
<style type="text/css">
@media only screen and (max-width: 1026px) {
    #kucukekrangizle {
        display: none;
    }
}
</style>
                <div class="container">
                <h3><%
				Set categ = Server.CreateObject("ADODB.Recordset")
    			sqlca = "SELECT * from category where (code='"&session("code")&"' and id="&giris("cat")&")"
    			categ.open sqlca, baglanti, 1, 3
				kategoriadi=(categ("name"))
				categ.close
				set categ=nothing
				response.Write(kategoriadi)
				%></h3>
                <p>Bu kategoride toplam <%=giris.recordcount%> adet not bulundu.</p>
                <div style="margin-top:-10px;">
			<%
           	Do while not giris.eof
			%>
				<div class="container switch-box" style="background:#F4F4F4; padding-top:6px; padding-right:6px; padding-left:15px; margin-bottom:5px;">
                    <h4><a href="/detay/<%=giris("id")%>.html" style="margin-top:-6px; color:#333"><%=giris("name")%></a></h4>
                    <a href="#" class="switch switch-2">
                        <span>
                            <em><i class="fa-menu fa-check"></i><br><i class="fa-menu fa-plus"></i></em>
                        </span>
                    </a>
                    <div id="kucukekrangizle" style=" float:right;margin-top:6px; margin-right:15px;"><%=left(giris("date"),10)%></div>
                    <div class="switch-box-content" style="overflow: hidden; display: none; background:#F4F4F4;">
                        <p style="margin-bottom:8px;"><%=giris("note")%></p>
                    </div>
                </div>
            <%
			giris.movenext
			loop
			%>
            	</div>
            <div>&nbsp;</div>
            <div>&nbsp;</div>
            <%
			else
			%>
            		
                    <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 kategori başarıyla silindi.</p>

                   				 </div>

                        	</div>

                

                        <form action="/cmd.asp?page=delete_cat&id=<%=kategoriid%>" method="post" class="contactForm" id="contactForm" style="margin-top:10px;">

                            <fieldset>

                            

            		<div class="ipod-detected">

                        <div class="detected-wrapper">

                            <h4><%=kategoriadi%></h4>

                            <div class="static-notification-yellow tap-dismiss-notification">
                        		<p class="center-text uppercase">Bu kategoride kayıtlı not bulunamadı.</p>
                    		</div>
                    

                            <center>

                            <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="465" 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> 

            <%
			end if
			%>
            <div class="decoration"></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>

</body>