Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/10/2015, 08:48
rudiaz
 
Fecha de Ingreso: abril-2015
Ubicación: Santiago de Chile
Mensajes: 80
Antigüedad: 9 años, 1 mes
Puntos: 0
Exclamación Selección de usuario en PHP con Google Chrome

Tengo este programa, en internet explorer cuando yo al seleccionar a un usuario, manda los datos básicos a una pantalla llamada busqueda_criterios.php y se ven tambien los contactos del cliente, pero en Google Chrome no me permite hacer la selección, por favor ayudenme.

Este es el código.

Código PHP:
Ver original
  1. <?
  2. if ($_SESSION['numuser']==""){
  3. header("Location:index.php");
  4. $num_area=$_GET["num_area"];
  5. $correo=$_GET["correo"];
  6. echo $correo;
  7. }
  8. ?>
  9. <HTML>
  10. <HEAD>
  11. <?
  12. //por área
  13. if ($_SESSION['num_area']==0){$pv_area="CAMIONES USADOS";}
  14. if ($_SESSION['num_area']==1){$pv_area="CAMIONES GLOBAL";}
  15. if ($_SESSION['num_area']==2){$pv_area="FORD CAMIONES";}
  16. if ($_SESSION['num_area']==3){$pv_area="RAMPLAS";}
  17. if ($_SESSION['num_area']==9){$pv_area="HYUNDAI";}
  18. if ($_SESSION['num_area']==8){$pv_area="FORTALEZA";}
  19. if ($_SESSION['num_area']==20){$pv_area="MOTOS";}
  20. if ($_SESSION['num_area']==14){$pv_area="FORD LIVIANOS";}
  21. if ($_SESSION['num_area']==10){$pv_area="CURIMAQ";}
  22. if ($_SESSION['num_area']==11){$pv_area="USADOS LIVIANOS";}
  23.  
  24.  
  25. ?>
  26. <TITLE><?=$pv_area?></TITLE>
  27. <SCRIPT language="JavaScript">
  28. function llama_carro(){
  29.     var myLeft =  (screen.width-1000)/2
  30.     var myTop =  (screen.height-700)/2
  31.     window.open('post_venta.php?correo=<?=$correo?>','mywindow','scrollbars=yes,menubar=no,height=700,width=1000,left='+myLeft+',top='+myTop+',resizable=no,toolbar=no,location=no,status=no');
  32. }
  33. function llama_carro2(){
  34.     var myLeft =  (screen.width-1000)/2
  35.     var myTop =  (screen.height-700)/2
  36.     window.open('post_venta2.php','mywindow','scrollbars=yes,menubar=no,height=700,width=1000,left='+myLeft+',top='+myTop+',resizable=no,toolbar=no,location=no,status=no');
  37. }
  38.  
  39. </SCRIPT>
  40. </HEAD>
  41. <body bgcolor="white" text="black" link="#CD3B1A" alink="#CD3B1A" vlink="#CD3B1A">
  42. <?
  43.    //opciones
  44.    echo("<div STYLE=".chr(34)."position:absolute; top:1px; left:1px".chr(34).">");
  45. /* RDA: Se incorpora el correo */
  46.    echo("    <iframe name=opciones src=opciones.php?tipo=0&correo=$correo&num_area=$num_area");
  47. /* RDA: Se incorpora el correo */
  48.    echo("      width=130 height=320 scrolling=no frameborder=0 transparency>");
  49.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  50.    echo("    </iframe>");
  51.    echo("     </div>");
  52.  
  53.    //lista empresas
  54.    echo("  <div STYLE=".chr(34)."position:absolute; top:1px; left:131px".chr(34).">");
  55.    echo("    <iframe name=listaempresas src=lista_empresas.php?tipo=0");
  56.    echo("      width=350 height=250 scrolling=no frameborder=0 transparency>");
  57.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  58.    echo("    </iframe>");
  59.    echo("     </div>");
  60.    
  61.       //busca y muestra datos
  62.    echo("  <div STYLE=".chr(34)."position:absolute; top:1px; left:481px".chr(34).">");
  63.    echo("    <iframe name=buscaempresa src=busca_criterios.php");
  64.    echo("      width=520 height=300 scrolling=no frameborder=0 transparency>");
  65.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  66.    echo("    </iframe>");
  67.    echo("     </div>");
  68.          //botones cotizacion hoja de vida
  69.    echo("  <div STYLE=".chr(34)."position:absolute; top:251px; left:131px".chr(34).">");
  70.    echo("    <iframe name=menuboton src=botones_menu.php");
  71.    echo("      width=350 height=70 scrolling=no frameborder=0 transparency>");
  72.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  73.    echo("    </iframe>");
  74.    echo("     </div>");
  75.       //lista contactos
  76.    echo("  <div STYLE=".chr(34)."position:absolute; top:316px; left:1px".chr(34).">");
  77.    echo("    <iframe name=listacontactos src=lista_contactos.php");
  78.    echo("      width=480 height=155 scrolling=no frameborder=0 transparency>");
  79.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  80.    echo("    </iframe>");
  81.    echo("     </div>");
  82.       //informes varios
  83.    echo("  <div STYLE=".chr(34)."position:absolute; top:470px; left:1px".chr(34).">");
  84.    echo("    <iframe name=informesvarios src=informes_varios.php");
  85.    echo("      width=480 height=280 scrolling=no frameborder=0 transparency>");
  86.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  87.    echo("    </iframe>");
  88.    echo("     </div>");
  89.    //mapa google
  90.    echo("  <div STYLE=".chr(34)."position:absolute; top:751px; left:1px".chr(34).">");
  91.    echo("    <iframe name=gmaps src=gmaps.php");
  92.    echo("      width=480 height=380 scrolling=no frameborder=0 transparency>");
  93.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  94.    echo("    </iframe>");
  95.    echo("     </div>");
  96.    //ayuda
  97.    echo("  <div STYLE=".chr(34)."position:absolute; top:721px; left:481px".chr(34).">");
  98.    echo("    <iframe name=ayudapv src=buscar_ayuda.php");
  99.    echo("      width=520 height=410 scrolling=yes frameborder=0 transparency>");
  100.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  101.    echo("    </iframe>");
  102.    echo("     </div>");
  103.    //gráficos
  104.    //echo("  <div STYLE=".chr(34)."position:absolute; top:1191px; left:1px".chr(34).">");
  105.    //echo("    <iframe name=graficos src=graficos.php");
  106.    //echo("      width=480 height=100 scrolling=no frameborder=0 transparency>");
  107.    //echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  108.    //echo("    </iframe>");
  109.    //echo("     </div>");
  110.    
  111.    //anticierre
  112.    echo("  <div STYLE=".chr(34)."position:absolute; top:780px; left:1px".chr(34).">");
  113.    echo("    <iframe name=anticierre src=anticierre.php");
  114.    echo("      width=1 height=1 scrolling=no frameborder=0 transparency>");
  115.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  116.    echo("    </iframe>");
  117.    echo("     </div>");
  118.  
  119.    
  120.  
  121.    echo("  <div STYLE=".chr(34)."position:absolute; top:301px; left:481px".chr(34).">");
  122. /* RDA: Se incorpora el correo */
  123. if ($_SESSION['num_area']==0){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal2.php?correo=$correo&num_area=$num_area");}
  124. if ($_SESSION['num_area']==1){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal2.php?correo=$correo");}
  125. if ($_SESSION['num_area']==2){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal2.php?correo=$correo&num_area=$num_area");}
  126. if ($_SESSION['num_area']==3){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal2.php?correo=$correo&num_area=$num_area");}
  127.  
  128. //livianos hyundai - fortaleza - ford livianos - curimaq(global)
  129. if ($_SESSION['num_area']==8){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal.php?correo=$correo&num_area=$num_area");}
  130. if ($_SESSION['num_area']==9){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal.php?correo=$correo&num_area=$num_area");}
  131. if ($_SESSION['num_area']==14){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal.php?correo=$correo&num_area=$num_area");}
  132. if ($_SESSION['num_area']==10){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal.php?correo=$correo");}
  133. /* RDA: 17/08/2015 Se incorpora Seguimiento Negocios a Usados Livianos
  134. if ($_SESSION['num_area']==11){   echo("    <iframe name=agenda src=agenda.php?correo=$correo&num_area=$num_area");}
  135. /* RDA: 17/08/2015 Se incorpora Seguimiento Negocios a Usados Livianos*/
  136. if ($_SESSION['num_area']==11){   echo("    <iframe name=agenda src=seguimiento_negocios_ppal2.php?correo=$correo&num_area=$num_area");}
  137.  
  138. /*
  139. if ($_SESSION['num_area']==20){   echo("    <iframe name=agenda src=agenda.php?correo=$correo");}
  140. /* RDA: Se incorpora el correo */
  141.    echo("      width=520 height=420 scrolling=no frameborder=0 transparency>");
  142.    echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  143.    echo("    </iframe>");
  144.    echo("     </div>");
  145.  
  146.       //informacion de cotizaciones
  147. //   echo("  <div STYLE=".chr(34)."position:absolute; top:281px; left:351px".chr(34).">");
  148. //   echo("    <iframe name=infoemp src=info_empresa.php");
  149. //   echo("      width=650 height=270 scrolling=no frameborder=0 transparency>");
  150. //   echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  151. //   echo("    </iframe>");
  152. //   echo("     </div>");
  153.       //seguimiento de negocios
  154. //   echo("  <div STYLE=".chr(34)."position:absolute; top:281px; left:351px".chr(34).">");
  155. //   echo("    <iframe name=seguimiento src=seguimiento.php");
  156. //   echo("      width=650 height=270 scrolling=no frameborder=0 transparency>");
  157. //   echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  158. //   echo("    </iframe>");
  159. //   echo("     </div>");
  160.    //administrador
  161. //   echo("  <div STYLE=".chr(34)."position:absolute; top:552px; left:1px".chr(34).">");
  162. //   echo("    <iframe name=administrador src=administrador.php");
  163. //   echo("      width=650 height=200 scrolling=no frameborder=0 transparency>");
  164. //   echo("      <p>Texto alternativo para navegadores que no aceptan iframes.</p>");
  165. //   echo("    </iframe>");
  166. //   echo("     </div>");
  167.  
  168. if ($_SESSION['num_area']<=2){echo "<SCRIPT LANGUAGE='javascript'>llama_carro2();</SCRIPT>";}
  169. if ($_SESSION['num_area']==11){echo "<SCRIPT LANGUAGE='javascript'></SCRIPT>";}
  170. if (($_SESSION['num_area']>2)){
  171.    if (($_SESSION['num_area']>2) and ($_SESSION['num_area']<11)){echo "<SCRIPT LANGUAGE='javascript'>llama_carro();</SCRIPT>";}
  172.    if (($_SESSION['num_area']>11)){echo "<SCRIPT LANGUAGE='javascript'>llama_carro();</SCRIPT>";}
  173. }
  174. ?>
  175. <div STYLE="position:absolute; top:1px; left:601px">
  176. <iframe name="consultas" src=""
  177.       width="0" height="0" scrolling="no" frameborder="0" transparency>
  178.       <p>Texto alternativo para navegadores que no aceptan iframes.</p>
  179. </iframe>
  180. </div>
  181. </BODY>
  182. </HTML>

Estoy urgido por esto....