<?php
require("inc/modul.php");
include_once("inc/lang.php");
if(!mysql_real_escape_string($_GET['lang']))
{
$lang=1;
}
else{
$lang=$_GET['lang'];
}
$content=$_GET['content'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title><?php echo $title; ?></title>
<link rel="Stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/featuredcontentglider.js"></script>
<script type="text/javascript" src="js/tab.js"></script>
<script type="text/javascript" src="js/ictnews-menu.js"></script>
<script language="javascript" src="js/com.js"></script>
<script type="text/javascript">
featuredcontentglider.init({
gliderid: "head-news-list", //ID of main glider container
contentclass: "head-news-content", //Shared CSS class name of each glider content
togglerid: "p-select", //ID of toggler container
remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
selected: 0, //Default selected content index (0=1st)
persiststate: false, //Remember last content shown within browser session (true/false)?
speed: 500, //Glide animation duration (in milliseconds)
direction: "updown", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
autorotate: true, //Auto rotate contents (true/false)?
autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
<script language="javascript">
function setSearchOptions(idElement){
/* Total Tabs above the input field (in this case there are 3 tabs: web, images, videos) */
tot_tab = 3;
tab = document.getElementById('tab'+idElement);
search_option = document.getElementById('searchopt');
for(i=1; i<=3; i++){
if(i==idElement){
tab.setAttribute("class","selected");
search_option.value=idElement;
} else {
document.getElementById('tab'+i).setAttribute("class","");
}
}
}
</script>
</head>
<body>
<div id="container">
<div class="header">
<div>
<div class="lang">
<p class="hlang">
<A HREF="index.php?lang=<?php echo $lang; ?>"><IMG SRC="images/home.gif" BORDER="0"></A>
<A HREF="#"><IMG SRC="images/sitemap.gif" BORDER="0"></A>
<A HREF="contact.php?lang=<?php echo $lang; ?>"><IMG SRC="images/feedback.gif" BORDER="0"></A>
</p>
<p>
<?php
for($r=1;$r<=3;$r++)
{
if($r==$lang) {$cls='hselect';}
else {$cls='';}
echo '<A HREF="?lang='.$r.'&content='.$content.'" class="'.$cls.'">'.$text[$r].'</A>';
}
?>
</p>
<p><A HREF="#">WAP</A> <span>|</span> <A HREF="#">RSS</A></p>
</div>
<div class="speech"><img src="images/president.jpg" width="100" height="85" border="0"><span>"Rabitə və informasiya texnolo-giyaları neft sahəsindən sonra Azərbaycan iqtisadiyyatının ən inkişaf etmiş sektoru olacaqdır"</span><br><br><p><?php echo $president[$lang]; ?>,<br>Azərbaycan Respublikasının Prezidenti</p></div>
<div class="search">
<ul class="search-options">
<li id="tab1" class="selected"><a href="#" onclick="javascript:setSearchOptions(1);">Xəbər</a></li>
<li id="tab2"><a href="#" onclick="javascript:setSearchOptions(2);">Foto</a></li>
<li id="tab3"><a href="#" onclick="javascript:setSearchOptions(3);">Video</a></li>
</ul>
<div id="search-bar">
<?php axtaris(); ?>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<!-- BEGIN TABS -->
<ul id="top_menu">
<li class="top first">
<li class='top'><a href="index.php?lang=<?php echo $lang; ?>" class='top_link'><span><?php echo $ana_sehife[$lang]; ?></span></a></li>
<?php menyular(); ?>
<li class='top'><a href="contact.php?lang=<?php echo $lang;?>" class="top_link"><span><?php echo $elaqe[$lang]; ?></span></a></li>
</ul>
<!-- END TABS -->
<div class="marquee">
<p class="marquee-bg"><img src="images/marquee-bg-hot.gif" width="31" height="10" border="0" valign=bottom><span><?php echo $qaynar[$lang];?>:</span></p>
<p class="marquee-here"><marquee id="news_marquee" direction="left" width="780" behavior="SCROLL" scrollamount="1" scrolldelay="30" truespeed="truespeed" onMouseOver="this.stop();" onMouseOut="this.start();">
<?php qaynarXet(); ?>
</marquee></p>
<p class="marquee-opt"><span style="cursor:hand;" onClick="document.getElementById('news_marquee').direction='left'"><IMG SRC="images/leftinter.gif" WIDTH="10" HEIGHT="10" BORDER="0"></span><span style="cursor: hand;" onClick="document.getElementById('news_marquee').direction='right'"><IMG SRC="images/rightinter.gif" WIDTH="10" HEIGHT="10" BORDER="0"></span></p>
</div>
<div class="wrapper">
<div class="content">
<div class="top-banner"><IMG src="images/testbanner.jpg" width="660" height="60" border="0"></div>
<BR>
<div class="section">
<h1>Saytın Xəritəsi</h1>
</div>
<div class="clear"></div>
<BR>
<div class="sitemap">
<ul class="sitemap-out"><li><a href="index.php?lang=<?php echo $lang;?>"><?php echo $ana_sehife[$lang];?></a></li></ul>
<?php
if(empty($_GET['lang']))
{
$lang='1';
}
else
{
$lang=strip_tags(mysql_real_escape_string($_GET['lang']));
}
$makale_sorgula=mysql_query("SELECT * FROM sehife WHERE lang='$lang'")or die("Xəbərləri Göstərən Sorğu işləmir");
while($oxu=mysql_fetch_array($makale_sorgula))
{
$kateqoriya= $oxu['kateqoriya'];
$kat_sorgula=mysql_query("SELECT * FROM kateqoriya WHERE lang='$lang' and id='$kateqoriya'")or die("Bölmələri göstərən sorğu işləmir");
while($fetch=mysql_fetch_array($kat_sorgula))
{
echo '
<hr class="sitemap-line">
<ul class="sitemap-out">
<li><A HREF="#">'.$fetch['adi'].'</A></li>
</ul>
<ul class="sitemap-in">
<li><A HREF="">'.$oxu['mesajbasliklari'].'</A></li>
</ul>
<br>';
}
}
?>
<!--Php kodlaro bura qeder yazilmalidir!-->
<ul class="sitemap-out">
<li><a href="catalog.php"><?php echo $qalereya[$lang];?></a></li>
</ul>
<hr class="sitemap-line">
<ul class="sitemap-out">
<li><a href="contact.php?lang=<?php echo $lang;?>"><?php echo $elaqe[$lang];?></a></li>
</ul>
<hr class="sitemap-line">
<ul class="sitemap-out">
<li><a href="view.php?lang=az&menu=archives"><?php echo $arxiv[$lang];?></a></li>
</ul>
</div>
<div class="pagi">
<p style="float:right; margin-right:12px;"><a href="#">Geri</a> | <a href="#">Yuxarı</a></p></p>
</div>
</div>
</div>
<div class="right">
<img src="images/photo5.jpg" width="310" height="318" border="0">
<BR><BR>
<div class="clear"></div>
<h1 class="headline"><?php echo $acar_sozler[$lang]?></h1>
<div class="tags">
<?php acarSozler(); ?>
</div>
<BR>
<div class="clear"></div>
<h1 class="headline"><?php echo $axtarilanlar[$lang]; ?></h1>
<div class="headlines">
<?php
cox_axtarilanlar();
?>
</div>
<BR>
<div class="clear"></div>
<h1 class="headline other"><?php echo $son_elaveler[$lang]?></h1>
<div class="headlines">
<?php
son_elave_olunanlar();
?>
</div>
<br>
<div class="clear"></div>
<h1 class="headline other"><?php echo $coxOxunanlar[$lang]?></h1>
<div class="headlines">
<?php en_baximli_xeberler();?>
</div>
<br>
<div class="clear"></div>
<div class="subscribe">
<h1><?php echo $abune[$lang];?></h1>
<?php abonent_block(); ?>
</div>
<br>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="footer">
<dl>
<dt class="copy_our">© 2010 <A HREF="">ICT NEWS</A><BR>Rabitə və İnformasiya Texnologiyaları Nazirliyinin elektron xəbər xidməti</dt>
<dt><A HREF="">Bizimlə əlaqə</A><BR><A HREF="">RSS</A></dt>
<dt style="float:right;"><?php echo $mhm[$lang];?> <A HREF="#" target="_blank">MHM</A></dt>
</dl>
</div>
</div>
</body>
</html>