Пример #1
0
$DataSet = new pData();
$DataSet->AddPoint(array(mysql_num_rows($accs), mysql_num_rows($sold)), "Serie1");
$DataSet->AddPoint(array("Unsold", "Sold"), "Serie2");
$DataSet->AddAllSeries();
$DataSet->SetAbsciseLabelSerie("Serie2");
$Test = new pChart(300, 200);
$Test->drawFilledRoundedRectangle(7, 7, 293, 193, 5, 240, 240, 240);
$Test->drawRoundedRectangle(5, 5, 295, 195, 5, 0, 0, 0);
$Test->drawFilledCircle(121, 101, 75, 255, 255, 255);
$Test->setFontProperties("arial.ttf", 8);
$Test->drawBasicPieGraph($DataSet->GetData(), $DataSet->GetDataDescription(), 120, 100, 70, PIE_PERCENTAGE, 255, 255, 218);
$Test->drawPieLegend(200, 15, $DataSet->GetData(), $DataSet->GetDataDescription(), 250, 250, 250);
$Test->Render("accs.png");
// Profit Pie
$DataSet2 = new pData();
$DataSet2->AddPoint(array($functions->GetTotalProfitUser("j0rpi"), $functions->GetTotalProfitUser("fallbacken")), "Serie3");
$DataSet2->AddPoint(array("\$" . $functions->GetTotalProfitUser("j0rpi"), "\$" . $functions->GetTotalProfitUser("fallbacken")), "Serie2");
$DataSet2->AddAllSeries();
$DataSet2->SetAbsciseLabelSerie("Serie2");
$Test2 = new pChart(300, 200);
$Test2->drawFilledRoundedRectangle(7, 7, 293, 193, 5, 240, 240, 240);
$Test2->drawRoundedRectangle(5, 5, 295, 195, 5, 0, 0, 0);
$Test2->drawFilledCircle(121, 101, 75, 255, 255, 255);
$Test2->setFontProperties("arial.ttf", 8);
$Test2->drawBasicPieGraph($DataSet2->GetData(), $DataSet2->GetDataDescription(), 120, 100, 70, PIE_LABELS, 255, 255, 218);
$Test2->drawPieLegend(200, 15, $DataSet2->GetData(), $DataSet2->GetDataDescription(), 250, 250, 250);
$Test2->Render("users.png");
echo "<font style='font-family: Helvetica'>";
echo "<img src='stats.png' />";
echo "<br /><img src='users.png' /><br /><br /><br />";
echo "Right now, we have <b>" . mysql_num_rows($accs) . "</b> Steam accounts in the database, where <b>" . mysql_num_rows($sold) . "</b> has been sold.</br >";
Пример #2
0
		 ';
} elseif ((int) $functions->GetUserAccSold($_SESSION['user_name']) == 20) {
    echo '
	      <b>Rating:</b> 5/5 <img src="images/account/5Star.png" style="width: 48px; height: 12px; vertical-align: middle;margin-bottom:  3px;" /><br />
		 ';
} else {
}
?>
<h1></h1>
<b>Accounts Sold:</b> <?php 
echo $functions->GetUserAccSold($_SESSION['user_name']);
?>
<h1></h1>

<b>Total Profit: </b>$<?php 
echo $functions->GetTotalProfitUser($_SESSION['user_name']);
?>
<h1></h1>
<b>Awards: </b><?php 
echo $functions->GetUserAwards($_SESSION['user_name']);
?>
</span>
<br />
</div>
<b><!--div class='motd' style='width: 100%'><div class='motdbackground'><div class='motdinner' ><span style='color: white'><?php 
echo $_SESSION['user_name'];
?>
 :: Selling/Sold</span>-->
<?php 
require 'classes/paginator.php';
// Limit Search Results Per Page