<?PHP
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#|                                                                        #|
#|         JabboCMS - Website and Content Management System               #|
#|         Copyright © 2011 Jor.dan. All rights reserved.                 #|
#|																		  #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|

	include("./global.php");
	$pagename = "Ev&egrave;nement";
	$pageid = "articles";
	
if(!session_is_registered(username))
	{
		Redirect("".$url."/index.php");
	}
	
$id = Securise($_GET['id']);
?>
<!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" xml:lang="fr" lang="fr">
<head> 
<meta http-equiv="content-type" content="text/html; charset=ISO 5589-1" /> 
<title><?PHP echo $sitename; ?>: <?PHP echo $pagename; ?></title> 
 
<script type="text/javascript"> 
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "<?PHP echo $user['username']; ?>";
var habboReqPath = "<?PHP echo $url; ?>";
var habboStaticFilePath = "<?PHP echo $imagepath; ?>";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?PHP echo $url; ?>/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "uberClientWnd"; }
</script> 



<link rel="shortcut icon" href="<?PHP echo $imagepath; ?>favicon.ico" type="image/vnd.microsoft.icon" /> 
<script src="<?PHP echo $imagepath; ?>static/js/libs2.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/visual.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/libs.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/common.js" type="text/javascript"></script>

<script src="<?PHP echo $imagepath; ?>static/js/fullcontent.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/personal.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/habboclub.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/minimail.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/myhabbo/control.textarea.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/minimail.js" type="text/javascript"></script>

 

<meta name="description" content="<?PHP echo $description; ?>" /> 
<meta name="keywords" content="<?PHP echo $keyword; ?>" />  
<!--[if IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie6.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(http://www.habbo.com/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="<?PHP echo $build; ?> >> <?PHP echo $version; ?>" /> 
</head>


	 
<body id="news" class=" "> 
<div id="overlay"></div> 
<!-- MENU -->
<?PHP include("./template/header.php"); ?>
<!-- FIN MENU -->

<div id="container"> 
	<div id="content" style="position: relative" class="clearfix"> 
    <div id="column1" class="column"> 
		     		
				<div class="habblet-container ">		
						<div class="cbb clearfix default "> 
	
							<h2 class="title">Autres infos
							</h2> 
						<div id="article-archive"> 
 
 

<h2>Les 30 derni&egrave;re news</h2> 
<ul> 
<?PHP
$sql = mysql_query("SELECT * FROM site_news ORDER BY id DESC LIMIT 0,30");
while($news = mysql_fetch_array($sql)) { ?>
	<li>		
		<a href="articles.php?id=<?PHP echo $news['id']; ?>"><?PHP echo utf8_decode($news['title']); ?>&nbsp;&raquo;</a> 
	</li>  
<?PHP } ?>

</ul> 
 
<a href="/articles/archive">Plus d'infos &raquo;</a> 
</div> 
	
						
					</div> 
				</div> 
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
			 
 
</div> 
<div id="column2" class="column"> 
			     		
				<div class="habblet-container ">		
						<div class="cbb clearfix notitle "> 
<?PHP
	if(isset($id)) {
	$sql = mysql_query("SELECT * FROM site_news WHERE id = '".$id."'");
	$row = mysql_num_rows($sql);
	$n = mysql_fetch_assoc($sql);
		if(empty($id)) { ?>

													<div id="article-wrapper"> 
	<h2>Aucune News.</h2> 
	<div class="article-meta"><?PHP echo FullDate('full'); ?>
		<a href="/articles/category/events">Introuvable</a></div> 
	
			 
	<p class="summary">Articles introuvable.</p> 
	
	<div class="article-body"> 

Il est probable que l'article que vous recherchez est inéxistant.<br>
Merci d'en selectionner un autre dans la liste des articles à votre gauche.

<div class="article-author">Cosmik, Hotel Owner.</div> 
	
	
	<div class="article-images clearfix"> 
	</div> 
 
  
	</div> 

</div> 
<?PHP } elseif($row < 1) {
?>
<div id="article-wrapper"> 
	<h2>Aucune News.</h2> 
	<div class="article-meta"><?PHP echo FullDate('full'); ?>
		<a href="/articles/category/events">Introuvable</a></div> 
	
			 
	<p class="summary">Articles introuvable.</p> 
	
	<div class="article-body"> 

Il est probable que l'article que vous recherchez est inéxistant.<br>
Merci d'en selectionner un autre dans la liste des articles à votre gauche.

<div class="article-author">Cosmik, Hotel Owner.</div> 
	
	
	<div class="article-images clearfix"> 
	</div> 
 
  
	</div> 

</div> 


<?PHP } else { ?>
<div id="article-wrapper"> 
	<h2><?PHP echo utf8_decode($n['title']); ?></h2> 
	<div class="article-meta"><?PHP echo $n['datestr']; ?>
		<a href="/articles/category/events"><?PHP echo $n['category_id']; ?></a></div> 
	
			 
	<p class="summary"><?PHP echo utf8_decode($n['snippet']); ?></p> 
	
	<div class="article-body"> 

<?PHP echo utf8_decode($n['body']); ?>

<div class="article-author"><?PHP echo utf8_decode($n['auteur']); ?></div> 
	
	
	<div class="article-images clearfix"> 
	</div> 
 
  
	</div> 

</div> 
<?PHP } } ?>
							
						
							
					</div> 
				</div> 
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
			 
 
</div> 


<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]--> 
<!-- FOOTER -->
<?PHP include("./template/footer.php"); ?>
<!-- FIN FOOTER -->


<div style="clear: both;"></div>


</div></div></div></div>

 
<script type="text/javascript"> 
HabboView.run();

</script>


</body> 
</html> 