<!-- Modal - Add New Record/User -->
<div class="modal fade" id="add_new_record_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Agrega Paciente</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="first_name">Apellido</label>
                    <input type="text" id="first_name" placeholder="Apellido" class="form-control" required="true"/>
                </div>
                <div class="form-group">
                    <label for="last_name">Nombre</label>
                    <input type="text" id="last_name" placeholder="Nombre" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="dni">DNI</label>
                    <input type="text" id="dni" placeholder="DNI" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="email">Email</label>
                    <input type="text" id="email" placeholder="Email" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="doc">Profesional</label>
                    <select type="text" id="doc" class="form-control"/>
	<?php 
	$query_rs_todos = "SELECT doc FROM `ingreso` WHERE `clinica` like '$clinica'";
	$rs_ingresobb = mysqli_query($odonto_connection,$query_rs_todos) or die(mysqli_error());
	$row_rs_ingresobb = mysqli_fetch_assoc($rs_ingresobb);
	  do{ ?>
		<option value="<?php echo $row_rs_ingresobb['doc'];?>" <?php if($row_rs_ingresobb['doc']==$doc){echo "selected";}?>><?php echo $row_rs_ingresobb['doc'];?></option> 
		<?php }  
        while($row_rs_ingresobb = mysqli_fetch_assoc($rs_ingresobb)); ?>
					</select>
                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                <button type="button" class="btn btn-primary" onclick="addRecord()">Add Record</button>
            </div>
        </div>
    </div>
</div>
<!-- // Modal -->