- 13 Agosto 2012
- 296
- 0
- Miglior risposta
- 0
Salve a tutti ragazzi come da titolo cerco una radio nottambula che funzioni sempre e che non bisogna ne creare sito e ne nnt...
Perfavore postatemi il codice html.
Grazie in anticipo
--------------- AGGIUNTA AL POST ---------------
Vi posto la me.php e se mi potete mettere voi il codice grazie lo vorrei vicino le news [
<?php
/*=====================================================================+
|| # HoloCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================*/
include('core.php');
include('includes/session.php');
include('includes/news_headlines.php');
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$pagename = $name;
$pageid = "1";
// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");
include('templates/community/subheader.php');
include('templates/community/header.php');
?>
<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<?PHP
$rand =rand(0,100);
if($rand < 85){
//PUBLI EDU
?>
<?PHP
} else {
//PUBLI HECTOR
?>
<?PHP
}
?>
<style>
.credits_small {
background-color: #98721A;
background-image: url("web-gallery/v2/images/credit.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #D19E25;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 25%;
float: left;
}
.pixels_small {
background-color: #537384;
background-image: url("web-gallery/v2/images/pixel.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #719DBA;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
.mon_small {
background-color: #50C878;
background-image: url("web-gallery/v2/images/monete.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #090;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
</style>
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px; width: 75%"><b>ATTENZIONE:</b> Ogni 20 online riceverai delle STELLE.. e con le competizioni degli star</div>
<div id="columnme" class="column">
<div class="habblet-container " >
<div class="cbb clearfix black " style="background:url('/images/bgme.png') no-repeat;height:200px;background-position:5px 0;background-color:#000;">
<div class="box-content1" style="color:#FFF;width:210px;float:left;background:#262626;padding:5px 5px 5px 5px;height:115px;margin:20px 0px 0 0;border-radius:0 5px 5px 0;-moz-border-radius:0 5px 5px 0;box-shadow:0 0 5px #A1A1A1;">
<div id="name" style="font-size:15px;padding:0 0 0 75px;">
<strong><?php echo $name; ?></strong>
</div>
<div id="habbo-plate" style="display:inline;">
<img alt="Skyblue" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $avatar; echo $myrow['look']; ?>&direction=&head_direction=3&gesture=sml&action=wav" style="display:inline;margin-left:10px;margin-top:-20px;" />
</div>
<div id="habbo-info">
<div id="motto-container" class="clearfix">
<ul id="link-bar" class="clearfix" style="display:inline;float:left;position:relative;margin-top:-80px;line-height:20px;margin-left:75px;">
<li class="credits" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -190px;padding-left:20px;">
<?php echo $myrow['credits']; ?></a> Crediti
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -1070px;padding-left:20px;">
<?php echo $myrow['activity_points']; ?></a> Pixel
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -480px;padding-left:20px;">
<?php echo $myrow['vip_points']; ?></a> Stelle
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -480px;padding-left:20px;">
<?php echo $myrow['star_points']; ?></a> star
</li>
</ul>
<div class="box-content" style="width:510px;float:left;position:absolute;display:inline;z-index:1000;margin:-145px 0 0 230px;">
<h2 style="color:#FFF;font-size:22px;padding: 25px 0 0 10px;text-shadow:0 0 10px #FFF;">Benvenuto, <?php echo $name; ?></h2>
<h8 style="color:#FFF;font-weight:none;font-size:13px;margin:0 0 0 10px;text-shadow:0 0 10px #000;">La tua ultima visita è stata il <?php echo date('d-m-Y', $myrow['last_online']); echo""; ?></h8>
<br><h8 style="color:#FFF;font-weight:none;font-size:13px;margin:0 0 0 10px;text-shadow:0 0 10px #000;"><?php echo date('H:i:s', $myrow['last_online']); echo""; ?>. Bentornato!</h8>
<br>
<div style="margin-top:30px;background:#000;padding:5px;opacity:0.8;">
<h8 style="color:#FFF;font-weight:none;font-size:15px;margin:0px 0 0 260px;position:relative;">Cosa aspetti? <a href="/client" onclick="HabboClient.openOrFocus(this); return false;">Entra in Earth »</a> </h8>
</div> </div></div></div></div></div>
</div></div>
<!--div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&head_direction=3&gesture=sml&action=&size=l" width="64" height="110"/>
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">Nome Utente:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Missione:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Ultimo Accesso:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="/client.php" class="new-button green-button" target="client" onclick="HabboClient.openOrFocus(this); return false;">Entra in Earth <?php echo $shortname ?><i></i></a>
<b></b>
</div>
</div>
</div>-->
<?php
require_once('./nuovanews.php');
?>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">I miei personaggi | <a href="/identity/add_avatar.php">Aggiungi altri</a></h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$myrowq = mysql_query("SELECT * FROM users WHERE mail = '".$myrow['mail']."' ORDER BY lastvisit DESC LIMIT 100");
$result = mysql_query("SELECT id,username,last_online,look,password FROM users WHERE mail = '".$myrow['mail']."' ORDER BY id DESC");
while($myrow = mysql_fetch_array($myrowq))
{
$i++;
if(IsEven($i)) {
$oddeven = "even";
} else {
$oddeven = "odd";
}
echo "
<li class=".$oddeven.">
<div class=\"hotcampaign-container\">
<img src=\"http://www.habbo.it/habbo-imaging/avatarimage?figure=".$myrow['look']."&size=s\" figure=\"".$myrow['look']."\" alt=\"".$myrow['username']."\" class=\"avatar\" /><font size=\"2\"><span style=\"font-weight: bold;\">".$myrow['username']."</span></font><br> Ultimo accesso: ".$myrow['lastvisit']."<br>
<CENTER>
<a href=\"habblet/check_avatar.php?name=".$myrow['username']."\"><b>Gioca</b></a><br></CENTER>
</div>
</li>";
}
?>
</ul>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Habbo Search*/ ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>
<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}
// Calculate percentage
// Base room icon based on this - percantage levels may not be habbolike
}
?>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>
</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">
<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>Le News di Earth</h4>
<h3><a href="news.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>
<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_1_id; ?>">Leggi »</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime news</h4>
<h3><a href="news.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi »</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>
<h3><a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi »</a>
</p>
</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">« Precedente</a><span>1</span> / 3<a href="#" class="next">Successiva »</a></div>
</div>
<ul class="widelist">
<li class="even">
<a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> »</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="news.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> »</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="news.php">Altre news »</a></li>
</ul>
</div>
<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>
<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Scelte dallo Staff</h2>
<ul class="box-tabs">
<li id="tab-rooms"><a href="#">Stanze</a><span class="tab-spacer"></span></li>
<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>
</li>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script> </div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;
$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);
if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><strong><?php echo HoloText($grouprow['name']); ?></strong></a>
</li>
<?php } ?>
</ul>
</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<footer>
</footer>
<div id="column3" class="column">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="https://www.facebook.com/index.php?stype=lo&lh=Ac8DLhAwupf7Fwf_" data-width="292" data-show-faces="false" data-stream="false" data-header="true"></div>
</div></div>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
include('templates/community/footer.php');
?>
Perfavore postatemi il codice html.
Grazie in anticipo
--------------- AGGIUNTA AL POST ---------------
Vi posto la me.php e se mi potete mettere voi il codice grazie lo vorrei vicino le news [
<?php
/*=====================================================================+
|| # HoloCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore,
Entra
oppure
Registrati
per vedere i Link!
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================*/
include('core.php');
include('includes/session.php');
include('includes/news_headlines.php');
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$pagename = $name;
$pageid = "1";
// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");
include('templates/community/subheader.php');
include('templates/community/header.php');
?>
<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<?PHP
$rand =rand(0,100);
if($rand < 85){
//PUBLI EDU
?>
<?PHP
} else {
//PUBLI HECTOR
?>
<?PHP
}
?>
<style>
.credits_small {
background-color: #98721A;
background-image: url("web-gallery/v2/images/credit.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #D19E25;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 25%;
float: left;
}
.pixels_small {
background-color: #537384;
background-image: url("web-gallery/v2/images/pixel.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #719DBA;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
.mon_small {
background-color: #50C878;
background-image: url("web-gallery/v2/images/monete.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #090;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
</style>
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px; width: 75%"><b>ATTENZIONE:</b> Ogni 20 online riceverai delle STELLE.. e con le competizioni degli star</div>
<div id="columnme" class="column">
<div class="habblet-container " >
<div class="cbb clearfix black " style="background:url('/images/bgme.png') no-repeat;height:200px;background-position:5px 0;background-color:#000;">
<div class="box-content1" style="color:#FFF;width:210px;float:left;background:#262626;padding:5px 5px 5px 5px;height:115px;margin:20px 0px 0 0;border-radius:0 5px 5px 0;-moz-border-radius:0 5px 5px 0;box-shadow:0 0 5px #A1A1A1;">
<div id="name" style="font-size:15px;padding:0 0 0 75px;">
<strong><?php echo $name; ?></strong>
</div>
<div id="habbo-plate" style="display:inline;">
<img alt="Skyblue" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $avatar; echo $myrow['look']; ?>&direction=&head_direction=3&gesture=sml&action=wav" style="display:inline;margin-left:10px;margin-top:-20px;" />
</div>
<div id="habbo-info">
<div id="motto-container" class="clearfix">
<ul id="link-bar" class="clearfix" style="display:inline;float:left;position:relative;margin-top:-80px;line-height:20px;margin-left:75px;">
<li class="credits" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -190px;padding-left:20px;">
<?php echo $myrow['credits']; ?></a> Crediti
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -1070px;padding-left:20px;">
<?php echo $myrow['activity_points']; ?></a> Pixel
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -480px;padding-left:20px;">
<?php echo $myrow['vip_points']; ?></a> Stelle
<li class="activitypoints" style="background-image:url(/web-gallery/v2/images/info_icons.png);background-repeat:no-repeat;background-position:0 -480px;padding-left:20px;">
<?php echo $myrow['star_points']; ?></a> star
</li>
</ul>
<div class="box-content" style="width:510px;float:left;position:absolute;display:inline;z-index:1000;margin:-145px 0 0 230px;">
<h2 style="color:#FFF;font-size:22px;padding: 25px 0 0 10px;text-shadow:0 0 10px #FFF;">Benvenuto, <?php echo $name; ?></h2>
<h8 style="color:#FFF;font-weight:none;font-size:13px;margin:0 0 0 10px;text-shadow:0 0 10px #000;">La tua ultima visita è stata il <?php echo date('d-m-Y', $myrow['last_online']); echo""; ?></h8>
<br><h8 style="color:#FFF;font-weight:none;font-size:13px;margin:0 0 0 10px;text-shadow:0 0 10px #000;"><?php echo date('H:i:s', $myrow['last_online']); echo""; ?>. Bentornato!</h8>
<br>
<div style="margin-top:30px;background:#000;padding:5px;opacity:0.8;">
<h8 style="color:#FFF;font-weight:none;font-size:15px;margin:0px 0 0 260px;position:relative;">Cosa aspetti? <a href="/client" onclick="HabboClient.openOrFocus(this); return false;">Entra in Earth »</a> </h8>
</div> </div></div></div></div></div>
</div></div>
<!--div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&head_direction=3&gesture=sml&action=&size=l" width="64" height="110"/>
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">Nome Utente:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Missione:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Ultimo Accesso:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="/client.php" class="new-button green-button" target="client" onclick="HabboClient.openOrFocus(this); return false;">Entra in Earth <?php echo $shortname ?><i></i></a>
<b></b>
</div>
</div>
</div>-->
<?php
require_once('./nuovanews.php');
?>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">I miei personaggi | <a href="/identity/add_avatar.php">Aggiungi altri</a></h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$myrowq = mysql_query("SELECT * FROM users WHERE mail = '".$myrow['mail']."' ORDER BY lastvisit DESC LIMIT 100");
$result = mysql_query("SELECT id,username,last_online,look,password FROM users WHERE mail = '".$myrow['mail']."' ORDER BY id DESC");
while($myrow = mysql_fetch_array($myrowq))
{
$i++;
if(IsEven($i)) {
$oddeven = "even";
} else {
$oddeven = "odd";
}
echo "
<li class=".$oddeven.">
<div class=\"hotcampaign-container\">
<img src=\"http://www.habbo.it/habbo-imaging/avatarimage?figure=".$myrow['look']."&size=s\" figure=\"".$myrow['look']."\" alt=\"".$myrow['username']."\" class=\"avatar\" /><font size=\"2\"><span style=\"font-weight: bold;\">".$myrow['username']."</span></font><br> Ultimo accesso: ".$myrow['lastvisit']."<br>
<CENTER>
<a href=\"habblet/check_avatar.php?name=".$myrow['username']."\"><b>Gioca</b></a><br></CENTER>
</div>
</li>";
}
?>
</ul>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Habbo Search*/ ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>
<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}
// Calculate percentage
// Base room icon based on this - percantage levels may not be habbolike
}
?>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>
</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">
<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>Le News di Earth</h4>
<h3><a href="news.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>
<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_1_id; ?>">Leggi »</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime news</h4>
<h3><a href="news.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi »</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>
<h3><a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi »</a>
</p>
</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">« Precedente</a><span>1</span> / 3<a href="#" class="next">Successiva »</a></div>
</div>
<ul class="widelist">
<li class="even">
<a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> »</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="news.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> »</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="news.php">Altre news »</a></li>
</ul>
</div>
<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>
<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Scelte dallo Staff</h2>
<ul class="box-tabs">
<li id="tab-rooms"><a href="#">Stanze</a><span class="tab-spacer"></span></li>
<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>
</li>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script> </div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;
$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);
if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><strong><?php echo HoloText($grouprow['name']); ?></strong></a>
</li>
<?php } ?>
</ul>
</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<footer>
</footer>
<div id="column3" class="column">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="https://www.facebook.com/index.php?stype=lo&lh=Ac8DLhAwupf7Fwf_" data-width="292" data-show-faces="false" data-stream="false" data-header="true"></div>
</div></div>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
include('templates/community/footer.php');
?>
Ultima modifica: