<? 
$nivel = $_GET["nivel"];
$nombrevar =$_GET["nombreuser"];

$fecha =date("Y-m-d");
$hora=date("H:i:s");
$fecha_ft=date('d-m-Y',strtotime($fecha));


require_once('../../conf/connection.php');






?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US"><head>
    <meta charset="utf-8">
    <title>mod_venta</title>
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
    <script type='text/javascript' src='../jquery-1.7.1.min.js'></script>
    <!--[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>
    
    <link href="../../admin/calendario/calendar-blue.css" rel="stylesheet" type="text/css">
	<script type="text/JavaScript" language="javascript" src="../../admin/calendario/calendar.js"></script>
	<script type="text/JavaScript" language="javascript" src="../../admin/calendario/lang/calendar-sp.js"></script>
	<script type="text/JavaScript" language="javascript" src="../../admin/calendario/calendar-setup.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>
<script>

function cerrar() {
			window.close();
		}
		
</script>  
<script language="javascript">

function imprimir() {
	window.open("rejilla_imprime.php?fecha=<? echo $fecha ?>");
	window.history.back()
	
}
function cerrar() {
	window.close();	
}

function ver(numero){
			
			window.location.href="ver.php?numero="+ numero +"";
		}

function volver(){
			
			window.history.back();
		}
		
function proveedor(){
			miPopup = window.open("ver_residente.php","residente","width=700,height=380,scrollbars=yes");
			miPopup.focus();
		}
</script>

       

</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%" >
       
        <p>
      
      <h3>Registro de post venta</h3>
      <br><br>
    
        Fecha: <? echo $fecha_ft ?> Hora: <? echo $hora ?><br>
        <br>
        <form id="post" name="post" method="post" action="reg.php">
        <fieldset><legend>Nuevo Registro</legend>
        <table width="387" border="0">
  <tr>
    <td width="110">N° de Doc: </td>
    <td colspan="3"><label for="doc"></label>
      <input type="text" name="doc" id="doc"></td>
  </tr>
  <tr>
    <td>Código (Producto):</td>
    <td width="77"><input name="pro" type="text" id="pro" size="15"></td>
    <td width="40"><img src="../../images/searchicon.png" alt="" width="16" height="16" onClick="proveedor()"></td>
    <td width="173"><input name="nombre" type="text" id="nombre" style="background-color:#CCC"readonly></td>
  </tr>
  <tr>
    <td>Estado de ingreso: </td>
    <td colspan="3"><label for="est"></label>
      <select name="est" id="est">
        <option value="0"></option>
        <option value="1">Ingesado</option>
        <option value="2">Pendiente</option>
        <option value="3">Entregado</option>
      </select></td>
  </tr>
  <tr>
    <td>Fecha  de ingreso:</td>
    <td><label for="fecha"></label>
      <input name="fecha" type="text" id="fecha" value="<? echo $fecha ?>" size="15"></td>
    <td><img src="../../images/postdateicon.png" alt="" name="Image1" id="Image1">
    <script type="text/javascript">
					Calendar.setup(
					  {
					inputField : "fecha",
					ifFormat   : "%Y-%m-%d",
					button     : "Image1"
					  }
					);
		</script>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Hora de ingreso:</td>
    <td colspan="3"><label for="hrs"></label>
      <input type="text" name="hrs" id="hrs" value="<? echo $hora ?>"></td>
  </tr>
  <tr>
    <td>Observaciones: </td>
    <td colspan="3"><label for="obs"></label>
      <label for="obs"></label>
      <textarea name="obs" cols="50" rows="5" id="obs"></textarea></td>
  </tr>
  <tr>
    <td colspan="4">
    <input type="submit" value="Guardar" class="art-button">
    <input type="button" value="Cerrar ventanas" class="art-button" onClick="cerrar()">
    </td>
    </tr>
        </table>
</fieldset>
</form>
        </p>
    </div>
    </div>
</div>
<div class="art-content-layout-br layout-item-0">
</div></div>


</article></div>
                    </div>
                </div>
            </div>

    </div>
    
</div>


</body></html>
