Hey,
I have an exchange value page for PHPretro. I hope that is!
SCREEN: http://www.plaatjesupload.nl/bekijk/...027811-560.png
IMAGES FOR RAREVALUE.PHP rareimg.rar
RAREVALUE.PHP
All in one. Images, rarevalue.php and screen: Rarevalu - All in one.rarPHP Code:<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # RARE VALUES. MAKING AND RELEASED BY LOUCKY!
\+================================================================*/
$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");
$page['id'] = "rare";
$page['name'] = $lang->loc['pagename.credits'];
$page['bodyid'] = "home";
$page['cat'] = "credits";
require_once('./templates/community_header.php');
?>
<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title">Rare
</h2>
<div class="habblet box-content">
<?php
$HCvalue = 25;
$HCname = 'HC';
$HCimg = 'clubsofa';
if(isset($_GET['cat']))
{
$choose=$_GET['cat'];
if($choose=='1') //Standard Rares
{
$query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
$error="There aren't any rares yet!";
}
else if($choose=='2') //Xmas Rares
{
$query='SELECT * FROM rarevalue WHERE category = 2 ORDER BY img';
$error="There aren't any Christmas rares at the moment!";
}
else if($choose=='3') //Halloween Rares
{
$query='SELECT * FROM rarevalue WHERE category = 3 ORDER BY img';
$error="There aren't any Halloween rares at the moment!";
}
else if($choose=='4') //HC Rares
{
$query='SELECT * FROM rarevalue WHERE category = 4 ORDER BY img';
$error="There aren't any HC rares at the moment!";
}
else if($choose=='5') //All
{
$query='SELECT * FROM rarevalue ORDER BY value';
$error="There aren't any rares yet!";
}
else if($choose=='6') //Most valueable
{
$query='SELECT * FROM rarevalue WHERE category != 4 ORDER BY value DESC LIMIT 5';
$error="There aren't any rares yet!";
}
else if($choose=='7') //Least valuable
{
$query='SELECT * FROM rarevalue WHERE category != 4 ORDER BY value LIMIT 5';
$error="There aren't any rares yet!";
}
else
{
$query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
$error="There aren't any rares yet!";
}
}
else
{
$query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
$error="There aren't any rares yet!";
}
$getrare = mysql_query($query) or die(mysql_error());
$rarecount = mysql_num_rows($getrare);
?>
Display Type:<br><center>
<a href='rarevalue.php?cat=1' title='Non-seasonal, non HC rares'>Standard</a> |
<a href='rarevalue.php?cat=2' title='Seasonal rares only released at Christmas'>Christmas</a> |
<a href='rarevalue.php?cat=3' title='Seasonal rares only released at Halloween'>Halloween</a> |
<a href='rarevalue.php?cat=4' title='HC only rares'>Habbo Club</a> |
<a href='rarevalue.php?cat=5' title='All rares including seasonal and HC'>All</a><br>
<a href='rarevalue.php?cat=6' title='The most valuable rares'>Most Valuable</a> |
<a href='rarevalue.php?cat=7' title='The least valuable rares'>Least Valuable</a>
</center><br><br>
<?php
if($rarecount == 1) {
echo "<p>There is ".$rarecount." rare in this category.</p><br>";
} else if($rarecount >= 2) {
echo "<p>There are ".$rarecount." rares in this category.</p><br>";
} else {
echo "";
}
if($rarecount >= 1) {
while ($row = mysql_fetch_array($getrare)) {
$name = $row['name'];
$img = $row['img'];
$value = $row['value'];
$valuestate = $row['valuestate'];
$releasestate = $row['releasestate'];
$last_update = $row['last_update'];
$last_update = explode("?", $last_update);
$date = $last_update[0];
$time = $last_update[1];
$low_1HC = ($HCvalue * 0.80);
$high_1HC = ($HCvalue * 1.20);
$creditvalue = round($value * $HCvalue);
if($valuestate == 1) { $valuestateimg='<img src="rareimg/up.gif" alt="The '.$name.' rare has increased in value.">'; $colour='green'; }
else if($valuestate == 2) { $valuestateimg='<img src="rareimg/down.gif" alt="The '.$name.' rare has decreased in value.">'; $colour='red'; }
else { $valuestateimg=''; $colour='black'; }
if($releasestate == 0) { $new='<img src="rareimg/new.gif" alt="The '.$name.' rare has recently been added.">'; }
else if($releasestate == 1) { $new=''; }
echo "<img src='rareimg/".$img.".gif' alt='".$name." rare last updated ".$last_update[0]." at ".$last_update[1]."'><b><font color='".$colour."'>".$name.":</b> <i>".$value." ".$HCname."</font></i> (".$creditvalue." credits) ".$valuestateimg.$new."<br>";
}
} else {
echo "<p>".$error."</p><br>";
}
?>
</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 red ">
<h2 class="title">Our Rare Values
</h2>
<div id="notfound-looking-for" class="box-content">
Please note, these values aren't 100% accurate and is not the definite price for that rare.
A rare is only worth what you are willing to pay for it, so
don't feel pressured into trading a rare just because of what someone else says.<br><br>
<b>1.00 <?php echo $HCname; ?></b> = <img src='rareimg/<?php echo $HCimg; ?>.gif'><br>
<b>1.00 <?php echo $HCname; ?></b> = around <?php echo $HCvalue; ?> credits<br>
<b>0.25 <?php echo $HCname; ?></b> = around <?php echo round($HCvalue * 0.25); ?> credits<br>
<b>0.10 <?php echo $HCname; ?></b> = around <?php echo round($HCvalue * 0.10); ?> credits<br>
<b>0.05 <?php echo $HCname; ?></b> = around <?php echo round($HCvalue * 0.05); ?> credits<br>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">
HabboView.run();
</script>
<?php require_once('./templates/community_footer.php'); ?>
Do you need help click thanks
Based one holoCMS Rare value (Andrew)i make it for phpretro.
First Release!





