<? 
$nivel = $_GET["nivel"];
$nombrevar =$_GET["nombreuser"];
$hoy=date("d-m-Y");
require_once('../../../conf/connection.php');



$codfactura=$_GET["codfacturatmp"];
$numlinea=$_GET["numlinea"];

$sel_lineas="SELECT * FROM factulineatmp_proveedor WHERE codfactura='$codfactura' AND numlinea='$numlinea'";
$rs_lineas=mysql_query($sel_lineas);
$art=mysql_result($rs_lineas,0,"codigo");
$num=mysql_num_rows($rs_lineas); 

$sel_tipo="SELECT * FROM articulos WHERE codarticulo='$art'";
$rs_tipo=mysql_query($sel_tipo);
$nombre=mysql_result($rs_tipo,0,"descripcion");


?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
  

    <meta charset="utf-8">
    <title>INVENTARIO</title>
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">

    <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <link rel="stylesheet" href="../../../style.css" media="screen">
    <!--[if lte IE 7]><link rel="stylesheet" href="../style.ie7.css" media="screen" /><![endif]-->
    <link rel="stylesheet" href="../../../style.responsive.css" media="all">

    <script src="../../../jquery.js"></script>
    <script src="../../../script.js"></script>
    <script src="../../../script.responsive.js"></script>



<style>.art-content .art-postcontent-0 .layout-item-0 { border-top-width:1px;border-top-style:solid;border-top-color:#B1C9C7;margin-top: 10px;margin-bottom: 10px;  }
.art-content .art-postcontent-0 .layout-item-1 { border-right-style:solid;border-right-width:1px;border-right-color:#B1C9C7; padding-right: 10px;padding-left: 10px;  }
.ie7 .art-post .art-layout-cell {border:none !important; padding:0 !important; }
.ie6 .art-post .art-layout-cell {border:none !important; padding:0 !important; }

</style>
 </head>
<body >
<div id="art-main">

<div class="art-sheet clearfix">
            <div class="art-layout-wrapper">
                <div class="art-content-layout">
                  <div class="art-content-layout-row">
                    <div class="art-layout-cell art-content"><article class="art-post art-article">
                                
                                                
                                <div class="art-postcontent art-postcontent-0 clearfix"><div class="art-content-layout">
    <div class="art-content-layout-row">
    <div class="art-layout-cell layout-item-1" style="width: 100%" >
        <h3>Modificar linea </h3>
   <p>
   <form name="form1" id="form1" method="post" action="guardar_mod.php" >
  <input id="accion" name="accion" value="alta" type="hidden">
  <input name="iva" type="hidden" class="cajaMinima" id="iva" value="19">

	

      <table class="fuente8" width="98%" cellspacing=0 cellpadding=3 border=0>
        <tr>
          <td width="21%">Codigo</td>
          <td colspan="4">Descripcion</td>
          </tr>
        <tr>
          <td><input name="producto" type="text" class="itemParTabla" id="producto" value="<? echo $art ?>" readonly> 
          
          <input name="codfacturatmp" type="hidden" class="itemParTabla" id="codfacturatmp" value="<? echo $codfactura ?>" readonly> 
          <input name="num" type="hidden" id="num" value="<? echo $numlinea ?>" readonly></td>
          <td colspan="4"><input name="nombre" type="text" class="itemParTabla" id="nombre" value="<? echo $nombre ?>" size="60" readonly></td>
          </tr>
        <tr>
          <td align="right">Nueva cantidad: </td>
          <td width="11%"><input NAME="cantidad" type="text" class="cajaMinima" id="cantidad" size="20" maxlength="90" onKeyPress="return rut_teclado(this, event)">
          </td>
          <td width="11%" align="right">Nuevo descuento:</td>
          <td width="57%" colspan="2"><input name="descuento" type="text" class="cajaMinima" id="descuento" size="20" maxlength="90" onKeyPress="return rut_teclado(this, event)"></td>
          </tr>
        
        <tr>
          <td width="21%">&nbsp;</td>
          <td colspan="4" align="right"><input type="submit" name="agregar" id="agregar" class="art-button" value="Modificar" 
           onClick="validar()">
            <input type="button" name="volver" id="volver" class="art-button" value="Volver" onClick="cancelar()">
            
            
          </td>
          </tr>
        
      </table>
  
<input type="hidden" id="iniciopagina" name="iniciopagina">
</form>
   </p>
				
   
        							
			  </div>
			 
    
     
      </p>
   
     <p align="left">  
     <div id="resultado">
     </div></p>
    
    </div>
    </div>
</div>
<div class="art-content-layout-br layout-item-0">
</div></div>


</article></div>
                    </div>
                </div>
            </div><footer class="art-footer">

<p>Copyright © 2015. All Rights Reserved.</p>
</footer>

    </div>
    <p class="art-page-footer">
        <span id="art-footnote-links">Informatica Francisco Arias E.I.R.L.</span>
    </p>
</div>


</body></html>