<?php include_once "../../class/proveedor.php"; $proveedor = new proveedor(); extract($_POST); $dat = $proveedor->mostrarTodoRegistro(" nombreempresa LIKE '{$nombreempresa}%' and materiaprima LIKE '{$materiaprima}%' and referente LIKE '{$referente}%'", 1, "nombreempresa"); ?> <table class="table table-bordered table-striped table-hover"> <thead> <tr><th width="50">Nº</th><th>Nombre Empresa</th><th>Dirección</th><th>Teléfono</th><th>Materia Prima</th><th>Referente</th></tr> </thead> <?php foreach ($dat as $d) { $i++; ?> <tr> <td class="der"><?php echo $i; ?> </td> <td><?php echo $d['nombreempresa']; ?> </td> <td><?php echo $d['direccion']; ?> </td> <td><?php echo $d['telefono']; ?>
<?php include_once "../../login/check.php"; $cod = $_GET['cod']; include_once "../../class/proveedor.php"; $proveedor = new proveedor(); $dat = $proveedor->mostrarTodoRegistro(" codproveedor='{$cod}'", 1, ""); $dat = array_shift($dat); $titulo = "Modificar Proveedor"; $folder = "../../"; include_once $folder . "cabecerahtml.php"; include_once $folder . "cabecera.php"; ?> <div class="widgetbox box-inverse"> <h4 class="widgettitle">REGISTRO DE PROVEEDOR </h4> <div class="widgetcontent wc1"> <form name="provedor" class="stdform" method="post" action="actualizar.php"> <input name="codproveedor" value="<?php echo $cod; ?> " type="hidden"> <table class="table"> <tr> <td width="200" class="der">NOMBRE DE LA EMPRESA</td> <td><input type="text" name="nombreempresa" id="nombreempresa" class="input-large" autofocus value="<?php echo $dat['nombreempresa']; ?> " required/></td> </tr> <tr> <td width="200" class="der">DIRECCION DE LA EMPRESA</td>