<?
require("acesso.php");

#Conta Regiões
$query_regioes = mysql_query("SELECT * FROM regioes");
$regioes = mysql_num_rows($query_regioes);

#Conta Fretes
$query_fretes = mysql_query("SELECT * FROM fretes");
$fretes = mysql_num_rows($query_fretes);

#Conta Documentos
$query_documentos = mysql_query("SELECT * FROM documentos");
$documentos = mysql_num_rows($query_documentos);

#Conta Fotos
$query_fotos = mysql_query("SELECT * FROM fotos");
$fotos = mysql_num_rows($query_fotos);

$menu="home";
include("topo.php");
?>
<table width="775" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:25px; background:url(images/fundo_painel.jpg) bottom right no-repeat;">
  <tr>
    <td valign="top"><table width="560" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><fieldset class="dados_quadro">
          <legend class="legenda_quadro_dados">Acesso R&aacute;pido</legend>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="texto">
            <tr>
              <td height="65" width="20%" align="center"><a href="unidades.php"><img src="images/icones/unidades.jpg" width="33" height="33" border="0" /><br />
                Administrar Unidades</a></td>
              <td height="65" width="20%" align="center"><a href="cidades.php"><img src="images/icones/cidades.jpg" width="33" height="33" border="0" /><br />
                Administrar Cidades</a></td>
              <td height="65" width="20%" align="center"><a href="documentos.php"><img src="images/icones/documentos.jpg" width="33" height="33" border="0" /><br />
                Administrar Documentos</a></td>
              <td height="65" width="20%" align="center"><a href="fotos.php"><img src="images/icones/fotos.jpg" width="33" height="33" border="0" /><br />
                Administrar Fotos</a></td>
              <td height="65" width="20%" align="center"><a href="conteudos.php"><img src="images/icones/conteudos.jpg" width="33" height="33" border="0" /><br />
                Administrar Conte&uacute;dos</a></td>
            </tr>
          </table>
        </fieldset></td>
      </tr>
    </table>
    </td>
    <td rowspan="2" align="right" valign="top">
        <table width="205" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top">
				<fieldset class="dados_quadro"><legend class="legenda_quadro_dados">Principais Estat&iacute;sticas</legend>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="texto">
                      <tr>
                        <td align="center"><img src="images/icones/estatisticas.jpg" align="left" />Principais Estat&iacute;sticas do sistema</td>
                      </tr>
                      <tr>
                        <td valign="top" align="left" style="line-height:13px; padding-top:10px;">
                            <strong>Regi&otilde;ess</strong><br />
                            Total: <? echo $regioes; ?><br /><br />
                            <strong>Fretes</strong><br />
                            Total: <? echo $fretes; ?><br /><br />
                            <strong>Documentos</strong><br />
                            Total: <? echo $documentos; ?><br /><br />
                            <strong>Fotos</strong><br />
                            Total: <? echo $fotos; ?>
                        </td>
                      </tr>
                    </table>
				</fieldset>
            </td>
          </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="bottom">
    	<table width="560" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="bottom">
            	<fieldset class="dados_quadro"><legend class="legenda_quadro_dados">Legenda de &Iacute;cones</legend>
                    <table width="100%" border="0" cellpadding="5" cellspacing="0" class="texto">
                      <tr>
                        <td width="50" height="55" align="center"><img src="images/icones/add.jpg" width="26" height="33" /></td>
                        <td height="55">Representa a adi&ccedil;&atilde;o de algum tipo 
                        de dado, seja categoria, produto, etc...</td>
                        <td width="50" height="55" align="center"><img src="images/icones/salvar.jpg" width="38" height="32" /></td>
                        <td height="55">&Iacute;cone que representa o bot&atilde;o para salvar alguma altera&ccedil;&atilde;o ou cria&ccedil;&atilde;o de item.</td>
                      </tr>
                      <tr>
                        <td width="50" height="55" align="center"><img src="images/icones/editar.jpg" width="35" height="32" /></td>
                        <td height="55">Representa a possibilidade de edi&ccedil;&atilde;o
                        de algum conte&uacute;do j&aacute; cadastrado.</td>
                        <td width="50" height="55" align="center"><img src="images/icones/aviso.jpg" width="36" height="33" /></td>
                        <td height="55">Representa que voc&ecirc; dever&aacute; prestar 
                        aten&ccedil;&atilde;o na informa&ccedil;&atilde;o.</td>
                      </tr>
                      <tr>
                        <td width="50" height="55" align="center"><img src="images/icones/apagar.jpg" width="24" height="34" /></td>
                        <td height="55">Representa que o item poder&aacute; ser exclu&iacute;do, sem passar por lixeira.</td>
                        <td width="50" height="55" align="center"><img src="images/icones/info.jpg" width="33" height="33" /></td>
                        <td height="55">Sempre junto a este &iacute;cone haver&aacute; 
                        alguma informa&ccedil;&atilde;o &uacute;til.</td>
                      </tr>
                </table>
				</fieldset>            </td>
          </tr>
        </table>    </td>
  </tr>
</table>
<?php include("rodape.php"); ?>