<div class="modal fade" id="update_user_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">Editar</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="update_first_name">Apellido</label>
                    <input type="text" id="update_first_name" placeholder="First Name" class="form-control" />
                </div>
                <div class="form-group">
                    <label for="update_last_name">Nombre</label>
                    <input type="text" id="update_last_name" placeholder="Last Name" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="update_dni">DNI</label>
                    <input type="text" id="update_dni" placeholder="Last Name" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="update_email">Email</label>
                    <input type="text" id="update_email" placeholder="Email Address" class="form-control"/>
                </div>
				<div class="form-group">
                    <label for="update_doc">Profesional</label>
                    <select type="text" id="update_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);
	$doc_actual=$row_rs_ingresobb['doc'];
	
	$query_rs_todos = "SELECT usuario FROM `tabla1` WHERE `id_pac` like '$id_pac'";
	$rs_ingresobb1 = mysqli_query($odonto_connection,$query_rs_todos) or die(mysqli_error());
	$row_rs_ingresobb1 = mysqli_fetch_assoc($rs_ingresobb1);
	$doc_actual=$row_rs_ingresobb1['usuario'];
	  do{ ?>
		<option value="<?php echo $row_rs_ingresobb['doc'];?>" <?php if($row_rs_ingresobb['doc']==$doc_actual){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">Cancelar</button>
                <button type="button" class="btn btn-primary" onclick="UpdateUserDetails()">Guardar Cambios</button>
                <input type="hidden" id="hidden_user_id">
            </div>
        </div>
    </div>
</div>
