form_attn.php 1.8 KB
<!DOCTYPE html>
<html>
	<form method="post" action="main.php">
		<label for="c1_sonde">Attenuation Sonde CH1 :</label>
		<select id="c1_sonde" name="c1_sonde" onchange="this.form.submit();">
			<option value="0.1" <?php if(strpos($c1sonde,"ATTN 0.1")!=false) echo "selected" ?> >0.1X</option>
			<option value="0.2" <?php if(strpos($c1sonde,"ATTN 0.2")!=false) echo "selected" ?> >0.2X</option>
			<option value="0.5" <?php if(strpos($c1sonde,"ATTN 0.5")!=false) echo "selected" ?> >0.5X</option>
			<option value="1" <?php if(strpos($c1sonde,"ATTN 1")!=false) echo "selected" ?> >1X</option>
			<option value="2" <?php if(strpos($c1sonde,"ATTN 2")!=false) echo "selected" ?> >2X</option>
			<option value="5" <?php if(strpos($c1sonde,"ATTN 5")!=false) echo "selected" ?> >5X</option>
			<option value="10" <?php if(strpos($c1sonde,"ATTN 10")!=false) echo "selected" ?> >10X</option>
			<option value="20" <?php if(strpos($c1sonde,"ATTN 20")!=false) echo "selected" ?> >20X</option>
			<option value="50" <?php if(strpos($c1sonde,"ATTN 50")!=false) echo "selected" ?> >50X</option>
			<option value="100" <?php if(strpos($c1sonde,"ATTN 100")!=false) echo "selected" ?> >100X</option>
			<option value="200" <?php if(strpos($c1sonde,"ATTN 200")!=false) echo "selected" ?> >200X</option>
			<option value="500" <?php if(strpos($c1sonde,"ATTN 500")!=false) echo "selected" ?> >500X</option>
			<option value="1000" <?php if(strpos($c1sonde,"ATTN 1000")!=false) echo "selected" ?> >1000X</option>
			<option value="2000" <?php if(strpos($c1sonde,"ATTN 2000")!=false) echo "selected" ?> >2000X</option>
			<option value="5000" <?php if(strpos($c1sonde,"ATTN 5000")!=false) echo "selected" ?> >5000X</option>
			<option value="10000" <?php if(strpos($c1sonde,"ATTN 10000")!=false) echo "selected" ?> >10000X</option>
		</select>
	</form>
</html>