Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/09/2009, 11:40
Avatar de zeuzft
zeuzft
 
Fecha de Ingreso: junio-2009
Ubicación: peru
Mensajes: 358
Antigüedad: 15 años, 7 meses
Puntos: 2
Exclamación Respuesta: Lamar a venta enemergente despues de consulta

ya realize lo de crear una funcion pero como eso esta de myajax.php al momento de ejecutarse me dice que la funcion popup no esta definida; aqui todo el codigo:
Código PHP:
if($_GET['opcion']=="buscar_cliente2")
    {
                ?>
                <script>
                    function popup()
                    {
                    window.open('nuevo_clienteprof.php?pagina=nueva_factura_compraprof','nuevoclie','resizable=yes, top='+parseInt(((screen.height) / 2)-200)+', width=600 ,height=400, left='+parseInt(((screen.width) / 2)-300)+', menubar=no, scrollbars=yes, status=no, titlebar=no, toolbar=no,directories=no');
document.form11.dni.value=''; 
}
                </script><?
        $cliruc
=$_GET['ruc'];
        
$clidni=$_GET['dni'];
        if (!empty(
$_GET['dni']))
        {
        
$miconexion->consulta("select * from cliente where cli_pas<>1 and cli_dni='$clidni'");
        
$row mysql_fetch_array($miconexion->Consulta_ID);
            if(
$miconexion->numregistros()==0)
                {
            echo 
"
                <table cellpadding='0' border='0'>
                <tr>
                    <td>
                        <table cellpadding='0'>
                            <tr>
                                <td class='texindpr'>Razon Social:</td>
                                <td>
                                <input type='text' name='razcli' size='80' class='formtextpr' value='$razcli'/>
                                </td>
                            </tr>
                            <tr>
                                <td class='texindpr'>Direcci&oacute;n:</td>
                                <td>
                                <input type='text' name='dircli' size='80' class='formtextpr' value='$dircli'/>
                                </td>
                            </tr>
                            <tr>
                                <td class='texindpr'>Tel&eacute;fono:</td>
                                <td>
                                <input name='telfcli' size='20' class='formtextpr' value='$telfcli'/>
                                <input name='cli_id' type='hidden' id='cli_id' value='$cli_id'/>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                        <span class='pies2'><b>SALUDOS</b></span><br />                
                        <textarea cols='40' rows='3' name='salu' class='texareapr'>$salu</textarea>    
                    </td>
                </tr>
            </table>"
;
                
popup();
                }