recup
This commit is contained in:
44
gsb/vues/v_choixCR.php
Normal file
44
gsb/vues/v_choixCR.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- choix d'un parametre / Derniere modification le 26 mars 2020 par Pascal Blain -->
|
||||
<?php
|
||||
$nbP=count($lesVisites);
|
||||
echo '
|
||||
|
||||
<form name="choixP" action="visites.php" method="post">
|
||||
<h2>'.$titre; ?>
|
||||
<select name="lstPraticiens" STYLE="width:350px;" onchange="submit();">
|
||||
<?php
|
||||
if (!isset($_REQUEST['lstPraticiens'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstPraticiens'];}
|
||||
|
||||
$i=1;
|
||||
foreach ($lesVisites as $unPraticiens)
|
||||
{
|
||||
if($unPraticiens['pNum'] == $choix or $choix == 'premier')
|
||||
{echo "<option selected value=\"".$unPraticiens['pNum']."\">".$unPraticiens['pNom']."</option>\n ";
|
||||
$choix = $unPraticiens['pNum'];
|
||||
$titre1= $unPraticiens['pNom'];
|
||||
$noP=$i;
|
||||
}
|
||||
else
|
||||
{echo "<option value=\"".$unPraticiens['pNum']."\">".$unParametre['pNom']."</option>\n ";
|
||||
$i=$i+1;}
|
||||
}
|
||||
if ($_REQUEST['action']<>"liste") {$action = $_REQUEST['action'];} else {$action = "voir";}
|
||||
echo '
|
||||
</select></h2>
|
||||
<input type="hidden" name="choixTraitement" value="param">
|
||||
<input type="hidden" name="action" value="'.$action.'">
|
||||
<input type="hidden" name="zType" value="*">
|
||||
<input type="hidden" name="zIndice" value="0">
|
||||
<input type="hidden" name="zColonne" value="0">';
|
||||
?>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id='navigation'>
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixP','lstParam')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixP','lstParam')">
|
||||
<?php echo ' <input type="text" id="zNumero" value="'.$noP.'/'.$nbP.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">'; ?>
|
||||
<input type="image" id="zSuivant" title="suivant" src="images/goSuivant.gif" onclick="suivant('choixP','lstParam')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixP','lstParam')">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- fin liste de choix -->
|
Reference in New Issue
Block a user