
<?php
    include ("classes/dados.global.php");
    $_SESSION['pagina'] = "Alterar Senha";		
    include ("classes/cabecalho.php");
?>
    <div class='col-md-2'></div>
        <div class='col-md-8'>
        <div class="parceiro">   
            <div class="col-sm-12">
              <h3>ALTERAR SENHA</h3> <br/>  
                <div class="alert alert-warning" role="alert"><br /><center><h4>Alterar Senha</h4></center></div>                         
                <form id="f1" onSubmit="return redefinirSenha()"  data-toggle="validator" class="form" >              
                   <div class="form-group col-sm-8">
                            <label for="SenhaAtual">Senha Atual:</label>
                            <div class="input-group">                   
                                <span class="input-group-addon"><i class="fa fa-unlock-alt"></i></span>
                                <input id="senhaAtual" type="password" class="form-control" required>
                            </div>
                            <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group col-sm-8">  
                        <label for="NovaSenha">Nova Senha:</label>                   
                        <div class="input-group">
                            <span class="input-group-addon"><span class='glyphicon glyphicon-lock' aria-hidden='true'></span></span>
                            <input id="novaSenha" type='password' class="form-control"  required>
                        </div>
                    </div>
                    <div class="form-group col-sm-8">
                        <label for="NovaSenha2">Confirmar Nova Senha:</label>
                        <div class="input-group">                   
                            <span class="input-group-addon"><span class='glyphicon glyphicon-lock' aria-hidden='true'></span></span>
                            <input id="novaSenha2" type="password" class="form-control" data-match="#novaSenha" data-match-error="Os valores não são iguais" required>
                        </div>
                        <div class="help-block with-errors"></div>
                    </div>                                                        
                   <button type="submit" class="btn btn-success col-sm-12"> <span class="glyphicon glyphicon-transfer" aria-hidden="true"></span> Alterar Senha</button>                 	
            </form>   
   
    
    
      <!-- Modal -->
      <div class="modal fade" id="modalRedefinirSenha" role="dialog">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header modal-chamado">
                            <button type="button" class="close" data-dismiss="modal">&times;</button>
                            <h4 class="modal-title ">Redefinir Senha</h4>
                        </div>
                            <div class="modal-body">
                                <p id="mensagem"></p>
                            </div>                        
                        <div class="modal-footer">
                                <a class="btn btn-success" data-dismiss="modal" onclick="logout()" > <span class="glyphicon glyphicon-ok" aria-hidden="true"></span></a>
                        </div>
                    </div>
                 </div>
    </div>
    <script src="js/funcoes.js"></script>  
</body>    
        <script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
        
</html>
