Ir para conteúdo
Fórum Script Brasil

leticiatimoteo

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Posts postados por leticiatimoteo

  1. AJUDA!!!!!!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            
             <script type="text/javascript">
            function validate() {

                var febreBaixa = document.getElementById("febreBaixa");
                var febreMedia = document.getElementById("febreMedia");
                var febreAlta = document.getElementById("febreAlta");
                (...........)

                
                 
                if ((febreBaixa.checked) && (nausea.checked) && (vomito.checked) && (dorCabeca.checked) && (dorCorpo.checked)) {

                    decisao = confirm("O paciente possui sintoma Diarréia?? \n" +
                            "Se SIM clique em Ok, \n" +
                            "Se NÃO clique em Cancelar.");

                    if (decisao) {
                        alert("Você clicou no botão Sim,\n" +
                                "então a Doença Possível é: Doença de Chagas");
                    } else {
                        alert("Você clicou no botão não,\n" +
                                "então a Doença Possível é: Febre Amarela Leve ");
                    }
                    ;


                
                    return;
                }

                if ((febreAlta.checked) && (dorCabeca.checked) && (dorMuscular.checked) && (nausea.checked) && (vomito.checked)) {

                    decisao = confirm("O paciente possui sintoma Dor Ossea?? \n" +
                            "Se SIM clique em Ok, \n" +
                            "Se NÃO clique em Cancelar.");

                    if (decisao) {
                        alert("Você clicou no botão Sim,\n" +
                                "então a Doença Possível é: Dengue");
                    } else {
                        alert("Você clicou no botão não,\n" +
                                "então a Doença Possível é: Gripe Suína ");
                    }
                    ;


                    return;
                }

                if ((dorCabeca.checked) && (nausea.checked) && (diarreia.checked) && (vomito.checked)) {

                    decisao = confirm("O paciente possui sintoma Febre Baixa?? \n" +
                            "Se SIM clique em Ok, \n" +
                            "Se NÃO clique em Cancelar.");

                    if (decisao) {
                        alert("Você clicou no botão Sim,\n" +
                                "então a Doença Possível e: Doença de Chagas");
                    } else {
                        alert("Você clicou no botão Não,\n" +
                                "então a Doença Possível e: Gripe Suína ");
                    }
                    ;


                    return valor;
                }
                if ((dorAbdominal.checked) && (nausea.checked) && (vomito.checked) && (diarreia.checked)) {
                    alert("A Doença Possível é : Colera");
                    text = "colera";


                    return;
                }
    (............)

        </script>
            
            <title>TropMedic</title>
            <link rel="stylesheet" type="text/css" href="Doenca.css" media="screen" />

        </head>

        <body>
           
                
    <form name=" form1" onsubmit="return validate()" align="center"
          action =Resultado.html>


        <table border="0">     
            <table style="HEIGHT:100%;WIDTH:100%;" border=0>
            <tr align="center">     
                            
               <tr>
                <td align=left><input type="checkbox" id="febreBaixa">Febre Baixa</td>
                <td align=left><input type="checkbox" id="febreMedia">Febre Media</td>
                <td align=left><input type="checkbox" id="febreAlta">Febre Alta</td>
            </tr>

            <tr>
                <td align=left><input type="checkbox" id="febreIrregular">Febre Irregular</td>
                <td align=left><input type="checkbox" id="dorCabeca">Dor Cabeca</td>          
                <td align=left><input type="checkbox" id="dorMuscular">Dor Muscular</td>        
            </tr>
    </form>
           (.........)

                    </body>
                    </html>


    PRECISO QUE O RETURN DA FUNÇÃO PASSE UM VALOR... COMO POR EXEMPLO O NOME DA DOENÇA QUE ELE DIAGNOSTICOU.  
    - PRECISO DO VALOR PARA FAZER ESSE VALOR(NOME) ABRIR EM OUTRA PAGINA
    - PRECISO DO VALOR PARA PODER SUBIR NO BANCO.

    ME AJUDEM POR FAVOR!!!!

×
×
  • Criar Novo...