Bonjour , voici mon problème : j'ai 2 page fiche.php et visitescreening.php
fiche.php
visitescreening.phpCode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <?php $maReqQuery = "SELECT * FROM query WHERE Num_Patient=$numinclu "; $objResultQuery = $connexion->query($maReqQuery); ?> <label>Patient: </label> <input name='numinclu' type='text' value='<?php echo $numinclu ?>' readonly = "readonly" /></label> <label>Initial : </label> <input name='Init_Pat' type='text' value='<?php echo $Init_Pat ?>' readonly = "readonly" /> <br/><br/> <?php $nbLignesResultReq1 = $objResultQuery->rowCount(); $vars = ''; for ($i = 1; $i <= $nbLignesResultReq1; $i++) { $uneLigne5 = $objResultQuery->fetchObject(); $vars .= '&' . $uneLigne5->Denomination; } ?> <a href="Fiche/visitescreening.php?Init_Pat=<?php echo $Init_Pat ?>&NumInclu=<?php echo $numinclu ?>&Denomination=<?php echo $vars; ?>"><img src="images/fiche.png" width="80px" height="80px;" /></a>
et sur cette page je voudrais en faite pouvoir faire un test avec un requete :Code:
1
2
3
4
5
6
7
8
9
10
11
12 <fieldset><legend>Sexe</legend> <input type="radio" name="sexe" value="Homme" <?php if ($uneLigne->Sexe === 'Homme'): ?>checked="checked"<?php endif; ?>/>Masculin <input type="radio" name="sexe" value="Femme"<?php if ($uneLigne->Sexe === 'Femme') : ?>checked="checked"<?php endif; ?>/>Féminin <input type="radio" name="sexe" value="ND" <?php if ($uneLigne->Sexe === 'ND'): ?>checked="checked"<?php endif; ?>/>ND <A HREF="#" onClick="window.open('../popup.php?Denomination=Sexe', 'sexe', 'width=550,height=600')"><IMG SRC="../images/icon_vert.png" WIDTH="15" HEIGHT="15" ALT="description" style="float: right"/></A> </fieldset> <fieldset><legend>Patient majeur > 18 ans </legend> <input type="radio" name="majorite" value="oui" <?php if ($uneLigne->majorite === 'oui'): ?>checked="checked"<?php endif; ?>/>Oui <input type="radio" name="majorite" value="non" <?php if ($uneLigne->majorite === 'non'): ?>checked="checked"<?php endif; ?>/>Non <input type="radio" name="majorite" value="ND" <?php if ($uneLigne->majorite === 'ND'): ?>checked="checked"<?php endif; ?>/>ND <A HREF="#" onClick="window.open('../popup.php?Denomination=majorite', 'majorite', 'scrollbars=yes,width=550,height=600')"><IMG SRC="../images/icon_rouge.png" WIDTH="15" HEIGHT="15" ALT="description" style="float: right"/></A> </fieldset>
et si il y a une valeur qui était dans l'url est présente dans le résultat de la requête alors :Code:
1
2 $maReqPresent = "SELECT Denomination FROM query where Num_Patient=$numinclu"; $objResultReq1 = $connexion->query($maReqPresent );
Code:<A HREF="#" onClick="window.open('../popup.php?Denomination=Sexe', 'sexe', 'width=550,height=600')"><IMG SRC="../images/icon_vert.png" WIDTH="15" HEIGHT="15" ALT="description" style="float: right"/></A>
devient
Code:<A HREF="#" onClick="window.open('../popup.php?Denomination=Sexe', 'sexe', 'width=550,height=600')"><IMG SRC="../images/icon_rouge.png" WIDTH="15" HEIGHT="15" ALT="description" style="float: right"/></A>