
PK 
<!--#include file="includes/openconn.asp" -->
<!--#include file="includes/checkadmin3.asp" -->
<!DOCTYPE html>
<html lang="en">
<head>
<!--#include file="includes/metatags.asp" -->
<link rel="stylesheet" href="lightbox/css/bootstrap-lightbox.min.css">
<link rel="stylesheet" href="lightbox/prettify/prettify.css">
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<!--#include file="includes/navup.asp" -->
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
<%session("seccion") = "Showroom"%>
<!--#include file="includes/navizq.asp" -->
<!-- /.navbar-collapse -->
</nav>
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Venta en showroom <small>Nueva</small></h1>
</div>
</div>
<!-- Page Heading -->
<%rs.open "SELECT * FROM Ventas WHERE idventa = " & request("idventa"),conn,3,1
rs.movefirst
session("idventa") = rs("idventa")%>
<form role="form" action="showroom_venta_edit1.asp" method="POST" class="form">
<input class="form-control" type="hidden" name="idventa" id="idventa" value="<%=rs("idventa")%>">
<div class="row">
<div class="col-lg-6">
<div class="row">
<div class="col-lg-12">
<b>Fecha / hora :</b> <%=now()%><br>
<b>IP :</b> <%=request.ServerVariables("REMOTE_ADDR")%><br>
</div>
</div>
<br>
<label>Nombre</label>
<input class="form-control" name="ven_nombre" id="ven_nombre" value="<%=rs("ven_nombre")%>">
<label>Telefono</label>
<input class="form-control" name="ven_telefono" id="ven_telefono" value="<%=rs("ven_telefono")%>">
<label>Email</label>
<input class="form-control" name="ven_email" id="ven_email" value="<%=rs("ven_email")%>">
<label>Comentarios</label>
<textarea id="ven_Comentario" name="ven_Comentario" cols="45" rows="3" class="form-control"><%=rs("ven_Comentario")%></textarea>
<br>
<div class="row">
<div class="col-lg-4">
<label>Monto</label>
<input class="form-control" name="ven_monto" id="ven_monto" value="<%=rs("ven_monto")%>">
</div>
<div class="col-lg-4">
<label>Tipo de pago</label>
<select id="ven_tipopago" name="ven_tipopago" class="form-control">
<option value="Efectivo" <%if rs("ven_tipopago") = "Efectivo" then response.Write(" selected")%>>Efectivo</option>
<option value="Cuenta corriente" <%if rs("ven_tipopago") = "Cuenta corriente" then response.Write(" selected")%>>Cuenta corriente</option>
<option value="VISA 1 PAGO" <%if rs("ven_tipopago") = "VISA 1 PAGO" then response.Write(" selected")%>>VISA 1 PAGO</option>
<option value="VISA 3 PAGOS" <%if rs("ven_tipopago") = "VISA 3 PAGOS" then response.Write(" selected")%>>VISA 3 PAGOS</option>
<option value="VISA 6 PAGOS" <%if rs("ven_tipopago") = "VISA 6 PAGOS" then response.Write(" selected")%>>VISA 6 PAGOS</option>
<option value="VISA 12 PAGOS" <%if rs("ven_tipopago") = "VISA 12 PAGOS" then response.Write(" selected")%>>VISA 12 PAGOS</option>
<option value="MASTERCARD 1 PAGO" <%if rs("ven_tipopago") = "MASTERCARD 1 PAGO" then response.Write(" selected")%>>MASTERCARD 1 PAGO</option>
<option value="MASTERCARD 3 PAGOS" <%if rs("ven_tipopago") = "MASTERCARD 3 PAGOS" then response.Write(" selected")%>>MASTERCARD 3 PAGOS</option>
<option value="MASTERCARD 6 PAGOS" <%if rs("ven_tipopago") = "MASTERCARD 6 PAGOS" then response.Write(" selected")%>>MASTERCARD 6 PAGOS</option>
<option value="MASTERCARD 12 PAGOS" <%if rs("ven_tipopago") = "MASTERCARD 12 PAGOS" then response.Write(" selected")%>>MASTERCARD 12 PAGOS</option>
<option value="VISA ELECTRON (DEBITO)" <%if rs("ven_tipopago") = "VISA ELECTRON (DEBITO)" then response.Write(" selected")%>>VISA ELECTRON (DEBITO)</option>
<option value="MAESTRO (MASTER DEBITO)" <%if rs("ven_tipopago") = "MAESTRO (MASTER DEBITO)" then response.Write(" selected")%>>MAESTRO (MASTER DEBITO)</option>
</select>
</div>
<div class="col-lg-4">
<label>Fecha</label>
<input class="form-control" name="ven_fechapago" id="ven_fechapago" value="<%if rs("ven_monto") > 0 then response.Write(rs("ven_fechapago")) else response.Write(now()) end if%>">
</div>
</div>
<div class="row">
<div class="col-lg-4">
<label>Monto</label>
<input class="form-control" name="ven_monto1" id="ven_monto1" value="<%=rs("ven_monto1")%>">
</div>
<div class="col-lg-4">
<label>Tipo de pago</label>
<select id="ven_tipopago1" name="ven_tipopago1" class="form-control">
<option value="" selected></option>
<option value="Efectivo" <%if rs("ven_tipopago1") = "Efectivo" then response.Write(" selected")%>>Efectivo</option>
<option value="Cuenta corriente" <%if rs("ven_tipopago1") = "Cuenta corriente" then response.Write(" selected")%>>Cuenta corriente</option>
<option value="VISA 1 PAGO" <%if rs("ven_tipopago1") = "VISA 1 PAGO" then response.Write(" selected")%>>VISA 1 PAGO</option>
<option value="VISA 3 PAGOS" <%if rs("ven_tipopago1") = "VISA 3 PAGOS" then response.Write(" selected")%>>VISA 3 PAGOS</option>
<option value="VISA 6 PAGOS" <%if rs("ven_tipopago1") = "VISA 6 PAGOS" then response.Write(" selected")%>>VISA 6 PAGOS</option>
<option value="VISA 12 PAGOS" <%if rs("ven_tipopago1") = "VISA 12 PAGOS" then response.Write(" selected")%>>VISA 12 PAGOS</option>
<option value="MASTERCARD 1 PAGO" <%if rs("ven_tipopago1") = "MASTERCARD 1 PAGO" then response.Write(" selected")%>>MASTERCARD 1 PAGO</option>
<option value="MASTERCARD 3 PAGOS" <%if rs("ven_tipopago1") = "MASTERCARD 3 PAGOS" then response.Write(" selected")%>>MASTERCARD 3 PAGOS</option>
<option value="MASTERCARD 6 PAGOS" <%if rs("ven_tipopago1") = "MASTERCARD 6 PAGOS" then response.Write(" selected")%>>MASTERCARD 6 PAGOS</option>
<option value="MASTERCARD 12 PAGOS" <%if rs("ven_tipopago1") = "MASTERCARD 12 PAGOS" then response.Write(" selected")%>>MASTERCARD 12 PAGOS</option>
<option value="VISA ELECTRON (DEBITO)" <%if rs("ven_tipopago1") = "VISA ELECTRON (DEBITO)" then response.Write(" selected")%>>VISA ELECTRON (DEBITO)</option>
<option value="MAESTRO (MASTER DEBITO)" <%if rs("ven_tipopago1") = "MAESTRO (MASTER DEBITO)" then response.Write(" selected")%>>MAESTRO (MASTER DEBITO)</option>
</select>
</div>
<div class="col-lg-4">
<label>Fecha</label>
<input class="form-control" name="ven_fechapago1" id="ven_fechapago1" value="<%if rs("ven_monto1") > 0 then response.Write(rs("ven_fechapago1")) else response.Write(now()) end if%>">
</div>
</div>
<br>
<button type="submit" class="btn btn-primary">Aceptar</button>
</div>
</div>
</div>
<%rs.close%>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script src="lightbox/js/scale.fix.js"></script>
<script src="lightbox/prettify/prettify.js"></script>
<script src="lightbox/js/bootstrap-lightbox.min.js"></script>
</body>
</html>
<!--#include file="includes/closeconn.asp" -->


PK 99