Aller au contenu

Formulaire


Chris_Alter

Sujets conseillés

:)

Me voila, pour la suite de mes aventures, périlleuses, dans le domaine des formulaires..., et bien demandeur de vos précieux conseils...

Je "tente" de réaliser un formulaire de compte rendu de consultation.

Dans ce formulaire, on doit notamment calculer un score.

Ce que je voudrais c'est que sur mon formulaire de départ, un lien mène vers une page de calcul (pop-up), sur cette nouvelle page, on coche trois boutons radio (ce qui nous donne le score) et qu'à la validation des données, le résultat se retrouve dans la case désirée sur le formulaire de départ...

Je sais pas si c'est bien clair en fait...

D'autre part, une fois le questionnaire rempli, je voudrais avoir la possibilité de l'imprimer (avant validation) et de le valider (envoi sécurisé par mail ou retranscription...)

Pour le moment, j'ai simplement réussi à ce que les données se trouvent sur une autre page, listées très simplement... (mais j'en suis déja bien content... :blush:

Et oui, je débute dans ce domaine... mais je suis très très demandeur...

Merci d'avance à tous ceux qui sauront déjà me comprendre à travers ma demande et merci de vos conseils.

:)

Chris

Lien vers le commentaire
Partager sur d’autres sites

  • 2 semaines plus tard...

voila surement ce qui vous manquait...

je vous ajoute donc le code ce mon formulaire, ainsi que celui de ma page de score a calculer, et qui doit revenir dans la première page ... :blink:

<body>
<html><body>
<form method="post" action="verif.php">
<table width="90%" border="0" align="center">
<tr bgcolor="#0080C0">
<td colspan="3"><span class="Style5">Intervenants</span></td>
</tr>
<tr>
<td><span class="Style2">Centre Hospitalier :</span> <select name="interch" size="1" id="interch">
<option> </option>
<option>Dole</option>
<option>Lons Le Saunier</option>
<option>Vesoul</option>
<option>Saint Claude</option>
<option>Champagnole</option>
<option>Belfort</option>
<option>Montbeliard</option>
<option>Pontarlier</option>
<option>Morez</option>
<option>Autre</option>
</select></td>
<td><span class="Style2">Docteur :</span> <input name="interdr" type="text" id="interdr" value="" maxlength="20"></td>
<td><span class="Style2">Service :
</span> <select name="Interservices" size="1" id="Interservices">
<option> </option>
<option>Urgences</option>
<option>Neurologie</option>
<option>Radiologie</option>
<option>Autres</option>
</select></td>
</tr>
<tr>
<td><span class="Style2">Autre :</span> <input name="autrech" type="text" id="autrech" value="" maxlength="30"></td>
<td> </td>
<td><span class="Style2">Autre :</span> <input name="autreservice" type="text" id="autreservice" value=""></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td bgcolor="#B5DBFF"><span class="Style3">CHU de Besançon </span></td>
<td><span class="Style2">Service :</span> <select name="servicechu" size="1" id="service_chu">
<option> </option>
<option>Neurochirurgie</option>
<option>Neurologie</option>
<option>Radiologie</option>
<option>Reanimation-Urgences</option>
<option>Autre</option>
</select></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="Style2">Autre Service CHU : <input name="autrechu" type="text" id="autrechu" value="" maxlength="30"></span></td>
<td> </td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center">
<tr>
<td bgcolor="#0082C6" class="Style5">Motifs d'appel </td>
<td> </td>
</tr>
<tr>
<td><span class="Style2">Symptômes :</span> <select name="symptomes" size="7" multiple id="symptomes">
<option> </option>
<option>Céphalées</option>
<option>Coma</option>
<option>Confusion</option>
<option>Etat de mal épileptique</option>
<option>Epilepsie</option>
<option>Perte de connaissance (PC), Syncopes et "Malaises"</option>
<option>Troubles du langage</option>
<option>Troubles moteurs</option>
<option>Troubles sensitifs</option>
<option>Troubles de la vision</option>
<option>Vertiges</option>
<option>Troubles de la marche</option>
<option>Nerfs crâniens</option>
<option>Mouvements anormaux</option>
<option>Démence</option>
<option>Chute</option>
<option>Autres (cas originaux)</option>
</select> </td>
<td><span class="Style2">Groupes nosographiques :</span> <select name="grnoso" id="grnoso">
<option> </option>
<option>Accident Vasculaire Cérébral ischémique</option>
<option>Accident Vasculaire Cérébral hémorragique</option>
<option>Hémorragie Méningée</option>
<option>Radiculo (douleurs nevralgiques des membres)</option>
<option>Traumatisme crânien (TC) sans PC</option>
<option>Traumatisme crânien (TC) avec PC</option>
<option>Traumatisme Rachidien (TR) simple</option>
<option>Traumatisme Rachidien (TR) avec lésion médullaire</option>
<option>Traumatisme Rachidien (TR) avec lésion radiculaire</option>
<option>Tumeur cérébrale</option>
<option>Hydrocéphalie</option>
<option>Problème de valve</option>
<option>Aggravation d'une maladie neurologique connue / évènements intercurrents</option>
</select></td>
</tr>
<tr>
<td> </td>
<td><span class="Style2">Autre choix <strong>Code CIM10</strong></span></td>
</tr>
</table>
<table width="90%" border="0" align="center">
<tr>
<td bgcolor="#0082C6"><span class="Style5">Identification du patient</span></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><span class="Style2">Nom :</span> <input name="patientnom" type="text" id="patientnom" value="" maxlength="20"></td>
<td><span class="Style2">Prénom : </span> <input name="patientprenom" type="text" id="patientprenom" value="" maxlength="20"></td>
<td><span class="Style2">Date de naissance :</span> <input name="patientddn" type="text" id="patientddn" value="" maxlength="10"></td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center">
<tr>
<td colspan="2" bgcolor="#0082C6" class="Style5">Examens</td>
</tr>
<tr>
<td width="45%" class="Style2">GLASGOW<a href="calcul_glasgow.html" target="_blank"> (calculer)</a> </td>
<td width="55%" class="Style2">NIH <a href="calcul_nih.html" target="_blank">(calculer)</a></td>
</tr>
<tr>
<td class="Style2">Autres éléments
<textarea name="exautelements" cols="55" rows="7" id="exautelements"></textarea></td>
<td> </td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center">
<tr>
<td colspan="2" bgcolor="#0082C6" class="Style5">Examens complémentaires réalisés </td>
</tr>
<tr>
<td><span class="Style3">1- Type (transféré) </span></td>
<td> </td>
</tr>
<tr>
<td><input name="irm" type="checkbox" id="irm" value="Oui">
<span class="Style6">IRM</span></td>
<td><input name="scan" type="checkbox" id="scan" value="Oui">
<span class="Style6">SCANNER</span></td>
</tr>
<tr>
<td class="Style3">2- Résultats</td>
<td><textarea name="excomplresultats" cols="75" rows="10" id="excomplresultats"></textarea></td>
</tr>
<tr>
<td class="Style3">3- Autres examens et résultats </td>
<td><textarea name="excomplautrexam" cols="75" rows="10" id="excomplautrexam"></textarea></td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center">
<tr>
<td colspan="2" bgcolor="#0082C6" class="Style5">Problème au transfert d'images</td>
</tr>
<tr>
<td width="9%"><p>
<label>
<input type="radio" name="transfimage" value="Non">
<span class="Style2">Non</span></label>
<br>
<label>
<input name="transfimage" type="radio" onClick="<textarea name="trimagepb" cols="85" id="trimagepb"></textarea>" value="Oui">
<span class="Style2">Oui</span></label>
<br>
</p></td>
<td width="91%"> </td>
</tr>
<tr>
<td> </td>
<td><span class="Style2">Si oui : </span> <textarea name="trimagepb" cols="85" id="trimagepb"></textarea></td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center">
<tr>
<td colspan="2" bgcolor="#0082C6" class="Style5">Transfert</td>
</tr>
<tr>
<td width="30%" class="Style2">Indication</td>
<td width="70%"><p class="Style2">
<label>
<input type="radio" name="indication" value="Oui">
Oui</label>
<br>
<label>
<input type="radio" name="indication" value="Non">
Non</label>
<br>
</p></td>
</tr>
<tr>
<td class="Style2">Si oui, précisez le service d'accueil</td>
<td><input name="transfservaccueil" type="text" id="transfservaccueil" value="" size="60" maxlength="55"></td>
</tr>
<tr>
<td class="Style2">Le service a-t-il été informé de cette prise en charge ?</td>
<td><p class="Style2">
<label>
<input type="radio" name="informpec" value="Oui">
Oui</label>
<br>
<label>
<input type="radio" name="informpec" value="Non">
Non</label>
<br>
</p></td>
</tr>
<tr>
<td class="Style2">Si non, précisez le problème </td>
<td><input name="transfpbplace" type="checkbox" id="transfpbplace" value="pas de place">
<span class="Style2">Indication, mais pas de place </span></td>
</tr>
<tr>
<td> </td>
<td><span class="Style2">Autre</span> <input name="transfpbautre" type="text" id="transfpbautre" value="" size="35"></td>
</tr>
</table>
<p> </p>
<p><br>
<input type="submit" value="OK">
</p>
</form></body></html>
</body>

et

</script>
<script language="JavaScript1.2" src="/axinet/aximl.js"></script>








<script language="JavaScript">
<!--
function getIntValue(value){
value = value.replace(',','.');
if(!value || isNaN(value)){
return 0;
} else {
return parseInt(value);
}
}
function count(form){
var score = 0;
var result = "";
for(var i=0;i<form.elements.length;i++){
var type = form.elements[i].type;
if(type == 'radio'){
if(form.elements[i].checked == true){
score += getIntValue(form.elements[i].value);
}
} else if(type == 'select-one'){
score += getIntValue(form.elements[i].value);
} else if(type == 'checkbox'){
if(form.elements[i].checked){
score += getIntValue(form.elements[i].value);

}
}
}
changeScore(score);

form.submit();
}
function changeScore(score){
window.opener.setScore(score,'PATIENT:HOSPITALISATION$INITIAL:HDLMLDC$HDLMLDC:TAB_CLINIQUE$TAB_CLINIQUE:GLASGOW$GLASGOW:SCORE');
}

//-->
</script>

<script language="JavaScript" src="/axinet/flashButtons.js"></script>
<style type="text/css">
<!--
body {
background-color: #B7DBFF;
}
-->
</style></head>
<body alink="#3333ff" link="#000000" text="#000000" vlink="#037f8d">
<form action="axicare.kernel.broker.LoginPage" method="post" name="form">
<input name="TEMPLATE" type="hidden" value="closewindow.axlml"/>
<center>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD>
<TABLE WIDTH="62%" BORDER="0" align="center" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD COLSPAN="5" CLASS="column" BGCOLOR="#87bcb1" ALIGN="middle">Score de Glasgow</TD>
</TR>
<TR>
<TD WIDTH="3" BGCOLOR="#87bcb1"><IMG SRC="/axinet/images/cale.gif" WIDTH="3" BORDER="0" HEIGHT="1"></TD>
<TD WIDTH="3"><IMG SRC="/axinet/images/cale.gif" WIDTH="3" BORDER="0" HEIGHT="1"></TD>
<TD WIDTH="100%" CLASS="data">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD COLSPAN="2"> <b>Ouverture des yeux</b></TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD WIDTH="30"><input VALUE="1" checked="true" name="oy" type="radio"/></TD>
<TD WIDTH="97%">Spontanée</TD>
</TR>
<TR>
<TD><input VALUE="2" name="oy" type="radio"/></TD>
<TD>Au bruit</TD>
</TR>
<TR>
<TD><input VALUE="3" name="oy" type="radio"/></TD>
<TD>A la douleur</TD>
</TR>
<TR>
<TD><input VALUE="4" name="oy" type="radio"/></TD>
<TD>Jamais</TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD COLSPAN="2"> <b>Réponse verbale</b></TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD><input VALUE="1" checked="true" name="rv" type="radio"/></TD>
<TD>Orientée</TD>
</TR>
<TR>
<TD><input VALUE="2" name="rv" type="radio"/></TD>
<TD>Confuse</TD>
</TR>
<TR>
<TD><input VALUE="3" name="rv" type="radio"/></TD>
<TD>Inappropriée</TD>
</TR>
<TR>
<TD><input VALUE="4" name="rv" type="radio"/></TD>
<TD>Incompréhensible</TD>
</TR>
<TR>
<TD><input VALUE="5" name="rv" type="radio"/></TD>
<TD>Rien</TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD COLSPAN="2"> <b>Meilleure réponse motrice</b></TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD><input VALUE="1" checked="true" name="mrm" type="radio"/></TD>
<TD>Obéit</TD>
</TR>
<TR>
<TD><input VALUE="2" name="mrm" type="radio"/></TD>
<TD>Orientée</TD>
</TR>
<TR>
<TD><input VALUE="3" name="mrm" type="radio"/></TD>
<TD>Evitement</TD>
</TR>
<TR>
<TD><input VALUE="4" name="mrm" type="radio"/></TD>
<TD>Décortication</TD>
</TR>
<TR>
<TD><input VALUE="5" name="mrm" type="radio"/></TD>
<TD>Décérébration</TD>
</TR>
<TR>
<TD><input VALUE="6" name="mrm" type="radio"/></TD>
<TD>Rien</TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
<TR>
<TD COLSPAN="2">
<center>
<script language="JavaScript">
<!--
funcButton("count(document.form)", "valid", "Valider vos données")
//-->
</script> <span class="caption"><span class="captionBold">Valider</span> vos données</span>
</center>
</TD>
</TR>
<TR HEIGHT="10">
<TD COLSPAN="2"> </TD>
</TR>
</TABLE></TD>
<TD WIDTH="3"><IMG SRC="/axinet/images/cale.gif" WIDTH="3" BORDER="0" HEIGHT="1"></TD>
<TD WIDTH="3" BGCOLOR="#87bcb1"><IMG SRC="/axinet/images/cale.gif" WIDTH="3" BORDER="0" HEIGHT="1"></TD>
</TR>
</TABLE></TD></TR>
</TABLE><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR>
<TD COLSPAN="5" CLASS="column" BGCOLOR="#87bcb1" ALIGN="middle"> </TD>
</TR>
</TABLE></center>
</form>
</body>

Merci a tous ceux qui pourront me dépatouiller, car j'ai sérieusement besoin d'y voir plus clair !!! :blush:

Chris

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...