Felipe Monteiro
Webmaster
Well, I've worked on my website these days, and I've decided to make a page like global, but I came across a difficulty.
The tibia global page is that..

And this is my page ...

Apparently the two look alike, taking the migration tool that I modified. What I'm having problems is when I have more than one character on the account.
looks like ...

My code is this
I hope someone can help me
Thanx anyway !
Ps. i'll rep who helps it ;D
- - - Updated - - -
bUMP
The tibia global page is that..

And this is my page ...

Apparently the two look alike, taking the migration tool that I modified. What I'm having problems is when I have more than one character on the account.
looks like ...

My code is this
PHP:
<?
$account_rlname = $account_logged->getRLName();
$account_location = $account_logged->getLocation();
$main_content .= '
<center>
<table>
<tr>
<td><img src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/headline-bracer-left.gif" /></td>
<td style="text-align:center;vertical-align:middle;horizontal-align:center;font-size:17px;font-weight:bold;" >Bem-vindo a sua conta '.$account_rlname.'!<br/></td>
<td><img src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/headline-bracer-right.gif" /></td>
</tr>
</table>
</center>';
$main_content .= '
<br/>
<div class="TableContainer" >
<table class="Table5" cellpadding="0" cellspacing="0" >
<div class="CaptionContainer" >
<div class="CaptionInnerContainer" >
<span class="CaptionEdgeLeftTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionEdgeRightTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionBorderTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-headline-border.gif);" ></span>
<span class="CaptionVerticalLeft" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span>
<div class="Text" >Status da Conta</div>
<span class="CaptionVerticalRight" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span>
<span class="CaptionBorderBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-headline-border.gif);" ></span>
<span class="CaptionEdgeLeftBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionEdgeRightBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
</div>
</div>';
///SHOW ACCOUNT STATUS
if(!$account_logged->isPremium())
$account_status = '<img class="AccountStatusImage" src="'.$layout_name.'/account/account-status_red.gif" alt="conta gratis" />
</td>
<td width="100%" valign="middle" >
<span class="red" >
<span class="BigBoldText" >Conta Gratis</span>
</span>';
else
$account_status = '<img class="AccountStatusImage" src="'.$layout_name.'/account/account-status_green.gif" alt="conta premium" />
</td>
<td width="100%" valign="middle" >
<span class="green" >
<span class="BigBoldText" >Conta Premium</span>
</span>';
///end
$main_content .= '
<tr>
<td>
<div class="InnerTableContainer" >
<table style="width:100%;" >
<tr>
<td>
<div class="TableShadowContainerRightTop" >
<div class="TableShadowRightTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-rt.gif);" ></div></div>
<div class="TableContentAndRightShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-rm.gif);" >
<div class="TableContentContainer" >
<table class="TableContent" width="100%" style="border:1px solid #faf0d7;" >
<tr>
<td>'.$account_status.'
<small>';
///SHOW HOW MANY DAYS PREMY ACCOUNT HAVE
if(!$account_logged->isPremium())
$account_days = 'Voce nao tem uma conta premium.</small></td>';
else
$account_days = 'Voce possui '.$account_logged->getPremDays().' dias de conta premium, aproveite!</small></td>';
///end
$main_content .= '
<br/>'.$account_days.'
<td>
<form action="?subtopic=accountmanagement&action=logout" method="post" style="padding:0px;margin:0px;" >
<div class="BigButton" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton.gif)" >
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" >
<div class="BigButtonOver" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton_over.gif);" ></div>
<input class="ButtonText" type="image" name="Logout" alt="Logout" src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/_sbutton_logout.gif" >
</div>
</div>
</form>
<div style="font-size:1px;height:4px;" >
</div>
<form action="?subtopic=accountmanagement&action=manage" method="post" style="padding:0px;margin:0px;" >
<div class="BigButton" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton.gif)" >
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" >
<div class="BigButtonOver" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton_over.gif);" ></div>
<input class="ButtonText" type="image" name="Manage Account" alt="Manage Account" src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/_sbutton_manageaccount.gif" >
</div>
</div>
</form>
</td>
</tr>
</table>
</div></div>
<div class="TableShadowContainer" >
<div class="TableBottomShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-bm.gif);" >
<div class="TableBottomLeftShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-bl.gif);" ></div>
<div class="TableBottomRightShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-br.gif);" ></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</table>
</div>
</td>
</tr>
<br/>';
///PART THAT I CANT TO DO ;/
$main_content .= '
<div class="RowsWithOverEffect" >
<div class="TableContainer" >
<table class="Table3" cellpadding="0" cellspacing="0" >
<div class="CaptionContainer" >
<div class="CaptionInnerContainer" >
<span class="CaptionEdgeLeftTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionEdgeRightTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionBorderTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-headline-border.gif);" ></span>
<span class="CaptionVerticalLeft" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span>
<div class="Text" >Personagens</div>
<span class="CaptionVerticalRight" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span>
<span class="CaptionBorderBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-headline-border.gif);" ></span>
<span class="CaptionEdgeLeftBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
<span class="CaptionEdgeRightBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></span>
</div>
</div>';
$main_content .= '
<tr>
<td>
<div class="InnerTableContainer" >
<table style="width:100%;" ><tr><td>
<div class="TableShadowContainerRightTop" >
<div class="TableShadowRightTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-rt.gif);" ></div></div>
<div class="TableContentAndRightShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-rm.gif);" >
<div class="TableContentContainer" >
<table class="TableContent" width="100%" style="border:1px solid #faf0d7;" >';
///titles
$main_content .= '
<tr class="LabelH" >
<td>*</td>
<td style="width:40%;" >Nome</td>
<td style="width:120px!important;" >Mundo</td>
<td style="width:90px!important;" >Status</td>
<td style="width:90px!important;" >*</td>
</tr>';
///end
$account_players = $account_logged->getPlayersList();
$account_players->orderBy('name');
//show list of players on account
foreach($account_players as $account_player)
{
$player_number_counter++;
$main_content .= '
<tr id="CharacterRow_1" onMouseOver="InRowWithOverEffect(\'CharacterRow_1\', \'#ffedd1\');" onMouseOut="OutRowWithOverEffect(\'CharacterRow_1\', \'#f1e0c6\');" onClick="FocusCharacter(1, \'Character+1\', 2);" class="Odd" style="font-weight:bold;" >
<td style="width:40px;text-align:center;padding:2px;" >
<span id="CharacterNumberOf_1" style="display:none;" >'.$player_number_counter.'</span>
<span id="PlayButtonOf_1" >
<span name="FlashClientPlayButton" id="FlashClientPlayButton" playlink="#" previewstate="0" >
<img style="border:0px;" src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/account/play-button-disabled.gif" /></span></span>
</td>';
$main_content .= '
<td id="CharacterCell2_1" >
<span style="white-space:nowrap;vertical-align:middle;" >
<span id="CharacterNameOf_1" style="font-size:13pt;" >'.$account_player->getName().'
</span><br/>
<span id="CharacterNameOf_1" ><small>'.$vocation_name[$account_player->getWorld()][$account_player->getPromotion()][$account_player->getVocation()].' - Level '.$account_player->getLevel().'</span></span>
</td>';
$main_content .= '
<td id="CharacterCell2_1" > <span style="white-space:nowrap;" >Tibiax</span></td>';
//end
//status - online - offline
if(!$account_player->isOnline())
$main_content .= '<td id="CharacterCell3_1" ><font color="red"><strong>Offline</strong></font></td>';
else
$main_content .= '<td id="CharacterCell3_1" ><font color="green"><strong>Online</strong></font></td>';
//end
$main_content .= '
<td id="CharacterCell4_1" style="text-align:center;">
<span id="CharacterOptionsOf_1" >
<span style="font-weight:normal;" >[<a href="" >Editar</a>]</span></span>
</td>';
$main_content .= '
</tr>
</table>
</div></div>';
}
$main_content .= '
<div class="TableShadowContainer" >
<div class="TableBottomShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-bm.gif);" >
<div class="TableBottomLeftShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-bl.gif);" ></div>
<div class="TableBottomRightShadow" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/table-shadow-br.gif);" ></div> </div></div></td></tr><tr><td>
<table class="InnerTableButtonRow" cellpadding="0" cellspacing="0" ><tr><td></td>
<td align="right" style="padding-right:7px;width:100%;" >
<form action="?subtopic=accountmanagement&action=createcharacter" method="post" style="padding:0px;margin:0px;" >
<input type="hidden" name="selectedcharacter" value="" >
<div class="BigButton" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton.gif)" >
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" >
<div class="BigButtonOver" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/sbutton_over.gif);" ></div>
<input class="ButtonText" type="image" name="Create Character" alt="Create Character" src="https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/buttons/_sbutton_createcharacter.gif" >
</div></div>
</form>
</td></tr>
</table>
</td></tr>
</table>
</div>
</table>
</div>
</td></tr>
</div>
<br/><br/>
<script type=\'text/javascript\'>if (l_BrowserIssueCount == 0) {
EnablePlayButton();
}
</script>';
///end
///Dica de seguranca
$main_content .= '
<div class="SmallBox" >
<div class="MessageContainer" >
<div class="BoxFrameHorizontal" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-horizontal.gif);" /></div>
<div class="BoxFrameEdgeLeftTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></div>
<div class="BoxFrameEdgeRightTop" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></div>
<div class="Message" >
<div class="BoxFrameVerticalLeft" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></div>
<div class="BoxFrameVerticalRight" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-vertical.gif);" /></div>
<p> <b>Dica de Segurança</b></p>
<p>Proteja sua conta, não passe sua senha à ninguém, evite acessar sites não-confiáveis. Guarde sua Recovery Key em lugar seguro para que você possa recuperar sua conta caso seja hackeado ou perca sua senha. </p><p>O Tibiax tem prazer em ter você como nosso player, então aproveite ao máximo o que nosso servidor tem para lhe oferecer.</p></td><tr></table> </div>
<div class="BoxFrameHorizontal" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-horizontal.gif);" /></div>
<div class="BoxFrameEdgeRightBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></div>
<div class="BoxFrameEdgeLeftBottom" style="background-image:url(https://a248.e.akamai.net/cipsoft.download.akamai.com/118500/tibia/static.tibia.com/images/global/content/box-frame-edge.gif);" /></div>
</div><br/>
</div>
';
//end
I hope someone can help me
Thanx anyway !
Ps. i'll rep who helps it ;D
- - - Updated - - -
bUMP