<?php
session_start();
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="description" content="<?php echo $print['description']; ?>" />
	<meta name="keywords" content="<?php echo $print['keywords']; ?>" />	
	<meta name="author" content="radyo sitesi, radyo dinle" />	
<link rel="shortcut icon" href="/images/favicon.png">
	<title><?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" />
	<link href="css/js-image-slider.css" rel="stylesheet" type="text/css" />
	
    <script src="js/js-image-slider.js" type="text/javascript"></script>
	<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='js/jquery.cycle.all.min.js'></script>
</head>
<body>
<?php include("plugin/writelogin.php"); ?> 
<?php include("header.php"); ?> 

  <div id="outer-wrapper">
   <?php include("plugin/slider.php"); ?> 
    <div class="clear"></div>
	
    <div id="content-wrapper">
      <div id="inner-content">
        <div id="category_sort" class="clearfix">
          <div class="column" style="width:700px;">
<?php $zx1 = mysql_query("select * from newskat where sefurl='".$print['kat1']."'"); while($df1 = mysql_fetch_array($zx1)){ ?>		  
            <h4><span>Haberler</span></h4>
		<?php } ?>	
            <ul style="margin-left:-15px;">
<?php $gg1 = mysql_query("select * from news where kategori='".$print['kat1']."' AND onay='1' order by id desc limit 6"); while($oo1 = mysql_fetch_array($gg1)){ if($print['seourl']==".php"){ ?>			
              <li><a href="single.php?url=<?php echo $oo1['sefurl']; ?>"><?php echo $oo1['baslik']; ?></a></li>
		<?php }elseif($print['seourl']==".html"){ ?>
		
              <li class="blur pic" style="float:left;"><a href="haber-<?php echo $oo1['sefurl']; ?>.html"><img style="width: 200px;
    border: none;
    outline: 2px solid #A5A5A5;" src="<?php echo $oo1['resimyolu']; ?>" title="<?php echo $oo1['baslik']; ?>"></a><br>
			  <div style="    width: 205px;
    overflow: hidden;
	white-space: nowrap;
    text-overflow: ellipsis;"><a style="font-family: Droid Sans;
    font-weight: 800;" href="haber-<?php echo $oo1['sefurl']; ?>.html" alt="<?php echo $oo1['baslik']; ?>" title="<?php echo $oo1['baslik']; ?>"><?php echo $oo1['baslik']; ?></a></div></li>		
		<?php } } ?>
            </ul>
          </div>
    		  
        </div>
        <div id="double_container">
          <h4 class="cont-title"><span>Haberler</span></h4>
</div>
        <div id="single_post_container">
          <div style="" class="post_single">
            <h4 style="        background-color: #379A68;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    color: whitesmoke;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 2px;
    margin-top: 5px;
    margin-left: -6px;
    width: 200px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;" class="post_title clearfix">Video Klipler <span style="padding-top: 2px;" class="headerall"><a style="margin-top: 10px;
    color: #E6E6E6;" href="klipler<?php echo $print['seourl']; ?>">Hepsi</a></span></h4>
            <div style="    background: #F1F4F6;
    padding: 5px;
    padding-top: 10px;
    margin-right: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #E2E7EA;
    width: 642px;" class="post_content clearfix">
<?php $ndym = mysql_query("select * from videos order by id desc limit 0,5"); if(mysql_num_rows($ndym)=="0"){ echo 'Henüz bir video eklenmemiş.'; }else{ while($kafa = mysql_fetch_array($ndym)){ if($print['seourl']==".php"){ ?>			
        <div class="thumbnail" style="padding-left:5px;"> <a href="klip.php?url=<?php echo $kafa['sefurl']; ?>"><img style="    border: none;    outline: 2px solid #C1C1C1;" src="<?php echo $kafa['resimyolu']; ?>" width="120" height="190" alt="" /></a> <br> <?php echo kisalt($kafa['baslik'], 25); ?></div>		  
	<?php }elseif($print['seourl']==".html"){ ?>
        <div class="blur pic" style="padding-left:5px;float:left;"> <a href="klip-<?php echo $kafa['sefurl']; ?>.html"><img style="   border: none;
    outline: 2px solid #2D2C2C;" src="<?php echo $kafa['resimyolu']; ?>" width="120" height="90" alt="<?php echo $kafa['baslik']; ?>" title="<?php echo $kafa['baslik']; ?>" /></a> <br> <div style="    width: 120px;
    overflow: hidden;
	white-space: nowrap;
    text-overflow: ellipsis;"><a href="klip-<?php echo $kafa['sefurl']; ?>.html" alt="<?php echo $kafa['baslik']; ?>" title="<?php echo $kafa['baslik']; ?>"><?php echo $kafa['baslik']; ?></a></div></div>		  
	<?php } } } ?>	
            </div>
          </div>
          <div class="post_single">
            <h4 style="       background-color: #379A68;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    color: whitesmoke;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 2px;
    margin-top: 5px;
    margin-left: -6px;
    width: 200px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;" class="post_title clearfix">Galeriler <span style="padding-top:2px;" class="headerall"><a style="margin-top: 10px;
    color: #E6E6E6;" href="galeriler<?php echo $print['seourl']; ?>">Hepsi</a></span></h4>
            <div style="    background: #F1F4F6;
    padding: 5px;
    padding-left: 35px;
    margin-left: 3px;
    padding-top: 10px;
    margin-right: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #E2E7EA;
    width: 607px;" class="post_content clearfix">
<?php $cekirge = mysql_query("select * from galleries order by id desc limit 0,4"); if(mysql_num_rows($cekirge)=="0"){ echo 'Henüz bir video eklenmemiş.'; }else{ while($leblebi = mysql_fetch_array($cekirge)){ if($print['seourl']==".php"){ ?>			
        <div class="thumbnail" style="padding-left:5px;"> <a href="galeri.php?url=<?php echo $leblebi['sefurl']; ?>"><img src="<?php echo $leblebi['resimyolu']; ?>" width="128" height="190" alt="" /></a> <br> <?php echo kisalt($leblebi['baslik'], 25); ?></div>		  
	<?php }elseif($print['seourl']==".html"){ ?>
        <div class="blur pic" style="padding-left:5px;float:left;"> <a href="galeri-<?php echo $leblebi['sefurl']; ?>.html"><img style="border: none;
    outline: 2px solid #2D2C2C;" src="<?php echo $leblebi['resimyolu']; ?>" width="128" height="190" alt="<?php echo $leblebi['baslik']; ?>" title="<?php echo $leblebi['baslik']; ?>" /></a> <br><div style="    width: 133px;
    overflow: hidden;
	white-space: nowrap;
    text-overflow: ellipsis;"><a href="galeri-<?php echo $leblebi['sefurl']; ?>.html" alt="<?php echo $leblebi['baslik']; ?>" title="<?php echo $leblebi['baslik']; ?>"><?php echo $leblebi['baslik']; ?></a></div></div>		  
	<?php } } } ?>	
            </div>
          </div>		  
          <div class="clear"></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 } ?>