<header style="background: url(images/page-fon-bg.jpg) center top no-repeat;
  height: 507px;">
  
	


<div class="container">
	
	<div class="hero"></div>
</div><!--container-->
</header>

	<div class="container">
    
    <!-- FIM HEADER -->
    <!-- INICIO MEIO -->



<div style="position: absolute; top:-500px; left:570px; z-index:10;"><img src="images/zen.png"/></div>
    

<div id="content">
    <div id="box1">
        <div class="title1">
            <h1>O Servidor</h1>
        </div>
        <div class="box-style1" style="margin-bottom: 20px;">
            <h2 class="title">Estatisticas do Game!</h2>

            <div class="entry">
                <div style="float:right;">
                    
                                <a class="custom_button" href="javascript: void(0);" onclick="loading('?go=info', 'conteudo');">Mais informações</a>
                           
                </div>
                <div style="padding-top:40px;">
                    <table class="ranking-table">
                        <thead>
                        <tr class="main-tr">
                            <th colspan="2"><? echo constant("server_name"); ?> Server</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td style="width:50%;text-align: left;">Cadastros</td>
                            <td style="width:50%;text-align: left;"><?php echo mssql_num_rows(mssql_query("select * from memb_info")); ?></td>
                        </tr>
                        <tr>
                            <td style="width:50%;text-align: left;">Personagens</td>
                            <td style="width:50%;text-align: left;"><?php echo mssql_num_rows(mssql_query("select * from character")); ?></td>
                        </tr>
                        <tr>
                            <td style="width:50%;text-align: left;">Guilds Clã</td>
                            <td style="width:50%;text-align: left;"><?php echo mssql_num_rows(mssql_query("select * from guild")); ?></td>
                        </tr>
                        <tr>
                            <td style="width:50%;text-align: left;">Autoridades Master</td>
                            <td style="width:50%;text-align: left;"><?php echo mssql_num_rows(mssql_query("select * from CT_EQUIPE")); ?></td>
                        </tr>
                        <tr>
                            <td style="width:50%;text-align: left;">Usuarios Conectado</TD>
                            <td style="width:50%;text-align: left;"><?php 
								   $on = mssql_num_rows(mssql_query("select * from memb_stat where connectstat > 0"));
								   if($on <= 1) { $pl = ""; } else{ $pl = "players"; }
								   ?> <?php echo $on; ?> <?php echo $pl; ?></td>
                        </tr>
                        <tr>
                            <td style="width:50%;text-align: left;">Status do serviço.</td>
                            <td style="width:50%;text-align: left;" class="end">Ativo 24 Horas.</td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
                   
                            <table class="ranking-table">
                                <thead>
                                <tr class="main-tr">
                                    <th colspan="2">Estatistica de Mercado</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td style="width:50%;text-align: left;">Usuários donatarios</td>
                                    <td style="width:50%;text-align: left;">41</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Itens Raros InGame</td>
                                    <td style="width:50%;text-align: left;">53</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Itens em expiração</td>
                                    <td style="width:50%;text-align: left;">21</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Total de vendas</td>
                                    <td style="width:50%;text-align: left;">512</td>
                                
                                                                </tr>
                                </tbody>
                            </table>
                            <br/>
                           
                    <table class="ranking-table">
                        <thead>
                        <tr class="main-tr">
                            <th colspan="2">CryWolf</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td style="width:50%;text-align: left;">Status do evento</td>
                            <td style="width:50%;text-align: left;" class="end">Inativo temporariamente></td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
					
                    <table class="ranking-table" cellpadding="0" cellspacing="0">
                        <thead>
                        <tr class="main-tr">
                            <th colspan="2">Castle Siege</th>
                        </tr>
                        </thead>
                        <tbody>
                        
                                <tr>
                                    <td style="width:50%;text-align: left;">Dono do Castelo</td>
                                    <td style="width:50%;text-align: left;"><a href="javascript: void(0);" onclick="loading('?go=guild&g_name=<?=$castle_siege_result[OWNER_GUILD];?>', 'conteudo');"><?=$castle_siege_result[OWNER_GUILD];?></A></td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Status</td>
                                    <td style="width:50%;text-align: left;">24/9</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Horario do proximo confronto</td>
                                    <td style="width:50%;text-align: left;"><span id="cs_countdown"><?=$castle_siege_result[SIEGE_END_DATE];?> as 20:01
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Valor em Zen</td>
                                    <td style="width:50%;text-align: left;">2.000.000</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Taxa Chaos</td>
                                    <td style="width:50%;text-align: left;">15%</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Taxa Store</td>
                                    <td style="width:50%;text-align: left;">5%</td>
                                </tr>
                                <tr>
                                    <td style="width:50%;text-align: left;">Taxa Hunter Zone</td>
                                    <td style="width:50%;text-align: left;"
                                        class="end">0%</td>
                                </tr>
                                
                                <tr>
                                    <td colspan="2">
                                        <div
                                                class="i_note">Bonus +20% experiencia.</div>
                                    </td>
                                </tr>
                               
                        </tbody>
                    </table>
                    <br/><br/><br/>
                  
                  
                  
                  
                  <ul class="tabrow">
                    
                                <li>Grupos aptos a tomar o Castelo de Siege!
                                </li>
                                
                </ul>
                    <table class="ranking-table">
                        <thead>
                        <tr class="main-tr">
                            <th>#</th>
                            <th>Nome</th>
                            <th>Derrotas</th>
                            <th>Vitorias</th>
                        </tr>
                        </thead>
                        <tbody>
                       
                                    <? 
			  $Top = mssql_query("SELECT TOP 50 G_Name,G_Score,G_master,MemberCount from Guild order by G_Score desc");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			  $rank = $i+1;
			  
			 
			  echo '
				
 <tr>
 
                                        <td style=\"text-align:center;">'.$rank.'º</td>
                                        <td>
                                          <span class="f16"><span class="flag "></span><a href="javascript: void(0);" onclick="loading(\'?go=guild&g_name='.$DadosTop[0].'\', \'conteudo\');">'.$DadosTop[0].'</a></span> 
                                        </td>
                                        <td>'.$DadosTop[1].' Score</td>
                                       
                                        <td>'.$DadosTop[3].' Members</td>
                                        
                                    </tr>
				'; } 
				?> 
									
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

	





        
        
        
        
        
        <!--FIM MEIO-->
        <!--INICIO FOOTER-->
        </div>
