<!-- Modal -->
<div class="modal fade" id="newmaquina" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<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">Nova Máquina</h4>
			</div>
			<div class="modal-body">
				<form role="form" action="add_maquina.php" method="POST">
					<div class="form-group input-group">
						<span class="input-group-addon"> <i class="fa fa-gamepad fa-fw"></i></span>
						<input type="text" class="form-control" name="nome" placeholder="Nome" autofocus required >
					</div>					
				   <label>Selecionar um Ponto</label>
					<div class="form-group">
						<select name="ponto" id="usuario" class="form-control" required >						   
							
							<option value ="" selected="selected">Selecione o ponto</option>
							<?php
							$resultUser = mysql_query("SELECT nome FROM ponto ORDER BY nome ASC");

							while ($rowUser = mysql_fetch_array($resultUser)) {
								echo '<option $selecionado value="' . $rowUser['nome'] . '">' . $rowUser['nome'] . '</option>';
							}
							?>

						</select>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
						<button type="submit" class="btn btn-primary">Salvar</button>					
					</div>
				</form>
			</div>
		<!-- /.modal-content -->
		</div>
	<!-- /.modal-dialog -->
	</div>
</div>
<!-- /.modal -->
