<!-- Modal -->
<div class="modal fade" id="newuser" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Novo cliente</h4>
            </div>
            <form role="form" action="#" id="frmNewClient" method="POST">
                <div class="modal-body">                
                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-user fa-fw"></i></span>
                        <input type="text" class="form-control" name="nome" placeholder="Nome" autofocus required >
                        <input type="hidden" class="form-control" name="perfil" value="3">
                    </div> 
                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-user fa-fw"></i></span>
                        <input type="text" class="form-control" name="telefone" placeholder="Telefone" autofocus required >
                    </div> 
                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-envelope-o" aria-hidden="true"></i></span>
                        <input type="email" class="form-control" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" placeholder="E-mail xxxx@xxxxxx.xxx" required   >
                    </div> 
                    <div class="form-group input-group">
                        <span class="input-group-addon">%</span>
                        <input min="0" max="100" type="number" class="form-control" name="porcent" placeholder="Porcentagem de Locação" required>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-globe fa-fw"></i></span>
                        <select name="id_pais" id="id_pais" class="form-control" required >
                            <option value="" selected >Selecione o País</option>
                            <?php
                            //buscar as regiões(Paises)
                            $sqlRegioes = mysql_query("SELECT id_pais, nome_pais, name_pais, moeda_sigla, `status`
													FROM regiao a
													WHERE
													a.status = 1
													ORDER BY nome_pais") or die(mysql_error());
                            while ($rowRegiao = mysql_fetch_array($sqlRegioes)) {
                                ?>
                                <option value="<?php echo $rowRegiao['id_pais'] ?>"><?php echo $rowRegiao['nome_pais'] . ' - ' . $rowRegiao['moeda_sigla'] ?></option> 
                                <?php
                            }
                            ?>
                        </select>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                        <input type="text" class="form-control" name="login" placeholder="Login" required>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
                        <input type="text" class="form-control" name="client_id" placeholder="Client ID" required>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
                        <input type="text" class="form-control" name="secret_id" placeholder="Secret ID" required>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span>
                        <input type="password" class="form-control" name="pass" placeholder="Senha" required >
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span>
                        <input type="password" class="form-control"  name="pass2" placeholder="Confirmar Senha" required>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
                    <button type="submit" class="btn btn-primary" id="btnSalvarNewClient" >Salvar</button>                
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
