Hello everybody, Jay here. Had nothing to do, so I decided to 'pimp up' the staff page. Just a tiny edit, but it does look nice.
Screenshot:
If you like it, replace your staff.php with this:
And your comp-staff.tpl:PHP Code:<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
define('TAB_ID', 5);
define('PAGE_ID', 16);
require_once "global.php";
$tpl->Init();
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/v2/styles/newcredits.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/newcredits.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');
$tpl->Write('<div id="column1" class="column">');
$tpl->AddGeneric('comp-staff');
$tpl->Write('</div>');
$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-staff-about');
$tpl->Write('</div>');
$tpl->SetParam('page_title', 'Staff');
$tpl->SetParam('body_id', 'home');
$tpl->Output();
?>
70% Credits to BobbaLodge for the design.PHP Code:<div id="container">
<div id="content" style="position: relative" class="clearfix"><div id="column1" class="column"><div class="habblet-container ">
<div class="cbb clearfix pixellightblue ">
<h2 class="title"><span style="float: left";>What do the Phaze staff do?</h2>
<div class="box-content">
<p>
Phaze staff are people behind the curtain who manage, moderate and maintain the hotel to ensure we remain online and afloat on a daily basis. Members of upper management ensure Phaze runs like clockwork 24/7 to give our users the best Habbo private server experience possible.
</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix pixellightblue ">
<h2 class="title"><span style="float: left";>How do I become a Phaze staff member?</span></h2>
<div class="box-content">
<p>If you are looking to join the Phaze team, then you're at the right place! If we require a new staff member or someone to furfill a certain job position then we will list it on this page below, so be sure to keep checking back!</p>
<table width="450px" style="background: #E6E6E6; padding:8px 13px; margin-left: -15px; margin-top: 7px;">
<tbody>
<tr>
<td>
<b style="font-size: 130%;">No open positions right now</b><br><br>
<img src="http://phazehotel.com/images/ADM.gif" border="0" align="right" alt="" style="margin-left: 10px;">Sorry, there are no open positions at this time. Please check back soon.<br><br>
As soon as we require or need a new staff member this page will be updated.
<br><br><b style="font-size: 120%;"><a href="http://phazehotel.com/community/staff" target="_blank">To apply, click here »</a></b>
<br>
</td>
</tr>
</tbody>
</table>
</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 ">
<td valign="top" style="float: right;">
</td>
</tr>
</tbody>
</table></div>
<?php
function GetDescr($level)
{
switch ($level)
{
case 8:
return '';
case 7:
return '';
case 6:
return '';
case 5:
return '';
case 4:
return '';
case 3:
return '';
default:
return '';
}
}
$getGroups = dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC");
while ($group = mysql_fetch_assoc($getGroups))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix pixeldarkblue ">
<h2 class="title"><span style="float: left;">' . clean($group['name']) . '</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>';
$getMembers = dbquery("SELECT id,username,motto,look,online, last_online FROM users WHERE rank = '" . $group['id'] . "'");
echo '<div class="box-content">';
if (mysql_num_rows($getMembers) > 0)
{
$oe = 1;
while ($member = mysql_fetch_assoc($getMembers))
{
if ($oe == 2)
{
$oe = 1;
}
else
{
$oe = 2;
}
echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="http://www.habbo.es/habbo-imaging/avatarimage?figure=' . $member['look'] . '&size=b&direction=4&head_direction=3&action=wlk&gesture=sml&size=s"">
</td>
<td valign="top">
<b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b> ' . (($member['online'] == "1") ? '<img src="%www%/web-gallery/v2/images/online.gif" style="float: right;">
' : '<img src="%www%/web-gallery/v2/images/offline.gif" style="float: right;">') . '<br />
<i>' . clean($member['motto']) . '</i><br />
<br />';
$getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 1");
while ($b = mysql_fetch_assoc($getBadges))
{
echo "<b>Badges:</b> $date<br><br> ";
echo '<img src="http://images.habbo.com/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;">';
}
echo '</td>
<td valign="top" style="float: right;">
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>There are no users in this staff group yet.</i>';
}
echo '</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
30% Me for releasing
Please like! =]







