<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>UCA :.</title>
<link href="ucaestilos.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
</head>

<body>
<?php
		  $idProv=$_GET['idProv'];
		  include ('conexion.php');
		  $cons="SELECT * FROM proveedor where idProveedor = '$idProv'";
			$res=mysql_query($cons,$conex) or die ("No se realizo con exito la consulta de proveedor");
			$nom=mysql_result($res,0,'nombre');
			$con=mysql_result($res,0,'contacto');
			$dir=mysql_result($res,0,'direccion');
			$tel=mysql_result($res,0,'telefono');
			$fax=mysql_result($res,0,'fax');
			$correo=mysql_result($res,0,'correo');
		  ?>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><form action="editproveedor3.php" method="post" name="form1" id="form1">
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><p class="style4"><span class="style10">Modificar Proveedor</span></p>
                <hr align="left" width="600" size="1" color="#999999" />
                <table width="600" border="0" align="center" cellspacing="5">
                  <tr>
                    <td width="172" align="right" class="style1"><p class="style4">Nombre o Raz&oacute;n Social:</p></td>
                    <td width="409"><input name="nomprovee" type="text" class="cuadrotexto" id="nomprovee" value="<?php echo $nom; ?>" size="50" maxlength="100" /></td>
                  </tr>
                  <tr>
                    <td width="172" align="right" class="style4"><p class="style4">Persona contacto:</p></td>
                    <td width="409"><input name="contactoprovee" type="text" class="cuadrotexto" id="contactoprovee" value="<?php echo $con; ?>" size="50" maxlength="100" /></td>
                  </tr>
                  <tr>
                    <td align="right" valign="top" class="style4"><p class="style4">Direcci&oacute;n: </p></td>
                    <td valign="top" class="style4"><textarea name="dirprovee" cols="40" rows="3" class="cuadrotexto" id="dirprovee"><?php echo $dir; ?></textarea></td>
                  </tr>
                  <tr>
                    <td align="right" class="style4">Tel&eacute;fono:</td>
                    <td><input name="telprovee" type="text" class="cuadrotexto" id="telprovee" value="<?php echo $tel; ?>" size="20" maxlength="20" /></td>
                  </tr>
                  <tr>
                    <td width="172" align="right" class="style1"><p class="style4">Fax:</p></td>
                    <td width="409"><input name="faxprovee" type="text" class="cuadrotexto" id="faxprovee" value="<?php echo $fax; ?>" size="20" maxlength="20" /></td>
                  </tr>
                  <tr>
                    <td align="right" class="style4">Correo:</td>
                    <td><input name="correoprovee" type="text" class="cuadrotexto" id="correoprovee" value="<?php echo $correo; ?>" size="30" maxlength="40" /></td>
                  </tr>
                </table>
            <p class="style4">
                  <input name="idProv" type="hidden" id="idProv" value="<?php echo $idProv; ?>" size="5">
                </p>
            <table width="500" border="0" align="center" cellspacing="10">
                  <tr>
                    <td width="248"><div align="right">
                        <input name="Reset" type="button" class="boton2" onclick="javascript:history.back()" value="Cancelar" />
                    </div></td>
                    <td width="218"><input name="Submit2" type="submit" class="boton2" value="Guardar" /></td>
                  </tr>
                </table>
            <p></p></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
</body>
</html>
