<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 session("code")="" then
response.Redirect("/")
response.end
end if
%>
<div class="snap-drawers">
        <!-- Left Sidebar-->
        <div class="snap-drawer snap-drawer-left">
            <!--Sidebar Header-->
            <div class="sidebar-header">
                <a href="#" class="sidebar-logo"></a>
                <a href="#" class="sidebar-close"><i class="fa-menu fa-times"></i></a>
            </div>            
            <div class="deco"></div>
            <!--Page Breadcrumb-->
            <div class="breadcrumb">Menü</div>
            <div class="deco"></div>
            <!--Simple Menu Item-->
            <a class="menu-item <% if isteksayfa="" then %>active-menu<% end if %>" href="/">
                <i class="fa fa-home"></i>
                <em>Anasayfa</em>
                <i class="fa fa-circle"></i>
            </a>
            <div class="deco"></div>
            <!--Simple Menu Item-->
            <a class="menu-item <% if isteksayfa="yaz" then %>active-menu<% end if %>"  href="/yaz/">
                <i class="fa fa-pencil"></i>
                <em>Yeni yaz</em>
                <i class="fa fa-circle"></i>
            </a>   
            <div class="deco"></div>
            <!--Simple Menu Item-->
            <a class="menu-item <% if isteksayfa="ara" then %>active-menu<% end if %>"  href="/ara/">
                <i class="fa fa-search"></i>
                <em>Arama yap</em>
                <i class="fa fa-circle"></i>
            </a> 
            <div class="deco"></div>
            <!--Simple Menu Item-->
            <div class="has-submenu <% if isteksayfa="kategori" then %>active-submenu<% end if %>" href="#">
                <a class="menu-item <% if isteksayfa="kategori" then %>active-menu<% end if %>"  href="#" >
                    <i class="fa fa-tags"></i>
                    <em>Kategoriler</em>
                    <i class="fa <% if isteksayfa="kategori" then %>rotate-plus<% end if %> fa-plus"></i>
                </a>
                <div class="submenu">
<%
Set baglanti = server.CreateObject("adodb.connection")
baglanti.open "Provider=Microsoft.Jet.oledb.4.0;Data Source=" & server.Mappath("kb45t49fehrgi5.mdb")

	Set menu = Server.CreateObject("ADODB.Recordset")
    sqlnu = "SELECT * from category where code='"&session("code")&"' order by id desc"
    menu.open sqlnu, baglanti, 1, 3
	
			if not menu.eof then
           	Do while not menu.eof
			%>  
                    <div class="deco"></div>
                    <a class="menu-item <% if cint(kategoriid)=menu("id") then %>active-menu<% end if %>" href="/kategori/<%=menu("id")%>.html">
                        <i class="fa fa-angle-right"></i><em><%=menu("name")%></em><i class="fa fa-circle"></i>
                    </a>
                    
            <%
			menu.movenext
			loop
			end if
    menu.close
	set menu=nothing

baglanti.close
Set baglanti = nothing
%>
                </div>
            </div>      
            <div class="deco"></div>
            <!--Simple Menu Item-->
            <a class="menu-item <% if isteksayfa="onemliler" then %>active-menu<% end if %>"  href="/onemliler/">
                <i class="fa fa-star"></i>
                <em>Önemliler</em>
                <i class="fa fa-circle"></i>
            </a> 
            <div class="deco"></div>  
            <!-- Page Updates-->
            <!-- Page Breadcrumb -->
            <div class="breadcrumb">Öneriler</div>
            <div class="deco"></div>
            <!--Update Item-->
            <div class="update-item red-update">
                <i class="fa fa-android"></i>
                <strong><a href="/defter.apk" style="color:#CCC;" download>Mobil uygulama</a></strong>
                <em>Android uygulamasını indirin</em>
            </div>
            <div class="deco"></div>  
            <!-- Page Breadcrumb -->
            <div class="breadcrumb">Copyright 2014. Tüm hakları saklıdır.</div>
            <div class="deco"></div>
              
        </div>
        <!-- Right Sidebar -->
        <div class="snap-drawer snap-drawer-right">
            <!--Sidebar Close Button-->
            <a href="#" class="sidebar-close right-sidebar-close"><i class="fa-menu fa-times"></i></a>
            <div class="clear"></div>
            <div class="deco"></div>
            <!-- Social Item -->
            <a class="social-item" href="/ayarlar/">
                <i class="fa fa-gear"></i>
                Ayarlar
            </a>
            <div class="deco"></div> 
            <a class="social-item" href="/cmd.asp?page=logout">
                <i class="fa fa-power-off"></i>
                Çıkış yap
            </a>
            <div class="deco"></div>      
        </div>
    </div>
    <!-- Page Header -->
    <div class="header">
        <a class="open-nav" href="#"><i class="fa-menu fa-navicon"></i></a>
        <!--<a class="header-logo" href="#"></a>-->
        <a href="/" class="header-message"><i class="fa fa-user"></i>&nbsp;&nbsp;<%=session("name")%></a>
        <a class="open-socials"><i class="fa-menu fa-sign-out"></i></a>
    </div>