<!-- Modal -->
<div class="modal fade" id="editponto" 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 Ponto</h4>
			</div>
			
			<form role="form" id="frmEditPonto" method="POST">
				<div class="modal-body">
				
					<?php
					if ($_SESSION['UsuarioNivel'] == 1) { ?> 
					
						<div class="form-group input-group">
							<span class="input-group-addon"> <i class="fa fa-user-plus fa-fw"></i></span>								                  
							<select name="apoio" id="usuario" class="form-control" required > 
								<option value ="" selected >Selecione um cliente</option>
								<?php
								$resultUser = mysql_query("SELECT id,username "
                                                                        . " FROM user WHERE nivel = 3 "
                                                                        . " OR nivel = 4"
                                                                        . " ORDER BY username ASC");
								while ($rowUser = mysql_fetch_array($resultUser)) { ?>
									<option value="<?php echo $rowUser['id'] ?>"><?php echo $rowUser['username'] ?></option>
								<?php
								}
								?>
							</select>
						</div>				
					<?php 
					}    
					?>		

					<input type="hidden" name="id">
					
					<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 >
					</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="passwd" maxlength="10" placeholder="Senha para acesso ao Kiosk pela web" autofocus 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_ponto" placeholder="Porcentagem do Ponto" required>
					</div>   
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal" id="btnCancelarEditPonto" >Cancelar</button>
					<button type="submit" class="btn btn-primary" id="btnSalvarEditPonto" >Salvar</button>					
				</div>			
			</form>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
