MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/panama/news.php
<? 
	include("include/config.php"); 
	
?>
<!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="<?=$pagemetadesc?>" />
<meta name="keywords" content="<?=$pagemeta?>"/>
<title><?=SITE_TITLE."- News"?></title>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="styles.css"/>
<!-- Javascript -->
<!--[if IE 6]><script src="js/ie6.js"></script><![endif]--> 
<link rel="stylesheet" href="css/dropdownmenu.css" type="text/css" />
<script type="text/javascript" src="js/dropdownmenu.js"></script>
<? include('includescript.php')?>
</head>

<body>
<? include('header.php')?>

<div id="contentwrapper">
     <div class="contentcontainer">
          <div class="maincontainer">
               <div class="servicesbannerwrapper"><img src="images/banner_services.jpg" width="958" height="178" alt=""/></div>
          </div>
          <div class="maincontainer">
			  <div class="maincontainer">
    	           <div class="servicetextwrapper">
                    <div class="title"><span class="titleicons"><img src="images/icon_news.png" width="36" height="42" alt="CMS"/></span>
                        <span class="titletxt">NEWS</span>
					</div>
					<div class="servicescontainer">
					<?
						$news_list = new database();
						$news_list->where("1 order by dat desc");
						$news_list->selectstmt("embassy_services");
						if($news_list->row_count > 0)
						{
							for($i=0;$i < $news_list->row_count;$i++)
							{
								$news_list->moveto($i);	
								$title= $news_list->f_title;
								$simg = $news_list->f_simg;
								$dt="";
								if($news_list->f_dat<>"0000-00-00") {
									list($y,$m,$d) = split("-",$news_list->f_dat);
									$dt  = date("M jS, Y",mktime(0,0,0,$m,$d,$y));                 
								}
								$str_len=strlen($news_list->f_sdesc);
								if($str_len>210) 
								$description = substr($news_list->f_sdesc,0,210)."...";
								else 
								$description = $news_list->f_sdesc;								
					?>					
					<div style="width:20%;float:left;border:1px solid #CCCCCC;padding:5px" align="center">
						<img src="display_image.php?path=http://116.12.55.42/newsimg/<?php echo $simg;?>&width=100&height=75&watermark=-1" border="0">
					</div>	
					<div style="width:76%;float:right;vertical-align:top;">
						<span class="newstitle"  align="left"><?=$title?></span>
						<p align="left">
							<?=$dt?>
						</p>
					</div>	
					<div style="clear:both"></div>			
					<div align="left" class="services">
						
						  <?=$description?>					
						
						<? if($str_len>210) {?>
					    <span class="readmore">	<a href="news_detail.php?news_id=<?=base64_encode($news_list->f_sid)?>" title="read more" class="readmore">{read more}</a></span>
						<? } ?>
					</div>
					<div style="clear:both"></div>	
					<div style="height:15px"><div class="btmborderdot"></div></div>	
					
					<? 	} 
					   }	
					?>
					</div>
               </div>
        	       <div class="servicesphotowrapper">
                    <div class="servicesphotocontainer">
                          <? include("right.php");?>
                    </div>
              </div>
			  </div>
          </div>
     </div>
     <? include('footer.php')?>
</div>
       
</body>
</html>