<?php
    session_start();
    $nom = $_SESSION['nom_admin'];
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Ver detalles</title>
        <link type="text/css" rel="stylesheet" href="./css/bootstrap.min.css"  media="screen,projection"/>
        <link type="text/css" rel="stylesheet"  href="./css/prueba.css">
        <script src="./js/jquery.min.js"></script>
        <script type="text/javascript" src="./js/script.js"></script>


        <?php
            require ("./Funciones/funciones.php");
            $id = $_GET['id'];

            $conexion = conecta();
            $sql= "SELECT * FROM Proveedor where IdProveedor ='$id'";
            $res = mysqli_query($conexion,$sql);
            $num = mysqli_num_rows($res);

            $nombre = mysql_result($res, 0,"Nombre");
            $rs = mysql_result($res, 0,"RazonSocial");
            $rfc = mysql_result($res, 0,"RFC");
            $dir = mysql_result($res, 0,"Direccion");
            $tel = mysql_result($res, 0,"Telefono");
            $cel = mysql_result($res, 0,"Celular");
            $com = mysql_result($res, 0,"Comentarios");

           

            

        ?>
    </head>
    <body>

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

<div id="section">
</br>
        
       
            
            <h3>Estas viendo los detalles para el proveedor: <span><?php echo "$nombre"?></span></h3>

            <table class="table table-striped table-condensed table-hover">
                <tr>
                    <td> Nombre:</td>
                    <td><?php echo $nombre; ?></td>
                </tr>
                <tr>
                    <td>Razon Social:</td>
                    <td><?php echo $rs;?></td>
                </tr>
                <tr>
                    <td>RFC:</td>
                    <td><?php echo $rfc; ?></td>
                </tr>
                <tr>
                    <td>Direccion:</td>
                    <td><?php echo $dir; ?></td>
                </tr>
                <tr>
                    <td>Telefono:</td>
                    <td><?php echo $tel; ?></td>
                </tr>
                <tr>
                    <td>Celular:</td>
                    <td><?php echo $cel; ?></td>
                </tr>
                <tr>
                    <td>Comentarios:</td>
                    <td><?php echo $com; ?></td>
                </tr>

            </table>
        </div>
                <div id="footer" align="center">
            <p>Cuadropolis</p>
        </div>
    </body>
</html>