<?php
include 'header.php';
include 'connect.php';
require_once 'inc/messages.php';
require_once 'inc/usuario.php';

checkLogin('login.php');

$id_usuario = $_SESSION[SESSION_USER_NAME]['id'];
?>
</br></br></br>
<form id=validate_custom method=POST action="erpc_alterar_senha_ws.php">
  <div class=block>
    <div class=header>
      <h2>Alterar Senha:</h2>
    </div>
      <div class="block">
    <div class="content">
      <?php
      displayMessagesAndErrors(true); ?>
    </div>
  </div>
    <input type="hidden" name="id_usuario" value="<?php echo $id_usuario; ?>" />

      <div class="content controls">

        <div class=form-row>
          <div class=col-md-3>Digite a nova senha:</div>
          <div class=col-md-6><input type="password" name="senha_nova" value="" class="form-control nouppercase" maxlength=50 class="validate[required]"/> </div>
        </div>
        <div class=form-row>
          <div class=col-md-3>Digite novamente:</div>
          <div class=col-md-6><input type="password" name="senha_nova2" value="" class="form-control nouppercase" maxlength=50 class="validate[required]"/> </div>
        </div>
      </div>

    <div class=footer>
      <div class="side pull-right">
 
        <button class="btn btn-success btn-cleanx" type="submit" value="alterar_senha" name="alterar_senha" onClick="$('#validate_custom').validationEngine('hide');" >Alterar</button>
		       <a href="desktop.php" ><button class="btn btn-default btn-cleanx" type="button" value="Voltar">Voltar</button></a>
            


      </div>
    </div>

  </div>
</form>


<?php include 'footer.php'; ?>
