Ver Mensaje Individual
  #18 (permalink)  
Antiguo 23/09/2005, 17:55
Avatar de davidangel
davidangel
 
Fecha de Ingreso: abril-2005
Mensajes: 124
Antigüedad: 19 años, 7 meses
Puntos: 0
for(i=1;i<g;i++) {
if(document.getElementById("descript"+i).value!="" ) {
if((document.getElementById("q"+i).value!="0") && (document.getElementById("q"+i).value!="")){
// if((document.getElementById("cost"+i).value!=0.00) && (document.getElementById("q"+i).value!="")){
document.getElementById("id_i"+i).name="id_i"+i;
document.getElementById("descript"+i).name="descri pt"+i;
document.getElementById("q"+i).name="q"+i;
document.getElementById("cost"+i).name="cost"+i;
document.getElementById("s_total"+i).name="s_total "+i;
document.getElementById("id_i"+i).name="id_i"+i;
document.getElementById("id_unic"+i).name="id_unic "+i;
// }else {
// alert("Type quantity in please");
// return;
}else{
alert("<?php echo MSG_6_96;?>");
send = false;
break;
}
}
}
if(send) {
document.getElementById("s_invoice").value = "save";
document.getElementById("numAP").value = g;
mayopi_carga("fl_i","self");
}
}
<?if($id_pas){?>
parent.document.getElementById('id_pas').value = "<?echo $micro;?>";
parent.document.getElementById('action_i').value = "save";
parent.mayopi_carga('data_profile','self');
<?}?>
<?if($id_pas1){?>
parent.document.getElementById('action_i').value = "update";
parent.mayopi_carga('data_profile','self');
<?}?>
//-->
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0">
<form method="post" name="f1_i" id="fl_i">
<input type="Hidden" name="items_cod1" id="items_cod1" value="<?echo $numg;?>">
<input type="Hidden" name="items_cod" id="items_cod" value="<?echo $items_cod;?>">
<input type="Hidden" id="numAP" name="numAP">
<input type="Hidden" name="s_invoice" id="s_invoice">
<input type="Hidden" id="nadd" name="nadd" value="<?echo $nadd;?>">
<input type="hidden" id="id_v" name="id_v" value="<?echo $id_v;?>">
<input type="Hidden" name="propInvoice" id="propInvoice" value="">
<input type="Hidden" name="relation" id="relation" value="<?echo $relation;?>">
<input type="Hidden" name="id_1_pro" id="id_1_pro" value="<?echo $id_1_pro;?>">
<input type="Hidden" name="id_2_num" id="id_2_num" value="<?echo $id_2_num;?>">
<input type="Hidden" name="elimina_i" id="elimina_i" value="0">
<?
echo $WPtitle;
echo $newR;
?>
<!-- -->
</form>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function submita_add(){
document.getElementById("nadd").value = "<?php echo $nadd+1;?>";
document.getElementById("s_invoice").value = "add";
mayopi_carga("fl_i","self");
}
function submita_resta()
{
document.getElementById("nadd").value = "<?php echo $nadd-1;?>";
document.getElementById("s_invoice").value = "add";
mayopi_carga("fl_i","self");
}
<?if($ej){?>
subtotal();
<?}?>
<?if($manda_data==true){?>
parent.document.getElementById("invoice_name").val ue="<?echo $filas['name']?>";
parent.document.getElementById("invoice_addr1").va lue="<?echo $dir[0];?>";
parent.document.getElementById("invoice_addr2").va lue="<?echo $dir[1];?>";
parent.document.getElementById("startdate").value= "<?echo $filas["sdate"];?>";
parent.document.getElementById("enddate").value="< ?echo $filas["kdate"];?>";
<?}?>
//-->
</SCRIPT>
</body>
</html>