Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2011, 10:21
Avatar de skiper0125
skiper0125
 
Fecha de Ingreso: octubre-2010
Ubicación: $this->Mexico('Toluca');
Mensajes: 1.127
Antigüedad: 14 años, 5 meses
Puntos: 511
Respuesta: Problemas con un ifream y php

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
  1. <script>
  2.    
  3.     function eliminar_linea(idline,idtar){
  4.  
  5.         if (confirm(" Desea eliminar este documento ? "))
  6.             document.getElementById("frame_datos").src="eliminar_linea.php?idline="+idline+"&idtar="+idtar;
  7.     }
  8. </script>
  9. <link href="../estilos/estilos.css" type="text/css" rel="stylesheet" />
  10.  
  11. <?php
  12. include("../conec.php");
  13. $idtar=$_POST["idtar"];
  14. $retorno=0;
  15.  
  16.     if(!isset($idtar)){
  17.         $idtar=$_GET["idtar"];
  18.         $retorno=1;
  19.     }
  20.    
  21.     if ($retorno==0){  
  22.             $idtar=$_POST["idtar"];
  23.             $idemp=$_POST["empres2"];
  24.             $doc=$_POST["docs"];   
  25.             $sql="INSERT INTO docs (id, idtarea, documento, empresa) VALUES ('','$idtar','$doc','$idemp')";
  26.             $query=mysql_query($sql);
  27.     }
  28. ?>
  29.  
  30. <table class="fuente8" width="100%" cellspacing=0 cellpadding=3 border=0 >
  31.     <tr class="mensaje">
  32.         <td>Numero</td>
  33.         <td>Clave de la tarea</td>
  34.         <td>Documentos Requeridos</td>
  35.         <td>Empresa</td>
  36.         <td>&nbsp;</td>
  37.     </tr>
  38.        
  39.     <?php
  40.         $sel="SELECT * FROM docs WHERE idtarea = '$idtar'";
  41.         $resel=mysql_query($sel);
  42.             for ($i = 0; $i < mysql_num_rows($resel); $i++) {
  43.                 $id=mysql_result($resel,$i,"id");
  44.                 $idtar=mysql_result($resel,$i,"idtarea");
  45.                 $doc=mysql_result($resel,$i,"documento");      
  46.                 $emp=mysql_result($resel,$i,"empresa");
  47.                 if ($i % 2){$fondolinea="itemParTabla";}else{$fondolinea="itemImparTabla";}?>
  48.  
  49.                 <tr class="<?php echo $fondolinea; ?>">
  50.                     <td><div align="center"><?php echo $i+1; ?></div></td>
  51.                     <td><div align="center"><?php echo $idtar; ?></div></td>
  52.                     <td><div align="center"><?php echo $doc; ?></div></td>
  53.                     <td><div align="center"><?php echo $emp; ?></div></td>             
  54.                     <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>
  55.                 </tr>
  56.             <?php } ?>
  57. </table>
  58. <iframe id="frame_datos" name="frame_datos" width="0%" height="0" frameborder="0">
  59.     <ilayer width="0" height="0" id="frame_datos" name="frame_datos"></ilayer>
  60. </iframe>
  61. <script>parent.document.getElementById("idtar").focus();</script>

si existe alguna solucion alguien podra ayudarme