Perdon por continuar el tema de esta forma, ya que no hay espacio suficiente.
y por ultimo el codigo php de frea_lineas
Código PHP:
Ver original<script>
function eliminar_linea(idline,idtar){
if (confirm(" Desea eliminar este documento ? "))
document.getElementById("frame_datos").src="eliminar_linea.php?idline="+idline+"&idtar="+idtar;
}
</script>
<link href="../estilos/estilos.css" type="text/css" rel="stylesheet" />
<?php
include("../conec.php");
$idtar=$_POST["idtar"];
$retorno=0;
$idtar=$_GET["idtar"];
$retorno=1;
}
if ($retorno==0){
$idtar=$_POST["idtar"];
$idemp=$_POST["empres2"];
$doc=$_POST["docs"];
$sql="INSERT INTO docs (id, idtarea, documento, empresa) VALUES ('','$idtar','$doc','$idemp')";
}
?>
<table class="fuente8" width="100%" cellspacing=0 cellpadding=3 border=0 >
<tr class="mensaje">
<td>Numero</td>
<td>Clave de la tarea</td>
<td>Documentos Requeridos</td>
<td>Empresa</td>
<td> </td>
</tr>
<?php
$sel="SELECT * FROM docs WHERE idtarea = '$idtar'";
if ($i % 2){$fondolinea="itemParTabla";}else{$fondolinea="itemImparTabla";}?>
<tr class="<?php echo $fondolinea; ?>">
<td><div align="center"><?php echo $i+1; ?></div></td>
<td><div align="center"><?php echo $idtar; ?></div></td>
<td><div align="center"><?php echo $doc; ?></div></td>
<td><div align="center"><?php echo $emp; ?></div></td>
<td width="3%"><div align="center"><a href="javascript:eliminar_linea(<?php echo $id;?>,'<?php echo $idtar;?>')"><img src="http://www.forosdelweb.com/f18/img/eliminar.png" border="0"></a></div></td>
</tr>
<?php } ?>
</table>
<iframe id="frame_datos" name="frame_datos" width="0%" height="0" frameborder="0">
<ilayer width="0" height="0" id="frame_datos" name="frame_datos"></ilayer>
</iframe>
<script>parent.document.getElementById("idtar").focus();</script>
si existe alguna solucion alguien podra ayudarme