<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

echo "<TABLE cellSpacing=0 cellPadding=0 width=768 height=100% align=left bgcolor=FFFFFF border=0 COLS=1>\r\n         <TR>\r\n\r\n                           <td valign=\"top\"  background=\"images/bg03.gif\" >\r\n                  <TABLE cellSpacing=0 cellPadding=0 width=100% height=100% border=0><tr>\r\n <td width=\"177\" valign=\"top\">\r\n             <table width=\"169\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"\">\r\n            <tr>\r\n             <td background=\"images/lftmnu13.gif\" height=\"23\"> <img src=\"images/spacer.gif\" width=\"3\" height=\"10\"><img src=\"images/en/3rdnav/myinfo.gif\" Array></td>             <td background=\"images/lftmnu02.gif\" height=\"23\" valign=\"bottom\"><img src=\"images/lftmnu11.gif\" width=\"10\" height=\"1\"></td>\r\n            </tr>\r\n\r\n            <tr>\r\n             <td width=\"160\" rowspan=\"2\" background=\"images/lftmnu07.gif\">\r\n                 <table width=\"160\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"\">\r\n                  <tr bgcolor=\"#4F5143\">\r\n                   <td colspan=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td>\r\n              </tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&\" class=\"link09\">Visualizar Inicio</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=adicionar\" class=\"link09\">Adicionar Guild</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=alterar\" class=\"link09\">Alterar Guild</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=remover\" class=\"link09\">Remover Guild</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=informacoes\" class=\"link09\">Informa&ccedil;&otilde;es Guild</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=logsguild\" class=\"link09\">Visualizar Logs Guild</a></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\"><img src=\"images/lftmnu08.gif\" width=\"156\" height=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"22\" align=\"right\"><img src=\"images/lftmnu10.gif\" width=\"14\" height=\"12\" hspace=\"2\"></td>\r\n\t\t\t\t<td width=\"138\" class=\"nrm02\" height=\"20\"><a href=\"?page=guilds&action=admlogsguild\" class=\"link09\">Visualizar Logs Adm</a></td>\r\n\t\t\t</tr>\r\n              <tr>\r\n\r\n               <td colspan=\"2\" background=\"images/lftmnu12.gif\"><img src=\"images/spacer.gif\" width=\"1\" height=\"2\"></td>\r\n              </tr>\r\n             </table>\r\n             </td>\r\n             <td width=\"10\" valign=\"top\" background=\"images/lftmnu06.gif\"><img src=\"images/lftmnu04.gif\" width=\"10\" height=\"10\"></td>\r\n            </tr>\r\n            <tr>\r\n             <td width=\"10\" valign=\"bottom\" background=\"images/lftmnu06.gif\"><img src=\"images/lftmnu05.gif\" width=\"10\" height=\"10\"></td>\r\n            </tr>\r\n\r\n           </table>\r\n          </td>\r\n <td width=\"601\" valign=\"top\">\r\n  <hr size=\"1\" color=\"#EEEEEE\">\r\n";
if ( isset( $_GET['action'] ) )
{
    include( "modules/pages/action.guilds.php" );
}
else
{
    echo "     ";
    $sql->query( "SELECT * FROM Guild" );
    $guilds = $sql->rowcount( );
    echo "     <table cellpadding=2 cellspacing=2 border=0 align=center width=100%>\r\n  <tr>\r\n    <td width=60% valign=top>\r\n      <table>\r\n       <tr>\r\n\r\n         <td><img src=\"images/bdy01.gif\" width=\"26\" height=\"25\"></td>\r\n         <td class=\"catetitulo\">Guilds:</td>\r\n         <td>&nbsp;</td>\r\n       </tr>\r\n       <tr>\r\n         <td>&nbsp;</td>\r\n         <td class=\"cate\">\r\n             Total Guilds:<br><br><br>\r\n\t\t</td>\r\n         <td class=\"cate\">\r\n          [ <a href=\"?page=conta&action=informacoes\">";
    echo $guilds;
    echo "</a> ]<br>\r\n         <br><br></td>\r\n       </tr>\r\n       <tr>\r\n         <td><img src=\"images/bdy01.gif\" width=\"26\" height=\"25\"></td>\r\n         <td class=\"catetitulo\">Ultimas Guilds cadastradas:</td>\r\n         <td>&nbsp;</td>\r\n       </tr>\r\n       <tr>\r\n         <td>&nbsp;</td>\r\n         <td class=\"cate3\">Nome</td>\r\n         <td class=\"cate3\">G.Master</td>\r\n       </tr>\r\n       ";
    $sql->query( "SELECT TOP 5 Number, G_Name, G_Master, G_Score FROM Guild ORDER BY Number DESC" );
    while ( $info = $sql->row( ) )
    {
        ++$x;
        if ( $x % 2 == 0 )
        {
            $estilo = "cate2";
        }
        else
        {
            $estilo = "cate1";
        }
        echo "       <tr>\r\n         <td>&nbsp;</td>\r\n         <td class=\"";
        echo $estilo;
        echo "\"><a href=\"javascript:;\" onmouseover=\"Tip('Nome: ";
        echo $info[1];
        echo "<br>Pontos: ";
        echo $info[3];
        echo "')\" class=\"cate\">";
        if ( strlen( 20 < $info[1] ) )
        {
            echo substr( $info[1], 0, 20 )."(...)";
        }
        else
        {
            echo substr( $info[1], 0, 20 );
        }
        echo "</a><br /></td>\r\n         <td class=\"";
        echo $estilo;
        echo "\">";
        echo $info[2];
        echo "<br /></td>\r\n       </tr>\r\n       ";
    }
    echo "\t\t<tr><td colspan=\"3\"><br /><br /><br /></td></tr>\r\n      <tr>\r\n         <td><img src=\"images/bdy01.gif\" width=\"26\" height=\"25\"></td>\r\n         <td class=\"catetitulo\">Ultimas a&ccedil;&otilde;es:</td>\r\n         <td>&nbsp;</td>\r\n       </tr>\r\n      </table>\r\n    </td>\r\n    <td width=\"40%\" valign=\"top\">&nbsp;</td>\r\n  </tr>\r\n </table>\r\n     ";
}
echo " </td>\r\n</tr>\r\n</form>         </TABLE>\r\n         </TD></TR>\r\n         <tr><td height=\"100%\" background=\"images/bg03.gif\">&nbsp;</td></tr>\r\n         </TABLE>";
?>
