Location: PHPKode > projects > News Manager - RSS aggregator > newsmanager/header.php
<?php
	/*******************************************************************************
     **  File          :  header.php                             	              **
     **  Author        :  G.Ramkumar                                              **
     **  Description   :  Html header designs 							          **
     **					  			  										      **
     **  				  										                  **
  	 **  Date          :  14/07/2005                                              **
     **  Last Modified :  02/08/2005                                              **
     **  PHP Version   :  5.0.3                                                   **
     **                                                                           **
     *******************************************************************************/
session_start();
if(empty($_REQUEST['lang']) && $_COOKIE["LANGUAGE"]=="")
   $lang='en';
elseif($_REQUEST['lang']!="")
   $lang=$_REQUEST['lang'];
else
   $lang=$_COOKIE["LANGUAGE"];

setcookie("LANGUAGE", $lang,time()+36000);

  include('db/dbconnect.php');
  include('translate.php');

  $head_qry_="select * from static where position='Top' and language='$lang' order by version asc";
  $head_res=$pg_sql->query_pass($head_qry_,"4");

	 for($hi=0;$hi<count($head_res);$hi++)
	 {
	    $id=$head_res[$hi][page_id];
	    $tit_=trim($head_res[$hi][title]);
	    $head_title .="<a href='static.php?id=".$id."&lang=".$lang."' title='".$tit_."'>".$tit_."</a>&nbsp;<img src='images/".$itemsplitter."' width='3' height='9'>&nbsp;";

	 }
  if(strstr($_SERVER['HTTP_USER_AGENT'],'Firefox') || strstr($_SERVER['HTTP_USER_AGENT'],'Gecko'))
     $ou_ht='';
   else
    $ou_ht='height="100%"';

?>
<html>
<head>
<?php
  $page_name_=basename($_SERVER['PHP_SELF']);
  if(!strstr($page_name_,"article")){
?>
<title>news.belgium.be</title>
<?}?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Keywords" CONTENT="News manager Rss feeds news item archive">
<META NAME="Description" CONTENT="News manager Rss aggregator">
<?if($page_name_ == 'index.php'){?>
<meta http-equiv="refresh" content="<?=$time_delay__?>">
<?}if($display_style_==1){
	$search_logo_style='search02_1.gif';	
	$heading3new='heading3';
	$bottom_bgcolor_style='#FFEC9F';
	$bottom_cat_style='#9EB3D1';
	$rss_style_='rss-2.0.jpg';
	$itemsplitter='itemspliter.gif';
	$search_logo_height='20';
	$search_logo_width='25';

?>
<link rel="stylesheet" href="css/frontend.css" type="text/css">
<link rel="stylesheet" href="css/header.css" type="text/css">
<link rel="stylesheet" href="css/mod.css" type="text/css">
<?}if($display_style_==2){
	$search_logo_style='search02_2.jpg';
	$top_image_style='greenbanner2.jpg';
	$heading3new='heading3new';
	$bottom_bgcolor_style='#84826B';
	$bottom_cat_style='#A0A371';
	$rss_style_='rss_logo2.jpg';
	$itemsplitter='itemspliter2.jpg';
	$search_logo_height='18';
	$search_logo_width='17';
?>
<link rel="stylesheet" href="css/frontend2.css" type="text/css">
<?}if($display_style_==3){
	$search_logo_style='search02_3.jpg';	
	$top_image_style='bluebanner3.jpg';
	$heading3new='heading3new';
	$bottom_bgcolor_style='#C1DBFB';
	$bottom_cat_style='#9EB3D1';
	$rss_style_='rss_logo3.jpg';
	$itemsplitter='itemspliter3.jpg';
	$search_logo_height='18';
	$search_logo_width='17';
?>
<link rel="stylesheet" href="css/frontend3.css" type="text/css">
<?}?>
<link rel="News Manager icon" href="images/smallbe.gif">
<link rel="alternate" type="application/rss+xml" title="<?=$minister_?>" href="http://presscenter.org/rss/cmr.php?language=<?=$lang?>">
<link rel="alternate" type="application/rss+xml" title="<?=$news_?>" href="http://presscenter.org/rss/pr.php?language=<?=$lang?>&max=20">
<link rel="alternate" type="application/rss+xml" title="Newsmanager <?=$news_?>" href="<?=$lang?>.xml">
<script LANGUAGE="JavaScript" type="text/javascript" SRC="script/script.js"></script>
<object id="Audio" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="0" width="0"></object>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center" <?=$ou_ht?>>
  <tr>
    <td align="left" valign="top" height="94">
       <table border="0" cellspacing="0" width="100%" cellpadding="0" align="center">
        <tr>
          <td class="fedhead">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="fedsep"><img src="images/opt.gif" width="1" height="29" alt=""></td>
					<td><img src="images/opt.gif" width="10" height="20" alt=""></td>
					<td class="fedmenu">
						<?if($lang=='nl'){?>
					<span class="activelang2">
					<img src="images/opt.gif" width="2" height="8" alt="">NL<img src="images/opt.gif" width="2" height="8" alt="">
					</span>&nbsp;<img src="images/$itemsplitter" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=fr" title="FR">FR</a>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=en" title="EN">EN</a>
					&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=de" title="DE">DE</a>
					</span>
					<?}if($lang=='en'){?>
					<span class="activelang2">
					<img src="images/opt.gif" width="2" height="8" alt="">EN<img src="images/opt.gif" width="2" height="8" alt="">
					</span>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=nl" title="NL">NL</a>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=fr" title="FR">FR</a>
					&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=de" title="DE">DE</a>
					</span>
					<?}if($lang=='fr'){?>
					<span class="activelang2">
					<img src="images/opt.gif" width="2" height="8" alt="">FR<img src="images/opt.gif" width="2" height="8" alt="">
					</span>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=nl" title="NL">NL</a>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=en" title="EN">EN</a>
					&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=de" title="DE">DE</a>
					</span>
					<?}if($lang=='de'){?>
					<span class="activelang2">
					<img src="images/opt.gif" width="2" height="8" alt="">DE<img src="images/opt.gif" width="2" height="8" alt="">
					</span>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=nl" title="NL">NL</a>&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=en" title="EN">EN</a>
					&nbsp;<img src="images/<?=$itemsplitter?>" width="3" height="9" alt="">&nbsp;<a href="<?=$page_name_?>?lang=fr" title="FR">FR</a>
					</span>
					<?}?>
					</td>
				</tr>
			</table>
          </td>
          <td align="right" class="fedhead">
            <table border="0" cellspacing="0" cellpadding="0">
				<tr>
				<form name="quicksearch" action="quick_results.php?lang=<?=$lang?>" method="post" onsubmit="return checkfield();">
					<td align="right" class="fedmenu" nowrap><?=$head_title?><a href="advsearch.php?lang=<?=$lang?>"  class="" title="<?=$advsearch_?>"><?=$advsearch_?></a></td>
					<td>&nbsp;</td>
					<td align="right" class="fedsep"><img src="images/opt.gif" width="1" height="1" alt=""></td>
					<td class="fedheadsearch">&nbsp;&nbsp;</td>
					<td align="right" class="fedheadsearch"><?=$search_?>:</td>
					<td class="fedheadsearch">&nbsp;</td>
					<td class="fedheadsearch">
					 <input type="text" name="search">
					</td>
					<td class="fedheadsearch" valign="middle"><input name="search" type="image" src="images/<?=$search_logo_style?>" width="<?=$search_logo_width?>" height="<?=$search_logo_height?>" align="absmiddle" border="0" alt="<?=$search_?>"></td>
					<?if($display_style_==1){?>
						<td class="fedsep"><img src="images/opt.gif" width="1" height="1" alt=""></td>
						<td><a href="http://www.belgium.be/eportal/application?languageParameter=<?=$lang?>"  title="Go to the Belgium.be portal"><img src="images/smalldotbe03.gif" width="37" height="29" border="0" alt=".be"></a></td>
					<?}else{?>
					<td class="fedsep"><img src="images/opt.gif" width="1" height="1" alt=""></td>	
					<?}?>
					<td class="fedsep"><img src="images/opt.gif" width="1" height="1" alt=""></td>
				</form>
				</tr>
			</table>
          </td>
        </tr>
        <tr>
		  <td colspan="2" class="fedsep"><img src="images/opt.gif" width="1" height="1" alt=""></td>
		</tr>
        <tr>
          <td align="left" valign="top" colspan="3">
		     <table width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr>
		           <td align="left" valign="top" width="100" height="1" class="line"></td>
		           <td align="right" valign="top" height="1" class="line"></td>
		        </tr>
		        <tr>
				<?if($display_style_==1){?>
		          <td align="left" valign="top" width="100"><a href="index.php?lang=<?=$lang?>"><img src="images/<?=$belogo_?>" width="99" border="0" alt="news.belgium.be" height="78"></a></td>
		          <td align="right" valign="top"><img src="images/new_train_.jpg" width="610" height="78"></td>
				<?}else{?>
				<td align="right" valign="top"><img src="images/<?=$top_image_style?>"></td>
				<?}?>
		        </tr>
		     </table>
            </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
   		<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
	 	<?if($display_style_==1){?>
           <tr>
             <td width="180" align="left" valign="top" height="5"></td>
             <td align="left" valign="middle" colspan="2" height="5" ></td>
           </tr>
		   <tr>
			 <td width="180" align="left" valign="top" bgcolor="E6EDF7" height="14"><a href="index.php?lang=<?=$lang?>"><img src="images/<?=$news_image_?>" border="0" width="180" alt="<?=$news_?>"></a></td>
			 <td align="left" valign="middle" colspan="2" class="mmpadding" >
			   <table width="100%" border="0" cellspacing="0" cellpadding="0">
				 <tr>
				   <td align="left" valign="bottom" width="165" height="14"><a href="http://www.belgium.be/eportal/application?origin=navigationBanner.jsp&event=bea.portal.framework.internal.refresh&pageid=targetHomePage&navId=491&languageParameter=<?=$lang?>"><img src="images/<?=$citizen_?>" alt="<?=$citizenalt_?>" width="153" height="17" border="0"></a></td>
				   <td align="left" valign="bottom" width="165" height="14"><a href="http://www.belgium.be/eportal/application?origin=navigationBanner.jsp&event=bea.portal.framework.internal.refresh&pageid=targetHomePage&navId=225&browseFromLifecycle=no&languageParameter=<?=$lang?>"><img src="images/<?=$business_?>" alt="<?=$businessalt_?>" width="154" height="17" border="0"></a></td>
				   <td align="left" valign="bottom" height="14"><a href="http://www.belgium.be/eportal/application?origin=navigationBanner.jsp&event=bea.portal.framework.internal.refresh&pageid=targetHomePage&navId=1969&languageParameter=<?=$lang?>"><img src="images/<?=$civil_?>" alt="<?=$civilalt_?>" width="153" height="17" border="0"></a></td>
				 </tr>
			   </table>
			  </td>
			  </tr>		
			  <?}?>
Return current item: News Manager - RSS aggregator