]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/wirelessclient.cgi
proxy.pac: Don't use proxy for direct domain access.
[people/teissler/ipfire-2.x.git] / html / cgi-bin / wirelessclient.cgi
index 5ff0e2c427cd377e88b4a9f55c558461357e1cc6..a2d0273df502810e1636d5e9813b849998551f95 100644 (file)
@@ -258,11 +258,14 @@ sub showMainBox() {
 
                <br><hr><br>
 
-               <table width="100%">
+               <table width="100%" class='tbl'>
                        <tr>
                                <th align='center'>$Lang::tr{'wlan client ssid'}</th>
                                <th align='center'>$Lang::tr{'wlan client encryption'}</th>
                                <th align='center'>$Lang::tr{'priority'}</th>
+                               <th></th>
+                               <th></th>
+                               <th></th>
                        </tr>
 END
 
@@ -271,6 +274,7 @@ END
        #
 
        my $key = 0;
+       my $col="";
        foreach my $line (@configs) {
                # Skip commented lines.
                my $firstchar = substr($line, 0, 1);
@@ -292,9 +296,11 @@ END
 
                # Colorize each line
                if ($key % 2) {
-                       print "<tr bgcolor='$color{'color22'}'>";
+                       print "<tr>";
+                       $col="bgcolor='$color{'color20'}'";
                } else {
-                       print "<tr bgcolor='$color{'color20'}'>"; 
+                       print "<tr>";
+                       $col="bgcolor='$color{'color22'}'";
                }
 
                my $encryption_mode = $Lang::tr{'unknown'};
@@ -332,24 +338,24 @@ END
                }
 
                print <<END;
-                               <td align='center'>$config[5]</td>
-                               <td align='center'>$encryption_mode</td>
-                               <td align='center'>$config[7]</td>
-                               <td align='center' width='5%'>
+                               <td align='center' $col>$config[5]</td>
+                               <td align='center' $col>$encryption_mode</td>
+                               <td align='center' $col>$config[7]</td>
+                               <td align='center' width='5%' $col>
                                        <form method='post' action='$ENV{'SCRIPT_NAME'}'>
                                                <input type='hidden' name='ACTION' value='$Lang::tr{'toggle enable disable'}' />
                                                <input type='image' name='$Lang::tr{'toggle enable disable'}' src='/images/$gif' alt='$gdesc' title='$gdesc' />
                                                <input type='hidden' name='ID' value='$config[0]' />
                                        </form>
                                </td>
-                               <td align='center' width='5%'>
+                               <td align='center' width='5%' $col>
                                        <form method='post' action='$ENV{'SCRIPT_NAME'}'>
                                                <input type='hidden' name='ACTION' value='$Lang::tr{'edit'}' />
                                                <input type='image' name='$Lang::tr{'edit'}' src='/images/edit.gif' alt='$Lang::tr{'edit'}' title='$Lang::tr{'edit'}' />
                                                <input type='hidden' name='ID' value='$config[0]' />
                                        </form>
                                </td>
-                               <td align='center' width='5%'>
+                               <td align='center' width='5%' $col>
                                        <form method='post' action='$ENV{'SCRIPT_NAME'}'>
                                                <input type='hidden' name='ACTION' value='$Lang::tr{'remove'}' />
                                                <input type='image' name='$Lang::tr{'remove'}' src='/images/delete.gif' alt='$Lang::tr{'remove'}' title='$Lang::tr{'remove'}' />
@@ -446,7 +452,7 @@ sub showEditBox() {
                        <table width='100%'>
                                <tr>
                                        <td class='base' width='20%'>$Lang::tr{'wlan client ssid'}:</td>
-                                       <td width='40%'><input type='text' name='SSID' value='$settings{'SSID'}' size='25'/></td>
+                                       <td width='40%'><input type='text' name='SSID' value="$settings{'SSID'}" size='25'/></td>
                                        <td class='base' width='10%'>$Lang::tr{'enabled'}</td>
                                        <td width='30%'><input type='checkbox' name='ENABLED' $checked{'ENABLED'} /></td>
                                </tr>
@@ -464,7 +470,7 @@ sub showEditBox() {
                                </tr>
                                <tr>
                                        <td class='base' width='20%'>$Lang::tr{'wlan client psk'}:&nbsp;</td>
-                                       <td width='40%'><input type='password' name='PSK' value='$settings{'PSK'}' size='25'/></td>
+                                       <td width='40%'><input type='password' name='PSK' value="$settings{'PSK'}" size='25'/></td>
                                        <td colspan="2" width='40%'></td>
                                </tr>
                        </table>
@@ -499,11 +505,11 @@ sub showEditBox() {
                                        </td>
                                        <td width='40%'>
                                                <select name='PRIO'>
-                                                       <option value="0" $selected{'PRIO'}{'0'}>0</option>
+                                                       <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'most preferred'})</option>
                                                        <option value="1" $selected{'PRIO'}{'1'}>1</option>
                                                        <option value="2" $selected{'PRIO'}{'2'}>2</option>
                                                        <option value="3" $selected{'PRIO'}{'3'}>3</option>
-                                                       <option value="4" $selected{'PRIO'}{'4'}>4</option>
+                                                       <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'least preferred'})</option>
                                                </select>
                                        </td>
                                        <td colspan="2" width='40%'></td>