Commit 5f1385d9 authored by anne munoz's avatar anne munoz Committed by Adam Wujek

www: removed current setting

please remove the current setting from the first line. When the port is configured as slave the first and the second entry is slave.
parent 635f8cce
...@@ -34,27 +34,34 @@ ...@@ -34,27 +34,34 @@
echo '<th>wri' .($i+1). '</th>'; echo '<th>wri' .($i+1). '</th>';
$tmp = $i+1; $tmp = $i+1;
echo '<td><select name="selected" id="selected-'.$tmp.'" class="drop"> echo '<td><select name="selected" id="selected-'.$tmp.'" class="drop">';
<option selected="selected" ">'.$modes[$i].'</option> for ($j=0; $j<sizeof($names);$j++){
<option value='. $names[0] .'>'. $names[0] .'</option> if($modes[$i] == $names[$j]){
<option value='. $names[1] .'>'. $names[1] .'</option> echo '<option selected="selected" ">'.$modes[$i].'</option>';
<option value='. $names[2] .'>'. $names[2] .'</option> }
<option value='. $names[3] .'>'. $names[3] .'</option> else{
<option value='. $names[4] .'>'. $names[4] .'</option> echo '<option value='. $names[$j] .'>'. $names[$j] .'</option>';
</select></td>'; }
}
echo '</select></td>';
echo '<th>wri'.($i+10).'</th>'; echo '<th>wri'.($i+10).'</th>';
$tmp2 = $i+10; $tmp2 = $i+10;
echo '<td><select name="selected" id="selected-'.$tmp2.'" class="drop">
<option selected="selected" ">'.$modes[$i+9].'</option> echo '<td><select name="selected" id="selected-'.$tmp2.'" class="drop">';
<option value='. $names[0] .'>'. $names[0] .'</option>
<option value='. $names[1] .'>'. $names[1] .'</option> for ($j=0; $j<sizeof($names);$j++){
<option value='. $names[2] .'>'. $names[2] .'</option> if($modes[$i+9] == $names[$j]){
<option value='. $names[3] .'>'. $names[3] .'</option> echo '<option selected="selected" ">'.$modes[$i].'</option>';
<option value='. $names[4] .'>'. $names[4] .'</option> }
</select></td>'; else{
echo '<option value='. $names[$j] .'>'. $names[$j] .'</option>';
}
}
echo '</select></td>';
echo '</tr>'; echo '</tr>';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment