<?php
include ("header.php");
$sql="SELECT * FROM `tiponota` where tip_id <> 0 and tip_id < 9 or tip_id = 17 order by tip_id limit 9";
$resultado = mysqli_query($mysqli, $sql);
      if (!empty($_GET))
            {
                $id = $_GET['id'];
            }
?>

        <div class="content-wrapper">
            <!-- START PAGE CONTENT-->
            <div class="page-heading">
                <h1 class="page-title">Seleccione el tipo de Valoración Audiológica:</h1>

            </div>
            <div class="page-content fade-in-up">
 <div class="row">
                        
                                    <?php while($row = mysqli_fetch_array($resultado)) { ?>
                            <div class="col-xl-3 col-md-6">
                                <div class="card bg-primary  text-white mb-4">
                                    <div class="card-body"><?echo $row['tip_nombre'];?></div>
                                    <div class="card-footer d-flex align-items-center justify-content-between">
                                        <a class="small text-white stretched-link" href="nexpediente.php?id=<?echo $id.'&nota='.$row['tip_id'];?>">Iniciar nota</a>
                                        <div class="small text-white"><i class="fas fa-angle-right"></i></div>
                                    </div>
                                </div>
                            </div>

                                    <?php } ?>
 </div>
 <hr>
 <?
 $sql="SELECT * FROM `tiponota` where tip_id > 13 and tip_id != 17 order by tip_id ";
$resultado = mysqli_query($mysqli, $sql);
      if (!empty($_GET))
            {
                $id = $_GET['id'];
            }
?>

 <div class="row">
                        
                                    <?php while($row = mysqli_fetch_array($resultado)) { ?>
                            <div class="col-xl-3 col-md-6">
                                <div class="card bg-success   text-white mb-4">
                                    <div class="card-body"><?echo $row['tip_nombre'];?></div>
                                    <div class="card-footer d-flex align-items-center justify-content-between">
                                        <a class="small text-white stretched-link" href="nexpedienteadaptacion.php?id=<?echo $id.'&nota='.$row['tip_id'];?>">Iniciar nota</a>
                                        <div class="small text-white"><i class="fas fa-angle-right"></i></div>
                                    </div>
                                </div>
                            </div>

                                    <?php } ?>

           
<?php 
    include ('footer.php');
?>