<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>YÖNETİCİ PANELİ </title>
<link rel="StyleSheet" href="../stil.css" type="text/css"></head>
<body>

<% if not request.querystring("islem")="giris" then 
Session("durum")=""
%>

<center>
  <br>
  <br>
  <br>
  <br>
  <br>
</center>
<form action="default.asp?islem=giris" method="post">
<table width="263" align="center" bgcolor="#275D99">
   <tr>
    <td colspan="2"><img src="images/login.jpg" width="263" height="188"></td>
    </tr>
  <tr>
    <td width="126">Kullanıcı Adı :</td>
    <td width="133"><input type="text" name="kadi" size="20"></td>
    </tr>
  <tr>
    <td align="center"><div align="left">Parola :</div></td>
    <td align="center"><div align="left">
      <input type="password" name="sifre" size="20">
    </div></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><div align="left">
      <input name="submit" type="submit" value="GİRİŞ YAP" size="20">
    </div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
</form>
<% end if %> 
<% if request.querystring("islem")="giris" then

kadi = "dogan"
parola = "dogan"

if (parola = request.Form("sifre") and kadi = request.Form("kadi")) or (Session("durum")="girdi") then
Session("durum")="girdi"
%>

<!-- ŞİFRELİ GİRİŞLE GÖRÜLEBİLECEK KISMIN BAŞI -->
<br><br>
<table width="600" border="0" align="center">
  <tr>
    <td colspan="2" align="right">&nbsp;&nbsp;&nbsp;	</td>
  </tr>
  <tr>
    <td colspan="2" align="center"><table width="734" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <th width="105" scope="col"><a href="haber_ekle.asp">HABER EKLE</a> </th>
        <th width="117" scope="col"><a href="default.asp?islem=giris">HABER OKU </a></th>
        <th width="146" scope="col"><a href="http://panel.ankaratoplusms.net/" target="_blank">TOPLU SMS PANEL </a></th>
        <th width="130" scope="col"><a href="http://yusufcantarim.com/U/" target="_blank">DOSYA YÜKLE</a> </th>
        <th width="122" scope="col"><a href="http://yusufcantarim.com/makale_admin.asp" target="_blank"> MAKALE YAYIYNLA </a></th>
        <th width="114" scope="col"><a href="cikis.asp">ÇIKIŞ YAP </a></th>
      </tr>
    </table>
      <br>
      <br><br>
<table width="572" border="1" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td colspan="4" align="center"><b>HABERLER</b></td>
  </tr>
<%
Set Baglanti = Server.CreateObject("ADODB.Connection")
Baglanti.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("veri_tabani.mdb")

Set Kayit = Server.CreateObject("ADODB.Recordset")
Sql_Komutu = "Select * from haber order by id desc"
Kayit.Open Sql_Komutu, Baglanti, 1, 3

Do while not Kayit.eof
%>
  <tr>
    <td width="40%">
	<%=left(Kayit("baslik"), 30)%>...
	</td>
    <td width="28%">
	<%=Kayit("tarih")%>
	</td>
    <td width="20%" align="center">
	[<a href="haber_oku.asp?id=<%=Kayit("id")%>">Oku / Düzenle</a>]	</td>
    <td width="12%" align="center">
	[<a href="haber_sil.asp?id=<%=Kayit("id")%>">Sil</a>]
	</td>
  </tr>
<%
Kayit.MoveNext
Loop
%>
</table>
<!-- ŞİFRELİ GİRİŞLE GÖRÜLEBİLECEK KISMIN SONU -->

<%
else
%>

<br><br><br><br><br>
<table align="center">
  <tr>
    <td align="center">
	<font size="+2" color="#FF0000"><b>HATALI GİRİŞ!</b></font>
	</td>
  </tr>
  <tr>
    <td align="center">
	<br><br><a href="default.asp">Geri</a>
	</td>
  </tr>
</table>

<%
end if
end if
%>


</body>
</html>