<?php require_once('../topo.php');?>
<?php require_once('../lateral.php');?>
<br><br><br>
<?php 
//QUANTIDADE DE COMPRAS SOLICITADAS
$seleciona_COMPRAS = Seleciona("obras", "WHERE planilhadecompras='Concluida' AND oculta IS NULL", "");
$QtdeCompras = mysql_num_rows($seleciona_COMPRAS);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="50" colspan="3" align="left" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="5">
      <tbody>
        <tr>
          <td height="300" colspan="4" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="2">
            <tbody>
              <tr>
                <td align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="5" style="background-color: #FFFFFF; border:1px solid #AFAFAF;">
                  <tbody>
                    <tr>
                      <td height="100" align="center"><a href="listar_compras.php"><img src="img/icone_compra.png" width="77" height="85" alt=""/></a></td>
                      </tr>
                    <tr>
                      <td height="50" align="center"><span class="TituloCinzaEscuro" style="font-size: 14px;">SOLICITAÇÕES DE COMPRAS</span></td>
                      </tr>
                    </tbody>
                  </table>
                  <br>
                  <table width="280" border="0" cellspacing="0" cellpadding="4">
                    <tbody>
                      <tr>
                        <td align="center" bgcolor="#FFFFFF"><a href="listar_compras.php"><img src="img/icone_16.fw.png" width="25" height="22" alt=""/></a></td>
                        <td align="center" bgcolor="#FFFFFF"><strong class="TextoCinzaGrande"><?php echo $QtdeCompras;?></strong></td>
                        <td height="40" align="center" bgcolor="#FFFFFF">NOVAS SOLICITAÇÕES DE COMPRAS</td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table></td>
          </tr>
        <tr>
          <td height="300" align="center"><table width="200" border="0" cellspacing="0" cellpadding="5" style="background-color: #FFFFFF; border:1px solid #AFAFAF;">
            <tbody>
              <tr>
                <td height="100" align="center"><a href="listar_fornecedores.php"><img src="img/icone_fornecedores.png" width="77" height="85" alt=""/></a></td>
                </tr>
              <tr>
                <td height="50" align="center"><span class="TituloCinzaEscuro" style="font-size: 14px;">CADASTRO DE FORNECEDORES</span></td>
                </tr>
              </tbody>
            </table></td>
          <td align="center"><table width="200" border="0" cellspacing="0" cellpadding="5" style="background-color: #FFFFFF; border:1px solid #AFAFAF;">
            <tbody>
              <tr>
                <td height="100" align="center"><a href="listar_contratos.php"><img src="img/icone_atendimentos.png" width="77" height="85" alt=""/></a></td>
              </tr>
              <tr>
                <td height="50" align="center"><span class="TituloCinzaEscuro" style="font-size: 14px;">CADASTRO DE CONTRATOS</span></td>
              </tr>
            </tbody>
          </table></td>
          <td align="center"><table width="200" border="0" cellspacing="0" cellpadding="5" style="background-color: #FFFFFF; border:1px solid #AFAFAF;">
            <tbody>
              <tr>
                <td height="100" align="center"><a href="listar_servicos.php"><img src="img/icone_servicos.png" width="77" height="85" alt=""/></a></td>
                </tr>
              <tr>
                <td height="50" align="center"><span class="TituloCinzaEscuro" style="font-size: 14px;">CADASTRO DE SERVIÇOS</span></td>
                </tr>
              </tbody>
            </table></td>
          <td align="center"><table width="200" border="0" cellspacing="0" cellpadding="5" style="background-color: #FFFFFF; border:1px solid #AFAFAF;">
            <tbody>
              <tr>
                <td height="100" align="center"><a href="listar_produtos.php"><img src="img/icone_produtos.png" width="77" height="85" alt=""/></a></td>
                </tr>
              <tr>
                <td height="50" align="center"><span class="TituloCinzaEscuro" style="font-size: 14px;">CADASTRO DE PRODUTOS</span></td>
                </tr>
              </tbody>
            </table></td>
          </tr>
        </tbody>
    </table></td>
  </tr>
  <tr>
    <td colspan="3" align="center" valign="middle">
</td>
  </tr>
</table>
<?php require_once('../rodape.php');?>