<?php
session_start();
if(isset($_SESSION['yazar'])){ $kulID = $_SESSION['yazar']; 
include("config.php");
include("plugin/functions.php");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");
$query = mysql_query("select * from settings");
while($print = mysql_fetch_array($query)){ ?>
<!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" />
	<meta name="robots" content="noindex,nofollow,nosnippet,noodp,noarchive,noimageindex">	
	<meta name="author" content="radyo sitesi, radyo dinle" />	

	<title>Yazı Gönder | <?php echo $print['title']; ?></title>	

	<link rel="stylesheet" media="screen" href="css/superfish.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="css/stylesheet.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="css/color.css" type="text/css" />		
	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic" type="text/css" />

	<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
	<script src="js/hoverIntent.js" type="text/javascript"></script>	
	<script src="js/superfish.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="js/custom.js"></script>
	<script type="text/javascript" src="js/jquery.animate-shadow.js"></script>	
<script type="text/javascript" src="yonetim/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		entity_encoding : "utf-8",
        mode : "exact",
        elements : "elm1",		
		theme : "advanced",
		plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

		// Theme options
		theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Style formats
		style_formats : [
			{title : 'Bold text', inline : 'b'},
			{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
			{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
			{title : 'Example 1', inline : 'span', classes : 'example1'},
			{title : 'Example 2', inline : 'span', classes : 'example2'},
			{title : 'Table styles'},
			{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
		],

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>	
</head>
<body>

<div id="panel" style="display: none;" align="center">
<div align="center"><b><?php $ozu = mysql_query("select * from uyeler where id='$kulID'"); while($kamil = mysql_fetch_array($ozu)){ echo $kamil['adsoyad']; ?>, hoşgeldin.</b>&nbsp;&nbsp;-&nbsp;&nbsp; <a href="newspost.php">Yazı Gönder</a> &nbsp;&nbsp;-&nbsp;&nbsp; <?php if($print['seourl']==".php"){ ?> <a href="/djpanel.php">İstekler</a> <?php }elseif($print['seourl']==".html"){ ?> <a href="/djpanel.php">İstkeler</a> <?php } ?> &nbsp;&nbsp;-&nbsp;&nbsp; <a href="sessionout.php">Çıkış</a></div><?php } ?></div>
<?php include("header.php"); ?> 
  
  <div id="outer-wrapper">
    <div id="content-wrapper">
      <div id="inner-content">
        <div id="entry">
          <div id="post-top">
            <h3 id="post-title">İstek Oku</h3> <a href="/djpanel.php">Geri dön</a>
          </div>
          <div class="entry-content">

			<br>

<?php $id = $_GET['id'];

mysql_query("SET NAMES 'utf8'");

mysql_query("SET CHARACTER SET utf8");

mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");

$sorgu = mysql_query("select * from istekler 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 iletişim sayfasından takip ediniz!</b></div>'; }else{



while($gelen = mysql_fetch_array($sorgu)){ $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); ?>

			<div class="col50">

			

		<p class="t-justify">     

		

						<label><b>Ad Soyad</b></label><br>

						<input type="text" size="40" value="<?php echo $gelen['adsoyad']; ?>" class="input-text" /><br><br>

					

						<label><b>E-Mail</b></label><br>

						<input type="text" size="40" value="<?php echo $gelen['email']; ?>" class="input-text" /><br><br>



						<label><b>İstek Parça</b></label><br>

						<input type="text" size="40" value="<?php echo $gelen['telefon']; ?>" 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>					

					

		</p>

				

			</div> 



			<div class="col50 f-right">

			

				<p class="t-justify">



						<label><b>Mesaj</b></label><br>

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



				</p>

				

			</div> 

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

			<?php } } ?>

			

			<br>

		</div>

          </div>
        </div>
      </div>
	  
      <div id="sidebar">
	<?php include("plugin/sidebar.php"); ?>
      </div>
      <div class="clear"></div>
    </div>
  </div>
  
  <div id="footer"> <span id="Scroll"><a href="#">&uarr;</a></span>
    <div id="footer_inner">
<?php echo $print['reklam3']; ?>
      <div class="clear"></div>
      <div class="footer_bottom">
        <ul class="footer_menu">
          <li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a> /</li>		
<?php $whistle = mysql_query("select * from pages order by sira asc"); while($baby = mysql_fetch_array($whistle)){ if($print['seourl']==".php"){ ?>		
          <li><a href="pages.php?url=<?php echo $baby['sefurl']; ?>"><?php echo $baby['baslik']; ?></a> /</li>
	<?php }elseif($print['seourl']==".html"){ ?>	  
          <li><a href="sayfa-<?php echo $baby['sefurl']; ?>.html"><?php echo $baby['baslik']; ?></a> /</li>
	<?php } } ?>	
          <li><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>
        </ul>
        <p>&copy; Copyright <?php echo date('Y'); ?>, <?php echo $print['title']; ?>. Tüm hakları saklıdır.</p>
      </div>
    </div>
  </div>
</div>
</body>
</html>
<?php } }else{ echo '<meta http-equiv="refresh" content="0;URL=404.php">'; } ?>