<head>
<meta http-equiv="Content-Language" content="tr">
<link href="css/stil.css" rel="stylesheet" type="text/css">
</head>

<!--#include file="defterayar.asp"-->
<!--#include file="defterfoksiyon.asp"-->

<%
 IF Request.QueryString("@")="girdi" Then
 Session("giris") ="tamam"
 k_adi=veri(Request.Form("k_adi"))
 sifre=veri(Request.Form("sifre"))
  
  Set uye_giris = Server.CreateObject("adodb.recordset")
  SQL="Select * from admin where k_adi='"&k_adi&"' and sifre='"&sifre&"'"
  uye_giris.open SQL,baglanti,1,3
  
  IF Not uye_giris.EOF Then
  Session("giris") ="tamam"
  Session("k_adi")=uye_giris("k_adi")
   Session("oid")=uye_giris("id")
  uye_giris.Update
  response.redirect Request.ServerVariables("HTTP_REFERER")
  Else
  Response.Write "<script>alert('Kullanici adiniz veya sifreniz yanlis');</script>"
  Response.Write "<script>window.navigate('defterdefault.asp');</script>"
  End IF

End IF
%>

<div align="center">
<font face="Verdana" style="font-size: 8pt">
<% IF Not session("giris")="tamam" Then %>
	</font>
			<div align="center">
				<table border="0" width="201" id="table12" style="border-collapse: collapse" height="140">
					<tr>
						<td height="140" valign="top">
						<div align="right">
						<table border="0" width="300" id="table13" height="138" background="images/vidiss.png" cellspacing="0" cellpadding="0">
						<form action="defterdefault.asp?@=girdi" method="post">
							<tr>
								<td width="96%" colspan="2" height="40"> 
								<p align="center">
								<img border="0" src="../images/giris.gif"></td>
							</tr>
							<tr>
								<td width="46%" height="25"> 
								<font face="Verdana" style="font-size: 8pt; font-weight:700">
								Kullanıcı Adı : </font> </td>
								<td width="55%" height="25">
                  <font color="#C0C0C0">
                    <input name="k_adi" size="20" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #587EA5; font-weight:bold"></font></td>
							</tr>
							<tr>
								<td width="46%"> 
								<font face="Verdana" style="font-size: 8pt; font-weight:700">
								Parola : </font> </td>
								<td width="55%"><font color="#C0C0C0">
                    <input type="password" name="sifre" size="20" style="font-family: Verdana; font-size: 8pt; border: 1px solid #587EA5; font-weight:bold"></font></td>
							</tr>
							<tr>
								<td width="46%">
								<p align="center">&nbsp;</td>
								<td width="55%">
									<input type="submit" value="Admin Girişi" width="75" height="35" border="0" name="I1"></td>
							</tr>
							</form>
						</table>
						</div>
						</td>
					</tr>
				</table>
			</div>
			<font face="Verdana" style="font-size: 8pt">
<%End If%>
<!-- üye girişi yaptıktan sonra görülecek bölüm-->
<% IF session("giris")="tamam" Then %>
</font>
			<div align="center">
				<table border="0" width="200" id="table14" style="border-collapse: collapse" height="201">
					<tr>
						<td height="201">
						<div align="center">
						<table border="0" width="300" id="table15" height="217" background="images/vidiss.png" cellspacing="0" cellpadding="0">
							<tr>
								<td height="39">&nbsp;
								

</td>
							</tr>
							<tr>
								<td> 
								&nbsp;<!--#include file="defterayar.asp"=-->
<%
baglanti.execute("delete from mesaj where id="&request("id")&"")
response.redirect "defterdefault.asp"
%>
<%end if%></td>
							</tr>
						</table>
						</div>
						</td>
					</tr>
				</table>
			</div>
			<font face="Verdana" style="font-size: 8pt">

</font>	
</div>