<?php
error_reporting(0);
ini_set("display_errors", 0 );
header('Content-Type: text/html; charset=utf-8');
include("../configuracao.php");//confirma no banco de dados
include("../inclusos/funcoes.php");
include("../seguranca.php"); // Inclui o arquivo com o sistema de seguran?a
protegePagina(); // Protege a página

?>
<!doctype html>
<html ng-app="myApp">
<head>
<title>MAX LAYOUTS</title>

<link rel="stylesheet" href="inclusos/styles.css">
<link href="inclusos/css_precopratico.css" rel="stylesheet" type="text/css">

<script src="https://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>

<script src="inclusos/script.js"></script>
<script type="text/javascript">			
    $(document).ready(function () {
       $('input').keypress(function (e) {
            var code = null;
            code = (e.keyCode ? e.keyCode : e.which);                
            return (code == 13) ? false : true;
       });
    });								
</script>
         
   
<meta charset="utf-8">
</head>
<body>
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="208" height="40" align="center" bgcolor="#D9D9D9" class="TituloPagina" style="padding-left: 5px; cursor:pointer" onclick="location.href='manutencao_tarefa_lytebox.php';"><span style="padding-left: 5px;"> ATIVIDADES</span></td>
        <td align="right">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
        <tr>
          <td width="50%" align="center" valign="middle" bgcolor="#D9D9D9"><table width="100%" border="0" cellspacing="0" cellpadding="4">
            <tr>
              <td valign="top" bgcolor="#FFFFFF"><!-- INICIO DIV -->
                <table width="100%" border="0" cellspacing="0" cellpadding="4">
                  <tr>
                    <td width="100" colspan="2" valign="top"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="2">
                      <tr class="TextoCinzaEscuro">
                        <td width="5%" bgcolor="#A6A6A6" class="TextoCinzaEscuro"><strong>DATA</strong></td>
                        <td width="20%" height="30" bgcolor="#A6A6A6" class="TextoCinzaEscuro"><strong>ATIVIDADE</strong></td>
                        <td width="20%" align="center" bgcolor="#A6A6A6" class="TextoCinzaEscuro"><strong>SOLICITANTE</strong></td>
                        <td width="20%" align="center" bgcolor="#A6A6A6" class="TextoCinzaEscuro"><strong>PRIORIDADE</strong></td>
                        <td width="5%" align="center" bgcolor="#A6A6A6"><strong>DETALHES</strong></td>
                        </tr>
                      <?php
			$cor_fundo = "#FFFFFF";	
			if($data == ""){
				$data = $_GET['data_atual'];
			}
			 	$seleciona = Seleciona("tarefas", "WHERE data='$data'", "");
			while($linha=mysql_fetch_array($seleciona)){			
			
			$idusuario_atual = $linha['idusuario'];
			
			 	$seleciona_nome = Seleciona("usuarios", "WHERE idusuario='$idusuario_atual'", "");
			while($linha_nome=mysql_fetch_array($seleciona_nome)){			
				$NomeColaborador = $linha_nome['nome'];
			}
			

		?>
                      <tr class="TextoCinzaPequeno">
                        <td bgcolor="#D9D9D9"><?php echo InverteDataNovoSeparador($linha['data'], "-", "/");?></td>
                        <td width="20%" height="30" bgcolor="#D9D9D9"><?php echo $linha['tarefa'];?></td>
                        <td width="20%" align="center" bgcolor="#D9D9D9"><?php echo $NomeColaborador;?></td>
                        <td width="20%" align="center" bgcolor="#D9D9D9"><?php echo $linha['prioridade'];?></td>
                        <td align="center" bgcolor="#D9D9D9"><a href="manutencao_tarefa_lytebox_final.php?idtarefa=<?php echo $linha['idtarefa'];?>" target="_self">VER</a></td>
                        </tr>
                      <?php }?>
                      </table></td>
                  </tr>
                </table></td>
            </tr>
            </table></td>
        </tr>
        </table></td>
  </tr>
</table>
</body>
</html>