<%
Response.ContentType = "text/html" 
Response.Charset = "UTF-8" 
%>

<%
if not session("girdinmilan") = "evetgirdimlan" then
url = "http://" & Request.ServerVariables("server_name") & request.servervariables("URL") & "?" & Request.querystring
session("backurl") = url
response.Redirect("panel.asp?box=warning&text=Session%20suresi%20doldu.&second=2&url=default.asp?page=login")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

	<META http-equiv=Content-Type content=text/html;charset=UTF-8>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js"></script>

<style>
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	margin-top: 10px;
}

ul {
	margin: 0;
}

#contentWrap {
	margin: 0 auto;
	height: auto;
	overflow: hidden;
}

#contentTop {
	padding: 0px;
	margin-left: 0px;
}

#contentLeft {
	float: left;
	width: 250px;
}

#contentLeft li {
	list-style: none;
	margin: 0 0 4px 0;
	padding: 8px;
	background-color:#0066CC;
	border: #0066CC solid 0px;
	color:#fff;
}


</style>

<script type="text/javascript">
$(document).ready(function(){ 
						   
	$(function() {
		$("#contentLeft ul").sortable({ opacity: 0.6, cursor: 'move', update: function() {
			var order = $(this).sortable("serialize") + '&action=updateRecordsListings';
			//$("#contentRight").html(order);
			$.post("updatecatsiralablog.asp", order, function(theResponse){
				$("#contentRight").html(theResponse);
			});
		}								  
		});
	});
});	
</script>
</head>
<body>
	<div id="contentWrap">
		<div id="contentLeft">
			<ul><!--#include file ="../veriables.asp"-->
				<%
				Set conn = Server.CreateObject("ADODB.Connection")
				dsn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../db/"&datayol&".mdb")
				conn.open dsn
				Set RS=Server.CreateObject("ADODB.RecordSet")
				Sql = "SELECT * FROM kategori ORDER BY listtype ASC"
				RS.Open Sql, conn, 1, 3
				Do While Not RS.EOF
				%>
				<li id="recordsArray_<%=RS("kategoriid")%>"><%=RS("kategoriaditr")%></li>
				<%
				RS.MoveNext
				Loop
				RS.Close
				%>
			</ul>
		</div>			
	</div>
</body>
</html>
