Location: PHPKode > projects > News Manager - RSS aggregator > newsmanager/view_channel.php
<?php
session_start();
include('header.php');

$qry="select * from rsschannel where channel_language='".$_REQUEST['lang']."'";
$qry_res=$pg_sql->query_pass($qry,"4");

$cnt_all=count($qry_res);


if($cnt_all==0)
{
 $flag="No channels available";
}

?>
<tr>
<td width="180" align="left" valign="top">
		<?include("list_categories.php")?>
  </td>

   <td width="540" align="left" valign="top">
        <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
  		  <tr>
  			<td align="left" valign="top" class="bgybluewolineCopy" height="17">&nbsp;&nbsp;<span class="cont"><?=$your_?> :</span><a class="contlink" href="http://www.belgium.be/eportal/application?languageParameter=<?=$lang?>">Home</a>:&nbsp;<img src="images/arrow.gif">&nbsp;<span class="cont">News</span>&nbsp;<img src="images/arrow.gif"><span class="cont"><?=$rss_services_?></span></td>
  		  </tr>
     </table>
	 <table cellpadding="3" width="95%" class="border" align="center" cellspacing="0" border="0">

		 	<?
			for($i=0;$i<$cnt_all;$i++)
			{
			  $langu=$qry_res[$i]['channel_language'];
			  $chid=$qry_res[$i]['channel_id'];
			  $title=str_replace("||","'",$qry_res[$i]['channel_shortname']);
              if($i%2==0)
                $bgcolor="D0D0D0";
              else
				$bgcolor="FFFFFF";
			?>
			<tr>
			 <td valign="top" class="cont" bgcolor="<?=$bgcolor?>"><?=$title?></td>
			 <td align="center" valign="top" class="cont" bgcolor="<?=$bgcolor?>"><a href="xml_all.php?id=<?=$chid?>" target="_new"><span class="cont"><?=strtoupper($langu)?></span></a></td>
			</tr>
			<?
			}if($flag!="")
			{
			?>
			<tr><td align="center" class="msg"><?=$flag?></td></tr>
			<?}?>
			</table>
 </td>
 <td width="180" align="left" valign="top">
 	<table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="left" valign="top" class="bgybluewolineCopy" height="19"></td>
     </tr>
    </table>
       <table border="0" cellspacing="0" cellpadding="3">
	     <tr>
          <td align="left" valign="middle"> <?include('readalso.php')?></td>
	    </tr>
	 </table>
 </td>
 </tr>

<?
include('footer.php');
?>

Return current item: News Manager - RSS aggregator