<?php
session_start();
if(strpos(strtolower($_SERVER['REQUEST_URI']), 'phpsessid') !== false)
{
  session_destroy();
  session_regenerate_id();
  session_start();
                              
}
include "../phpconfig/config.php";
include "../phpconfig/valida_login.php";
include "../includes/topo.php"; 

?>


        <ul class="breadcrumb">
          <li><a href="<?php echo sti('adm');  ?>">Home</a> <span class="divider">/</span></li>
          <li class="active">Adicionar Usuário</li>
        </ul>

 <form class="form-horizontal" method="post" action="adiciona.php"  enctype="multipart/form-data">
        <fieldset>
          <div class="control-group">
            <label class="control-label" for="input01">Nome</label>
            <div class="controls">
             
              <input type="text" class="input-xlarge" name='nome' >
            </div>
          </div>

             <div class="control-group">
            <label class="control-label" for="input01">Sobrenome</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='sobrenome' >
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">login</label>
            <div class="controls">
              <input type="text" class="input-xlarge"  name='login' >
            </div>
          </div>             
          <div class="control-group">
            <label class="control-label" for="input01">Senha</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='senha1' value=''>
            </div>
          </div>

          <div class="control-group">
            <label class="control-label" for="input01">Confirmar senha</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='senha2' value=''>
            </div>
          </div>

          <div class="control-group">
            <label class="control-label" for="input01">Email</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='email' >
            </div>
          </div>

          <div class="form-actions">
            <button type="submit" class="btn btn-primary">Salvar</button>
            <a class="btn btn-warning pull-right" href="index.php">Voltar</a>
          </div>
        </fieldset>
      </form>




<?php include "../includes/rodape.php"; ?>
