|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/logicswapweb/aplicaciones/admon/carrito/plantillas/ |
Upload File : |
<script>
if (history.forward(1)){location.replace(history.forward(1))}
</script>
<script>
function concatChecked(frm)
{
for (i = 0; i < frm.elements.length; i++)
{
if(frm.elements[i].type=="checkbox" )
{
if( frm.elements[i].checked == true)
{
return true;
}
}
}
return false;
}
function fncAccionModf() {
var sel = concatChecked(document.carrito);
if(sel == false){
alert('Select at least one item.');
return false;
}
return true;
}
function registrarPedido()
{
document.carrito.tarea.value = 'registrarPedido';
document.location.href = './fnc/main.php';
}
function actualizarPedido()
{
if(fncAccionModf() == true)
{
document.carrito.tarea.value = 'actualizarPedido';
document.carrito.submit();
}
}
function solo_numeros(evt)
{
var nav4 = window.Event ? true : false;
var key = nav4 ? evt.which : evt.keyCode;
if(key == 13)
{
document.carrito.tarea.value = 'actualizarPedido';
document.carrito.submit();
}
return ((key >= 48 && key <= 57) || (key == 8) || ( key == 0));
}
function eliminarProductos()
{
if(fncAccionModf() == true)
{
document.carrito.tarea.value = 'eliminarProductos';
document.carrito.submit();
}
return false;
}
function adiccionarProducto()
{
document.location.href = './catalogue.php?id_cat=1';
}
</script>
<link href="css/webdemo.css" rel="stylesheet" type="text/css">
<link href="css/tiutlos.css" rel="stylesheet" type="text/css">
<link href="css/fuentes.css" rel="stylesheet" type="text/css">
<link href="css/prueba.css" rel="stylesheet" type="text/css">
<link href="../../../../css/webdemo.css" rel="stylesheet" type="text/css">
<link href="../../../../css/tiutlos.css" rel="stylesheet" type="text/css">
<link href="../../../../css/fuentes.css" rel="stylesheet" type="text/css">
<link href="../../../../css/prueba.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
<form name="carrito" action="./fnc/main.php" method="post">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr class="menu1">
<td width="33%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Product Name</td>
<td width="18%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">P/No.</td>
<td width="14%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Price</td>
<td width="12%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Quantity</td>
<td width="13%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Subtotal</td>
<td width="10%" align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Select</td>
</tr>
[-varios-]
<tr class="contenido2">
<td align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF">
<table width="100%" border="0">
<tr>
<td align="center"><div align="left">
<input name="prods_ped[]" type="hidden" value="[-id_producto-]">
[-imagen-]
<input name="tipo_pro[]" type="hidden" id="tipo_pro[]" value="[-tipo-]" />
<input name="parent[]" type="hidden" id="parent[]" value="[-parent-]" />
</div></td>
</tr>
<tr>
<td align="center"><div align="left" class="arial12">[-producto-]</div></td>
</tr>
</table>
</td>
<td align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="normal style1"><div align="left">[-referencia-]</div></td>
<td align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12"><div align="right">[-valor-]</div></td>
<td align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF"><input name="cantidad[]" class="contenido2" align="right" type="text" value="[-cantidad-]" size="3" maxlength="3" onKeyPress="return solo_numeros(event)" ></td>
<td align="right" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">[-subtotal-]</td>
<td align="center" bordercolor="#DBECF7" bgcolor="#FFFFFF"> <input name="selecc[]" type="checkbox" class="arial12" value="[-id_producto-]"></td>
</tr>
[-varios-]
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td bordercolor="#DBECF7" bgcolor="#FFFFFF" class="arial12">Total</td>
<td align="right" bordercolor="#DBECF7" bgcolor="#FFFFFF" class="style26">[-total-]</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="right" class="newsletter">
<input name="tarea" type="hidden" value="none">
<input name="codigo" type="hidden" value="[-codigo-]">
<input type="button" name="Submit" value="Update" onClick="actualizarPedido()">
<input type="button" name="Submit4" onclick="eliminarProductos()" value="Delete" />
<input type="reset" name="Submit3" value="Continue Shopping" onClick="adiccionarProducto()">
<input name="Submit2" type="submit" onClick="registrarPedido()" value="Finish"></td>
</tr>
</table>
</form>