<?php 
session_start();
if(isset($_SESSION['newsphp']))
{
$kuladi = $_SESSION['newsphp']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow,nosnippet,noodp,noarchive,noimageindex">
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/reset.css" /> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/main.css" /> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/2col.css" title="2col" /> 
	<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="css/1col.css" title="1col" /> 
	<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]--> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/style.css" />
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/mystyle.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/switcher.js"></script>
		<title>Radyo Sitesi Yönetim Paneli</title>	</head><body><div id="main">	<div id="tray" class="box">		<p class="f-left box">			<span class="f-left" id="switcher">				<a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="design/switcher-1col.gif" alt="1 Column" /></a>				<a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="design/switcher-2col.gif" alt="2 Columns" /></a>			</span>			<strong>Radyo Sitesi Yönetim Paneli</strong>		</p>		<p class="f-right"><strong><a href="admin.php"><?php echo $kuladi; ?></a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="logout.php" id="logout">Çıkış</a></strong></p>	</div>	<hr class="noscreen" />	<div id="menu" class="box">		<ul class="box f-right">			<li><a href="../index.php" target="_blank"><span><strong>Siteyi Görüntüle &raquo;</strong></span></a></li>		</ul>		<ul class="box">			<li><a href="home.php"><span>Anasayfa</span></a></li>							<li><a href="sayfalar.php"><span>Sayfalar</span></a></li>						<li><a href="yazilar.php"><span>Haberler</span></a></li>					<li><a href="fotogaleri.php"><span>Galeriler</span></a></li>				<li><a href="videolar.php"><span>Klipler</span></a></li>									<li><a href="yazarlar.php"><span>Yayıncılar</span></a></li>					<li><a href="yorumlar.php"><span>Yorumlar</span></a></li>									<li><a href="contact.php"><span>İletişim</span></a></li>			<li><a href="admin.php"><span>Yönetici Bilgileri</span></a></li>			<li><a href="ayarlar.php"><span>Ayarlar</span></a></li>		</ul>	</div>	<hr class="noscreen" />	<div id="cols" class="box">		<div id="aside" class="box">			<div class="padding box">				<p id="logo"><a href="home.php"><img src="design/logo.png" title="Radyo Sitesi Yönetim Paneli" alt="" /></a></p><br><br>			</div>						<div class="padding box">				<p id="btn-create" class="box"><a href="sayfaekle.php"><span>Sayfa Ekle</span></a></p>		<p id="btn-create" class="box"><a href="galeriekle.php"><span>Galeri Oluştur</span></a></p>		<p id="btn-create" class="box"><a href="resimekle.php"><span>Resim Ekle</span></a></p>		<p id="btn-create" class="box"><a href="videoekle.php"><span>Video Ekle</span></a></p>		<p id="btn-create" class="box"><a href="yazarekle.php"><span>Yayıncı Ekle</span></a></p>					</div>						<div class="padding box" class="info msg">			<br><br>									</div>		</div>		<hr class="noscreen" />

		<div id="content" class="box">
			<h1>Yorum Düzenle</h1>
			<br>
<?php include("../config.php");
$id = $_GET['id']; $bID = $_GET['bID'];
include("plugin/yorumsave.php"); 
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");
$sorgu = mysql_query("select * from comments where id='$id'");
if(mysql_num_rows($sorgu)=="0"){

echo '<div class="warning msg"><b>Ulaşmaya çalıştığınız değer veritabanın da mevcut değil. Lütfen kaydedilen verileri yorumlar sayfasından takip ediniz!</b></div>'; }else{
while($gelen = mysql_fetch_array($sorgu)){ $asd = $gelen['onay']; $yorum_za=strtotime($gelen['tarih']);
			$ay=array('','Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'); 
			$yorum_z=date('d',$yorum_za)." ".$ay[date("n",$yorum_za)]." ".date('Y', $yorum_za); ?>
						<form method="post">

		<b>Yorumun Gönderildiği Yazı :</b> <?php $sorgu1 = mysql_query("select * from news where id='$bID'"); while($gelen1 = mysql_fetch_array($sorgu1)){ echo $gelen1['baslik']; } ?> <br><br> 						
			<div class="col50">
			
		<p class="t-justify">   
		
						<label><b>Ad Soyad</b></label><br>
						<input type="text" size="40" name="adsoyad" value="<?php echo $gelen['adsoyad']; ?>" class="input-text" /><br><br>
					
						<label><b>E-Mail</b></label><br>
						<input type="text" size="40" name="email" value="<?php echo $gelen['email']; ?>" class="input-text" /><br><br>

						<label><b>Gönderildiği Tarih</b></label><br>
						<input type="text" size="40"  value="<?php echo $yorum_z; ?>" class="input-text" /><br><br>

						<label><b>IP Adresi</b></label><br>
						<input type="text" size="40" value="<?php echo $gelen['ip']; ?>" class="input-text" /><br><br>	

						<label><b>Onay</b></label><br>
						<?php if($asd=="1"){ ?>
						<input type="radio" name="onay" value="1" checked><img src="design/ico-done.gif" /> &nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="onay" value="0"><img src="design/ico-delete.gif" /><br><br>
						<?php }elseif($asd=="0"){ ?>
						<input type="radio" name="onay" value="1"><img src="design/ico-done.gif" /> &nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="onay" value="0" checked><img src="design/ico-delete.gif" /><br><br>						
						<?php } ?>								
		
		</p>
				
			</div> 

			<div class="col50 f-right">
			
				<p class="t-justify">
				

						<label><b>Yorum</b></label><br>
						<textarea cols="75" rows="20" name="yorum" class="input-text"><?php echo $gelen['yorum']; ?></textarea><br><br>								

				</p>
				
			</div> 
			<div class="fix"></div>						

			<p style="padding-left:380px;"><input type="submit" class="input-submit" name="gonder" style="width:500px;" value="Kaydet" /></p>
						</form>
			<?php } } ?>
			
			<br>
		</div>

	</div>

	<hr class="noscreen" />

	<div id="footer" class="box">

		<p class="f-left">&copy; 2016 Radyo Sitesi</p>

		

	</div> 

</div>

</body>
</html>
<?php } else { echo '<script language="javascript">location.href="../404.php";</script>'; } ?>