<html>
<head>
<title>.:AVI: Alta de Pedido:.</title>
<meta http-equiv="" content="text/html; charset=iso-8859-1">
<link href="css/tisoft.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="f_pedido2.js"></script>
<script language="JavaScript">
function ajaxFunction()
{
var ajaxRequest= false; // The variable that makes Ajax possible!
try
{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
ajaxRequest = false;
}
}
if(!ajaxRequest && typeof XMLHttpRequest != 'undefined')
{
ajaxRequest = new XMLHttpRequest();
}
return ajaxRequest;
}
</script>
</head>
<body bgcolor="#EFEFEF">
<!--
<table width="900" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" > <script src="menu/xaramenu.js" ></script>
<script menumaker src="menu/andybar.js"></script>
</td>
</tr>
</table>
-->
<table width="900" height="545" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#FFFFFF">
<table width="700" height="466" border="0" align="center" cellpadding="2" cellspacing="0" bordercolor="#E3E3F0" bgcolor="#FFFFFF">
<tr>
<td align="center" valign="top">
<table width="800" height="414" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td height="23" class="titulocolumnaavi"><font size="3">Alta de Pedido</font></td>
</tr>
<tr>
<td><form name="form1" method="post" action="make_pedido.php?act=1">
<table width="700" border="0" align="center" bordercolor="#E3E3F0">
<tr>
<td colspan="2" class="titulocolumna2"><div align="center">Llene los siguientes datos: </div></td>
</tr>
<tr>
<td class="titulocolumna2"><div align="left">Clave del Contrato: </div></td>
<td><input type="radio" name="origen_pedido" onClick="set_origenpedido(0)">
<input name="clave_contrato" type="text" id="clave_contrato" size="20" maxlength="10" title="Ingrese la clave del Contrato" disabled></td>
</tr>
<tr>
<td class="titulocolumna2"><div align="left">Cliente: </div></td>
<td><input type="radio" name="origen_pedido" onClick="set_origenpedido(1)">
<select name="cliente_nombre" id="cliente_nombre" disabled>
<option>---SELECCIONE---</option>
<br />
<b
>Warning
</b
>: mysql_fetch_array(): supplied argument is not a valid
MySQL result resource in
<b
>/mnt
/storage
/users
/j
/a
/c
/jachable
/tisoft
/alta_pedido2
.php
</b
> on line
<b
>93
</b
><br
/>
</select>
</td>
</tr>
<tr>
<td class="titulocolumna2"><div align="left">Clave del Producto:</div></td>
<td><input type="text" name="clave_producto" id="clave_producto">
<input type="button" name="agregar" id="agregar" value="Agregar" onClick="addFila(true);">
</td>
</tr>
<tr>
<td colspan="2" ><a href="javascript: showHidden();">
<img src="imgs/search.png" border=0> Búsqueda Avanzada de Productos</a>
<input type="hidden" name="tmp_pedido" id="tmp_pedido" value="-1">
</td>
</tr>
<!--<tr>
<td colspan="2"> </td>
</tr>-->
<!-- ///////////////////// INICIO Selección de Productos /////////////////////-->
<table width="700" border="0" align="center" class="titulocolumna2 show" id="b_avanzada">
<tr>
<td class="titulocolumna2"><div align="left">+Forma de buscar:</div></td>
<td class="titulocolumna2">
<select name="tipo_busqueda" id="tipo_busqueda" onChange="reiniciaControles()">
<option>---SELECCIONE---</option>
<option value="1">Clave Familia</option>
<option value="2">Marca</option>
<option value="3">Nombre del Producto</option>
<option value="4">Código de Barras</option>
</select>
</td>
<td class="titulocolumna2"><div align="left">+Criterio:</div></td>
<td class="titulocolumna2"><input type="text" name="criterio" id="criterio">
<input type="button" name="get_criterio" id="get_criterio" onClick="buscarCriterio();" value="Buscar">
</td>
</tr>
<tr>
<td class="titulocolumna2"><div align="left">+Resultado de la Búsqueda:</div></td>
<td colspan="2" class="titulocolumna2">
<select name="resultado" id="resultado" onChange="activarAdd();">
<option>---SELECCIONE---</option>
</select>
</td>
<td class="titulocolumna2">
<input type="button" name="anexa_producto" id="anexa_producto" onClick="addFila(false);" value="Agregar" disabled="true">
</td>
</tr>
</table>
<!-- ///////////////////// FIN Selección de Productos /////////////////////-->
<br><h4 align="center" class="titulocolumnaavi">Lista de Productos para el Pedido</h4>
<!-- ///////////////////// INICIO Anexo de Productos /////////////////////-->
<table width="700" id="tabla_producto" align="center" class="titulocolumna2">
<tbody id="valores_producto">
<tr>
<td>Clave</td><td>Cantidad</td><td>Descripción</td><td>U. Medida</td><td>Precio</td><td>Importe</td><td>Acción</td>
</tr>
</tbody>
</table>
<!-- /////////////////////// FIN Anexo de Productos //////////////////////-->
<tr class="titulocolumna3">
<td colspan="2" align="left">Campos obligatorios: +<br>
</td>
</tr>
<tr>
<td colspan="2" > <div align="center">
<input name="Aceptar" type="button" id="Aceptar" value="Grabar" onClick="if(Validar()== true) Exist();">
<input name="canc" type="button" id="canc" value="Cancelar" onClick="document.URL='pedidos.php'">
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
<p> </p>
</td>
</tr>
<tr>
<td height="25" class="titulocolumnaavi"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>